Open_basedir Error
-
I have a web site with about 15 plugins but this plugin and two other plugins are producing a particular error whenever the admin menu is displayed. The error is
[21-Mar-2022 06:34:10 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(C:\Inetpub\vhosts\xxx\httpdocs/wp-content/plugins/https://www.monsterinsights.com/lite/) is not within the allowed path(s): (C:/Inetpub/vhosts/xxx\;C:\Windows\Temp\;C:\Inetpub\vhosts\xxx\httpdocs) in C:\Inetpub\vhosts\xxx\httpdocs\wp-admin\menu-header.php on line 256This line of code is
file_exists( WP_PLUGIN_DIR . “/$sub_file” )
and having checked this it appears “/$sub_file” contains a url rather than a file path.
As I say this happens for MonsterInsights and two other plugins (who I am also asking about it).
Are you able to suggest what might be causing this error which I assume must relate to how the plugins menus have been stored.
- The topic ‘Open_basedir Error’ is closed to new replies.