After happily running World Clock on a site for a day I discovered (as an anonymous user) that the worldclock_init() function was depending on Drupal functions that hadn't loaded yet.

Fatal error: Call to ftp://ftp. function drupal_get_path() in /var/www/sites/all/modules/worldclock/worldclock.module on line 595

This patch moves the stuff in worldclock_init() to worldclock_menu() (and also removes the closing PHP tag). It works but I'm pretty sure it should stay in worldclock_init(), so I'm marking it as "needs work."

CommentFileSizeAuthor
worldclock_bootstrap.patch897 byteschristefano

Comments

pixture’s picture

Thanks for the bug report and the patch. I did research this issue a little bit by myself and found that the change you suggested seems to be the right solution. I will put together with other changes and release soon.

Below are some articles related with this issue. It seems that some developers had encountered this issue. I would be nice if there's a developer handbook or guide that explains this issue.

http://drupal.org/node/45190
http://drupal.org/node/54746

Thank you,

pixture’s picture

Assigned: Unassigned » pixture
Status: Needs work » Fixed

I have just released a new version 1.3 which has the fix of this problem.

Thanks,

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.