Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 05-09-2009, 11:39 AM
Rachele29 Rachele29 is offline
Hatchling Croc
 
Join Date: Jan 2009
Posts: 1
Default Fantastico & Webcalendar's Recent Upgrade

I have the webcalendar (offered thru Fantastico) on several of my reseller websites that I manage. I have never had a problem with the older version 1.0.5, but there was a recent version update to 1.2.0 and have had numerous problems with it. (Including losing ALL of my entries & events - Had to end up doing a clean install with the new version as I could not restore the old calendar without problems) I searched the SourceForge forums and found 2 bug fixes that I found I had to apply to get my updated webcalendar to work & I wanted to pass along what I had to do in case anyone else was experiencing similar issues. You can also go to the sourceforge forums to explore any other issues.

I hope this helps anyone else on HG that has experienced these same issues. If I discover any furthur bugs I'll post what I find & if anyone else has found any let us all know.

The new webcalendar update seems to have some great upgrades, but until they work out all the bugs I would like to see HG to still offer the older version 1.0.5 in Fantastico as an option, as there is only the newer, bug filled version.

The 2 bug fixes are below: (These changes would be in the folder you created for your wecalendar - I made the changes from my cpanel file manager so I didn't have to download or upload any of the changes)

Patch for Web Calendar

Do both of these fixes!

This First #1 (This fixes an issue where when you try to add an event or make changes you get a long list of error messages)

if you look at the contents of the folder /includes and open the file
settings.php in a text editor (or similar), look for the line (line 10 or so):
db_cachedir: /tmp

...and edit it to be:
# db_cachedir: /tmp

...then save. In commenting out the line with a '#' you disable it


Then this #2 (This fixes an issue when you try to create an event that spans more than one day or a yearly repeating event and gives you a blank screen or error page)

https://sourceforge.net/tracker/?fun...70&atid=303870

The existing WebCalendar programming has a minor bug which is exposed by the latest
version of php (5.2.8). This has been affecting several functions of the program
including email reminders and normal display. If you have multi-day events you will
probably experience this problem when your ISP upgrades to php 5.2.8. So if your
calendar has been working but suddenly broke, or you changed hosts and can't get it to
work again, this may be the problem.

As far as I can tell, EVERYONE should apply this patch.

The fix is very easy. Edit the file /includes/functions.php and go down to the function
getOverLap() which is around line 3040. About ten lines farther down you will see a
line of code split across two rows as follows:

$midnight = gmmktime ( - ( date ( 'Z', $item->getDateTimeTS () ) / 3600 ),
0, 0, $lt[4] + 1, $lt[3] + 1, $lt[5] );

Change the very end of it as follows by adding "+1900":

$midnight = gmmktime ( - ( date ( 'Z', $item->getDateTimeTS () ) / 3600 ),
0, 0, $lt[4] + 1, $lt[3] + 1, $lt[5] + 1900 );
Reply With Quote
  #2  
Old 05-20-2009, 06:45 AM
jnjewlz's Avatar
jnjewlz jnjewlz is offline
Hatchling Croc
 
Join Date: Oct 2006
Posts: 7
Default Re: Fantastico & Webcalendar's Recent Upgrade

Rachel! You saved my bacon today. Thanks for the update... Perfect!
Reply With Quote
  #3  
Old 05-20-2009, 03:30 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Veteran Croc
 
Join Date: Sep 2006
Location: Apostle Islands, Lk Superior
Posts: 5,926
Default Re: Fantastico & Webcalendar's Recent Upgrade

Very nicely explained.
Reply With Quote
  #4  
Old 09-14-2009, 08:28 PM
Disgruntled Disgruntled is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 2
Default Re: Fantastico & Webcalendar's Recent Upgrade

Thank you Rachel. The problem still persists and your fix still works.
Reply With Quote
  #5  
Old 10-07-2009, 12:26 PM
greenman greenman is offline
Hatchling Croc
 
Join Date: Jun 2004
Location: Taos, New Mexico
Posts: 37
Default Re: Fantastico & Webcalendar's Recent Upgrade

Thank You, Rachel! You saved me lots of time today!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recent WordPress 2.1.1 exploit and Fantastico GatorRichard General Announcements 0 03-09-2007 05:08 PM

All times are GMT -6. The time now is 07:48 PM.

 
Forum SEO by Zoints