Jump to content

Identify error report problem for options


erix138
 Share

Recommended Posts

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 292

Warning: Invalid argument supplied for foreach() in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 294

Warning: uasort() expects parameter 1 to be array, null given in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 292

Warning: Invalid argument supplied for foreach() in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 294

Warning: uasort() expects parameter 1 to be array, null given in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 292

Warning: Invalid argument supplied for foreach() in /home/sbarro12/public_html/pizzanow/admin/sources/products.options.inc.php on line 294

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...