Jump to content
Sign in to follow this  
CJPLOTTS

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.

Share this post


Link to post
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

}

Share this post


Link to post
Share on other sites

I've got the same error! Have you resolved it?


Thanks a lot for all our community members. It's amazing that we are together and we have opportunity to help each oher.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×