Support

Account

Forum Replies Created

  • Hi, thanks for getting back.. It has been a while so I am a bit fuzzy.

    I am pretty sure my problem went away after the upgrade from 5.0.1 to 5.0.2, IIRC..

    Anyway, it works for me know.

    BTW, I am just using a desktop..

  • Yes, Thank You Elliot, being new to ACF I sure am stoked how quickly you have responded to this issue!

  • I hacked api-field.php with the following snippet to stop the stack trace and allow me to access the back end again until the update with the fix is released.

    It just checks to see if $groups in an array, in this case the value for conditional_logic was an int. The error happened because the code was trying to do a foreach() on the non array.

    
    		if ( is_array ( $groups) ) {
    
      			// remove empty rules
    			foreach( $groups as $group ) {
    			
    				if( !empty($group) ) {
    				
    					$field['conditional_logic'][] = $group;
    				
    				}
    			}
    
    		} else {
    
    			$field['conditional_logic'][] = $group;
    
    		}
    

    I am sure this is not a fix, rather just a band-aid to stop the bleeding. It does give me access to wp-admin again 🙂

Viewing 3 posts - 1 through 3 (of 3 total)