I have an old site I wanted to update on localhost.
I made a copy in a subfolder and configured etc/hosts and apache to use a fake TLD (togethearth.con instead of .com). So on my machine: togethearth.con -> 127.0.0.1/togethearth
settings.php is configured accordingly (togethearth.con) to keep clean URL.
I kept the SAME database for the 2 versions (5.10 and 5.16).

After I updated togethearth.con from 5.10 to 5.16 + updated modules, there's no more collapsible menus in SOME settings (taxanomy user roles, OGUR, FCKeditor, ...).

in FF3 (Minefield on Mac) error console, I have:
Error: Drupal.settings is undefined
Source File: http://localhost/modules/admin_menu/admin_menu.js
Line: 5

And also in Safari Error Console:
Undefined value

And the same database with 5.10 (and old modules) is working fine in both Firefox and Safari! No errors and all collapsible menus are working.

I also get (for both 5.10 and 5.16 on FF3):
Error: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///Applications/Minefield.app/Contents/MacOS/components/nsSessionStore.js :: sss_saveState :: line 1909" data: no]
Source File: file:///Applications/Minefield.app/Contents/MacOS/components/nsSessionStore.js
Line: 1909

Not sure if it's related.

Thanks for your help, and I hope it will help others.

CommentFileSizeAuthor
Picture 2.jpg52.25 KBzanoman
Picture 1.jpg29.39 KBzanoman

Comments

zanoman’s picture

Sorry,

please read:
Error: Drupal.settings is undefined
Source File: http://togethearth.con/modules/admin_menu/admin_menu.js
Line: 5

Anonymous’s picture

Category: bug » support

You say you copied the DB did you copy the cache and session tables. Try

  • Truncating any table that begins with cache.
  • Truncating the sessions table
  • Clearing the browser cache and temporary files.

Report if that helps.

zanoman’s picture

I didn't copied the db.
It's different folders accessing the same db.

I restarted with fresh browser and cleared all cache tables, same results.

zanoman’s picture

I copied the 5.10 install elsewhere.
Updated and tested page version after version.
It works with 5.16.

Now the modules:
admin menu (5x-2.8) breaks part of the collapsible function, no more triangle, but at least it's expanded.
I rolled back to previous version and everything went back to normal. So admin menu is guilty.
I checked admin menu changelog:
Admin Menu 5.x-2.8, 2009-01-24
------------------------------
#362454 by sun: Fixed Drupal.settings.admin_menu is undefined JS error in some
browsers.

Well obviously, it's not fixed. I'll check out the link.

I rolled back the admin menu module in the 5.16 and everything is back on track.

Sorry guys, not a base bug, just a module.

Thanks Earnie for your quick reply and help.

dave reid’s picture

Project: Drupal core » Administration menu
Version: 5.16 » 5.x-2.8
Component: base system » Code

Moving to the admin_menu issue queue so we can most likely find the duplicate issue. Your best bet is to try using the latest 5.x-3.x-dev version of admin_menu which always has all the latest fixes.

sun’s picture

Version: 5.x-2.8 » 5.x-3.x-dev
Priority: Critical » Normal
Status: Active » Fixed

Yep, this has been fixed in 3.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.