All installation and configuration problems and questions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by dspaan » Sun Feb 14, 2021 2:45 pm
Our apache error log is getting spammed with this warning.
- Code: Select all
[Sat Feb 13 15:04:45.513412 2021] [php7:warn] [pid 2201] [client xxxxxxx:58407] PHP Warning: get_browser (): browscap ini directive not set in /srv/www/htdocs/viciphone/viciphone.php on line 75
Line 75:
- Code: Select all
$log_string .= get_browser(null,true);
I tried uploading the file manually and enabling it in php.ini according to the instructions here:
https://stackoverflow.com/questions/203 ... ve-not-setBut the warning keeps appearing.
Only by commenting out this line in viciphone.php stops the warning.
Regards, Dennis
Vicibox 9.0.1
Version: 2.14b0.5
SVN Version: 3199
DB Schema Version: 1588
Build: 200310-1801
-
dspaan
-
- Posts: 1377
- Joined: Fri Aug 21, 2009 1:40 pm
- Location: The Netherlands
-
by carpenox » Sun Feb 14, 2021 7:22 pm
This is the section I have for debug logging:
- Code: Select all
// Create the debug log string
$log_string = date("Y-m-d H:i:s");
$log_string .= "\t";
if (!empty($_SERVER['REMOTE_ADDR'])) {
$log_string .= $_SERVER['REMOTE_ADDR'];
}
$log_string .= "\t";
$log_string .= $base_referring_url;
$log_string .= "\t";
if (!empty($_SERVER['HTTP_USER_AGENT'])) {
$log_string .= $_SERVER['HTTP_USER_AGENT'];
}
$log_string .= "\t";
$log_string .= get_browser(null,true);
$log_string .= "\n";
if ( $debug_access_log ) {
// log it
file_put_contents( "debug/viciphone_access.log",$log_string,FILE_APPEND );
}
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
-
carpenox
-
- Posts: 2423
- Joined: Wed Apr 08, 2020 2:02 am
- Location: St Petersburg, FL
-
Return to Support
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 109 guests