Installed v4.1.0 (10) with calendar turned off whilst testing and formatting reports for last month - all good
Now have turned on calendar and find only month view works correctly.
- Day view shows name of doctor at top only - no time slots
- Week view shows name of doctor and days/dates underneath - no time slots
Also, ensure you remove the calendar cache by removing all files/directories within the following directory:
openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/
If still issues, then suggest looking through the php error log.
I removed all the files from openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/ but this made no difference. However perhaps I missed this step when I upgraded to 4.1.0 (10) but I cannot remember.
I tried a fresh install of 4.1.0 and then upgraded to 4.1.0 (11). It worked perfectly. I then copied the database across and the fault appeared so the problem is in the sql data.
The site has been live for three days with 1 x doc entering data so I would prefer to fix the data rather than rekey all his work. Do you have an idea what table the problem is likely to be in and do you believe it is possible to manually fix with phpmyadmin?
Couple things (ordered by way I would go about debugging):
(Also, ensure you have a back up)
1. Check the php error log
2. Check for corruption for of the mysql tables (via mysqlcheck command): http://docs.moodle.org/22/en/How_to_check_your_database_for_corruption
3. Try out a previous database backup (for example, if have a backup from day before)
I decided to backup each table individually and copy from the problem site to the new install and test viewing the calendar after each table copy. As fate would have it the last table I copied over was globals as I had checked this several times through the global admin screen.
Unfortunately I had failed to recognize that the calendar ending hour had been set to 3AM instead of PM. When I activated the calendar some weeks after setting the times my mind missed the pattern and continued to do so until logical elimination finally made it stand out.
With the calendar ending hour being set to prior to starting hour the calendar operated correctly and did not display any hours - only days in the month view of course.