Apache Error_log

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Apache Error_log

Postby maxol » Thu Mar 17, 2016 11:46 am

Checking system error messages I observed several errors in apache log.

[Thu Mar 17 11:58:20.193193 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: NOW_TIME in /srv/www/htdocs/agc/conf_exten_check.php on line 153, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.194534 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: DB in /srv/www/htdocs/agc/functions.php on line 45, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.194593 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: DB in /srv/www/htdocs/agc/functions.php on line 89, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.194764 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: mel in /srv/www/htdocs/agc/functions.php on line 92, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.194898 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: DB in /srv/www/htdocs/agc/functions.php on line 147, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.195071 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: DB in /srv/www/htdocs/agc/functions.php on line 167, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.195209 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: DB in /srv/www/htdocs/agc/functions.php on line 177, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.197062 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: VD_login in /srv/www/htdocs/agc/conf_exten_check.php on line 739, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.197207 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: VD_login in /srv/www/htdocs/agc/conf_exten_check.php on line 747, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php
[Thu Mar 17 11:58:20.197260 2016] [php5:error] [pid 7742] [client XXX.XXX.XXX.XXX:50078] PHP Notice: Undefined variable: live_agents_comments in /srv/www/htdocs/agc/conf_exten_check.php on line 829, referer: http://XXX.XXX.XXX.XXX/agc/vicidial.php


SVN Update 2491
VERSION: 2.12-543a
BUILD: 160313-0756
Asterisk 1.8.32.3-vici
LOCAL Server and SIP GSM gateway (local)
Firewall :Off
Local Agents : Not through WAN
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (QuardCore) & 8 GB Ram ECC
Vicibox-6.0.4
Last edited by maxol on Fri Mar 18, 2016 1:14 pm, edited 1 time in total.
Code: Select all
SVN Update 2534
VERSION: 2.12-555a
BUILD: 160508-1948
Asterisk 1.8.32.3-vici
LOCAL Server and SIP GSM gateway (local)
Firewall :Off
Local Agents : Not through WAN
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (QuardCore) & 8 GB Ram ECC
Vicibox-6.0.4
maxol
 
Posts: 15
Joined: Thu Mar 17, 2016 11:38 am

Re: Apache Error_log

Postby maxol » Thu Mar 17, 2016 1:55 pm

I change my php.ini to
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
Code: Select all
SVN Update 2534
VERSION: 2.12-555a
BUILD: 160508-1948
Asterisk 1.8.32.3-vici
LOCAL Server and SIP GSM gateway (local)
Firewall :Off
Local Agents : Not through WAN
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (QuardCore) & 8 GB Ram ECC
Vicibox-6.0.4
maxol
 
Posts: 15
Joined: Thu Mar 17, 2016 11:38 am

Re: Apache Error_log

Postby williamconley » Thu Mar 17, 2016 1:59 pm

maxol wrote:I change my php.ini to
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE

Why? (And ... what was it before you changed it?)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Apache Error_log

Postby maxol » Fri Mar 18, 2016 1:12 pm

Hi,

Before value is:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

With the ~E_NOTICE the notice message don´t show in apache error_log.
Code: Select all
SVN Update 2534
VERSION: 2.12-555a
BUILD: 160508-1948
Asterisk 1.8.32.3-vici
LOCAL Server and SIP GSM gateway (local)
Firewall :Off
Local Agents : Not through WAN
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (QuardCore) & 8 GB Ram ECC
Vicibox-6.0.4
maxol
 
Posts: 15
Joined: Thu Mar 17, 2016 11:38 am

Re: Apache Error_log

Postby williamconley » Fri Mar 18, 2016 2:21 pm

So the lesson is:

Prior versions of PHP did not care about the use of an undefined variable.

Present versions of PHP still do not care, if you have error_reporting set correctly to avoid getting a notice.

You have three choices:

1 Define the missing variable in each of the files reported (with the option to submit a DIFF so these changes can be pushed into the Vicidial Core) above the line of the first error in each file.
2 Change your error_reporting back to where it belongs.
3 Expect those errors to continue to fill your apache logs.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Apache Error_log

Postby maxol » Mon Mar 21, 2016 8:05 am

Ok.

Where can I provide the diff?

Index: conf_exten_check.php
===================================================================
--- conf_exten_check.php (revision 2491)
+++ conf_exten_check.php (working copy)
@@ -81,6 +81,7 @@
$mysql_log_count=44;
$one_mysql_log=0;
$DB=0;
+$VD_login=0;
$SSagent_debug_logging=0;
$startMS = microtime();

Index: vicidial.php
===================================================================
--- vicidial.php (revision 2491)
+++ vicidial.php (working copy)
@@ -524,6 +524,7 @@
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
+$DB=0;

require_once("dbconnect_mysqli.php");
require_once("functions.php");
Code: Select all
SVN Update 2534
VERSION: 2.12-555a
BUILD: 160508-1948
Asterisk 1.8.32.3-vici
LOCAL Server and SIP GSM gateway (local)
Firewall :Off
Local Agents : Not through WAN
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (QuardCore) & 8 GB Ram ECC
Vicibox-6.0.4
maxol
 
Posts: 15
Joined: Thu Mar 17, 2016 11:38 am

Re: Apache Error_log

Postby mflorell » Mon Mar 21, 2016 5:09 pm

You can post diffs to the Issue Tracker(Linked at the top of this page)
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Apache Error_log

Postby maxol » Tue Mar 22, 2016 10:03 am

Code: Select all
SVN Update 2534
VERSION: 2.12-555a
BUILD: 160508-1948
Asterisk 1.8.32.3-vici
LOCAL Server and SIP GSM gateway (local)
Firewall :Off
Local Agents : Not through WAN
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (QuardCore) & 8 GB Ram ECC
Vicibox-6.0.4
maxol
 
Posts: 15
Joined: Thu Mar 17, 2016 11:38 am


Return to Support

Who is online

Users browsing this forum: No registered users and 147 guests