Closed (fixed)
Project:
jQuery Cookie
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Dec 2007 at 15:55 UTC
Updated:
28 Feb 2008 at 05:32 UTC
I installed jquery_cookie, 5.x.1.x-dev 2007-10-14, to get a couple doodads (fontsizer). It works for me but some of the users are seeing blank screens and the following message appears in the error log:
[client xx.xx.xx.xx] PHP Fatal error: Call to undefined function: drupal_get_path() in /var/www/vhosts/visforvoltage.org/httpdocs/modules/jquery_cookie/jquery_cookie.module on line 106
This is the relavent code:
line 106 --> //$module_dir = drupal_get_path('module', 'jquery_cookie');
$module_dir = "modules/jquery_cookie";
You can see I commented out the line and substituted a hardcoded value. However that introduced another problem:-
[client xx.xx.xx.xx] PHP Fatal error: Call to undefined function: drupal_add_js() in /var/www/vhosts/visforvoltage.org/httpdocs/modules/jquery_cookie/jquery_cookie.module on line 109
The core problem is not all the functions are available when the init hook is available ???
Comments
Comment #1
dmuth commentedThis happened to me too. Subscribing.
Comment #2
redbox2000@drupal.org commentedThx for logging this. I've been up to my ears in other work and have not been able to focus on these modules. However, over the last few days I've rebuilt one of my personal sites -- http://inventive-minds.net -- which will be the new "home" for this project. I will put up a demo page also to show how this module works, and, of course, I will take a look at this bug. :)
Very sorry for the delayed response ...
-martin.
Comment #3
redbox2000@drupal.org commentedI'm sorry for the delay. Still trying to catch up. I found the problem and will release fix soon. There is also an updated version of the jQuery code which i will try to incorporate shortly. I'm also working on new project home page.
Comment #4
redbox2000@drupal.org commentedI have fixed this issue and also released a 1.0 version. This new version also includes a demo block. Please check the new project home page for details.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.