• Resolved phoenixuprising

    (@phoenixuprising)


    Since update 5.2.7, Meow Lightbox has been throwing the following fatal error on some pages on my site:

    Fatal error: Uncaught Error: Call to undefined method DiDom\Element::tag() thrown in .../plugins/meow-lightbox/classes/core.php on line 579

    After much trial and error, I discovered that this only happens on any page with an image that lacks the wp-image-### class. Adding that class, whether the ID number at the end belongs to the image or not, fixes the issue. Obviously, this can be solved by adding that class, but any images with an external source don’t have a WP ID. In addition, some plugins might add images that are stored locally in the WP media library, but not add that class because it’s unnecessary for the image to render properly.

    My site is using WordPress 6.7.2. These pages work fine when Meow Lightbox alone is disabled, and when the plugin has been rolled back to version 5.2.6.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey @phoenixuprising! 👋

    Thanks for reporting this! There was indeed a typo that caused the issue. This will be fixed in the next release.

    In the meantime, you can go to the Performance tab and switch from DiDom to HtmlDomParser, which should resolve the issue.

    Thanks!

    Not exactly the problem described by @phoenixuprising, but it is still something related to the wp-image class. Since installing the latest version of the plugin, this is only a very small part of the PHP error file that keeps getting gigantic because of these warnings.

    https://privatebin.cerbero.cc/?0617831c076007cd#CpJhT93z3bk6LzGnYxM3jPbfx9iHbXZTh4jgJzm8P2XJ

    Adding my two cents, not sure if related, but…

    Like in @gioxx log, my error log is filled with classes: wp-image-###.

    Not a very descriptive error, obviously. On my site, it appears to be limited to inline images, which is why am not sure it is connected to this issue, but also not willing to rule it out.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error without wp-image class’ is closed to new replies.