Closed (fixed)
Project:
World Clock
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Apr 2008 at 04:55 UTC
Updated:
23 May 2008 at 14:01 UTC
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."
| Comment | File | Size | Author |
|---|---|---|---|
| worldclock_bootstrap.patch | 897 bytes | christefano |
Comments
Comment #1
pixture commentedThanks 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,
Comment #2
pixture commentedI have just released a new version 1.3 which has the fix of this problem.
Thanks,
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.