• Resolved kamal5

    (@kamal5)


    hello i had upgrade wordpress 4.6 after upgrade getting error of Fatal error: Cannot use object of type WP_Error as array… /wp-includes/functions.php on line 3512 .
    please give solution fast its our online site .

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter kamal5

    (@kamal5)

    foreach ( $list as $key => $value ) {
    if ( is_object( $value ) ) {
    $list[ $key ] = $value->$field;
    } else {
    $list[ $key ] = $value[ $field ];
    }
    }
    return $list;
    }

    Try:
    – switching to the default theme automatically by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder and the wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    – running the upgrade manually via wp-admin/upgrade.php

    Fixed here, was the theme. Updated and all good.

    Thread Starter kamal5

    (@kamal5)

    not fixed of mine

    Thread Starter kamal5

    (@kamal5)

    i have $list[ $key ] = $value[ $field ]; remove of this line of 3511 after removed this showing jetpack error .. whats the matter … i want to downgrade previous version of wordpress.

    Hey there,

    Does the error still happen with all plugins deactivated?

    I really wouldn’t recommend downgrading WordPress as that will likely cause more harm than good.

    A similar problem has been reported on WordPress Trac, our bug filing platform. The fix will be included in 4.6.1

    You could apply the changes from there on your site to see if it fixes the issue, i.e. add if ( is_wp_error( $object_terms ) ) { return $object_terms; } on that one line in wp-includes/taxonomy.php. Not wp-includes/functions.php, but those two are related.

    Feel free to test this change and reply on the ticket if the change fixes your issue.

    The change didn’t work for me, although I wasn’t able to find the second file listed. I made the change only to taxonomy.php. Where’s the other file located?

    My problem was that apparently during the update, the index.php file in the root directory had it’s permissions changed to 666, and that’s too open for WordPress to work. I changed it to 644, and poof, back on line.

    The site itself is back on line, still can’t get access to admin…

    Last update – turns out that many of the files (almost all) in the wp-admin directory had permissions changed to 666. Changed them all to 644, and I’m now able to get into the WordPress backend.

    Thread Starter kamal5

    (@kamal5)

    hey guys thanks for feed back .. i had solved ..

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘wordpress error after update 4.6’ is closed to new replies.