Support

Account

Home Forums Bug Reports Trying to access offset value of type bool Reply To: Trying to access offset value of type bool

  • I can confirm that 5.9.1… and, after an upgrade to 5.9.3, I’m getting a similar error.

    Code is pretty simple:

    // all other meta
    	if ( ! empty( $value ) ) {
    		update_field( $wp_postmeta, $value, $post_id );
    	} else {
    		delete_field( $wp_postmeta, $post_id );
    	}

    Errors reported:
    PHP Notice: Trying to access array offset on value of type bool in [local install]/wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php on line 279

    The field ( $wp_postmeta ) exists and has an ACF field key.

    Not sure where to go from here except converting it to delete_post_meta();.