Contact us

Issues related to forms.
Post Reply
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Contact us

Post by PUBLIEDIT »

Hi there,
my website works very well, but today i republished the site and discovered that the page "contact us" isn't displayed, i have this message:
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in C:\Inetpub\vhosts\nomagras.com\httpdocs\nomagras-contacto.php on line 2

2 use PHPMailer\PHPMailer\PHPMailer;

how can this be solved?
thank you inadvance
Publiedit.com
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us

Post by Pablo »

Did you publish all files?
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Re: Contact us

Post by PUBLIEDIT »

yes!
Publiedit.com
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us

Post by Pablo »

Are you using PHP 5.5 or newer?
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Re: Contact us

Post by PUBLIEDIT »

Now it has 5.2 but we can change it.
What is the correct version you need?
Publiedit.com
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us

Post by Pablo »

You will need PHP 5.5 or newer. Preferable PHP 7.x

See also:
https://github.com/PHPMailer/PHPMailer
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Re: Contact us

Post by PUBLIEDIT »

We have already changed to the php 7 version, but it still does not work. Now the error does not appear before, but now the form does not send the information, it goes to the error page, you can see an example in this link:
http://www.nomagras.com/a.php


We have verified with the server operator and they have created a form with SMPT submission with the same data as ours and if it works for them, send the information, you can see it here:
http://www.nomagras.com/test33/

Please we need help......
Publiedit.com
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us

Post by Pablo »

You will need to enable PHP error logging on the server to find out why it does not work.
This can only be a configuration issue, so to be able to help you I need to know what the error is.

Note that I cannot see what you have done based on published page.
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Re: Contact us

Post by PUBLIEDIT »

I send you the error log link
http://www.nomagras.com/log.txt
Publiedit.com
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us

Post by Pablo »

I'm sorry, but this is not the PHP error log.
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Re: Contact us

Post by PUBLIEDIT »

I have looked at the PHP log and it does not reflect any errors.

Something must be happening with the latest version of wysin because I have edited a form from another website that I have that works perfectly and when editing it and uploading it to the server now it doesn't work anymore
Publiedit.com
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us

Post by Pablo »

I doubt that this is not related to the update. Form functionality has not changed.
If emails are not sent then this is usually (99.99%) a configuration issue. There has never been another reason.
There is nothing I can do to help you, if I do know the error message.
Please share the PHP error log.
GrahamW
 
 
Posts: 238
Joined: Sat Jul 08, 2017 5:02 am

Re: Contact us

Post by GrahamW »

maybe this could be of use to you, you can build you page with any extension eg; .html or .php and it will just work

https://www.shop.grahamscomputers.net/w ... ail-7.html

Graham
PUBLIEDIT
 
 
Posts: 8
Joined: Sat Jan 24, 2015 9:26 pm

Re: Contact us

Post by PUBLIEDIT »

OK thank you very much!!
Publiedit.com
Post Reply