Case: Staging and production copies of a WordPress 5.4 website on the same server. Activating QueryMonitor 3.9.0 on Staging work, but throws `Fatal error: Cannot declare class QM_PHP` on Production.
Solution
Remove the file: /wp-content/db.php
Source
- https://wordpress.org/support/topic/cannot-activate-query-monitor-php-error-cannot-redeclare-qm_php/
Did this solve your issue?
THIS WORKED FOR ME. HELP OTHERS BY VOTING HOW IT WORKED FOR YOU.
RIGHT NOW THIS HAS HELPED 0% WEBSITE VISITORS.
TOTAL VOTES: 2
RIGHT NOW THIS HAS HELPED 0% WEBSITE VISITORS.
TOTAL VOTES: 2