I get the following Java console error:

Error: $.cookie is not a function      
Source File: http://site/modules/toolbar/toolbar.js?m0hyw4      
Line: 29

I first noticed this after my upgrade from 7.10 -> 7.12 (it was breaking gmaps for logged in users with a toolbar). I'm happy to provide more information, if needed - just let me know.

Comments

vm’s picture

-dev should be tested to see if the issue hasn't already been corrected, or are you confirming this issue is also present in -dev? If it is present in -dev this issue needs to be bumped to the -dev version.

canuckdev’s picture

I also am having the same problem. I think it is the same problem as this: Uncompressed javascript fails with admin module enabled. The jqcookie fix does not work in 7.12.

canuckdev’s picture

Priority: Normal » Major
nod_’s picture

Version: 7.12 » 7.x-dev
Priority: Major » Normal

This is not major.

Can you please try the dev version of drupal7? which modules are used to display something on the page you're getting the error?

What are the scripts (and their order) included in the page? you can copy/paste the HTML source, that'll do.

tommcadam’s picture

The problem is that misc/jquery.cookie.js is not being included for some reason, despite being in $scripts with the correct path.

I can't seem to correct the issue though.

nod_’s picture

Category: bug » support

This does not look like a bug, if you have the script in $scripts and not in the html it means you have a module removing it at some point. You can start by disabling all front-end related modules and see what happens, with some luck you'll be able to narrow down the possibilities.

tommcadam’s picture

The script is in the html, but though the path to the file is correct clicking on the filename in the source code gives a 404, page not found.

nod_’s picture

oh, ok, have you clean urls enabled? is the jquery.cookie.js file in /misc/ folder of you drupal install?

tommcadam’s picture

Yeah, clean urls is enabled and jquery.cookie.js is in /misc/ folder.

nod_’s picture

Well, I don't know then. Have you tried updating your drupal install (we're at 7.14 now)?

I can't say much more at this point.

tommcadam’s picture

Yeah I have 7.14 installed and all modules are up to date. I don't know if this helps, but the problem does not occur on the local development version of the site.

Thanks for your help anyway.

preethivv’s picture

@tommcadam Same issue to me. But it will fixed when enabled the JS cache in performance page.

Thank you

preethivv’s picture

@tommcadam Same issue to me. But it will fixed when enabled the JS cache in performance page.

Thank you

droplet’s picture

The problem is that misc/jquery.cookie.js is not being included for some reason

try disable overlay module. (there is an issue about it)

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.