2013-09-07

The plugin admin panel works fine until I attempt to validate the settings;

So if I remove the // array($this, 'jo_validate_settings') // from the register_setting line my text boxes function fine. But when I add that validation code, it breaks them and returns this error;

*Warning: Illegal string offset 'jo_col_1_name' in /Applications/MAMP/htdocs/wp-content/plugins/plugin-rough.php on line 82*

The boxes are here:

I did some reading online and found something semi relevant, someone saying that the keys were the same and I needed to change $this to &$this for it to function. I tried it and nothing happened, same errors.

Any ideas?

Additionally: Is it necessary to use add_settings_field for each additional field I want to add? Seems like I will be adding a very large amount of these.

var_dump shows me this:

Show more