Loading...
 
Skip to main content

Architecture / Installation


[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 :

Copy to clipboard
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:

Copy to clipboard
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

I have just installed a new TW 5.1 test site (my other websites are still in 5.0) and tested this issue.
I can properly set a calendar for anonymous, no problem.

I have made a copy my local website and tried to update it to TW5.1.
Update went fine but when i configure the calendar and log off, I get this time this error page:
Fatal error: Call to undefined function cal_days_in_month() in /home/.../lib/tikidate-php5.php on line 291

I am copying the live website on my local machine and will test some more to be sure the problem comes from my local settings and not from the database or TW.


OK, I got it.

the cal_days_in_month() was the right thing to look at.

My PHP installation did not have the calendar functions enabled.

I run Mandriva 2010.1 and just added the "php-calendar" extension Module

local test sites are running fine now.😀