Home > Uncategorized > WordPress 3.5+ open_basedir restriction infinite loop error & fixes.

WordPress 3.5+ open_basedir restriction infinite loop error & fixes.

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 );
        }

,

Leave a Reply

Your email address will not be published. Required fields are marked *

Trackbacks:0

Listed below are links to weblogs that reference
WordPress 3.5+ open_basedir restriction infinite loop error & fixes. from SF-Alpha o_O!
TOP