Getting "PHP warning: is_readable (): open_basedir restriction". When loading a wordpress theme

I load the purchased theme into wordpress, but keep getting this error:

PHP Warning:  is_readable(): open_basedir restriction in effect. File(G:\localhost\root\website\wordpress/wp-content/plugins/G:/\localhost\root\website\wordpress/wp-content/themes/cacoon/inc/languages/portfolioposttype-en_US.mo) is not within the allowed path(s): (G:\localhost\root;C:\Windows\Temp\) in G:\\localhost\root\website\wordpress\wp-includes\l10n.php on line 457

/ root / website refers to the structure inside the hosting account, where I host several sites in one account, i.e. mainhostsite.com/otherSiteOnTheSameAccount.com

This is the state on line 457:

if ( !is_readable( $mofile ) ) return false;

$mo = new MO();
if ( !$mo->import_from_file( $mofile ) ) return false;

if ( isset( $l10n[$domain] ) )
    $mo->merge_with( $l10n[$domain] );

$l10n[$domain] = &$mo;

return true;
}

Can someone shed some light on what I need to do to fix this error? (Apologies if the way I posed the question is not the best, if someone can tell me how to structure it correctly, it would be very grateful.)

+5
source share
1 answer

, none open_basedir PHP plesk.

+14

All Articles