wordpress
wordpress copied to clipboard
Shifting site directory does not update proxy file path
I recently migrated a site from one server to another and the WordPress path changed, eg from /home/admin/mysite/public to /home/site.com/public/.
The Plausible plugin with Proxy enabled does not update it's stored path, even when toggling the "Enable Proxy" setting.
This can be fixed with:
UPDATE wp_options
SET option_value=REPLACE(
option_value,
'/home/admin/mysite/public/',
'/home/site.com/public/')
WHERE option_name='plausible_analytics_proxy_resources';
It appears the file is then next downloaded to the correct location when the cron runs.
One strange thing to note is the UI will hide the full path when it is the same as the current site, so it showed the full path in the UI when the error was happening, but once I resolved it only wp-content/uploads/3ecc9bfdab/88283873.js was shown for the filesystem path.
Thanks for the great plugin!