Forums

Error Code on Submit

matthew28 06 Apr, 2011
Good morning,

I'm getting the following error when hitting "Submit" on a newly-created form.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/40/5102840/html/administrator/components/com_chronoforms/form_actions/db_save/db_save.php(44) : eval()'d code on line 10

Fatal error: Call to a member function bind() on a non-object in /home/content/40/5102840/html/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 67


Thanks for your help and assistance.

Matthew
GreyHead 06 Apr, 2011
Hi matthew28,

That looks like a problem with one of the column names in the database. Do any of your column names have dashes, spaces or any other special characters in them?

Bob
matthew28 06 Apr, 2011
I went back to check and I did have some spaces in some Field Names. I removed those where needed.

I saved the form again after editing and tested it again.

I received the same error as above again.

Regards,

Matthew
GreyHead 06 Apr, 2011
Hi Matthew,

Have you also changed the database table column names to match?

Bob
matthew28 07 Apr, 2011
Hi Bob,

Since this was a new form, I just created a new table for it and I'm not receiving the errors any more.

I have now run one issues flowing down the "Events"

The Thank You Message page that shows up after a "Submit". I have a video that I'd like to use on that page. I've tried using this code:

<object width="640" height="390">
<param name="movie" value="http://youtu.be/DoFHS4Db5to" />
<embed src="http://youtu.be/DoFHS4Db5to"
  type="application/x-shockwave-flash" width="640" height="390" />
</object>


But it just leaves an open space on the page. So I tried using Google's code:

<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/DoFHS4Db5to" frameborder="0" allowfullscreen></iframe>


And I get nothing.

BTW, I can create a separate posting for this issue if you'd like.

Thanks for your continued support, I really do appreciate your time and assistance.

Regards,

Matthew
GreyHead 07 Apr, 2011
Hi Matthe28,

I think that either of those video codes should work Ok. :-( Please post a link to the form so we can take a quick look.

Bob
GreyHead 08 Apr, 2011
Hi matthew28,

I can get either of the 'official' You Tube embed codes to work in a test form
<object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/DoFHS4Db5to?fs=1&hl=en_GB"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DoFHS4Db5to?fs=1&hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="390"></embed></object>


<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/DoFHS4Db5to" frameborder="0" allowfullscreen></iframe>


Looks as though the problem may be with the youtu.be shortener.

Bob
matthew28 08 Apr, 2011
I agree.

Thank you very much.

Regards,

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