formtools / core

The Form Tools Core.
https://formtools.org
205 stars 78 forks source link

Call to undefined function smarty_modifier_custom_format_date() #345

Open HarborSide opened 5 years ago

HarborSide commented 5 years ago

In the upgraded form tools 3.06, I am using the form builder, I receive an error when I click to "edit" an entry that's already been submitted. The error reads, "Fatal error: Call to undefined function smarty_modifier_custom_format_date() in .." and then it gives the directory path.

Can you assist with with identifying the issue (please). Thank you, HarborSideS

benkeen commented 5 years ago

Sorry for the wait, @HarborSide - just been out of town.

I played around with it but couldn't reproduce the problem. To be clear: you're navigating to the form within Form Tools, viewing some submissions then editing one of them & it throws that error? Couple of other questions:

Just FYI, the smarty_modifier_custom_format_date is a custom function that's used in the Form Tools templates to display a formatted date. It should be included as part of the core so it's kind of odd it's not found in your case.

HarborSide commented 5 years ago

I appreciate your message. I upgraded to the new form tools, everything launched successfully. We switched web hosts (and therefore servers) so I moved everything over. I can log in to the form successfully and see all submissions as before. From them, when I click "view" and "edit" on any stored entry, I get the error. If I try to change datepicker to "date" under 'special fields' in drop down, I can no longer view all of the elements of an entry, except for the Submission ID, so then I set date box back to "textbox" to see all of the elements again; however the error remains. Fatal error: Call to undefined function smarty_modifier_custom_format_date() in /ft/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php(52) : eval()'d code on line 63