You are not logged in.
Hello -
I just attempted to create a setting with an array of items. I added the items in the array and hit save and then saved the setting, but when I try to edit the setting I get the following error:
Fatal error: Array of Items field type requires at least one field. in ../core/admin/form-field-types/draw/array.php on line 8
I have tried to go back in to the setting and re-add the array items a few times, with no luck. It just does not seem to be saving! How can I troubleshoot/fix this?
Offline
What's your "options" column look like in MySQL for that setting?
Offline
It has text in it, see below:
{\"fields\":[{\"key\":\"badgetitle\",\"title\":\"Badge Name\",\"type\":\"text\"},{\"key\":\"badgeid\",\"title\":\"Badge ID\",\"type\":\"text\"},{\"key\":\"badgeimage_active\",\"title\":\"Badge Image URL (active)\",\"type\":\"text\"},{\"key\":\"badgeimage_inactive\",\"title\":\"Badge Image URL (inactive)\",\"type\":\"text\"}]}
Offline
It looks like you may have gpc_magic_quotes on -- it's escaped all the quotes in the database.
Offline
Got it! My site was not loading the correct php.ini file. Thanks!
Offline