Error in Calendar interface

Hi everyone, I recently downloaded from this link [Download openemr-5.0.1.zip (OpenEMR)](http://Download link)

I got the following error in calendar after installation. There is no code change. It is happening at the fresh installation. I am using windows 7. Please see the below screenshot for error

A few extra things may help people troubleshoot with you.

  • Did you use the XAMPP bundle, or the Windows bundle?
  • Did you ensure all of the pre-requisits were met from this page?
  • Did you ensure that PHP was setup as described here under the section “What are the correct PHP settings (can be found in the php.ini file)?”
  • What version of PHP are you running? Put the following code into a php file, and then open that file with a browser to see the info in my screenshot.
<?php
phpinfo();
?>

hi @david.tessier, you’ll want to ensure these php settings https://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29.3F

This looks like a patch 4 version of openEMR. The default database install most likely doesn’t have the necessary patch level. Try running sql_patch.php as if this is installed site and a patched version is being applied. Better yet, download patch 6 and apply.

Hi sjpadgett,

Sorry for the late response. I updated my installation with patch 6. Still I got this error.

Hi stephenwaite,

Sorry for the late response.

This solution worked for me. But it seems like all errors are hiding because of these properties (display_errors = Off, log_errors = On). Is it a real fix or workaround for the problem?

sorry I sent the message to @david.tessier who suggested this first in a really nice post :slight_smile:

the errors will be logged in a file which is typical for production, like \xampp\apache\logs\error.log

it’s a real fix @Shyam_Prasath :slight_smile:

Ok. But this settings are completely for production. For development we cannot keep display_errors = Off. I really need to see the errors coming in my screen while doing development, But I see many errors are displaying already at installation itself. How can I set up proper development environment? Any idea?

think you have leave display off since openemr struggles to function without this setting and try using developer tools in your browser to watch for errors

hi @Shyam_Prasath ,

If you need to see the php errors in real time, then recommend running a tail -f command in a separate terminal:
https://www.tecmint.com/watch-or-monitor-linux-log-files-in-real-time/

I’d also recommend turning off PHP Notices in the error settings (turn on just warnings, errors, and deprecated); Notices are useless and do not need to be fixed.

-brady

Hi brady.miller,

Thanks for the support and suggesting the tool to see the errors. As you said I am concerning about errors and warnings not about notices.