Support » Plugin: Query Monitor » Use of undefined constant QM_HIDE_SELF

  • Hello,

    I am using Version 3.6.4 and receiving this notice:

    Use of undefined constant QM_HIDE_SELF - assumed 'QM_HIDE_SELF' (this will throw an Error in a future version of PHP)

    Do you know how to get rid of it?

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Where does this error display please?

    Are you using any add-on plugins for Query Monitor?

    Thread Starter retroriff

    (@retroriff)

    No add-on plugins. This is the location:

    wp-content/plugins/query-monitor/classes/Collector.php:225

    Hello, I have the same PHP error with the latest version of QM with no add-on plugins.

    I dug into this, and the error is thrown only if “WPML String Translation” plugin is active..

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for letting me know. That plugin has caused similar problems in the past. I think it tries to do some things too early in the load sequence.

    I’ll see if I can find some time to look into it.

    Thank you John! Glad I was helpful, please let us know if you find a solution!

    Happens to me as well.

    @johnbillion this is the stack trace, maybe it can help

    	-
    app/plugins/query-monitor/classes/Collector.php:225
    apply_filters('override_load_textdomain')
    load_textdomain()
    WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
    Posizione sconosciuta
    array_map()
    WPML\C\S\Collection->map()
    WPML\S\M\H\PreloadThemeMoFile->WPML\S\M\H\{closure}()
    WPML\C\S\Collection->each()
    WPML\S\M\H\PreloadThemeMoFile->add_hooks()
    WPML_Action_Filter_Loader->run_factory()
    WPML_Action_Filter_Loader->load_factory()
    WPML_Action_Filter_Loader->load_factory_or_action()
    WPML_Action_Filter_Loader->load()
    WPML\S\T\Hooks->install()
    WPML_ST_Initialize->loadEarlyHooks()
    WPML_ST_Initialize->run()
    do_action('plugins_loaded')
    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks @ciromattia , that’s very useful. I’ve seen many problems in the past with WPML or its add-on plugins loading textdomains too early in the load process.

    I’ll try to take a look but this isn’t a high priority for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Use of undefined constant QM_HIDE_SELF’ is closed to new replies.