Title: PHP Errors
Last modified: April 8, 2019

---

# PHP Errors

 *  Resolved [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * (@p4fbradjohnson)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-errors-158/)
 * Hi
 * Thanks for the great plugin. I see a lot of user issues and from 1st glance that
   they don’t always read everything.
 * However, I am getting these errors in query monitor:
 * Notice Constant HDOM_TYPE_ELEMENT already defined 1
    wp-content/plugins/webp-
   express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.
   inc:64 Plugin: webp-express Notice Constant HDOM_TYPE_COMMENT already defined
   1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/
   simple_html_dom.inc:65 Plugin: webp-express Notice Constant HDOM_TYPE_TEXT already
   defined 1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/
   src/simple_html_dom/simple_html_dom.inc:66 Plugin: webp-express Notice Constant
   HDOM_TYPE_ENDTAG already defined 1 wp-content/plugins/webp-express/vendor/rosell-
   dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.inc:67 Plugin: webp-
   express Notice Constant HDOM_TYPE_ROOT already defined 1 wp-content/plugins/webp-
   express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.
   inc:68 Plugin: webp-express Notice Constant HDOM_TYPE_UNKNOWN already defined
   1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/
   simple_html_dom.inc:69 Plugin: webp-express Notice Constant HDOM_QUOTE_DOUBLE
   already defined 1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-
   webp/src/simple_html_dom/simple_html_dom.inc:70 Plugin: webp-express Notice Constant
   HDOM_QUOTE_SINGLE already defined 1 wp-content/plugins/webp-express/vendor/rosell-
   dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.inc:71 Plugin: webp-
   express Notice Constant HDOM_QUOTE_NO already defined 1 wp-content/plugins/webp-
   express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.
   inc:72 Plugin: webp-express Notice Constant HDOM_INFO_BEGIN already defined 1
   wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/
   simple_html_dom.inc:73 Plugin: webp-express Notice Constant HDOM_INFO_END already
   defined 1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/
   src/simple_html_dom/simple_html_dom.inc:74 Plugin: webp-express Notice Constant
   HDOM_INFO_QUOTE already defined 1 wp-content/plugins/webp-express/vendor/rosell-
   dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.inc:75 Plugin: webp-
   express Notice Constant HDOM_INFO_SPACE already defined 1 wp-content/plugins/
   webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.
   inc:76 Plugin: webp-express Notice Constant HDOM_INFO_TEXT already defined 1 
   wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/
   simple_html_dom.inc:77 Plugin: webp-express Notice Constant HDOM_INFO_INNER already
   defined 1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/
   src/simple_html_dom/simple_html_dom.inc:78 Plugin: webp-express Notice Constant
   HDOM_INFO_OUTER already defined 1 wp-content/plugins/webp-express/vendor/rosell-
   dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.inc:79 Plugin: webp-
   express Notice Constant HDOM_INFO_ENDSPACE already defined 1 wp-content/plugins/
   webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/simple_html_dom.
   inc:80 Plugin: webp-express Notice Constant HDOM_SMARTY_AS_TEXT already defined
   1 wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/simple_html_dom/
   simple_html_dom.inc:95 Plugin: webp-express
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-158%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-errors-158/#post-11403459)
 * Ok, thanks for reporting!
 * On first appearance, it would look like simple_html_dom is included twice. However,
   this seems not to be the case, as I do this in `vendor/dom-util-for-webp/src/
   ImageUrlReplacer.php`:
 *     ```
               if (!function_exists('str_get_html')) {
                   require_once 'simple_html_dom/simple_html_dom.inc';
               }
       ```
   
 * I’m not sure what is going on.
    Perhaps some other plugin are defining these 
   constants too. But then again, as it is several constants that has been defined,
   the chances are really slim that another plugin choose the same names.
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-errors-158/#post-11403490)
 * It is btw. PHP Notices – not Errors.
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-errors-158/#post-11403492)
 * I have created an issue for it, and will dig into it when I have the time. [https://github.com/rosell-dk/webp-express/issues/223](https://github.com/rosell-dk/webp-express/issues/223)
 *  Thread Starter [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * (@p4fbradjohnson)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-errors-158/#post-11405148)
 * Thank you for letting me know. I am marking this thread as resolved and thank
   you for your quick response. You already have my 5 star review.

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

The topic ‘PHP Errors’ is closed to new replies.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 4 replies
 * 2 participants
 * Last reply from: [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-errors-158/#post-11405148)
 * Status: resolved