Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Review Error


JnJSpdShop

Recommended Posts

Reviews  

Products Rating Date Added Action  

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jandjspd/public_html/store/9051/reviews.php on line 215

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/jandjspd/public_html/store/9051/reviews.php on line 216

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/jandjspd/public_html/store/9051/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/jandjspd/public_html/store/9051/includes/classes/object_info.php on line 18

 

Any ideas? Thanks

Link to comment
Share on other sites

Solution:

 

in catalog/admin/reviews.php

 

around line 133 find:

$rInfo_array = array_merge($reviews, $products, $products_name);

change to:

 $rInfo_array = array_merge((array)$reviews, (array)$products, (array)$products_name);

 

and around line 215 find:

$review_info = array_merge($reviews_text, $reviews_average, $products_name);
$rInfo_array = array_merge($reviews, $review_info, $products_image);

change to:

$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);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...