WebSite X5Help Center

 
Cynthia G.
Cynthia G.
User

Parse Error On Forms  en

Auteur : Cynthia G.
Visité 1615, Followers 3, Partagé 22  
Mots-clés :: 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.

Posté le
5 RéPONSES
Pcssa .
Pcssa .
Moderator

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

Lire plus
Posté le de Pcssa .
Cynthia G.
Cynthia G.
User
Auteur

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.

Lire plus
Posté le de 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.

Lire plus
Posté le de Luca S.
Cynthia G.
Cynthia G.
User
Auteur

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.    

Lire plus
Posté le de 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.

Lire plus
Posté le de Riccardo P.