Hi - I am new to OpenEMR 2.8.3 and installed it on a Ubutu 7.04 (Fiesty Fawn) Server that has LAMP installed (Apache 2, PHP5 MySQL5). Install went smoothly but when I tried to access the server from a browser like this (http://myserver.com/openemr). This is what I get back.
Warning: include_once(/www/var/openemr/library/classes/Filtreatment_class.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/openemr/interface/login/login_frame.php on line 4
Warning: include_once() [function.include]: Failed opening ‘/www/var/openemr/library/classes/Filtreatment_class.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/openemr/interface/login/login_frame.php on line 4
Fatal error: Class ‘Filtreatment’ not found in /var/www/openemr/interface/login/login_frame.php on line 12
I’ve been researching this to no avail. The file (Class) it is saying no found is in the designated directory and the path variables are correct so far. The thread I have read states that 2.8.3 works with PHP5. Does any one out there know why I am getting this warning and fatal error? Any help appreciated.
Others have had similar issues recently on Ubuntu (there is a recent post under the Help forum). Your problem and the the other help forum question appear to be a path problem. Strictly speaking your error message is saying it can’t find the Filtreatment_class.php:
Warning: include_once(/www/var/openemr/library/classes/Filtreatment_class.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/openemr/interface/login/login_frame.php on line 4
This can happen if there was inadvertent corruption of the file during the initial download or if the file path is incorrect. On Ubuntu they are using a different path definition from other versions of Linux. Since more than one user is having a similar problem I think it is a path issue.
Do you have mysqli installed?
What is your path to OpenEMR?
Have you changed the path in openemr/interface/globals.php ?
Your path listed above is:
/var/www/openemr/setup.php
Have you set up a include statement in httpd.conf so that Apache can find your web page?
Thank you… I will check the Help forum. Meanwhile, I check all the settings per your suggestion and also did the phpinfo.php script. All looks correct and phpinfo worked on the directory it was created on (…/library/classes…).
Interesting enough is that I can run the setup.php without problems. mysqli is also installed.
I finally got the problem fixed. Thank you so much for giving directions on how to solve the issue. It was not a corrupted file but a permissions issue during the extraction of the archive. I used the command tar -xvf instead of tar -pxvzf. Apparently the use of the -p flag (which is documented in the INSTALL, is necessary as certain permissions must be preserved.