Forums

Parse error: syntax error, unexpected '-', expecting ',' or

laurentmartin 07 May, 2011
Hello,

I am using plugin multipage to upload data in the database.

I have this error displaying on the page :

Parse error: syntax error, unexpected '-', expecting ',' or ';' in home/mywebsite/public_html/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 30

Any idea how i can solve this problem ?

It appears that data are not loaded in the database finally
GreyHead 07 May, 2011
Hi laurentmartin,

You probably have a dash '-' in one of your input names. Dashes give ChronoForms and MySQL problems. Please rename the input using only [a-z], [A-Z], [0-9] or underscore '_'. No dashes, spaces or other special characters.

If this is the problem you'll also need to rename the matching column in the database table and the refresh the DB Connection (see below).

Bob

You need to refresh the DB Connection after any changes to database column names. In the Form Editor click the DB Connection tab and set the Connection to 'No'. Click the 'Apply icon in the toolbar to save the form, open the DB Connection tab, set the Connection back to 'Yes' and re-save the form. This will refresh the copy of the table information that ChronoForms uses.
laurentmartin 08 May, 2011
Hi Bob,

I have checked i have no name with dash in the field.

I have checked separately in any individual form and I don't get this error.

This only in the multipage one and ONLY when i activate the database connection of the multipage mother form to YES

Any other idea ?
GreyHead 08 May, 2011
Hi laurentmartin,

Maybe in the form name then?

Bob
laurentmartin 09 May, 2011
Hi Bob,

I don't have any dash or hyphen in my form name neither.

SO I have no idea where the problem is coming from.
GreyHead 09 May, 2011
Hi laurentmartin,

Hmmm . . . PHP thinks that there is an unexpected dash somewhere.

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 09 May, 2011
Hi Laurent martin,

In the General form you have a name with spaces in it name="order_applicant company name"

In the database you have the same column name with spaces. You also have a column name with a dash order-need_lc

Please fix these and see if that also fixes the error.

I'll take a look at the other question shortly.

Bob
GreyHead 09 May, 2011
Hi laurentmartin,

And do you still get the error?

Bob
laurentmartin 09 May, 2011
Hi Bob,

I mean I have sent to you password and login .

The problem is not corrected.
GreyHead 09 May, 2011
Hi laurentmartin,

OK . . . but have you fixed the problems I found? See my earlier post from 09:08

Bob
laurentmartin 09 May, 2011
Hi Bob,

Thanks for highlighting the problem. I have corrected the field indeed.

Now i have another problem unfortunately.

I have put the form in debug on form.

After i fill the two forms when it is about to update the database, then i get this :

Warning: implode() [function.implode]: Invalid arguments passed in /mywebsite/libraries/joomla/database/database/mysql.php on line 540
GreyHead 09 May, 2011
Hi laurentmartin,

You probably need to refresh the DB Connection after the changes to database column names. In the Form Editor click the DB Connection tab and set the Connection to 'No'. Click the 'Apply icon in the toolbar to save the form, open the DB Connection tab, set the Connection back to 'Yes' and re-save the form. This will refresh the copy of the table information that ChronoForms uses.

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

VPS & Email Hosting 20% discount
hostinger