[SmartCrawl Pro] Many PHP notices bout Constant already defined

Yes, I’m aware I can disable debug logging. I’m just reporting so the cause gets fixed. Thank you.

PHP Notice: Constant HDOM_TYPE_ELEMENT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 45
PHP Notice: Constant HDOM_TYPE_COMMENT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 46
PHP Notice: Constant HDOM_TYPE_TEXT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 47
PHP Notice: Constant HDOM_TYPE_ENDTAG already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 48
PHP Notice: Constant HDOM_TYPE_ROOT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 49
PHP Notice: Constant HDOM_TYPE_UNKNOWN already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 50
PHP Notice: Constant HDOM_QUOTE_DOUBLE already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 51
PHP Notice: Constant HDOM_QUOTE_SINGLE already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 52
PHP Notice: Constant HDOM_QUOTE_NO already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 53
PHP Notice: Constant HDOM_INFO_BEGIN already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 54
PHP Notice: Constant HDOM_INFO_END already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 55
PHP Notice: Constant HDOM_INFO_QUOTE already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 56
PHP Notice: Constant HDOM_INFO_SPACE already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 57
PHP Notice: Constant HDOM_INFO_TEXT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 58
PHP Notice: Constant HDOM_INFO_INNER already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 59
PHP Notice: Constant HDOM_INFO_OUTER already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 60
PHP Notice: Constant HDOM_INFO_ENDSPACE already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 61
PHP Notice: Constant DEFAULT_TARGET_CHARSET already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 62
PHP Notice: Constant DEFAULT_BR_TEXT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 63
PHP Notice: Constant DEFAULT_SPAN_TEXT already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 64
PHP Notice: Constant MAX_FILE_SIZE already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 65

  • Patrick Freitas
    • FLS

    Hi Clifford P

    Thank you for reporting it.

    I tested it on my website, but I couldn’t replicate the issue.

    This warning happens when a plugin tries to define the same constant that we use on this file.

    We would need to find which plugin is causing the logs to replicate and check if the issue is on our plugin on any other plugin.

    Do you have a staging website for this website where the issue is happening, and we can take a closer look running some tests?

    Best Regards
    Patrick Freitas

  • Patrick Freitas
    • FLS

    Hi Clifford P

    Thank you for the support access.

    I checked the Dev website but I couldn’t find any page returning this warning:

    PHP Notice: Constant HDOM_INFO_OUTER already defined in /wp-content/plugins/wpmu-dev-seo/includes/external/simple_html_dom.php on line 60

    I used the Query Monitor plugin to test it.

    Would be possible to send the FTP credentials for staging website and we can check if any plugin has those constant too?

    Note: Please don’t share any sensitive information (i.e credentials) in the Support Forum.

    Instead, you can send us your details using our contact form https://wpmudev.com/contact/#i-have-a-different-question:

    Subject: “Attn: Patrick Freitas”

    – Site login URL:

    – WordPress admin username:
    – WordPress admin password:

    – FTP/SFTP credentials

    Host:
    Username:
    Password:
    Port:

    – cPanel credentials

    Host:
    Username:
    Password:

    – Folder path to the site in question:

    – Link back to this thread for reference

    – Any other relevant URLs/info:

    Please, reply to the ticket once you have sent the information.
    Best Regards
    Patrick Freitas

    • Laura Zeballos
      • Staff

      Hi fred ,

      Hope this message finds you well, and thanks for reaching us.

      This happens because the library simple_html_dom (which is being used in SmartCrawl) is also being called by a third-party plugin at the same time.
      This is something that our SmartCrawl team is aware of, so they might try to replace that library in the future which would address these conflicts.

      If you require us to check your site, kindly open a new ticket.

      Let us know if you require additional assistance.
      Kind Regards

    • Laura Zeballos
      • Staff

      Hi heidschnack ,

      Hope this message finds you well, and thanks for reaching us.

      As explained this is something that our SmartCrawl team is aware of, so they might try to replace that library in the future which would address these conflicts.

      If you are not using Query Monitor and these warnings are showing up on your Admin area, we strongly suggest turning off PHP display errors from your server, since it is not safe. You can also disable it by adding these lines of code on your wp-config.php file:

      define('WP_DEBUG',false);
      define('WP_DEBUG_DISPLAY', false);
      define('SCRIPT_DEBUG', false);
      ini_set('display_errors', 0); 

      If you require us to check your site, kindly open a new ticket and we will check further.

      Let us know if you require additional assistance.
      Kind Regards