If you are using openemr in windows localhost,
perhaps I can help with this path:
Install is very tricky in windows!!
your specific error ocurred because openemr version 5.0.2 needs at least php 7.1.2 will all libraries = easiest way to get them:
You must upgrade xampp + apache+ mysql (which in fact is Maria). Update all of them installing the last version of xampp.
I tried a lot and finally I updated openemr from 5.0.1 to 5.0.2. At the beginning I had the same error message and various other message errors.
while in 5.0.1 I used xampp control panel to go to mysql phpmyadmin and removed all the passwords from all databanks and I give all permissions to all users.
only them I created dumpfile.sql (as follows)
Then I followed step by step:
https://www.open-emr.org/wiki/index.php/Dual_Upgrade_of_OpenEMR_and_XAMPP_in_Windows
rename xampp folder to xampp_old
install new xampp version and inside folder:
C:\xampp\htdocs\
install openemr5.0.2 but rename folder to openemr.
it results in:
C:\xampp\htdocs\openemr
and tried to restore the dumpfile.sql
but received a message that openemr databank doesnot exist
I came back to xampp control panel > mysql >phpmyadmin
and create an empty openemr databank
but it didnt work because there was an error:
user doesnot exist.
I came back to xampp control panel > mysql >phpmyadmin
and create an user openemr with all privileges
copy configuration from
old sqlconf.php to the new one ( in folder C:\xampp\htdocs\openemr\sites\default)
*****atention****atention:
the new sqlconf.php comes with an error at the end of the file:
//////////////////////////
//////////////////////////
//////////////////////////
//////DO NOT TOUCH THIS///
$config = 1; /////////////
//////////////////////////
//////////////////////////
//////////////////////////
?>
the last " ?> " is missing = correct it ( in fact this shoud be the cause of your error)
only them… the browser interface was available and I could finally update my databank and use openemr5.0.2.
It was a try an error journey
when openemr is working you can adjust the passwords and permissions.
delete xampp_old folder
backup copying xampp folder.
Previously to dumpfile.sql restore,
openemr upgrade requires via http://localhost/phpmyadmin/ :
the creation of :
- an empty openemr databank
- an user openemr (or other name You have created) and,
the correction of: - a missing ?> in sqlconf.php among other config details.
good luck!
Paulo Kanda