Invalid file path with URL causing PHP errors…
-
Hi,
I’ve been tracking a problem then has been generating PHP errors and slowing the admin section og the site down.
I’ve tracked it down to the Nested Pages plugin.
As soon as it is activated these errors start appearing in the PHP error log:
[20-Jan-2021 08:46:06 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\Plesk\Vhosts\domain.co.uk\httpdocs/wp-content/plugins/https://www.domain.co.uk/wp-admin/admin.php) is not within the allowed path(s): (D:/Plesk/Vhosts/domain.co.uk\;C:\Windows\Temp\) in D:\Plesk\Vhosts\domain.co.uk\httpdocs\wp-admin\menu-header.php on line 164
[20-Jan-2021 08:46:06 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\Plesk\Vhosts\domain.co.uk\httpdocs/wp-content/plugins/https://www.domain.co.uk/wp-admin/admin.php) is not within the allowed path(s): (D:/Plesk/Vhosts/domain.co.uk\;C:\Windows\Temp\) in D:\Plesk\Vhosts\domain.co.uk\httpdocs\wp-admin\menu-header.php on line 256
[20-Jan-2021 08:46:06 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\Plesk\Vhosts\domain.co.uk\httpdocs/wp-content/plugins/https://www.domain.co.uk/wp-admin/post-new.php) is not within the allowed path(s): (D:/Plesk/Vhosts/domain.co.uk\;C:\Windows\Temp\) in D:\Plesk\Vhosts\domain.co.uk\httpdocs\wp-admin\menu-header.php on line 256The actual file path contains a URL, which can never be correct.
As soon as the plugin is deactivated the errors stop.The site is hosted on a Windows IIS 2016 server.
PHP 7.4.14I hope you can help.
Cheers
Paul
- The topic ‘Invalid file path with URL causing PHP errors…’ is closed to new replies.