WordPress 3.5+ open_basedir restriction infinite loop error & fixes.

Filed in Uncategorized Leave a comment

It’s just n00b wordpress developer make this happen.

--- functions.php.orig  2014-06-20 11:10:53.559602000 +0700
+++ functions.php       2014-06-20 11:40:31.235602000 +0700
@@ -1422,7 +1422,7 @@

        // We need to find the permissions of the parent folder that exists and inherit that.
        $target_parent = dirname( $target );
-       while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
+       while ( '/' != $target_parent && '.' != $target_parent && ! is_dir( $target_parent )) {
                $target_parent = dirname( $target_parent );
        }

,

TOP