There could be a couple of compatibility issues, such as:
1. [Fixed]
Fatal error: Class 'simple_html_dom' not found in sites/all/modules/contrib/devel_themer/devel_themer.module on line 189
You should place simplehtmldom library to sites/all/libraries/simplehtmldom to solve it.
We have introduced hook_requirements in the latest version of simplehtmldom module that prevents this message from being displayed. More details in #2199489: Implement hook_requirements for simplehtmldom library
2.
Javascript errors in browser console, something like this "strs is undefined".
Currently there are no fixes for this issue. Read more in comments.
Downgrade to Simplehtmldom API 7.x-1.12 fixes the second problem.
Comment | File | Size | Author |
---|---|---|---|
#21 | devel_themer_2199439_simplehtmldom_version.patch | 359 bytes | Liam Morland |
Comments
Comment #1
kalabroComment #2
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedThank you for the report. I think this issue is related to simplehtmldom API module only.
The latest simplehtmldom API release doesn't contain simplehtmldom library. I mentioned that in the release notes.
To fix the issue put your simplehtmldom library, as it's recommended by best practices for third-party libraries, into the sites/all/libraries/simplehtmldom/...
Thanks,
Konstantin
Comment #3
kalabroThanks, @konstantin.komelin! I will mark it as support request for other users.
Comment #4
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedThank you, @kalabro!
Comment #5
jeremyclassic CreditAttribution: jeremyclassic commentedSo...that's not the only error you'll notice with incompatibility with simplehtmldom api. You'll notice in the console (in Chrome or Firefox, at least) that Drupal.settings.thmrStrings has no property or method named themer_info. Specifically, the error refers to the object (strs) not having a property themer_info. Putting this here (for SEO so no one loses an entire morning to trying different combos of devel & simplehtmldom like I ended up doing) because I was unable to find anything when I googled "Object has no property themer_info". The line referred to in devel_themer.js is line 43 of release 7.x-1.x-dev and the only way to fix is to downgrade the Simplehtmldom API to 7.x-1.12.
Would you please add a README or update the project page to reflect this VERY big dependency?
Thanks!
A huge fan of the project.
Comment #6
bolshii CreditAttribution: bolshii commentedUnfortunately simplehtmldom 7.x-2.x didn't work for me. After enabling devel_themer I got a blank page. Despite 'works with simplehtmldom 7.x-2.x' I tried simplehtmldom 7.x-1.12. With that version everything works well.
Regards,
Ingo
Comment #7
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedHi @bolshii, @jeremyclassic.
Thank you for letting us know about the issues you meet.
Please make sure that you installed simplehtmldom 7.x-2.0 properly. See README.txt of the module.
Thanks,
Konstantin
Comment #8
joep.hendrix CreditAttribution: joep.hendrix commentedThe simpledom library is in place and the themdeveloper works partly.
However, huge amounts op javascript errors. After reverting back to 7.x-1.12 no more problems.
Thanks, Joep
Comment #9
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedI've made some tests. You're right, a compatibility issue takes place.
I'm asking maintainers of Theme developer, please inform users on the project page that simplehtmldom version 7.x-2.x is currently incompatible with Theme developer.
I've added notice on the simplhtmldom project page.
Comment #10
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #11
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #12
amool CreditAttribution: amool commented@Kosntantin.komelin:
what needs to be done to resolve this issue? Is it incompatible because of simple_html_dom.php library dependency? Because that is fixed with Issue #2199489 would it still remain incompatible?
Comment #13
Konstantin Komelin CreditAttribution: Konstantin Komelin commented@amool, it still remains incompatible with devel_themer because of, I guess, some changes in the library itself.
To fix this incompatibility we need to debug devel_themer and make necessary fixes there.
Please see #5 for more details.
Comment #14
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #15
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #16
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #17
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #18
David Eisner CreditAttribution: David Eisner commentedThis tripped me up, too -- I couldn't get Theme developer to work at all (and yes, I followed the instructions and downloaded simple_html_dom.php from sourceforge), until I downgraded to simpledom API version 7.x-1.12. Now it works great.
I contacted Kenneth Venken who very quickly responded and was kind enough to add a notice to https://drupal.org/project/devel_themer . Hopefully this gotcha won't catch anybody else going forward.
Comment #19
siggi_hrafn CreditAttribution: siggi_hrafn commentedHad the same issue with the Theme Developer (missed the notice on https://drupal.org/project/devel_themer . Uninstalled simpledom API version 7.x-2.x. - Installed simpledom API version 7.x-1.12. Works fine now!
Comment #20
sjbassett CreditAttribution: sjbassett commentedJavascript errors in browser console, something like this "strs is undefined".
I am positive that I have simplehtmldom (7.x-1.12) installed on the site and cannot debug what is going on here, but devel_themer is not passing in the vars for each element to the
Drupal.settings
object. Really stuck on this one. I would be happy to try to work on a fix for this. Really need this module for theming...Comment #21
Liam MorlandAs a temporary fix, the attached patch adds a version number to the simplehtmldom dependency declaration in the Theme developer info file.
Comment #22
Liam MorlandDuplicate of #1683154: Simplehtml dependency in info file should specify major version to avoid errors after installation.
Comment #23
sonicthoughts CreditAttribution: sonicthoughts as a volunteer commentedMy understanding from this thread / closed issue is that Incompatible with simplehtmldom 7.x-2.x is resolved/fixed/closed. However when installing with simplehtmldom I get an error that 1.x is still required.
Comment #24
seanrWould be really nice to fix this, given that drush downloads the 2.x version unless you specify it. It's annoying as hell.
Comment #25
Rahul Seth CreditAttribution: Rahul Seth commentedIf you using it with devel_themer module, then would be good to use this command.
drush en simplehtmldom-7.x-1.12 -y