Situation
I am trying to install the latest master branch on a raspberry pi running Raspbian. This is not for production, but just to give myself a place to experiment and learn.
I cloned the git repo then ran the composer and npm commands.
~$ git clone https://github.com/openemr/openemr.git
~$ cd openemr
~/openemr$ git branch
* master
~/openemr$ composer -V
Composer version 1.2.2 2016-11-03 17:43:15
~/openemr$ npm -v
6.9.0
~/openemr$ composer install
~/openemr$ npm install
~/openemr$ npm run build
~/openemr$ composer dump-autoload -o
I did not keep a log of the output from the above, but they all appeared to be successful.
Raspbian has two php.ini files, one for apache and one for cli, so I made the requested changes to the apache php.ini file (/etc/php/7.0/apache2/php.ini) and symlinked the cli file to it.
I set up apache2 to serve the openemr directory and was able to access a php-info.php file from there, so apache and php seem to be set up.
When I tried to launch index.php, it redirected me to setup.php, but then I got a white screen.
The log says this:
[Tue Mar 19 20:47:54.922702 2019] [:error] [pid 19047] PHP Fatal error: Uncaught Error: Call to undefined function sqlStatementNoLog() in /home/aaron/openemr/library/translation.inc.php:42\nStack trace:\n#0 /home/aaron/openemr/common/compatibility/Checker.php(24): xl('PHP version nee...')\n#1 /home/aaron/openemr/common/compatibility/Checker.php(41): OpenEMR\\Common\\Checker::xlDelegate('PHP version nee...')\n#2 /home/aaron/openemr/setup.php(91): OpenEMR\\Common\\Checker::checkPhpVersion()\n#3 {main}\n thrown in /home/aaron/openemr/library/translation.inc.php on line 42
So I tried running setup.php from the command line:
~/openemr $ php setup.php
PHP Fatal error: Uncaught Error: Call to undefined function sqlStatementNoLog() in /home/aaron/openemr/library/translation.inc.php:42
Stack trace:
#0 /home/aaron/openemr/common/compatibility/Checker.php(24): xl('PHP version nee...')
#1 /home/aaron/openemr/common/compatibility/Checker.php(41): OpenEMR\Common\Checker::xlDelegate('PHP version nee...')
#2 /home/aaron/openemr/setup.php(91): OpenEMR\Common\Checker::checkPhpVersion()
#3 {main}
thrown in /home/aaron/openemr/library/translation.inc.php on line 42
I found the sqlStatementNoLog function in library/sql.inc, so it seems like sql.inc is not getting referenced somewhere.
OpenEMR Version
I’m using the master OpenEMR branch
Browser:
N/A
Operating System
Raspbian
Logs
[Tue Mar 19 20:47:54.922702 2019] [:error] [pid 19047] PHP Fatal error: Uncaught Error: Call to undefined function sqlStatementNoLog() in /home/aaron/openemr/library/translation.inc.php:42\nStack trace:\n#0 /home/aaron/openemr/common/compatibility/Checker.php(24): xl('PHP version nee...')\n#1 /home/aaron/openemr/common/compatibility/Checker.php(41): OpenEMR\\Common\\Checker::xlDelegate('PHP version nee...')\n#2 /home/aaron/openemr/setup.php(91): OpenEMR\\Common\\Checker::checkPhpVersion()\n#3 {main}\n thrown in /home/aaron/openemr/library/translation.inc.php on line 42
Thanks,
Aaron