PHP warning in Query monitor
-
I’m got the following warnings:
[13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_USER – assumed ‘DB_USER’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139
[13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_PASSWORD – assumed ‘DB_PASSWORD’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139
[13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_NAME – assumed ‘DB_NAME’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139
[13-May-2020 05:06:02 UTC] PHP Warning: Use of undefined constant DB_HOST – assumed ‘DB_HOST’ (this will throw an Error in a future version of PHP) in /home3/travgal/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 139The code on line 139 is:
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$wpdb = new QM_DB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );Is this really a problem? If so, how can I fix it?
Thanks.
The page I need help with: [log in to see the link]
- The topic ‘PHP warning in Query monitor’ is closed to new replies.