Posted by alimosavi on August 16, 2008 at 8:48am
Jump to:
| Project: | jQuery UI |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Hi
When I used Image overlay or Image Annotate modules I get this error :
Fatal error: Call to undefined function jquery_ui_add() in /home/vatgar/public_html/photo/sites/all/modules/image_overlay/image_overlay.module on line 336
what is it ?
Comments
#1
Do you have the jquery_ui module installed? jquery_ui_add is a function called to add the javascript for certail jquery ui elements to a page. It's provided by the jquery_ui module.
#2
yes
I install 6.x-1.2 version of jquery_ui module
#3
Hai i followed the instructions for including Jquery Ui in apache solr module ..
I am getting the same error undefined function jquery_ui_add(), can you found out the solution ?
#4
Sorry, without further information this issue can only be marked as won't fix.
Feel free to re-open this issue if you want to provide further information. Thanks.
#5
One thing to check is that when you enable the jquery_ui module, that the JS files are in the right location. If they are not, then Drupal will show you a warning that you must put them in the right spot. But just putting them there will not necessarily solve the problem--you may need to re-enable jquery_ui module afterward.
#6
Hi I have installed the module all the way up until adding the following as per the instructions:
" In your module, call the following function:
jquery_ui_add($files);
For example:
jquery_ui_add(array('ui.draggable', 'ui.droppable', 'ui.sortable'));
jquery_ui_add('ui.sortable'); // For a single file
So for me, I am trying to get jquery_ui datepicker to work with the Date module. So I have successfully put the "dependencies[] = jquery_ui" in the Date module info file and then tried to put the " jquery_ui_add('ui.datepicker');".... it is this last step that stops everything so I must be doing it wrong?
the full message that come back is "Fatal error: Call to undefined function jquery_ui_add() in /.../..../.../.../sites/all/modules/date/date_api.module on line 10
I simply put the line jquery_ui_add('ui.datepicker'); into the Date module file as directed.. no other text or notations?
grateful for any assistance
thanks
#7
This might be a shot in the dark but you should try setting your custom modules weight value in the system table to a higher integer.
This solved the problem for me :)
#8
I also had the same issue and changing the module weight (I used 100) fixed it for me.
#9
I have tried to change the fullcalendar.module file for line 64:
from:
jquery_ui_add($files);
to:
jquery_ui_add(ui.datepicker);
And I still get a Fatal error when I try to upload the FullCalendar module. The modules I have installed:
CCK
Views
jQuery UI
jQuery update
Date
I had the FullCalendar installed at one point but I then started getting this Fatal error so I removed it.
Does anyone know how to fix this?