Fatal error on submit

megana 14 May, 2015
I've got a bunch of forms working fine on a site. I just tried to add a new one, but when I submit it, I get the dreaded blank page. I set error reporting to maximum and here is what I see:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Could not find template "".' in /home/myaccount/public_html/libraries/cms/application/site.php:537 Stack trace: #0 /home/myaccount/public_html/libraries/legacy/error/error.php(785): JApplicationSite->getTemplate() #1 /home/myaccount/public_html/plugins/system/redirect/redirect.php(191): JError::customErrorPage(Object(InvalidArgumentException)) #2 [internal function]: PlgSystemRedirect::handleError(Object(InvalidArgumentException)) #3 {main} thrown in /home/myaccount/public_html/libraries/cms/application/site.php on line 537

Help!
GreyHead 15 May, 2015
Answer
1 Likes
Hi megana,

Sorry, No idea, The error happens when Joomla! checks that the template exists. I've searched the ChronoForms files for the getTemplate() function and can't see it anywhere. Do you have any custom code on the form that might be using this?

I haven't seen this reported before so my best guess is that it is somehow related to your site setup :-(

Bob
megana 15 May, 2015
AHA! I had a field named 'template' on the form! Removed that and everything works again.

Thanks Bob, you gave me the key I needed to figure it out. 🙂
This topic is locked and no more replies can be posted.