• Resolved uorhq

    (@uorhq)


    I have been having this error for about 5 days now, i have tried everything to fix it and i just can’t. This error just appeared randomly and won’t go away i even backed up my database, deleted all of my WordPress files then put in brand new word press files then re uploaded my database and the error came back!

    heres the section of coding with my error

    /**
     * Unserialize user metadata, fill $user object, then cache everything.
     *
     * @since 3.0.0
     * @param object $user The User object.
     * @param array $metavalues An array of objects provided by get_user_metavalues()
     */
    function _fill_single_user( &$user, &$metavalues ) {
    	global $wpdb;
    
    Line 721: foreach ( $metavalues as $meta ) {
    		$value = maybe_unserialize($meta->meta_value);
    		// Keys used as object vars cannot have dashes.
    		$key = str_replace('-', '', $meta->meta_key);
    		$user->{$key} = $value;
    	}

    Has anyone else ever had this error, can anyone help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Had something similar when changed from one theme to another. The new theme was not reading the categories from the previous content. Maybe that? Same code foreach()

    Thread Starter uorhq

    (@uorhq)

    I don’t believe that is my problem considering i have had my current theme for awhile

    Thread Starter uorhq

    (@uorhq)

    fixed the error found out it the user id part of wproot_users in the database was missing

    tfraley

    (@tfraley)

    uorhq,

    Im having the same issue.

    Could you elaborate how you fix’d hit..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘invalid argument supplied foreach()…..wp-includes/users.php line 721’ is closed to new replies.