Forums

Error after saving form

babo 20 Oct, 2009
Hello!

I just created a form in the wizard and saved it.
In the menu 'forms management' I tried to edit the form, but clicking on the form name leads to a blank page... But strangely I can still edit an other form I created earlier this week.

Does anybody know what I am doing wrong?

Thanks, Bauke
GreyHead 21 Oct, 2009
Hi Bauke,

The latest version of ChronoForms tries to evaluate your form when you save a form. Max did this to improve the extraction of input names but it has some nasty side-effects. One of which is that if you have any PHP errors in your form code you get a blank page or an error message.

This is most likely what is happening here.

You can prevent the evaluation by adding
<?php
if ( !$mainframe->isSite() ) return;
?>
near the beginning of your Form HTML.

Bob

PS If you need to get ChronoForms to recognise input names that it can't see because they are created in PHP or in an included file then you can add
<!-- name='some_name' name='some_other_name' -->
in the Form HTML box.
babo 21 Oct, 2009
Hi Bob,

Thanks for your reply, but how can I add the php-code if I cannot edit the form in 'forms management'?

Bauke
GreyHead 21 Oct, 2009
Hi Bauke,

Sorry, I misread your message. I don't know the answer to that - looks as if some kind of error is being triggered on the form loading which is more unusual, in fact I don't remember that recently at all.

You can access the form HTML in the database table and see if you can spot any errors in the code. Or you could delete the form and start over.

Can you take a form backup? If so, zip it up and post it here or email it to me and I'll take a quick look.

Bob
GreyHead 22 Oct, 2009
Hi Bauke,

Well, the good and the bad news is that I can see absolutely nothing wrong with the form. It restores, displays, edits and saves with no errors at all (testing in Joomla 1.5.14)

Try restoring (and then renaming) the copy you sent to me and see if that works OK. If not then I'm not sure what is happening.

Bob
babo 22 Oct, 2009
That does not seem to work at all...
I tried to copy the html in an old form that worked well. Unfortunately that made the old form unclear as well. So it seems there is a problem with the html of the form.
When you say you did not see anything special in the form I send you, I think I have to start over...
GreyHead 22 Oct, 2009
Hi Bauke,

If the form is on-line and it's OK with you then by all means PM or email me a SuperAdmin login and I'll take a quick look

Bob
This topic is locked and no more replies can be posted.