Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Fatal error: Only variables can be passed by reference


Recommended Posts

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']));


Thanks for your help

Link to comment
Share on other sites

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!



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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...