WebSite X5Help Center

 
Cynthia G.
Cynthia G.
User

Parse Error On Forms  en

Autore: Cynthia G.
Visite 1771, Followers 3, Condiviso 22  
Parole Chiave: error,forms,parse

Hi,

I uploaded my website to the server.

When I attempt to use two of the forms I created, I receive the following error message:

Parse error: Syntax error, unexpected $end in /home/website/public_html/test/res/imemail.inc.php on line 81

When I attempt to use a third form I created, I receive a different error message:

Parse error: Syntax error, unexpected $end in /home/website/public_html/test/files/mail_p014_8_00.php on line 35

Any thoughts on how to correct these errors?

Thanks very much for your help.

Cynthia G.

Postato il
5 RISPOSTE
Pcssa .
Pcssa .
Moderator

. . . PHP 5.x is on server and working ?

Leggi di più
Postato il da Pcssa .
Cynthia G.
Cynthia G.
User
Autore

Hi,

Yes. 

My husband got the parse error to go away by inserting slashes before the following lines (79-83) in the imemailinc.php. file as follows:

//else if($this->text == "") {
   //$headers .= "Content-Type: text/html; charset=" . $this->charset . "\r\n";
   //$headers .= "Content-Transfer-Encoding: 8bit\r\n";
   //$msg .= $this->html . "\r\n\r\n";
   //}

Cynthia G.

Leggi di più
Postato il da Cynthia G.
Luca S.
Luca S.
User

Hello Cynthia,

Can send us the URL of your website? We try to made a test of your form email.

Leggi di più
Postato il da Luca S.
Cynthia G.
Cynthia G.
User
Autore

Hi Luca,

The form email is now working because my husband modified the imemail.inc file by commenting out the section that was causing the error message.  I uploaded the modified imemail.inc file to the server.  So, if you were to test the site, you would see that it is working now.  

Would you like me to upload the old imemail.inc file to see the error occur?  If so, can we please change this interaction to private?

Cynthia G.    

Leggi di più
Postato il da Cynthia G.
Incomedia
Riccardo P.
Incomedia

Hi Cynthia,

if you want you can set this post as private.

Try to change the script of the sending mail in the "Preference" page of the program.

Leggi di più
Postato il da Riccardo P.