WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Fatal error: Cannot use string offset as an array (2 posts)

  1. nikkione
    Member
    Posted 1 year ago #

    At first i have the issue:

    Warning: Invalid argument supplied for foreach() in /path/wp-content/plugins/types/embedded/admin.php on line 423
    Warning: Invalid argument supplied for foreach() in /path/to/wp-content/plugins/types/embedded/includes/fields.php on line 76
    Warning: Invalid argument supplied for foreach() in /path/to/wp-content/plugins/types/embedded/classes/conditional.php on line 82

    I fixed it, but when i tru to create a custom field i see this:

    Warning: array_key_exists() expects parameter 2 to be array, string given in /path/wp-content/plugins/types/embedded/types.php on line 183 Warning: array_key_exists() expects parameter 2 to be array, string given in /path/wp-content/plugins/types/embedded/types.php on line 183 Warning: array_key_exists() expects parameter 2 to be array, string given in /path/wp-content/plugins/types/embedded/types.php on line 192 Fatal error: Cannot use string offset as an array in /path/wp-content/plugins/types/embedded/admin.php on line 447

    Please help me.
    (wp 3.5.1 types 1.2 php5.4)

    http://wordpress.org/extend/plugins/types/

  2. Srdjan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi nikklone, we included fix for this.
    is_array( $fields )
    is needed in few places.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic