Needs work
Project:
Archive
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2009 at 09:26 UTC
Updated:
16 Jun 2010 at 18:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
stephane bouillet commentedsame same:
warning: cal_days_in_month() [function.cal-days-in-month]: invalid date. in /homez.59/my_DB_name/www/sites/all/modules/archive/archive.module on line 106.I've tried to replace line 106 by your code:
Comment #2
Anonymous (not verified) commentedSame issue here but the code appeared to fix the problem.
Thanks.
Comment #3
sietecoyote commentedI used your solution with version 5.14 and fixed the warning of cal_days_in_month,,
I just removed the comment in the original code line because leaving it causes a Parse error;
so, my final code is like this:
Comment #4
sietecoyote commentedjust fixing the forum title to a better search :)
Comment #5
sietecoyote commentedjust fixing the forum title to a better search :)
Comment #6
TomChiverton commentedSame error here on latest 5.x Drupal core and latest version of this module.
Made the change indicated above by hand, and the errors have cleared.
Comment #7
StS commentedThe fix is also a possible solution to the same problem with drupal 6.8.
Comment #8
mdin617 commentedA better patch for the 6.x one at least (I don't have 5.x to test with):
It only requires the one line because the current version of the 6.x branch already works out what last month was and what year it was in and assigns it to the prev_month and prev_year variables.
Comment #9
physiotek commentedi tested it on 5.x and it doesn't work for me.(#8)
the other patch is perfect.(#3)
thanks all!
Comment #10
cssdru commentedHello,
I had the same issue but solved now. I tried the mdin617's patch (Drupal 6 too) and it worked perfectly.
Thank you very much!
Comment #11
tetramentis commentedsame issue here:
cal_days_in_month() [function.cal-days-in-month]: invalid date. in sites/all/modules/archive/archive.module line 359.
PHP version is 5.2.6-5, Drupal core 5.14, archive module 5.x-1.11.
solution #3 by sietecoyote worked fine, patch file is attached.
Comment #12
bismigalis commentedThis is more correct fix:
Comment #13
tetramentis commentedaccording to #9, this one-liner doesn't work on Drupal 5.
Comment #14
spjsche commentedThe solution @ #12 did the trick for archive module 6.13
Thanks
Stephen
Comment #15
binki commentedSolution #12 made my day!
Archive 6.x-1.3
Drupal 6.15
MySQL database 5.0.77
PHP 5.2.10
Web server Apache
Thanx!
Comment #16
tetramentis commented#8/#12 worked for me as well in 6.14 (upgrading to 6.15 right now, but that shouldn't change anything).
Could someone commit this change to the 6.x branch? That would save lots of time for anyone just starting to use the Archive module on 6.x.
And solution in #3 (with patch in #11) seems to work for the 5.x branch, if anyone still needs that.
Comment #17
spjsche commented+1 for #16
Comment #18
hillaryneaf commentedsubscribing... please add to next 6.x release
Comment #19
radiobuzzer commented#12 tested on Drupal 6.15. Fully functional.
Comment #20
v8powerage commentedNice module, but doesn't work in January ROFL!
None of the solutions works for me :/
Comment #21
tetramentis commented#8 (#12) still works fine in January with Drupal 6.15, so Shaman - double-check if you did properly apply the fix and cleared the cache.
Comment #22
v8powerage commentedIt's February soon, so I'll wait till next year, perhaps there'll be some update in this module :D
Comment #23
R.Muilwijk commentedFixed for the 6.x branch/7.x-branch. If someone wants this fixed in the 5 version please provide a patch.