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
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

mfer - August 18, 2008 - 17:38
Status:active» postponed (maintainer needs more info)

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

alimosavi - August 19, 2008 - 15:59

yes
I install 6.x-1.2 version of jquery_ui module

#3

lavanyadotr - May 18, 2009 - 07:40

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

sun - June 21, 2009 - 01:29
Status:postponed (maintainer needs more info)» won't fix

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

HershelSR - July 23, 2009 - 09:24

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

caminoz74 - December 19, 2009 - 02:16

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

 
 

Drupal is a registered trademark of Dries Buytaert.