Using wp-toolkit, I registered and installed a new instance into the folder EXAMPLE.COM/wordpress. Afterwards, I changed my mind about this and wanted to put the installation back into the root folder.
I was under the impression that should be easy enough to do, but apparently it's not. Yesterday, I started with this:
Website "/httpdocs/wordpress" (example.com): Failed to reset cache for the instance #4: filemng: Failed to change directory to /var/www/vhosts/example.com/httpdocs/wordpress: No such file or directory
This doesn't sound too bad by itself, clearly the name must be updated in yet another place, that's all. Or at least that's how it should be, instead, I can no longer access any Wordpress instances form the Plesk control panel, I get the following error:
InstanceProperties.php:
Return value of PleskExt\WpToolkit\Db\Dictionary\InstanceProperties::getLastUpdateProposition() must be an instance of PleskExt\WpToolkit\Model\UpdateProposition, bool returned
It seems that the failed update led to another error that does not seem directly related. This actually looks like a bug in Plesk to me.
So, I guess I have two separate issues now:
Most importantly, how do I get rid of this error message and back into my WP Toolkit overview?
Secondly, can you confirm that in order to change the installation path, the following steps are sufficient:
I was under the impression that should be easy enough to do, but apparently it's not. Yesterday, I started with this:
- I logged into the WP Admin panel and manually changed the URL. After this, I could no longer reach the WP Admin site.
- In the vhosts folder on the Plesk system, I manually moved all files from ../httpdocs/wordpress to ../httpdocs. Now WP Admin would work again.
Website "/httpdocs/wordpress" (example.com): Failed to reset cache for the instance #4: filemng: Failed to change directory to /var/www/vhosts/example.com/httpdocs/wordpress: No such file or directory
This doesn't sound too bad by itself, clearly the name must be updated in yet another place, that's all. Or at least that's how it should be, instead, I can no longer access any Wordpress instances form the Plesk control panel, I get the following error:
InstanceProperties.php:
Return value of PleskExt\WpToolkit\Db\Dictionary\InstanceProperties::getLastUpdateProposition() must be an instance of PleskExt\WpToolkit\Model\UpdateProposition, bool returned
It seems that the failed update led to another error that does not seem directly related. This actually looks like a bug in Plesk to me.
So, I guess I have two separate issues now:
Most importantly, how do I get rid of this error message and back into my WP Toolkit overview?
Secondly, can you confirm that in order to change the installation path, the following steps are sufficient:
- Change path in WP Admin panel
- Manually correct path in /var/www/vhosts/mysite
- In wp-toolkit.sqlite3, in table Instances, change "path" to reflect the new path.