Error Viewing the calendar in OpenEMR

megasysphp wrote on Saturday, January 25, 2014:

We were facing some problems in user creation and so asked our server support team to restore the previous backup and after this was done we found that as soon as we login into OpenEMR we get following error

Failed to load module PostCalendar ( At function: “view” )

Can any body help us understand how to do a quick fix for this, or what could be the most probable reasons for this error.

Appreciate a quick response.

openemrdev wrote on Saturday, January 25, 2014:

Hi

Which place of openemr you got this error

OpenEMR developer
openemrdev@gmail.com

openemrdev wrote on Saturday, January 25, 2014:

Go to administration ->other->calendar

And click clear cache

Most probably you have some issue in folder permission

Make sure these directories are readable by webserver

/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled
/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache

Please let me know

megasysphp wrote on Monday, January 27, 2014:

Hello,

We get following error when I go to administrator->other-> calendar.
Failed to load module PostCalendar ( At function: “modifyconfig” )

Do let us know how i can check for the directory permissions.

openemrdev wrote on Monday, January 27, 2014:

Hi

If you are in command line do this

cd your_openemr_path/openemr/interface/main/calendar/modules/PostCalendar/pntemplates

ls -l

This will list all directories with permission

If you are in FTP

Navigate to /openemr/interface/main/calendar/modules/PostCalendar/pntemplates

right click on folder name and click view permission

Please let me know,if you need any help on resolve this issue.I can help you through screen sharing with you

openemrdev@gmail.com

visolveemr wrote on Monday, January 27, 2014:

Hi,

The webserver user (in linux, often is “apache”, “www-data”, or “nobody”) should have write privileges on certain files and directories. The files include

    openemr/sites/default/sqlconf.php. 

In linux, these can be set by “chmod a+w filename”, command to grant global write permissions to the file.

The directories include

openemr/gacl/admin/templates_c, 
openemr/sites/default/edi,
openemr/sites/default/era, 
openemr/sites/default/documents, 
openemr/library/freeb,
openemr/custom/letter_templates, 
openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled,
openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache.  

In linux, if the webserver user name is “apache”, then the command
“chown -R apache:apache directory_name” will grant global write permissions
to the directories.

It is recommended making these changes permanent.

Thanks
OpenEMR Customization/Support provider,
ViSolve Inc
services@visolve.com

megasysphp wrote on Monday, January 27, 2014:

Hi All,

Not sure exactly what had gone wrong. But we got this fixed by re-installing the OpenEMR site on the server by setting the $config = 0; in sites/default/sqlconf.php

After re-installation everything works well.
Thanks for your responses.