Closed (fixed)
Project:
Calendar Block
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2008 at 01:42 UTC
Updated:
8 Dec 2008 at 16:11 UTC
Jump to comment: Most recent file
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. :)