Blank page from /login/login_frame.php

gutiersa wrote on Monday, April 07, 2008:

freebsd 7
openemr 2.8.3
mysql 5.1
apache 2.2
openemr was working well and data had been transferred. then I installed sql-ledger, phpgacl and enabled ssl following instructions from:

http://www.bradymd.com/appliance/manual3/#0.Instructions%20for%20Building%20the%20OpenEMR%20Appliance|outline

and

http://www.oemr.org/modules/cjaycontent/index.php?id=26

but I installed and configured all three at once without checking if openemr continued to work. Now going to http://myhost/openemr gives me a blank page. I can see the login screen for a few milliseconds then it becomes a blank page.
I retraced all my steps, and disabled ssl, phpgacl, and sql-ledger, but I’m still having the same problem.

any suggestions will be appreciated.

cfapress wrote on Monday, April 07, 2008:

Sounds to me like something has gone awry with the contents of /openemr/interface/login. You could try installing OpenEMR over the existing one. Just don’t wipe out your database by accident. (I’ve done that before)

If you’re able to dig into the files and directories from a command-line I’d look hard at the contents of the folder I mentioned above. The login page is the most basic of all in OpenEMR.

You didn’t mix up OpenEMR 2.8.3 with something newer like version 2.8.4 or a checkout from CVS did you?

Jason

drbowen wrote on Monday, April 07, 2008:

A totally blank page usually means there is a PHP error.

Look in your http error log, php error log, or syslog depending on where the error output is sent.

Warnings can generate a white page if your error reporting level is too high.  You need to make sure that the PHP engine does not stop on simple warning messages.  This is the actual most frequent cause of this.

mysql 5.1
apache 2.2

are not likely to cause this. 

I run OpenEMR on FreeBSD on the www.oemr.org web page and don’t have any problems though I have not tried to run it using using ssl.

Sam Bowen, MD

dr_smit wrote on Monday, April 07, 2008:

I am also getting the Blank Screen on the very first login after following the same link as Dr G

please help…

my stats are:

openemr-2.8.3

mandriva linux 2008.0

[dr_smit@smitdesk ~]$ rpm -qa|grep php
php-gettext-5.2.4-2mdv2008.0
php-sysvsem-5.2.4-2mdv2008.0
php-cli-5.2.4-2mdv2008.0
php-dom-5.2.4-2mdv2008.0
php-json-5.2.4-2mdv2008.0
php-tokenizer-5.2.4-2mdv2008.0
php-manual-en-5.2.3-1mdv2008.0
php-filter-5.2.4-2mdv2008.0
php-ini-5.2.4-1mdv2008.0
php-session-5.2.4-2mdv2008.0
php-zlib-5.2.4-2mdv2008.0
php-xmlrpc-5.2.4-2mdv2008.0
php-cgi-5.2.4-2mdv2008.0
php-simplexml-5.2.4-2mdv2008.0
php-ctype-5.2.4-2mdv2008.0

mysql-5.0.45-8.1mdv2008.0
mysql-client-5.0.45-8.1mdv2008.0
perl-DBD-mysql-4.005-1mdv2008.0
mysql-common-5.0.45-8.1mdv2008.0
php-mysql-5.2.4-2mdv2008.0
libmysql15-5.0.45-8.1mdv2008.0

apache-conf-2.2.6-1mdv2008.0
apache-mod_ssl-2.2.6-8.1mdv2008.0
apache-mod_perl-2.0.3-7mdv2008.0
apache-mpm-prefork-2.2.6-8.1mdv2008.0
apache-mod_php-5.2.4-2mdv2008.0
apache-base-2.2.6-8.1mdv2008.0
apache-modules-2.2.6-8.1mdv2008.0

