bgcdev Posted February 17, 2010 Share Posted February 17, 2010 I am installing the STSv4 and I have manually changed the occommerce 2.2rc2 files (lots of fun btw). However when I go into 'STS' under the 'Modules' tab, I get this error message: Fatal error: Only variables can be passed by reference in /home/cstudio/public_html/shop/oscommerce-2.2rc2a/catalog/admin/modules.php on line 52 Can anyone give me the easiest explanation and solution? Here is my code (Line 52 starts with 'while') if (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each((array)$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; Thanks for your help Quote Link to comment Share on other sites More sharing options...
bkellum Posted February 18, 2010 Share Posted February 18, 2010 Installing STS is easy, even if you are doing it manually. I STRONGLY suggest that you take advantage of the PHP files included in the package and compare them with your files that you modified manually. This will show you what you missed or if you placed the code in the wrong file or location. Please post all STSv4 related questions in the STSv4 Support Thread (link in the STS User Manual as well as in my signature below). See you over in the proper support thread! Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.