• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved WordPress Toolkit - Different wp-content path

PetrusV

New Pleskian
Hi there,

For security reasons, I have changed the path for my wp-content location on all my wp sites to xyzabc-wp-content. It has served me well in avoiding numerous attacks over the years.

Of course, the new path is defined in my wp-config.php file and my sites work perfectly fine.

However, I cannot connect to WordPress Toolkit because it is trying to find the plugin in a location that does not exist. How can I rectify this?

Here is my error:
AH01071: Got error 'PHP message: PHP Warning: require_once(wp-content/plugins/wp-toolkit-management-plugin/wp-toolkit-management-plugin-agent.php): Failed to open stream: No such file or directory in /var/www/vhosts/mywebsite.com/httpdocs/wp-toolkit-entry-point.php on line 6PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'wp-content/plugins/wp-toolkit-management-plugin/wp-toolkit-management-plugin-agent.php' (include_path='.:/opt/plesk/php/8.0/share/pear') in /var/www/vhosts/mywebsite.com/httpdocs/wp-toolkit-entry-point.php:6\nStack trace:\n#0 {main}\n thrown in /var/www/vhosts/mywebsite.com/httpdocs/wp-toolkit-entry-point.php on line 6'
 
I found a way to make it work. I followed the Manual Connect steps:

1. Downloaded and installed the plugin
2. Edited the wp-toolkit-entry-point.php in root of wordpress site and changed line 6 to my custom path
require_once 'wp-content/plugins/wp-toolkit-management-plugin/wp-toolkit-management-plugin-agent.php';
becomes
require_once 'xyzabc-wp-content/plugins/wp-toolkit-management-plugin/wp-toolkit-management-plugin-agent.php';

3. Manually coppied the Plugin end-point URL & Security token found in my WordPress site under Settings, WPT Management Plugin Settings
4. Connected site successfully

Everything's connected and the site is now visible under WorPress Toolkit!
 
Dear Support Team,

The option works, but unfortunately, not all functions are unlocked, such as cloning, and security settings are also missing. Is there an update for this?

When I add an empty wp-content folder, everything is displayed correctly.
 
Back
Top