Fatal error:Call to undefined function jquery_ui_add()
alimosavi - August 16, 2008 - 08:48
| Project: | jQuery UI |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
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 ?

#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