CJPLOTTS Posted May 7, 2007 Share Posted May 7, 2007 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. Quote Link to comment Share on other sites More sharing options...
CJPLOTTS Posted May 7, 2007 Author Share Posted May 7, 2007 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 } Quote Link to comment Share on other sites More sharing options...
nikita Posted June 26, 2007 Share Posted June 26, 2007 I've got the same error! Have you resolved it? Quote Thanks a lot for all our community members. It's amazing that we are together and we have opportunity to help each oher. Link to comment Share on other sites More sharing options...
gomikeyp Posted February 19, 2008 Share Posted February 19, 2008 I also get the same error... please help... Quote Link to comment Share on other sites More sharing options...
ldisales Posted April 4, 2008 Share Posted April 4, 2008 (edited) 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 April 4, 2008 by ldisales Quote Link to comment Share on other sites More sharing options...
ldisales Posted April 4, 2008 Share Posted April 4, 2008 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. Quote 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.