Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Fatal error: Cannot use string offset as an array

  • nikkione

    (@nikkione)


    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/

Viewing 1 replies (of 1 total)
  • jozik

    (@jozik)

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

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Cannot use string offset as an array’ is closed to new replies.