Warnings on setup

ad848 wrote on Thursday, April 09, 2015:

I am trying to install Open EMR and I am getting lot of warnings

e.g.Notice: Undefined index: state in /Applications/MAMP/htdocs/openemr_test/setup.php on line 14

Can anybody tell me what should I do.
Thank you!

fsgl wrote on Thursday, April 09, 2015:

Try this.

visolveemr wrote on Thursday, April 09, 2015:

Hello Arun Maharjan,
Use the below steps to avoid notices in your OpenEMR application:

Step 1: Open the file /Applications/MAMP/bin/php/php{PHP VERSION}/conf/php.ini. Click phpInfo on your start screen of MAMP to see the {PHP VERSION}.
Step 2: Find the line with error_reporting and replace it with error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
Step 3: Save the file and restart your MAMP server

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

fsgl wrote on Thursday, April 09, 2015:

If the install continues to be a problem, try this.

ad848 wrote on Sunday, April 12, 2015:

Thank you! It worked. But is it good to do it this way?

fsgl wrote on Sunday, April 12, 2015:

If you are asking if it’s safe to turn off the warnings, it is. The only time you should be concerned is when there is a fatal error, which cannot be ignored. In that case, there generally is a malfunction which forces a user to fix the fatal error.

It’s advisable to make the other changes in .php.ini to save yourself difficulties in the future.