Situation
I’m unable to apply the latest patch 7.0.1. When I go to /server-address/sql_patch.php on the browser it is just a white page. I can’t even see the login page for OpenEMR when I go to my server address.
OpenEMR Version
I’m using OpenEMR version 7.0.1
Browser:
I’m using: Firefox
Operating System
I’m using: Debian 11
Logs
PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/openemr/interface/…/library/sql.inc.php’ (include_path=’/var/www/html/openemr/vendor/pear/archive_tar:/var/www/html/openemr/vendor/pear/console_getopt:/var/www/html/openemr/vendor/pear/pear-core-minimal/src:/var/www/html/openemr/vendor/pear/pear_exception:.:/usr/share/php’) in /var/www/html/openemr/interface/globals.php:301\nStack trace:\n#0 /var/www/html/openemr/sql_patch.php(26): require_once()\n#1 {main}\n thrown in /var/www/html/openemr/interface/globals.php on line 301
Hi, the way I set it, the Apache web root or Document root folder location is at /var/www/html/openemr. So usually when I go to my serveraddress, it’ll go directly to openemr.
I’m also wondering why the path looks like this in the error logs. I found /var/www/html/openemr/library/sql.inc but I can’t anything in the openemr/interface folder that will direct to …/library/sql.inc.php.
Thank you. When I reverted back to OpenEMR version 7.0.1 without the patch it worked great. I could go to my server 192.168.0.109 and it directs me to the OpenEMR login page as usual. That is how I set up my Apache root directory. The moment I try to apply the patch, everything breaks. I really want to try out the billing features but without being able to apply the patch, right now I’m stuck.
I got it figured out. It turned out when I upgraded from 7.0.0 to 7.0.1 some of the files didn’t get copied over. That was a small mistake that created a big mess. I installed 7.0.1 again and then installed the patch and it all worked. Hopefully this will help someone else later.