• I created a new field inside a repeater field. When I try to edit the custom post type, I get this error:

    PHP Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /wordpress/wp-content/plugins/advanced-custom-fields-font-awesome/fields/acf-font-awesome-v6.php:219

    Is it generally not possible to use the field within a repeater field or is this a bug? Many thanks for your help in advance!

    WordPress: 6.7.2
    Advanced Custom Fields PRO: 6.3.12
    Advanced Custom Fields: Font Awesome: 4.1.2

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    This plugin does support repeaters. However you are definitely also seeing a bug. From the error you are seeing, it seems like there is already a value stored in the database under the ACF field key you are using for that icon field on the page that you are editing. And the format of that value is unexpected by this plugin and showing that error.

    If it lets you select an icon and save the post you are editing, I’d expect the error to go away. In the next update this plugin probably needs to do more checking on the value in the DB before trying to json_decode() it.

    • This reply was modified 3 weeks, 1 day ago by Matt Keys.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.