erix138 Posted December 22, 2014 Share Posted December 22, 2014 After restoring cubecart store from backup, getting this output at the top on the production options admin page: Warning: uasort() expects parameter 1 to be array, null given in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 292Warning: Invalid argument supplied for foreach() in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 294Warning: uasort() expects parameter 1 to be array, null given in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 292Warning: Invalid argument supplied for foreach() in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 294Warning: uasort() expects parameter 1 to be array, null given in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 292Warning: Invalid argument supplied for foreach() in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 294 Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 22, 2014 Share Posted December 22, 2014 There are several instances in the code where a function is called with parameters that are assumed to be present, but at times are not. It's unfortunate, but these mistakes in programming do not actually affect the accuracy of the data CubeCart delivers to the web page, nor does it cause CubeCart to crash. As such, these minor mistakes are extraordinarily low on the programmer's list of priorities to do something about. At a very early point in CubeCart's initialization, PHP's "display_errors" is set to "on". After a bit more initializing, "display_errors" is set to "off". You may have made an edit that keeps these errors being displayed when they should only be getting logged to an error_log file, if even that is enabled. 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.