[solved] calendar module + tiki_p_view_calendar for anonymous = blank page
Hello,
I wish to display a calendar for everyone to see on a TW 5.0 website:
- I assign a "Calendar" module the left column to the Anonymous group.
- I assign "tiki_p_view_calendar" to the Anonymous group in tiki-objectpermissions.php
Unfortunately, when i log off and check the result, I systematically get a blank page.
When I remove the module from the table tiki_modules or the user_grouppermissions, the website comes back all right.
After a few tests, I see that it happens only when assigning the "tiki_p_view_calendar" permission to the Anonymous group and with a least one created calendar (using all defaults).
This occurs only on my local dev machine (php 5.3.3), and not on the online website (php 5.2.13).
After allowing to display_errors in my php.ini, the errors below appeared.
After a chmod 777 on all files to make sure they can be read, these errors disappeared but the blank page is back.
I also have a similar issue on a second TW5 dev local website, but this time it occurs when selecting the calendar module (and not the others) in the tiki-admin_modules.php => blank page.
Only once I got a php error on cal_days_in_month() but i cannot reproduce it.
Would anyone have any idea about what is happening ??
a php 5.3 compatibility issue? a specific local setting?
Thank you very much!
some details :
TW parameters :
my tiki_modules table: moduleId name position ord type title cache_time rows params groups 1 Application Menu l 10 NULL 0 10 flip=y a:1:{i:0;s:10:"Registered";} 8 calendar_new l 9 NULL 0 10 a:1:{i:0;s:9:"Anonymous";} my users_grouppermissions table groupName permName value ... Anonymous tiki_p_view_calendar
php errors that appeared once, before resetting files permissions:
Warning: mkdir() [function.mkdir]: No such file or directory in /home/.../lib/cache/cachelib.php on line 174 Warning: chmod() [function.chmod]: No such file or directory in /home/.../lib/cache/cachelib.php on line 175 Warning: fopen(/3cf79dab5893227ea59a13d66d1fdf31) [function.fopen]: failed to open stream: Permission denied in /home/.../lib/cache/cachelib.php on line 181 Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/.../lib/cache/cachelib.php on line 182 Warning: fclose() expects parameter 1 to be resource, boolean given in /home/.../lib/cache/cachelib.php on line 183 Warning: fopen(/606ad46e6e99b5c01fcc0e30c9988f4c) [function.fopen]: failed to open stream: Permission denied in /home/.../lib/cache/cachelib.php on line 181 Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/.../lib/cache/cachelib.php on line 182 Warning: fclose() expects parameter 1 to be resource, boolean given in /home/.../lib/cache/cachelib.php on line 183