perl-5.8.8-12.1mdv2008.0
perl-File-FnMatch-0.02-2mdv2008.0
perl-IO-Compress-Zlib-2.006-1mdv2008.0
perl-Term-ReadKey-2.30-4mdv2008.0
perl-DateManip-5.44-4mdv2008.0
perl-Number-Compare-0.01-6mdv2008.0
perl-Text-Reform-1.11-5mdv2008.0
perl-Gnome2-Print-1.000-2mdv2008.0
perl-Text-DelimMatch-1.06-2mdv2008.0
perl-String-CRC32-1.4-3mdv2008.0
perl-Archive-Cpio-0.06-2mdv2008.0
perl-Locale-gettext-1.05-5mdv2008.0
perl-Gnome2-Vte-0.08-2mdv2008.0
perl-MDK-Common-1.2.9-1mdv2008.0
perl-Gtk2-Html2-0.04-8mdv2008.0
perl-suid-5.8.8-12.1mdv2008.0
perl-Libconf-0.42.00-8mdv2008.0
perl-File-DesktopEntry-0.02-3mdv2008.0
perl-ExtUtils-CBuilder-0.19-1mdv2008.0
perl-BSD-Resource-1.28-2mdv2008.0
perl-Gtk2-SourceView-1.000-3mdv2007.1
perl-MailTools-1.77-1mdv2008.0
perl-libwww-perl-5.808-1mdv2008.0
perl-MIME-Lite-3.020-1mdv2008.0
perl-MDV-Packdrakeng-1.13-1mdv2008.0
perl-Glib-1.160-1mdv2008.0
perl-HTML-Tagset-3.10-2mdv2008.0
perl-Net-Jabber-2.0-3mdv2008.0
perl-HTML-Parser-3.56-1mdv2008.0
perl-IO-Compress-Base-2.006-1mdv2008.0
perl-Net-Telnet-3.03-6.1mdv2008.0
perl-URI-1.35-4mdv2008.0
perl-Date-Calc-5.5.1-7mdv2008.0
perl-DBD-mysql-4.005-1mdv2008.0
perl-Module-Build-0.2808-2mdv2008.0
perl-Template-Toolkit-2.19-1mdv2008.0
apache-mod_perl-2.0.3-7mdv2008.0
perl-Gtk2-NotificationBubble-0.01-6mdv2008.0
perl-Net-DBus-0.33.5-1mdv2008.0
perl-XML-Stream-1.22-3mdv2008.0
perl-Curses-UI-0.95-8mdv2008.0
perl-File-BaseDir-0.02-3mdv2008.0
perl-Expect-1.21-1mdv2008.0
perl-Digest-SHA1-2.11-3mdv2008.0
perl-Compress-Raw-Zlib-2.006-1mdv2008.0
perl-XML-Parser-2.34-6mdv2008.0
perl-XML-Twig-3.29-2mdv2008.0
perl-Digest-HMAC-1.01-13mdv2008.0
perl-SOAP-Lite-0.69-3mdv2008.0
perl-Crypt-SSLeay-0.56-2mdv2008.0
perl-Bit-Vector-6.4-4mdv2008.0
perl-File-Find-Rule-0.30-2mdv2008.0
perl-XML-Simple-2.18-1mdv2008.0
perl-DBI-1.59-1mdv2008.0
perl-Config-General-2.33-1mdv2008.0
perl-CGI-3.29-1mdv2008.0
perl-Pod-POM-0.17-4mdv2008.0
perl-Devel-Cover-0.61-1mdv2008.0
perl-Gtk2-1.160-1mdv2008.0
perl-Compress-Zlib-2.006-1mdv2008.0
perl-File-MimeInfo-0.14-1mdv2008.0
perl-String-ShellQuote-1.03-3mdv2008.0
perl-base-5.8.8-12.1mdv2008.0
perl-MDV-Distribconf-3.10-1mdv2008.0
perl-Cairo-1.041-2mdv2008.0
perl-Carp-Clan-5.9-1mdv2008.0
perl-AppConfig-1.66-1mdv2008.0
perl-Apache-Test-1.29-3mdv2008.0
perl-Config-IniFiles-2.39-3mdv2008.0
perl-URPM-2.07-1mdv2008.0
perl-Authen-SASL-2.10-5mdv2008.0
perl-Curses-1.15-2mdv2008.0
perl-Net-XMPP-1.02-1mdv2008.0
perl-Gtk2-TrayIcon-0.06-1mdv2008.0
perl-IO-Tty-1.07-1mdv2008.0
perl-TimeDate-1.16-5mdv2008.0
perl-Text-Glob-0.08-1mdv2008.0
perl-Text-Autoformat-1.13-5mdv2008.0

