Fatal error without wp-image class
-
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 579After 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.
The topic ‘Fatal error without wp-image class’ is closed to new replies.