Tried to add an external form to my site and got an unexpected error message

Permalink
"An unexpected error occurred."
"Unable load external form block controller file: form2.html"

I received the above error message and I cannot access the site to edit or view. Is there anyone that can help to resolve this problem?

 
removemeplease replied on at Permalink Reply
removemeplease
Yeah, I am running into the same thing. Now I can't even view that page. Anyone with a helpful tip would be greatly appreciated.
removemeplease replied on at Permalink Reply
removemeplease
So I found this forum thread...

http://www.concrete5.org/community/forums/chat/external_forms_file_...

...which describes a process that seems to work for using an external form. However, as the OP did, my initial stab at an external form was creating an HTML file which means I'm at a loss as to how exactly I might create a PHP controller for it. Hmmm....
removemeplease replied on at Permalink Reply
removemeplease
SOLUTION!

Go into your Dashboard > Full Sitemap
Click on the page where you tried to add the external form and select Versions from the menu that pops up.
Select a previous version of the page, before you tried to add the external form, and click the Copy icon in the top right corner of the window.
Check the new copy (should be at the top of the list) and click the Approve icon in the top right corner of the window.

You just rolled back your page so there's no external form. Hooray! Now you can access it again. Hooray!

Now, here's a thread I found with the procedure for adding an external form so that things don't break. I just tried it and it works! Hooray x3!

http://www.concrete5.org/community/forums/chat/external_forms_file_...

One more note: It appears to take some time for the database to recognize changes to your external forms and their respective controllers, so take it slow and don't panic if you get a database error. Just walk away for a couple minutes, come back, and hit refresh.

Hope this helps.
mhawke replied on at Permalink Reply
mhawke
I'm intrigued by you last paragraph about the database taking a few minutes to recognize your new form. That sounds more like a caching issue. When making changes to your C5 website always make sure all the caching is turned off by going to 'Dashboard->System and Settings->Cache and Speed Settings' and turn them all off. Then clear the C5 cache and your browser's cache then refresh your browser with CTRL-F5. Sometime I've even had to view the page in a different browser to get the new content to show up. Caching is the bane of a developer's existence!
removemeplease replied on at Permalink Reply
removemeplease
Very true. I'd not messed with the cache. Good plan.