• Resolved darioesse

    (@darioesse)


    Hi,

    I encountered a PHP deprecation issue while using Query Monitor on a server running PHP 8.0. Here’s the detailed information:

    Error Message:
    Constant E_STRICT is deprecated in wp-content/plugins/query-monitor/collectors/environment.php:64

    Steps to Reproduce:

    1. Install Query Monitor on a WordPress site (version 6.3.1).
    2. Use PHP 8.0 or higher.
    3. Load any page or the WordPress dashboard.

    onstant E_STRICT is deprecated-

    1. wp-content/plugins/query-monitor/collectors/environment.php:64
    2. constant()
      wp-content/plugins/query-monitor/collectors/environment.php:64
    3. do_action('shutdown')
      wp-includes/load.php:1279
    4. shutdown_action_hook()
      wp-includes/load.php:1279

    Temporary Fix:
    To temporarily resolve this issue, I commented out the following line in environment.php:
    `php<br>if (constant(‘E_STRICT’)) { … }</p>

    • This topic was modified 1 month, 1 week ago by darioesse.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.