Hello,
I recently installed 'Calendar Block' but when I enabled the block, I am getting this error, "Fatal error: Call to undefined function cal_days_in_month() in /home/user/epoly/public_html/sites/all/modules/calendar_block/calendar_block.module on line 151" Am I doing something really stupid? Thanks in advance.
Aniruddha
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | cal_days_in_month.patch | 991 bytes | jmstacey |
Comments
Comment #1
skilip commentedcal_days_in_month() is a PHP function (PHP 4.07 and greater). Which version of PHP do you have?
Comment #2
aniruddhay commentedHello,
sorry for the late reply. I am running PHP 5.2.6, does this help?
thanks,
Aniruddha
Comment #3
aniruddhay commentedHello,
sorry for the late reply. I am running PHP 5.2.6, does this help?
thanks,
Aniruddha
Comment #4
Dhaishin commentedI too have suffered from this error, though I am using PHP 5.0.4. I currently re-compiling PHP to add the mbstring extension... I don't see this as helping, but who knows...
Andrew
Comment #5
skilip commentedYou need to be sure the extension 'calendar' is compiled. See documentation at php.net
Comment #6
jmstacey commentedHere's a patch that adds a replacement for the cal_days_in_month() function if you're using a version of PHP that does not have it. The file is not using Unix line endings so I don't know if the patch will work properly. Just in case here is the new function, just put it somewhere in your calendar_block.module file. I got the solution from http://drupal.org/node/310120
Comment #7
skilip commentedThanks a lot jmstacey!
I've taken your code into a new release.
Comment #8
skilip commentedComment #9
aniruddhay commentedI couldn't thank you enough. :) And thanks a lot skilip too. :)