Guest Posted April 25, 2006 Posted April 25, 2006 I am trying to install linkpoint in my payment modules an i keep getting this message Warning: Variable passed to each() is not an array or object in /home/campusgo/public_html/store/admin/modules.php on line 46 Warning: Cannot modify header information - headers already sent by (output started at /home/campusgo/public_html/store/admin/modules.php:46) in /home/campusgo/public_html/store/admin/includes/functions/general.php on line 22
Guest Posted April 25, 2006 Posted April 25, 2006 How would i fix this? any help would be greatly appreciated.
matrix2223 Posted April 25, 2006 Posted April 25, 2006 Which version of osC and Linkpoint are you using it kinda hard to suggest something without knowing. Just an idea :P
Guest Posted April 25, 2006 Posted April 25, 2006 Which version of osC and Linkpoint are you using it kinda hard to suggest something without knowing. Just an idea :P Im using osCommerce 2.2-MS2 and used link point connect ver 1.1
rotozuk Posted April 25, 2006 Posted April 25, 2006 I get the same exact error message when I try to change any of my module settings. I have looked at the code in both files and am at a loss as to what the issue is. I can't even use the stock modules. -Wayne
matrix2223 Posted April 25, 2006 Posted April 25, 2006 Just out of curiousity did you double check your code in the /admin/modules.php and /admin/includes/functions/general.php what is on the line numbers is what is causing the problem
Guest Posted April 25, 2006 Posted April 25, 2006 Ok i fixed my first problem, when installing the linkpoint connect v1.1 skip the step that makes you change the "post" to "false" if you have the newest ver of osC this is not needed. but i still have my second prob to figure out. when i go to my check out screen i get all this php language on the page and this message up top. "Warning: Unterminated comment starting line 2 in /home/campusgo/public_html/store/includes/languages/english/checkout_payment.php on line 2" I went into this file and copied the first few lines, im not a wiz at php so any help with this would be appreciated. Thanks. <?php /* $Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } // if there is nothing in the customers cart, redirect them to the shopping cart page if ($cart->count_contents() < 1) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } // if no shipping method has been selected, redirect the customer to the shipping method selection page if (!tep_session_is_registered('shipping')) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); }
rotozuk Posted April 26, 2006 Posted April 26, 2006 Just out of curiousity did you double check your code in the /admin/modules.php and /admin/includes/functions/general.php what is on the line numbers is what is causing the problem Sure have. I also checked the "common problems" section for this error and I have no extra spaces I can find. I don't think I have even touched either of these files in my store.. Line 22 of general: header('Location: ' . $url); Line 46 and sourounding code of modules: $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); break; case 'install': case 'remove': $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $class = basename($HTTP_GET_VARS['module']); if (file_exists($module_directory . $class . $file_extension)) { include($module_directory . $class . $file_extension); $module = new $class; if ($action == 'install') { $module->install(); } elseif ($action == 'remove') { $module->remove(); } } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); break; } } ?>
rotozuk Posted April 26, 2006 Posted April 26, 2006 Hmm.. I've compared these 2 files to the bonestock files from a clean install and they have not changed. Any help would be great!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.