Use of undefined constant DB_NAME – assumed ‘DB_NAME’
-
PHP Warning: Use of undefined constant DB_NAME – assumed ‘DB_NAME’ (this will throw an Error in a future version of PHP) in /wp-content/plugins/query-monitor/wp-content/db.php on line 140
In the db.php file you use this
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$wpdb = new QM_DB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );Should those be between ”? like…
$wpdb = new QM_DB( ‘DB_USER’, ‘DB_PASSWORD’, ‘DB_NAME’, ‘DB_HOST’ )
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Use of undefined constant DB_NAME – assumed ‘DB_NAME’’ is closed to new replies.