Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products Attributes broken


clinart

Recommended Posts

Posted

After installing the Additional Images contribution, I get the following error when trying to administer Products Attributes:

 

 

Fatal error: Call to undefined function link_get_variable() in /blahblah/admin/products_attributes.php on line 18

 

The offending code is this:

 

// >>> BEGIN REGISTER_GLOBALS
   // These variables are accessed directly rather than through $HTTP_GET_VARS or $_GET later in this script
   [b]link_get_variable('option_page');  //this seems to be the problem[/b]
   link_get_variable('value_page');
   link_get_variable('attribute_page');
// <<< END REGISTER_GLOBALS

 $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 if (tep_not_null($action)) {
   $page_info = '';
   if (isset($HTTP_GET_VARS['option_page'])) $page_info .= 'option_page=' . $HTTP_GET_VARS['option_page'] . '&';
   if (isset($HTTP_GET_VARS['value_page'])) $page_info .= 'value_page=' . $HTTP_GET_VARS['value_page'] . '&';
   if (isset($HTTP_GET_VARS['attribute_page'])) $page_info .= 'attribute_page=' . $HTTP_GET_VARS['attribute_page'] . '&';
   if (tep_not_null($page_info)) {
     $page_info = substr($page_info, 0, -1);

 

I'm at a total loss to explain this. Any php wizards have any ideas?

Posted

One more bump -- sorry.

 

If anybody can help with this, it would be greatly appreciated.

 

Has anyone gotten the Additional Images contrib working with register_globals off? My client really needs the add'l images b/c they paid a lot for the pics. At the same time, I don't want to open up the register_globals security can of worms. This is very frustrating and I'm at a total loss to explain what's going on.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...