Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

AJAX-AttributeManager-V2.5-beta_1 and Register Globals


Recommended Posts

Just installed AJAX-AttributeManager-V2.5-beta_1 and I get the following errors on the bottom of the page

 

Warning: array_key_exists(): The first argument should be either a string or an integer in /home/cust1/user1397644/html/catalog/admin/includes/functions/sessions.php on line 99

 

Warning: array_key_exists(): The first argument should be either a string or an integer in /home/cust1/user1397644/html/catalog/admin/includes/functions/sessions.php on line 99

 

Warning: array_key_exists(): The first argument should be either a string or an integer in /home/cust1/user1397644/html/catalog/admin/includes/functions/sessions.php on line 99

 

Warning: array_key_exists(): The first argument should be either a string or an integer in /home/cust1/user1397644/html/catalog/admin/includes/functions/sessions.php on line 138

1060 - Duplicate column name 'products_options_sort_order'

 

ALTER TABLE products_attributes ADD COLUMN products_options_sort_order INT UNSIGNED NOT NULL DEFAULT '0'

 

I do have Register Globals v1.5 patch files installes and it looks like that is where is error is occurring but I don't have a clue.

Link to comment
Share on other sites

BTW this is the code around where the error is located.

 

function tep_session_is_registered($variable) {

// >>> BEGIN REGISTER_GLOBALS

// return session_is_registered($variable);

return (isset($_SESSION) && array_key_exists($variable,$_SESSION));

// <<< END REGISTER_GLOBALS

}

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...
  • 1 month later...
I also get the same error... please help...

 

Anyone have any luck?

 

i get slightly different errors, but similar.

 

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in .../admin/includes/functions/sessions.php on line 123

 

 

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /.../admin/includes/functions/sessions.php on line 123

 

Warning: Cannot modify header information - headers already sent by (output started at ...admin/includes/functions/sessions.php:123) in .../admin/attributeManager/attributeManager.php on line 70

 

These errors appear at the top of add or edit product page. When I try to add an attribute, the preview page seems to work, but on update I get

 

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in .../admin/includes/functions/sessions.php on line 123

 

Warning: Cannot modify header information - headers already sent by (output started at .../admin/includes/functions/sessions.php:123) in.../admin/includes/functions/general.php on line 22

 

I go back to the Admin and it recovers. If I look at the store, the attribute changes are made. I can add it to the cart and everything seems ok.

Edited by ldisales
Link to comment
Share on other sites

Anyone have any luck?

 

i get slightly different errors, but similar.

 

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in .../admin/includes/functions/sessions.php on line 123

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /.../admin/includes/functions/sessions.php on line 123

 

Warning: Cannot modify header information - headers already sent by (output started at ...admin/includes/functions/sessions.php:123) in .../admin/attributeManager/attributeManager.php on line 70

 

These errors appear at the top of add or edit product page. When I try to add an attribute, the preview page seems to work, but on update I get

 

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in .../admin/includes/functions/sessions.php on line 123

 

Warning: Cannot modify header information - headers already sent by (output started at .../admin/includes/functions/sessions.php:123) in.../admin/includes/functions/general.php on line 22

 

I go back to the Admin and it recovers. If I look at the store, the attribute changes are made. I can add it to the cart and everything seems ok.

 

 

A little more research found this this suggestion to change sessions.php line 123:

 

 

 

 

The previous version used

 

return isset($_SESSION[$variable]);

 

so you could try that unless you get a better answer.

 

 

It has worked for me so far.

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.

Guest
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...