#1 September 3, 2014 1:40pm

etherealclarity
Member
Registered: March 7, 2013
Posts: 27

Settings error when using an array of items

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

#2 September 3, 2014 1:42pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Settings error when using an array of items

What's your "options" column look like in MySQL for that setting?

Offline

#3 September 3, 2014 1:48pm

etherealclarity
Member
Registered: March 7, 2013
Posts: 27

Re: Settings error when using an array of items

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

#4 September 3, 2014 1:49pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Settings error when using an array of items

It looks like you may have gpc_magic_quotes on -- it's escaped all the quotes in the database.

Offline

#5 September 3, 2014 2:11pm

etherealclarity
Member
Registered: March 7, 2013
Posts: 27

Re: Settings error when using an array of items

Got it! My site was not loading the correct php.ini file. Thanks!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.