Deprecated: E_STRICT constant in Query Monitor on PHP 8.0+
-
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:
- Install Query Monitor on a WordPress site (version 6.3.1).
- Use PHP 8.0 or higher.
- Load any page or the WordPress dashboard.
onstant E_STRICT is deprecated-
- wp-content/plugins/query-monitor/collectors/environment.php:64
constant()
wp-content/plugins/query-monitor/collectors/environment.php:64do_action('shutdown')
wp-includes/load.php:1279shutdown_action_hook()
wp-includes/load.php:1279
Temporary Fix:
To temporarily resolve this issue, I commented out the following line inenvironment.php
:`php<br>if (constant(‘E_STRICT’)) { … }</p>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.