I downloaded the latest dev-tip from github containing the zend module installer. After installing it and running openemr, i found out certain issues:
Zend module installer must have brought up some databse changes, so I went to http://localhost/openemr/admin.php. But it showed no databse upgrade. that was strange, so i logged in and everythig was screwed up. Did the database upgrade from the old script method - http://localhost/openemr/sql_upgrade.php and then the updates were ready. My question is...why the admin.php page didnt show the necessary upgrade thing?
After logging in I found out a new section called modules under left nav. clicking on that gave me a new option of managing modules..click on that gave me nothing..it was a white page of death. Why??
Error log: showing something fatal
[Mon Jun 30 23:53:36 2014] [error] [client 192.168.50.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\openemr\library\classes\TreeMenu.php on line 179
[Mon Jun 30 23:53:36 2014] [error] [client 192.168.50.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\openemr\library\classes\TreeMenu.php on line 211
[Mon Jun 30 23:53:36 2014] [error] [client 192.168.50.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\openemr\library\classes\TreeMenu.php on line 268
[Mon Jun 30 23:53:51 2014] [error] [client ::1] PHP Fatal error: Constructor Zend\Stdlib\Glob::glob() cannot be static in C:\xampp\htdocs\openemr\interface\modules\zend_modules\library\Zend\Stdlib\Glob.php on line 205, referer: http://localhost/openemr/interface/main/left_nav.php
Placed a commit to fix the admin.php issue (forgot to increment the database flag in the version.php file).
The other issue (ie. white screen of death), is because you need to configure apache to work with zend. We'll need to figure out instruction sets for all OS's. The online zend framework instructions for xampp really overdo things. The goal in all OS's to get the following working:
1. Enable rewrite mod in apache
2. Allow "AllowOverride" in apache
Here's how it is done in ubuntu:
Looks like how you should do it in windows:
ONLY DO STEP 4-1 IN THE "Setting up a simple Zend/PHP project" section
(again, only step 4-1 should suffice)
Let us know if it works.
Placed following section on Zend wiki page to begin tracking how to best configure apache to work with Zend:
thanks brady...i followed ur instructions but still not working
do i need to do any change in openemr directory? or only the apache httpd conf file will do?
Make sure you restart apache
Should only need to modify apache httpd file. Ensure you restart apache. Let us know exactly what you changed and whether it worked.
This line was uncommented in my apache httpd.conf file..had to do nothing in it
LoadModule rewrite_module modules/mod_rewrite.so
There are two areas where "AllowOverride" is there in the file
Deny from all
2.Another around line 355
<Directory "="" xampp="" cgi-bin"="">
Allow from all
I changed the second one...
Yes i restarted apache
What do you see above the two section above line 200 and 355 (there should be a directory there)
This is the copy paste version of above and below line 200:
This is the copy paste version of above and below line 355:
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
Change the first one and undo the changes in the second one.
Also, what xampp version are you using?
my xampp is 1.7.3..i am doing it and will tell u the result
changed...restarted apache...still white screen
Although that will be the correct configuration, I am confident it will not work for you. Since you are using a php version less than 5.3.3 (xampp 1.7.3 uses php 5.3.1). You need to migrate to the newer xampp/openemr package.
oops...then will do it right now and tell u the results...thanks brady
one issue is..i have a drupal site running on this xampp..and i have seen earlier that if i migrate or change my xampp version, the drupal site doesnt seem to work even after back up...
In this situation I may advise to consider Mint 17, however we would then lose OpenEMR's main Windows tester. So, don't do that :)
Suggest setting up a testing machine(or virtual machine) to try to get both to work on the xampp provided in most recent windows xampp/openemr package.
Thanks Brady..Wont change to mint 17 for now..loving my job as a windows tester..dont want to loose job so fast:-)
Will Arnab have difficulties with the relocation of the openemr web directory in LM 17? Because this will be a test copy, would it not be less troublesome to use LM 16 instead? Is the relocation circumvented with the use of LAMPP?
We can promote you to be the Chief Windows and Linux Tester.
Double the fun. (I sound like an old chewing gum advertisement. If the reader remembers the reference, he is dating himself.)
I'm not trying to convert Arnab to linux just yet, since he's been the main Windows tester that ensures compatibility of development codebase with OpenEMR. He's taking one for the team :)
For his testing copy, best to do on same OS as his production copy.
For LM 17, the relocation is not that big of a deal (anymore, at least) since a user can either install the ubuntu package and not worry about the path or install the tarball into the new /var/www/html path.
Can anybody tell me how to install or even write modules for the module installer to install?
This was part of my objection to such massive changes being introduced into the code base.
The community has no information on how this "feature" is useful.
There were promises made about MU2 related modules, but nothing has been delivered.
ZH is using Zend Framework for new functionality. That is based on concept of modules. If you write code using that architecture you will 'publish' it to installer and users have option to activate that 'module'. Unless entire project moves to ZF2, you should still be able to do write your own modules old way.