Custom Form Error after 5.0.1.1 Upgrade


(Nic Hubbard) #1

Overall the upgrade to 5.0.1.1 went really smooth. But, we just had a report of a Custom Form not working. It loads about half the page then stops rendering content. Errors that are shown in the error log:

14:40:50 - 22 May
User: Public User (7)
Level: PHP Notice(/core/assets/form/form_question_types/form_question_type_datetime/form_question_type_datetime.inc:295) - Undefined offset: 1Raw Entry:[22-May-2014 14:40:50] PHP Fatal error: Call to a member function useFieldset() on a non-object in /opt/matrix/packages/cms/form/form/form.inc on line 4539

Any ideas on what could be going on here or how to fix this?


(Nic Hubbard) #2

I fixed it. Looks like it was caused due to some commented out field keywords for fields that no longer existed. Strange, since this didn't cause the error in previous versions.

 

Oh well, it is fixed now!


(Dcook) #3

I came across this exact same situation, and it was a pain to fix! Thanks for the tip to look at form keywords.

I've raised a bug so this doesn't have to happen again.