Multiple error messages

4 posts by 3 authors in: Forums > CMS Builder
Last Post: March 16, 2012   (RSS)

By terryally - March 15, 2012 - edited: March 15, 2012

Hi guys,

CMSB threw up 105 error messages today. I don't think they just started happening but I just turned on the PHP error reporting script and I am getting these email messages. Some are very long and they are way too many to post here, so I'll post just a few salient lines as examples and you can tell me please how to proceed.


An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 331:
<br />Undefined index: leftJoin

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 1021:
<br />Undefined index: subscriber_id

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 373:
<br />Undefined index: where

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 419:
<br />Undefined variable: VIEWER_NAME

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 405:
<br />Undefined index: having

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 997:
<br />Undefined index: requireSearchSuffix

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 409:
<br />Undefined index: debugSql

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 1244:
<br />Undefined index: ignoreRemoveDate

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 419:
<br />mysql_query(): Access denied for user 'lakedarts'@'localhost' (using password: NO)

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 387:
<br />Undefined index: orWhere

An error occurred in script '/..../cms_admin/lib/viewer_functions.php' on line 1241:
<br />Undefined index: ignorePublishDate


... and there I will end it.

Thanks
Terry

Re: [terryally] Multiple error messages

By Jason - March 15, 2012

Hi Terry,

Are you seeing these error every time you use getRecords? I'm not sure what PHP error reporting script you're using, but my guess is that it's turning up the error reporting high enough that it's not allowing for error suppression.

Taking the first error message in your list as an example, it is referring to this line:

if (@$options['leftJoin']) {

This is checking to see if there is a leftJoin option in the options array. If there isn't (and there usually won't be), it technically will throw an error since we're accessing an index that doesn't exist. The @ symbol in front is meant to suppress this error. If you turn off the PHP error reporting script, do these problems go away? Are you able to control the reporting level in the script?

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [terryally] Multiple error messages

By (Deleted User) - March 16, 2012

Hi Terry,

That makes sense - you'll know if CMSB is having real difficulties if the site throws up an error when it's viewed - if that happens, let us know!

Thanks,

Tom