jan-vince/smallcontactform

Error: Can't access Form Settings

Closed this issue · 4 comments

Hi, I'm getting an error while accessing the Contact Form Settings from the backend dashboard (/backend/system/settings/update/janvince/smallcontactform/settings).

Tried to fix it by changing the janvince_smallcontactform_settings item on the system_settings table from the DB but nothing happened and also reinstalled the whole package multiple times with no success on solving the error.

Screenshot 2023-04-19 at 12 06 29 PM

Is this on new installation or you have edited plugin's settings before the error?

Check your database:

  • table: janvince_smallcontactform_settings
  • row where column item has value janvince_smallcontactform_settings
  • in column value look for field record for form_fields (it's JSON)

form_fields should be an array

Solved! I tried many different forms of the form_fields (array, object, null) and it didn't worked. But then... I cleared cache and the error went away...
If I remember correctly the error started when I tried to create a new field on the form from the form settings and refreshed the page without saving which seemed very weird that I got the error afterwards since I didn't save anything.

Thanks for you help and great plugin, I use it a lot :)