gutiersa wrote on Monday, April 07, 2008:

thanks for replies.

>Sounds to me like something has gone awry with the contents of /openemr/interface/login. You could try >installing OpenEMR over the existing one. Just don’t wipe out your database by accident. (I’ve done that >before)
    I agree, and I was going to substitute some files one by one, like globals, the logins, auth.in and others, but reinstalling might be a better, faster solution. Thanks, I’ll try that.

>If you’re able to dig into the files and directories from a command-line I’d look hard at the contents of >the folder I mentioned above. The login page is the most basic of all in OpenEMR.
    Yes I’ve been doing that on a few files. I compare them with a running openemr 2.8.3 I have on windows computer (I got stuck on the DBD::Pg install and was unable to configure sql-ledger on that one, but open emr works well there) and have noticed no differences yet. I think I will just openemr as above.

>You didn’t mix up OpenEMR 2.8.3 with something newer like version 2.8.4 or a checkout from CVS did you?
    Definitely not.

>A totally blank page usually means there is a PHP error.

>Look in your http error log, php error log, or syslog depending on where the error output is sent.
    My php error log is not reporting anything beyond the apache restart. Is as if the program doesn’t even get to run any php. these are the last three lines from my php-error.log file:

[06-Apr-2008 19:08:36] PHP Warning:  Module ‘yaz’ already loaded in Unknown on line 0
[06-Apr-2008 19:08:36] PHP Warning:  Module ‘zip’ already loaded in Unknown on line 0
[06-Apr-2008 19:08:36] PHP Warning:  Module ‘zlib’ already loaded in Unknown on line 0

Warnings can generate a white page if your error reporting level is too high. You need to make sure that the PHP engine does not stop on simple warning messages. This is the actual most frequent cause of this.

how would I go about reducing my error reporting level??

drbowen wrote on Monday, April 07, 2008:

For FreeBSD, the default php.ini is at:

/usr/local/etc/php.ini

look for:

error_reporting = E_ALL & E_NOTICE

I also have:

display_errors = Off

log_errors = On

my.cnf

can also cause this behavior if MySQL doesn’t like your settings.  I have trouble with my.cnf because I have a very large table that holds all my images.  This is an InnoDB table and setting up the my.cnf incorrectly causes this behavior.

Do you show active httpd and mysql processes when you:

ps ax

Sam Bowen, MD

gutiersa wrote on Monday, April 07, 2008:

Success!!!!

reinstalling did the trick
one of my important files must have become corrupted at some point.
I will post the actual error if I figure it out in the future.
Dr. Smit this is what I did:

re-downloaded openemr2.8.3.tar.gz from SourceForge.net
made a backup copy of the openemr directory in my web root directory (in mandriva it might be /var/www/html,)
made a back up copy of the openemr database folder in mysql
to make backups I just recopy the folder and rename it with the suffix backup and todays date ex:
openemr becomes openemrBackup20080407
made changes to globals.php
ran http://localhost/openemr/setup.php
and followed the instructions from there

thanks all

dr_smit wrote on Tuesday, April 08, 2008:

I tried with

1. rm -rf openemr           ;removing openemr from /var/www/html
and then reinstalling a fresh download from sourceforge but the login screen is still blank
2. is it that I have php5 , i searched but there are no php4 packages for cli, cgi in mandriva
3. do I have to remove openemr database in mysql first or back it up & then procced as in step 1.

dr_smit wrote on Tuesday, April 08, 2008:

I dont no how to back up or remove in mysql?

dr_smit wrote on Tuesday, April 08, 2008:

any help??

I tried with config=0 and reinstall…

I am not getting any installs with php4…

staring at blank login page

sunsetsystems wrote on Tuesday, April 08, 2008:

You can’t expect to solve this without knowing what the error message is.  Your php.ini needs to be configured to log error messages, and then you need to look in wherever they are logged to.

Rod
www.sunsetsystems.com

dr_smit wrote on Tuesday, April 08, 2008:

