• Resolved Brad Johnson

    (@p4fbradjohnson)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rosell.dk

    (@roselldk)

    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

    (@roselldk)

    It is btw. PHP Notices – not Errors.

    Plugin Author rosell.dk

    (@roselldk)

    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

    Thread Starter Brad Johnson

    (@p4fbradjohnson)

    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.