WordPress.org

Ready to get started?Download WordPress

Forums

Error updating anything through WordPress 2.7 (2 posts)

  1. xChristina80x
    Member
    Posted 5 years ago #

    Hello!

    When trying to update anything through WordPress itself (like the plugins) I get the following error:

    Fatal error: Cannot unset string offsets in /public_html/wp-admin/includes/file.php on line 682

    Lines 680 - 684 are the following:

    if ( ! $error && !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) {
    		$stored_credentials = $credentials;
    		unset($stored_credentials['password'], $stored_credentials['private_key'], $stored_credentials['public_key']);
    		update_option('ftp_credentials', $stored_credentials);
    		return $credentials;

    Does anyone know how to fix this problem?

  2. bookchiq
    Member
    Posted 5 years ago #

    See this thread. It worked for me.

Topic Closed

This topic has been closed to new replies.

About this Topic