I have fresh installation Drupal 6.10 and gallery modul 6.x-1.x-dev and modul Devel 6.x-1.16

So my problem is that when I enable gallery modul Theme developer don`t work, or more precisely when I check Themer info don`t display any information only "Click on any element to see information about the Drupal theme function or template that created it" and when I click on any element nothing display only previously information.

I thing that problem is gallery modul because when i disabled this modul everything works OK

Firebug display any problem "invalid object initializer" and "vars is undefined"

Can you help me

Comments

lvthunder’s picture

Does it only happen on gallery pages or on pages that don't use gallery? For me it was only the gallery pages which most of the page is generated by G2 and not Drupal.

marinex’s picture

It happen on every pages in Drupal, because i want to use Theme developer to theming my pages. I think it is problem in javascript but i don`t understand how gallery module use jquery.

here is another things from firebug:

vars is undefined

thmrRebuildPopup([span#thmr_41.thmr_call, span#thmr_2.thmr_call, body#thmr_undefined.sidebar-left 0=span#thmr_41.thmr_call 1=span#thmr_2.thmr_call])devel_themer.js?z (řádek 194)
themerDoIt(div#block-user-1.clear-block)devel_themer.js?z (řádek 88)
themerEvent(click clientX=222, clientY=224)devel_themer.js?z (řádek 127)
[Break on this error] var type = vars.type;

thanks Marinex

lvthunder’s picture

What G2 theme and/or any modules that add more js are you using? I was able to use Theme Developer with G2 on my site.

marinex’s picture

I use G2 default theme Matrix

marinex’s picture

addition:

in my Gallery 2.3 not Drupal I use all module except Registration, ffmpeg, Nokia image upload, Jpegtran , NetPBM, Multiroot

and in Drupal I use all modules from module Gallery and

extra not in default installation pathauto, token, devel, xml sitemap

marinex’s picture

So i think that i know what happen :-)

I explore all js files

<script type="text/javascript" src="/misc/jquery.js?z"></script>
<script type="text/javascript" src="/misc/drupal.js?z"></script>
<script type="text/javascript" src="/sites/default/files/languages/cs_203983441b9e00e909423226d7b2e766.js?z"></script>
<script type="text/javascript" src="/sites/all/modules/devel/krumo/krumo.js?z"></script>
<script type="text/javascript" src="/sites/all/modules/devel/devel_themer.js?z"></script>

<script type="text/javascript" src="/sites/all/modules/devel/ui.mouse.js?z"></script>
<script type="text/javascript" src="/sites/all/modules/devel/ui.draggable.js?z"></script>
<script type="text/javascript" src="/misc/collapse.js?z"></script>

and when i switch to EN from CZ without this row <script type="text/javascript" src="/sites/default/files/languages/cs_203983441b9e00e909423226d7b2e766.js?z"></script> all works OK

maybe language translationis bad.

lvthunder’s picture

Status: Active » Closed (fixed)

This doesn't look like a Gallery module error. If it is please reopen.

Adam S’s picture

Status: Active » Closed (fixed)

I have the same exact problem. When I enable theme devel and try to clear the cache i get this error file_get_contents(sites/all/modules/devel/ui.mouse.js) [function.file-get-contents]: failed to open stream: No such file or directory. It doesn't make much sense since that file is in the that directory. I just googled the error and got this page. The gallery module is installed. I'm going to disable it and see what happens.

EDIT: Ten minutes later......... I just disabled the Gallery2 module. The errors disappeared. There is a conflict when the devel theme is enabled and the gallery2 module is enabled.

EDIT some more: What had happened is that I installed the jquery_ui module because I needed it for some module that I didn't use. I never disabled it. That file ui.mouse.js is a part of jquery_ui. I erased it, I cleared it manually from my database,ect.. I even removed the local module. The error and WSOD kept coming back. All I did was turn off the gallery module just right now and the problem went away. When I turned the gallery module back on it didn't come back. It must be some freak clash between jquery_ui, theme devel, and gallery module.

Adam S’s picture

Status: Closed (fixed) » Active
apaderno’s picture

Title: Themer info don`t work with gallery modul » Themer info doesn't work with gallery module
Status: Closed (fixed) » Active

Given three modules, it is not clear which one has the fault.

illSleepWheniDie’s picture

Reopening this issue.

I don't have the Gallery module but having the exact same issue. Here are my list of modules (if that helps):

Administration menu , Administration menu Toolbar style , Administration views , Content , Content Copy , Content Permissions , Content Taxonomy , Content Taxonomy Autocomplete , Content Taxonomy Options , Content Taxonomy Tree , Content Templates , Email , Fieldgroup , Node Reference , Number , Option Widgets , Phone - CCK , Text , User Reference , Aggregator , Blog , Blog API , Book , Color , Comment , Contact , Content translation , Database logging , Forum , Help , Locale , Menu , OpenID , Path , PHP filter , Ping , Poll , Profile , Search , Statistics , Syslog , Taxonomy , Throttle , Tracker , Trigger , Update status , Upload , Block , Filter , Node , System , User , General , Devel , Devel generate , Devel node access , Performance Logging , Theme developer , Trace , WYSIWYG Image upload , WYSIWYG Image upload, WYSIWYG Image upload Browser , WYSIWYG Image upload migration tool , Wysiwyg imageupload, Author Facet , Content Type Facet , Date Authored Facet , Date Facets Format , Faceted Search , Faceted search context , Faceted Search UI , Faceted Search Views , Field Keyword Filter , Taxonomy Facets , ImageAPI , ImageAPI GD2 , ImageAPI ImageMagick , ImageCache , ImageCache UI , Taxonomy Other , jQuery UI , jQuery Update , Wysiwyg , Better Exposed Filters , Views , Views exporter , Views Or , Views UI , JQuery UI Dialog API

Forgot to mention: Not all are enabled, ofc.

jdvc’s picture

I've had a similar issue which was caused by something funky going on with the themer box rebuild js function. I was getting the error: "vars is undefined" for var type = vars.type in devel_themer.js in my firebug. It was in the themer box rebuild js function.

For some reason it wouldn't rebuild the box in the situation where I log out from my site so that I could theme the registration page which is not accessible to authenticated users. Had to give anonymous users permission to flush the site cache (don't worry its a dev site) so that the devel themer box would have to be built from scratch and not use the rebuild function. Oh, last hour of my life, it was nice knowing you... haha. Anyway more trouble than I had anticipated in attempting to theme my registration pages. So if devel themer isn't working try clearing your cache.

Adam S’s picture

I've just stopped using themer for several reasons. Some work arounds are:

use dsm($variable); in the code

im template.php use

function PUT_THEME_NAME_HERE_preprocess_HOOK_NAME_HERE (&$var) {
  dsm($vars);
  }

in temple.php use this to find names of theme functions being called. It's easy to figure out which ones are where.

function PUT_THEME_NAME_HERE_preprocess (&$vars, $hook) {
  dsm($hook)
  }
apaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, which is for a not supported Drupal version.