Welcome to WebmasterWorld Guest from 50.19.0.90

Forum Moderators: open

Message Too Old, No Replies

Error log problem

     
7:48 am on Feb 20, 2014 (gmt 0)

Full Member

5+ Year Member

joined:June 26, 2008
posts:229
votes: 2


Hello,
I have 2 databases and a frequent error log is being generated for both. The site visitors dont see any error but the log looks something like this:

[18-Feb-2014 19:32:25 America/Denver] PHP Notice: Undefined variable: do in /xxx/xxxx/public_html/reviews/main.php on line 146
[18-Feb-2014 19:32:25 America/Denver] PHP Notice: Undefined variable: w in /xxx/xxxx/public_html/reviews/main.php on line 225
[18-Feb-2014 19:32:25 America/Denver] PHP Notice: Undefined variable: start in /xxx/xxxx/public_html/reviews/main.php on line 242

These errors occur much more frequent now when I change hosts. The host denies it has anything to do with them. But before I switched I hardly ever had something in my error log. Any idea what might be wrong?
10:58 am on Feb 20, 2014 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


what version of PHP are you running now and what were you running on the previous host?
11:14 am on Feb 20, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
posts:12692
votes: 243


They're not errors, really, just information. Every now and then I have to clean the same kind of thing out of my MAMP logs. (Live site doesn't have php logs-- or if they do, they are extremely well concealed.) "Yes, of course it isn't defined, the whole point of the function was to check whether it has been defined!"

The new host may be using a different logging level, or a fractionally different php version, or both.
1:36 pm on Feb 20, 2014 (gmt 0)

Full Member

5+ Year Member

joined:June 26, 2008
posts:229
votes: 2


PHP Version is 5.4.24.

Even though they are not errors, the last couple of days has become very overwhelming cleaning them all the time. Usually I get this once in a while but now it is all the time.

Any idea how I can fix that would be appreciated.
4:21 pm on Feb 20, 2014 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


probably this...

http://us3.php.net/function.error-reporting.php [us3.php.net]:
5.4.0 E_STRICT became part of E_ALL.


you might be able to set another reporting level in your PHP Runtime Configuration:
http://us3.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
4:45 pm on Feb 20, 2014 (gmt 0)

Full Member

5+ Year Member

joined:June 26, 2008
posts:229
votes: 2


Thanks a lot! What would be a recommending level? I dont want to block all errors but I want to get rid of unnecessary notices.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members