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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kalabro’s picture

Issue summary: View changes
Konstantin Komelin’s picture

Thank 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

kalabro’s picture

Category: Bug report » Support request
Status: Active » Fixed

Thanks, @konstantin.komelin! I will mark it as support request for other users.

Konstantin Komelin’s picture

Thank you, @kalabro!

jeremyclassic’s picture

So...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.

bolshii’s picture

Unfortunately 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

Konstantin Komelin’s picture

Hi @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.

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

joep.hendrix’s picture

The 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

Konstantin Komelin’s picture

I'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.

Konstantin Komelin’s picture

Issue summary: View changes
Status: Fixed » Active
Konstantin Komelin’s picture

Issue summary: View changes
amool’s picture

@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?

Konstantin Komelin’s picture

@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.

Konstantin Komelin’s picture

Issue summary: View changes
Konstantin Komelin’s picture

Issue summary: View changes
Konstantin Komelin’s picture

Issue summary: View changes
Konstantin Komelin’s picture

Issue summary: View changes
David Eisner’s picture

This 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.

siggi_hrafn’s picture

Had 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!

sjbassett’s picture

Javascript 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...

Uncaught TypeError: Cannot read property 'type' of undefined devel_themer.js?n57xic:172
Liam Morland’s picture

Category: Support request » Bug report
Status: Active » Needs review
FileSize
359 bytes

As a temporary fix, the attached patch adds a version number to the simplehtmldom dependency declaration in the Theme developer info file.

Liam Morland’s picture

sonicthoughts’s picture

My 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.

seanr’s picture

Status: Closed (duplicate) » Active

Would be really nice to fix this, given that drush downloads the 2.x version unless you specify it. It's annoying as hell.

Rahul Seth’s picture

If you using it with devel_themer module, then would be good to use this command.
drush en simplehtmldom-7.x-1.12 -y