Immunizations error

nursejeff wrote on Wednesday, February 19, 2014:

I get the same screen as you but when I click on the vaccination meaning, when I click on the blue letters of the date and name of vaccine, I get this:

yehster wrote on Wednesday, February 19, 2014:

The information required to figure out this problem is available through error LOGGING. However the “display_errors” configuration is a different setting. It can be difficult to sort out what’s just a harmless warning vs. the true problem in the apache error_log.

I blame your problem on Windows 8. (Probably not really the case, but something to consider in the differential diagnosis…)

fsgl wrote on Wednesday, February 19, 2014:

Are you using Windows or Fedora?

If you are in Windows; immediately after getting the white screen, what’s in the php\log\php_error_log folder?

nursejeff wrote on Wednesday, February 19, 2014:

I am using Fedora. Here is a screen shot of my error log.

fsgl wrote on Wednesday, February 19, 2014:

Kevin,

Is Jeff in the correct folder? The last time we asked a Fedora user to go to the php error log was in Jack Chan’s case and his error log was in the /var/log/httpd folder. I’m only 1/3 of the way through LINUX: Rute User’s Tutorial and Exposition, therefore I’m relatively clueless.

nursejeff wrote on Wednesday, February 19, 2014:

This is my sceenshot for /var/log/httpd. I made the error occur and immediately refreshed the log and caught that fatal error.

Perhaps this time zone thing is causing the problems.

yehster wrote on Wednesday, February 19, 2014:

Yup, I suspect that if make or fix the timezone setting in your php.ini file, you will no longer the the whitescreen.

nursejeff wrote on Wednesday, February 19, 2014:

PHP Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/Chicago’ for ‘CST/-6.0/no DST’ instead in /var/lib/mysql/backup_dbs.php on line 83

Can anyone help me with the above error message?

Jeff

fsgl wrote on Wednesday, February 19, 2014:

Try this.

Timezone Identifiers in America.

nursejeff wrote on Wednesday, February 19, 2014:

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

The above is in my php.ini file. There is nothing after ;date.timezone =

I am assuming the if I put “America/Chicago” such as this ->date.timezone=“Europe/Berlin”, that it will fix this error.

I will do this after hours, of course. Any other suggestions?

I am attaching a screenshot of my etc/systemconfig/clock which tells me my “America/Chicago” setting.

Doesn’t the ; in front of the “date.timezone =” command make it a comment? Why wasn’t this setting correct to begin with?

Jeff

fsgl wrote on Wednesday, February 19, 2014:

Per your link, “Prior to PHP 5.4.0, this would only work if the TZ environment variable was not set.”

If there is nothing after the equal sign, insert America/Chicago if that is your timezone.

Attached is an image from a Windows machine.

nursejeff wrote on Wednesday, February 19, 2014:

fsgl,

Thank you for helping me with this.

I will insert America/Chicago after hours and see what happens.

I notice on yours that the semicolon is not there, but on mine it is. Will I need to remove that semicolon?

Jeff

wizard353 wrote on Thursday, February 20, 2014:

The semicolon makes the line into an inactive comment. You must delete the semicolon to make the statement take effect.

nursejeff wrote on Thursday, February 20, 2014:

Wow, Fixed.

Thank you fsgl.

I’ve learned a lot with this experience. 1. How to better use Webmin. 2. How to find and look at files and logs, including error logs and 3. Your timezone has to be set. My timezone setting was “Default” and it had to be changed to America/Chicago in my case.

I don’t know why it caused an immunization error but regardless now it is fixed.

Thanks everyone again,

Jeff Guillory
NP Health Clinic

fsgl wrote on Thursday, February 20, 2014:

It was my pleasure.

Thanks, Brady, Kevin & David for pitching in.

fsgl wrote on Thursday, February 20, 2014:

Just worked out the pathogenesis.

.

Doesn’t it drive you nuts when you don’t understand why?

yehster wrote on Thursday, February 20, 2014:

The “Fatal Error” line in the error log will show the exact file and line number causing the crash. We just can’t see it in a screenshot.

Dr. Lee,
A very useful Ubuntu trick is to run the following command from the terminal.

tail -f /var/log/apache/error.log

It will show you errors/warnings as they are happening.

Hit “control-c” to break out if you get tired of seeing the messages, but I usually have one of my monitors dedicated to displaying the error log the whole time (so I can see problems when testing new code…)

fsgl wrote on Friday, February 21, 2014:

Thank you for the tip. It will go into my Linux loose leaf notebook.

LINUX: Rute User’s Tutorial and Exposition is dry as the Sahara Desert (and as much fun as studying for the Boards) so it was ditched in favor of Linux for Dummies. 459 pages to be read before I would attempt using the terminal. It will be a wonderful adventure.

blankev wrote on Friday, February 21, 2014:

Now to get you down to earth, there is also an Ubuntu for Dummies. Since there is an install for Ubuntu, I could only think that is it there and Yes it is there. I am looking for a version UBUNTU/LINUX for complete idiots (Who can’t hit the DELETE Windows button), anybody has a copy?