lamspc wrote on Sunday, November 02, 2014:
I am unable to see the log viewer page- when I click on log, it freezes.
On debian 7, openemr 4.1.2 (7).
Any help appreciated
lamspc wrote on Sunday, November 02, 2014:
I am unable to see the log viewer page- when I click on log, it freezes.
On debian 7, openemr 4.1.2 (7).
Any help appreciated
fsgl wrote on Sunday, November 02, 2014:
Error messages?
lamspc wrote on Monday, November 03, 2014:
None at all. you mean on the apache error logs?
fsgl wrote on Monday, November 03, 2014:
No fatal errors in either /var/log/apache2/error.log or /var/log/mysql.err?
lamspc wrote on Sunday, November 09, 2014:
Did a tail -f on both /var/log/apache2/error.log or /var/log/mysql.err. The error was seen in /var/log/apache2/error.log:
PHP Notice: Undefined index: start_date in /var/www/openemr/interface/logview/logview.php on line 77, referer: https://11.22.33.44/openemr/interface/main/left_nav.php
PHP Notice: Undefined index: end_date in /var/www/openemr/interface/logview/logview.php on line 80, referer: https://11.22.33.44/openemr/interface/main/left_nav.php
PHP Notice: Undefined index: form_patient in /var/www/openemr/interface/logview/logview.php on line 83, referer: https://11.22.33.44/openemr/interface/main/left_nav.php
PHP Notice: Undefined variable: start_date in /var/www/openemr/interface/logview/logview.php on line 89, referer: https://11.22.33.44/openemr/interface/main/left_nav.php
PHP Notice: Undefined variable: form_patient in /var/www/openemr/interface/logview/logview.php on line 102, referer: https://54.221.224.63/openemr/interface/main/left_nav.php
I have never edited the logview.php file and as such I am not sure why it is throwing up these errors.
Any thoughts appreciated
fsgl wrote on Monday, November 10, 2014:
Clueless about the meaning of the error messages.
Also this video:
[[embed url=https://www.youtube.com/watch?v=MNk-n8809CY]]
cmswest wrote on Monday, November 10, 2014:
these php notices are referring to the fact that none of the search parameters are defined when the “Logs” item is clicked in the left nav (which calls logview.php) but everyone has these notices in their logs
have you looked at the table log
in phpMyAdmin under Administration->Other->Database?
yehster wrote on Monday, November 10, 2014:
Turning notices off with the ~E_NOTICE parameters for error logging will eliminate the mostly harmless undefined messages in the apache/php log.
Will leave it as an exercise to you or Dr. Lee to google as to how to do this.
There might be fatal error messages in the error.log that are obscured by the notices.
Errors with sql are generally reported through the “HelpfulDie” mechanism so it seems unlikely that the phpMyAdmin log will reveal additional information, but it probably doesn’t hurt to look.
cmswest wrote on Monday, November 10, 2014:
i also see the same notices in my local copy on lines 117, 118, 134, etc. so if Lams stops at line 102 then maybe the error is in this area
fsgl wrote on Monday, November 10, 2014:
Change in tactics. Ignore my prior post because it was out in left field.
Try:
yehster wrote on Monday, November 10, 2014:
Your interpretation of what display_errors ini setting does is incorrect
display_errors = off
Means not to display errors when rendering the html page.
LAMS almost certainly has that setting already set to off, otherwise the numerous “undefined” notices would be displaying in the browser.
fsgl wrote on Monday, November 10, 2014:
Just check to see if Log Viewer problem exists on the test copy (LM 17, 4.1.2 patch 7).
Working fine.
fsgl wrote on Monday, November 10, 2014:
It would be more helpful to Paul to offer something that he can do.
yehster wrote on Monday, November 10, 2014:
I did, by suggesting the ~E_NOTICE flag, which does what you think display_error=off does…
fsgl wrote on Tuesday, November 11, 2014:
Supplying the what is incomplete until the how has been offered as well.
hitechelp wrote on Tuesday, November 11, 2014:
It works, although only for the present day on Ubuntu 11.10, 4.1.2(7) No good if you need to look into past activity as it comes up empty.
cmswest wrote on Tuesday, November 11, 2014:
Tony mentions it in this recent thread
php.ini on ubuntu can be found here: /etc/php5/apache2/php.ini
yehster wrote on Tuesday, November 11, 2014:
~E_NOTICE is mentioned in the same URL you provided.
The how is done the same way as it would be for display_errors=off
yehster wrote on Tuesday, November 11, 2014:
Raw data can always be examined by using PHPMyAdmin or your favorite MySQL query tool to run select statements against the table “log”