johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.58k stars 207 forks source link

Interference with W3 Total Cache due to "db.php" #852

Closed SemoTech closed 6 months ago

SemoTech commented 6 months ago

Hello,

Seems Query-Monitor (latest v3.15.0) creates a file called db.php located at: ..._/publichtml/wp-content/db.php which is actually a simlink to: ..._/publichtml/wp-content/plugins/query-monitor/wp-content/db.php

Now, W3 Total Cache puts up an error about "FTP credentials don't allow to copy to file .../public_html/wp-content/db.php" It is trying to issue this command which fails since the target file is a symlink: _cp /public_html/wp-content/plugins/w3-total-cache/wp-content/db.php /publichtml/wp-content/db.php

Is there any way for Query-Monitor to rename/use a different name, like "QMDB.php", as not to interfere with W3 Total Cache?

Thank you.

johnbillion commented 6 months ago

Unfortunately this is a limitation of WordPress itself. See https://querymonitor.com/help/db-php-symlink/#when-an-existing-db-php-file-is-already-in-place for a little more info.

SemoTech commented 6 months ago

Thanks @johnbillion. In my case this actually turned out to be a legacy symlink from InterWorx. Deleting it fixed the issue with W3 Total Cache!