duey101 Posted January 13, 2008 Share Posted January 13, 2008 Using Online Merchant v. 2.2 RC1. When I load my Admin page and then go to the reviews page inside the Admin panel I get the following errors... Warning: array_merge() [function.array-merge]: Argument #3 is not an array in C:\xampp\htdocs\baliex\admin\reviews.php on line 215 Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\xampp\htdocs\baliex\admin\reviews.php on line 216 Warning: array_merge() [function.array-merge]: Argument #3 is not an array in C:\xampp\htdocs\baliex\admin\reviews.php on line 216 Warning: reset() [function.reset]: Passed variable is not an array or object in C:\xampp\htdocs\baliex\admin\includes\classes\object_info.php on line 17 Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\baliex\admin\includes\classes\object_info.php on line 18 I checked for white space and didn't see any and I also looked for other posts similar to this one that had an answer, but none are the same. There are two reviews in the Admin panel (stock reviews included in the install package). I can't figure out what is going on, no other errors anywhere else I can see. If I click on one of the reviews the warning goes away but if I try to delete a review it comes back. I am test running on WinXp SP2 with Xampp Server (localhost) Here is a screenshot of the error... Does anyone know how I can fix this error? I have no clue how to fix it. Here is the code from the suss pages... reviews.php line 215 - $review_info = array_merge($reviews_text, $reviews_average, $products_name); line 216 - $rInfo_array = array_merge($reviews, $review_info, $products_image); object_info.php line 13 - class objectInfo { line 14 line 15 // class constructor line 16 function objectInfo($object_array) { line 17 reset($object_array); line 18 while (list($key, $value) = each($object_array)) { line 19 $this->$key = tep_db_prepare_input($value); line 20 } line 21 } line 22 } line 23 ?> Link to comment Share on other sites More sharing options...
dr71 Posted January 27, 2008 Share Posted January 27, 2008 I am getting the same exact error and haven't found any posts pertaining to this issue. If anyone could help us out it would be very much appreciated. Until then i will continue searching... Link to comment Share on other sites More sharing options...
hari_shyam Posted January 27, 2008 Share Posted January 27, 2008 I am getting the same exact error and haven't found any posts pertaining to this issue. If anyone could help us out it would be very much appreciated. Until then i will continue searching... hmm.. suprising.. could you please paste in the whole code.. most probably it is ithe issue that oneof te arrays you are trying to merge is empty.. please paste in the code and we can have a take at this one. ;) Hari Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2008 Share Posted January 27, 2008 Have you guys installed anything thataffects those files, or are you using the admin filemanager? Link to comment Share on other sites More sharing options...
dr71 Posted January 28, 2008 Share Posted January 28, 2008 I was actually able to get this fixed, at least i am pretty sure it's fixed. I went into the 'Reviews' table through phpMyAdmin and deleted the demo reviews (or whatever you want to call them) that were already in there from the install. Now the error messages are gone in my Admin panel. I have also tested doing a few reviews myself and deleting them and i was able to delete them with no troubles and no error messages. Link to comment Share on other sites More sharing options...
Anotherx Posted February 10, 2009 Share Posted February 10, 2009 I was actually able to get this fixed, at least i am pretty sure it's fixed. I went into the 'Reviews' table through phpMyAdmin and deleted the demo reviews (or whatever you want to call them) that were already in there from the install. Now the error messages are gone in my Admin panel. I have also tested doing a few reviews myself and deleting them and i was able to delete them with no troubles and no error messages. Thanks =) I resolved Link to comment Share on other sites More sharing options...
tauneutrino Posted July 18, 2009 Share Posted July 18, 2009 Thanks =) I resolved This problem can be resolved by replacing: $review_info = array_merge($reviews_text, $reviews_average, $products_name); $rInfo_array = array_merge($reviews, $review_info, $products_image); with: $review_info = array_merge((array)$reviews_text, (array)$reviews_average, (array)$products_name); $rInfo_array = array_merge((array)$reviews, (array)$review_info, (array)$products_image); This problem is caused primarily due to a hosting company upgrading from a previous version of PHP to PHP5. P.S. Please comment out the original two lines of code using "//" before each line. Best, Dave Roberts Link to comment Share on other sites More sharing options...
nonamers Posted April 21, 2010 Share Posted April 21, 2010 This problem can be resolved by replacing: $review_info = array_merge($reviews_text, $reviews_average, $products_name); $rInfo_array = array_merge($reviews, $review_info, $products_image); with: $review_info = array_merge((array)$reviews_text, (array)$reviews_average, (array)$products_name); $rInfo_array = array_merge((array)$reviews, (array)$review_info, (array)$products_image); This problem is caused primarily due to a hosting company upgrading from a previous version of PHP to PHP5. P.S. Please comment out the original two lines of code using "//" before each line. Best, Dave Roberts HUGE THANX =))) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.