thanks Rod
I am new to php but I guess I have to YES the error reporting switch in php.ini and then look for where the errors are getting recorded.

dr_smit wrote on Tuesday, April 08, 2008:

here’s what you need to help me I think
thanks in advance to all

Warning: include_once(/mnt/htdocs/openemr/library/classes/Filtreatment_class.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/html/openemr/interface/login/login_frame.php on line 4

Warning: include_once() [function.include]: Failed opening ‘/mnt/htdocs/openemr/library/classes/Filtreatment_class.php’ for inclusion (include_path=’.:/usr/lib/php/:/usr/share/pear/’) in /var/www/html/openemr/interface/login/login_frame.php on line 4

Fatal error: Class ‘Filtreatment’ not found in /var/www/html/openemr/interface/login/login_frame.php on line 12

sunsetsystems wrote on Tuesday, April 08, 2008:

It looks like you need to set $webserver_root to the correct path in interface/globals.php.

Rod
www.sunsetsystems.com

gutiersa wrote on Tuesday, April 08, 2008:

Dr. Smit:

You need to slow down, breathe, and start at the top.

Your configurations file has an error (ie: globals.php)

From the error message it looks like you are asking the system to look for Filtreatment_class.php in /mnt/htdocs/openemr/library/classes/ yet, your openemr installation directory seems to be /var/www/html/openemr/ (not /mnt/htdocs/openemr). The Filtreatment_class.php is located in /var/www/html/openemr/library/classes/ and that is where php should be looking.

Do not go back to PHP4, there is no need.
I have apache2.2, php5, mysql5.1, postgres 8.3, sql-ledger2.8.13 (with the ws_server_28.pl file from cvs) and openemr2.8.3 all apparently working together with ssl.

It was a !@#$%^&*( but worth it.

By starting at the top I mean, go back to the instruction manual and follow the steps one by one again, and make sure you did them correctly.

To back up mysql go to your mysql-data folder (in freebsd it’s in the /var/db/mysql folder) and make a copy of the complete openemr folder. You will know its the right one when you see files that look like this:

addresses.frm
addresses.MYD
addresses.MYI
array.frm
array.MYD
array.MYI
batchcom.frm
and so on and so forth.

Alternatively you can do a search for all the folders of the name openemr.

Good Luck!

dr_smit wrote on Friday, April 11, 2008:

I reinstalled apache mysql php and openemr 5 times but every time the result is same

there is one deviation that I adopt from the prescribed method that–
I unzip and mv openemr-* to folder /var/html/openemr as I could not follow the code:

cd /var/www/html
tar pxzvf /location/to/tar/openemr-*.tar.g
mv openemr-* /var/www/html/openemr

it has been very much trying Plesae suggest some solution

dr_smit wrote on Friday, April 11, 2008:

I tried by substituting  "/var/www/html/openemr/" instead of "/mnt/htdocs/openemr" in global.php, my login screen came but on typing in the username and password it comes bak to login screen with username and password field empty.

drbowen wrote on Friday, April 11, 2008:

What username and password are you using?

The initial login password is always "pass".

Sam Bowen, MD

dr_smit wrote on Monday, April 14, 2008:

i could log in after many efforts… i get this on logging in

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /var/www/html/openemr/library/freeb/xmlrpcs.inc on line 498

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /var/www/html/openemr/library/freeb/xmlrpcs.inc on line 501

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /var/www/html/openemr/library/freeb/xmlrpcs.inc on line 538

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1280

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1312

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pnuserapi.php on line 1359

dr_smit wrote on Monday, April 14, 2008:

I am posting this for help of a newbie like I am:

in my efforts I did:
1.—
kdesu kwrite /var/www/html/openemr/interface/globals.php
in the editor that opened I subtituted "/mnt/htdocs/" to "/var/www/html"
and then ran setup again
2—
the first pass word is "pass" and nothing else, I mistaken was keying the password I had set during setup

3.—
the next remedy is in the https://sourceforge.net/forum/message.php?msg_id=3221591
"Looks like you need to increase the value of memory_limit in php.ini, and then restart the web server"
this is I am yet to try