I have an issue that is causing the error logs to grow massively each day.
[Thu Jan 30 08:55:55 2014] [warn] [client 2.102.44.72] mod_fcgid: stderr: PHP Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/inspartnership.org.uk/:/tmp/) in /var/www/vhosts/inspartnership.org.uk/httpdocs/wp-includes/functions.php on line 1366
(I know that is an old log - but the error hasn't changed.)
and this is the offending line in WordPress functions.php
$target_parent = dirname( $target );
while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
$target_parent = dirname( $target_parent );
}
Now the site functions fine (until the logs get too big and then I get a 500 error) - and I get what is going on to cause the problem - the site is on shared hosting and is trying to access a folder outside of it's reach - I just don't know how to fix it and to be honest don't know where to start!
Has anyone encountered this issue before and can point me in the right direction.
And can anyone help me identify what part of WordPress could be calling this function often enough to make such a massive log
Use simple words - I am being a little bit thick :-D
Thanks in advance