I’ve loaded 2.7.2 whenever I try to run a report I get the following error:
Fatal error: Cannot redeclare sqlconnect() (previously declared in c:\web\xampp\htdocs\openemr\library\sql.inc:24) in C:\web\xampp\htdocs\openemr\library\sql.inc on line 24
I have just installed openEMR and I am getting the same message as above. Was there a resolution to Denny’s problem. I am getting the error on both reports and billing only.
You might try searching the code and seeing if sql.inc is being referenced anywhere with include() instead of include_once(). I don’t see how this message can occur if include_once() is used throughout.
By the way OpenEMR is much better supported under Linux than Windows.
I’ve checked for possible duplicate includes but all are ‘include_once’ or ‘required_once’.
This is the ‘vanilla’ download and install of 2.8.1 on a windows platform and I wouldn’t expect this kind of error. I hate to give up on this because I am really close to a successful install but maybe I should try a Linux version.
hey,
I’d suggest Mandriva since there’s easy to follow installation instructions at: http://www.bradymd.com/appliance/
If you just wanna quickly test it, you could also try out and play around with the appliance.
-brady
Hello, I’m back. The Linux (Kubuntu) install worked really well, after I chmod’d some files. I’m about to try a production install and, since I am most familiar with windows, I would really like to get openEMR working in the windows environment. I wonder if anyone has had a successful windows install? If so, please let me know what version you used. Thanks.
If you can install on Ubuntu, why would you want to run on Windows?
The Unix/Linux/xBSD versions run faster. Installation on the Unix clones is generally easier and as your data set gets larger this speed will become more of an issue.
My problem is solved!! I downloaded xampp-win32-1.5.5-installer.exe and, after installing, the sql.inc problem went away. You will probably get an error message referencing a ‘compile’ directory missing but, after creating that directory, all is well.
I installed "xampp-win32-1.5.5-installer.exe" on Windows XP and it works fine with openemr 2.8.2 from CVS download last month using instructions from OEMR.ORG site. Currently, the latest openemr 2.8.3 from CVS is supporting MySQL 5 and PHP 5 to the extend that I tested. Thanks to TG for his work that solved the problem with MySQL 5 when working with scan documents.