- Plesk Onyx for Linux
- Plesk Onyx for Windows
The following error is found in the file
%plesk_dir%\admin\logs\php_error.login Plesk for Windows):
CONFIG_TEXT: DEBUG [extension/wp-toolkit] Generate a screenshot for instance #2
DEBUG [extension/wp-toolkit] Take a screenshot of 'https://www.example.com' using 'PleskExt\WpToolkit\Preview\Api\PleskSdk'
ERR [extension/wp-toolkit] Failed to generate screenshot of instance #101: Can not find domain by name 'www.example.com'
- The URL of the WordPress instance is shown as www.example.com in Plesk in Domains > example.com > WordPress.
- The option Preferred domain is set to www.example.com in Domains > example.com > Hosting Settings.
The screenshot for the affected WordPress instance is outdated or may be missing completely in Domains > example.com > WordPress:
- #EXTWPTOOLK-2799 "Screenshots can now be made for websites hosted on a domain without www. prefix if this prefix is present in the WordPress database as a part of the site URL."
- WordPress Toolkit 4.3.0 04 September 2019
Until the bug is fixed, use one of the workarounds:
Log into WordPress admin dashboard:
In the WordPress admin dashboard, go to Settings > General.
Change www.example.com to example.com in the options WordPress Address (URL) and Site Address (URL).
In Plesk, go to Domains > example.com > WordPress and click (Refresh) next to www.example.com.
Go to Domains > example.com > Hosting Settings.
Change the domain name in the field Domain name to www.example.com and click OK or Apply in the bottom of the page to save the changes.