Theme developer 开启后 点了不起作用,看chrome的开发者工具,报下面的错,
全部清空一下缓存就可以了 (虽然还有其它的错,但是这个工具Theme developer 可以使用了)
Uncaught TypeError: Cannot read property 'type' of undefined
at thmrRebuildPopup (devel_themer.js?7:193)
at themerDoIt (devel_themer.js?7:87)
at HTMLDocument.themerEvent (devel_themer.js?7:126)
Devel themer doesn't work on D6
Hi
devel themer JS doesn't work on my D6 website,these are errors:
Uncaught TypeError: Cannot read property 'type' of undefined devel_themer.js?r:193
thmrRebuildPopup devel_themer.js?r:193
themerDoIt devel_themer.js?r:87
themerEvent devel_themer.js?r:126
Any idea to fix it ?
thanks
Members fund testing for the Drupal project.Learn more
Comments
Comment#1
cjamesrun CreditAttribution: cjamesrun commentedI am also stuck on this issue. I have made sure that simplehtml is not the 2.x version ... and everything looks the way it should. It doesn't work in the admin or in the theme.
Log in or register to post comments
Comment#2
aiphes CreditAttribution: aiphes commentedi must check the simplehtml version..will tell you
Log in or register to post comments
Comment#3
henryhu CreditAttribution: henryhu commentedI encounter the same issue:
Uncaught TypeError: Cannot read property 'type' of undefined
The 6.x-1.x-dev seems not to require simplehtmldom module.
Log in or register to post comments
Comment#4
gippy CreditAttribution: gippy commentedI have the same issue. Returns the same error reported in #1.
D6, simplehtmldom-6.x-1.12, simplehtmldom_1_5.zip uncompressed to sites/all/libraries/simplehtmldom/simple_html_dom.php, devel_themer: version = "6.x-1.12"
Question: simplehtmldom-6.x-1.12 has an earlier version (1.11) of simple_html_dom.php embedded in the module. Do we still need to download the library when using simplehtmldom-6.x-1.12? I tried replacing it with the download but nothing changed.
Log in or register to post comments
Comment#5
pzerimars CreditAttribution: pzerimars as a volunteer commentedAttached is the patch necessary to fix this issue. It is a result of devel_themer not executing as a result of a non-altered theme registry. The registry was never altered because the function did not accept the parameter by reference.
Enjoy!
Log in or register to post comments
Comment#6
pzerimars CreditAttribution: pzerimars as a volunteer commentedLog in or register to post comments
Comment#7
gippy CreditAttribution: gippy commentedThank you, Pzerimars. it works for me.
Log in or register to post comments
来自 https://www.drupal.org/node/2442587