I’ve got a custom post type with two flex fields on it for adding layouts to two different areas of the page.
The trouble is, when after I publish the page after adding ANY fields to either of these flex fields, the don’t save. Where they should be I get this error for each row layout that’s missing:
Warning: Illegal string offset 'acf_fc_layout' in .../wp-content/plugins/advanced-custom-fields-pro/pro/fields/flexible-content.php on line 232
There are other flex content fields on my site that work fine.
A bit more information; I’ve determined that the issue is caused by the flexible fields being under a tab.
For some reason the flexible content field works as soon as I pull it out into the first tab rather than a sub tab.
Could it be something to do with the flex field being hidden on load by the tabs?
same issue w/ 126.96.36.199
first two flexible content modules work great, the third is what throws up the error:
Warning: Illegal string offset 'acf_fc_layout' in /Users/harbinger-air/Dropbox/sites/bootstrap/wp-content/plugins/advanced-custom-fields-pro/pro/fields/flexible-content.php on line 232
for reference, i have a flex content field w/ various layouts (col_6,col_4 etc…) each layout has tabs for each column to keep things tidy for clients.
this issue only affects the third column – all columns follow the same structure and have the same options (img, plain text or wysiwyg).
With version 5.3.5 i have the same problem:
Warning: Illegal string offset ‘acf_fc_layout’ in C:\MAMP\htdocs\pulkus2.dev\wp-content\plugins\advanced-custom-fields-pro\pro\fields\flexible-content.php on line 233
it is flexible-content under a tab.
The error shows up in wp-admin when i publish the page.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.