Sql.inc error

drdrews wrote on Monday, January 02, 2006:

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

everything ran will with the previous version

thanks denny

drbowen wrote on Monday, January 09, 2006:

Which versions of PHP and MySQL are you installing with?

What version of Microsoft Windows are you using?

Sam Bowen

drdrews wrote on Monday, January 09, 2006:

windows xp and windows 2000 pro, thanks

kbrauch wrote on Tuesday, December 26, 2006:

Hi,

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.

Thanks,

Keith

sunsetsystems wrote on Tuesday, December 26, 2006:

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.

Rod
www.sunsetsystems.com

kbrauch wrote on Wednesday, December 27, 2006:

Thanks for the response Rod.

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.

Thanks again.

Keith

kbrauch wrote on Thursday, January 04, 2007:

I think I would like to try a linux platform.  Can anyone recommend a linux product that I might use to install and test openEMR?

Thanks.

sunsetsystems wrote on Thursday, January 04, 2007:

My favorite is Ubuntu, but have also installed on Fedora, CentOS, Debian, Mandriva, SuSE and Gentoo.

Whatever you’re most comfortable with will probably work.

Rod
www.sunsetsystems.com

bradymiller wrote on Saturday, January 06, 2007:

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

kbrauch wrote on Thursday, February 08, 2007:

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.

Keith Brauch

drbowen wrote on Thursday, February 08, 2007:

There are several Windows install HOWTOs here:

http://www.oemr.org/modules/wiwimod/index.php?page=OpenEmrInstallHowtos&back=WiwiHome

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.

Sam Bowen, MD

kbrauch wrote on Friday, February 09, 2007:

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.

Thanks to all for their input.

drbowen wrote on Saturday, February 10, 2007:

Dear kbrauch,

Can you e-mail me with how you installed with xampp-win32-1.5.5-installer.exe?

I am thinking you are using the new openemr 2.8.2?

I would also like to know the versions of

Windows:
PHP:
MySQL:
openemr:

The Windows install routine will likely need to be updated based on your progress.

Thanks,

Sam Bowen

bo2999 wrote on Saturday, February 10, 2007:

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.

Bo,