I am installing the windows Zip version of Openemr 5.0.0 on a Macbook pro (Macos Sierra 10.12.3) through Xampp 7.1.1. Installation goes well, some warnings in earlier stage, but ends up this:
OpenEMR Setup
Step 4
Installing and Configuring Access Controls (php-GACL)...
Fatal error: Cannot declare class Cpdf, because the name is already in use in /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php on line 19
Not sure how to proceed
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's seems really odd that xampp is bringing in php libraries like this into OpenEMR. What happens if you delete the /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php file?
Also, out of curiosity, what else is sitting in /Applications/XAMPP/xamppfiles/lib/php/ ?
It's seems really odd that xampp is bringing in php libraries like this into OpenEMR. What happens if you delete the /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php file?
Also, out of curiosity, what else is sitting in /Applications/XAMPP/xamppfiles/lib/php/ ?
Php 7.1 is not compatible with the current adodp package used by OpenEMR. I am going to update the adodb package in the development codebase, but will take awhile before it gets into 5.0.0 patch (and it may not get into a patch since it involves quite a few changes it appears and needs to be tested for awhile since it is a core package). Recommend not using the xampp 7.1 version and instead using either the 7.0 or 5.6 version: https://www.apachefriends.org/download.html
This method worked very well. Thanks so much! I installed the xampp 5.6 version and used Openemr 5.0.0 Zip windows version, using Firefox as the browser. It did, however, stop at this stage:
Step 4
Installing and Configuring Access Controls (php-GACL)...
Fatal error: Cannot declare class Cpdf, because the name is already in use in /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php on line 19
I then deleted Cpdf.php, paged back and it completed the setup fine. I have added the extra lines to the Apache config file. Next to edit php config file and I will start the process of setting up my homeopathic practice.
So what I can confirm is that the following combination manages the xampp install for Mac: MacBook pro (2013 model), Macos Sierra 10.12.3 - the latest version; Xampp for Mac Version 5.6.30-0 - not the latest version; and Firefox 51.0.1 - also the latest version. The only pitfall was the need to delete the Cpdf.php file. Also perhaps important, is to open the xampp Manager-Osx before installation and check that the Apache Web Server and MySQL database are running. If you like I could offer an edit of my install on the Wiki page?
Thanks once again
All the best
Ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm still a bit taken aback that Xampp would include php libraries (like Cpdf.php) in the application like that; that is really odd. I haven't noted this in the Windows xampp package, however, I haven't used a xampp windows package for a year or so.
I am installing the windows Zip version of Openemr 5.0.0 on a Macbook pro (Macos Sierra 10.12.3) through Xampp 7.1.1. Installation goes well, some warnings in earlier stage, but ends up this:
OpenEMR Setup
Step 4
Installing and Configuring Access Controls (php-GACL)...
Fatal error: Cannot declare class Cpdf, because the name is already in use in /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php on line 19
Not sure how to proceed
Hi Ben,
It's seems really odd that xampp is bringing in php libraries like this into OpenEMR. What happens if you delete the /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php file?
Also, out of curiosity, what else is sitting in /Applications/XAMPP/xamppfiles/lib/php/ ?
-brady
OpenEMR
Here are 2 screenshots of the lib/php folder:
I deleted the Cpdf.php file, paged back in the Firefox browser to the previous step, and pressed continue to get this:
OpenEMR Setup
Step 4
Installing and Configuring Access Controls (php-GACL)...
Fatal error: Cannot unset $this in /Applications/XAMPP/xamppfiles/htdocs/openemr/vendor/adodb/adodb-php/adodb-xmlschema.inc.php on line 160
Hi Ben,
Php 7.1 is not compatible with the current adodp package used by OpenEMR. I am going to update the adodb package in the development codebase, but will take awhile before it gets into 5.0.0 patch (and it may not get into a patch since it involves quite a few changes it appears and needs to be tested for awhile since it is a core package). Recommend not using the xampp 7.1 version and instead using either the 7.0 or 5.6 version:
https://www.apachefriends.org/download.html
-brady
OpenEMR
Hi Brady,
This method worked very well. Thanks so much! I installed the xampp 5.6 version and used Openemr 5.0.0 Zip windows version, using Firefox as the browser. It did, however, stop at this stage:
Step 4
Installing and Configuring Access Controls (php-GACL)...
Fatal error: Cannot declare class Cpdf, because the name is already in use in /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php on line 19
I then deleted Cpdf.php, paged back and it completed the setup fine. I have added the extra lines to the Apache config file. Next to edit php config file and I will start the process of setting up my homeopathic practice.
So what I can confirm is that the following combination manages the xampp install for Mac: MacBook pro (2013 model), Macos Sierra 10.12.3 - the latest version; Xampp for Mac Version 5.6.30-0 - not the latest version; and Firefox 51.0.1 - also the latest version. The only pitfall was the need to delete the Cpdf.php file. Also perhaps important, is to open the xampp Manager-Osx before installation and check that the Apache Web Server and MySQL database are running. If you like I could offer an edit of my install on the Wiki page?
Thanks once again
All the best
Ben
Hi Ben,
Would be very nice to have updated install docs for Mac. Feel free to post on the wiki and can request a wiki account here(which I will gladly confirm):
http://www.open-emr.org/wiki/index.php/Special:RequestAccount
I'm still a bit taken aback that Xampp would include php libraries (like Cpdf.php) in the application like that; that is really odd. I haven't noted this in the Windows xampp package, however, I haven't used a xampp windows package for a year or so.
-brady
OpenEMR