Page 1 of 1

Contact us

Posted: Thu Jan 09, 2020 3:10 pm
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

Re: Contact us

Posted: Thu Jan 09, 2020 3:14 pm
by Pablo
Did you publish all files?

Re: Contact us

Posted: Fri Jan 10, 2020 7:33 am
by PUBLIEDIT
yes!

Re: Contact us

Posted: Fri Jan 10, 2020 7:49 am
by Pablo
Are you using PHP 5.5 or newer?

Re: Contact us

Posted: Fri Jan 10, 2020 9:44 am
by PUBLIEDIT
Now it has 5.2 but we can change it.
What is the correct version you need?

Re: Contact us

Posted: Fri Jan 10, 2020 10:02 am
by Pablo
You will need PHP 5.5 or newer. Preferable PHP 7.x

See also:
https://github.com/PHPMailer/PHPMailer

Re: Contact us

Posted: Fri Jan 10, 2020 6:09 pm
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......

Re: Contact us

Posted: Fri Jan 10, 2020 6:17 pm
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.

Re: Contact us

Posted: Fri Jan 10, 2020 9:19 pm
by PUBLIEDIT
I send you the error log link
http://www.nomagras.com/log.txt

Re: Contact us

Posted: Fri Jan 10, 2020 9:50 pm
by Pablo
I'm sorry, but this is not the PHP error log.

Re: Contact us

Posted: Fri Jan 10, 2020 10:39 pm
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

Re: Contact us

Posted: Sat Jan 11, 2020 8:30 am
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.

Re: Contact us

Posted: Fri Jan 17, 2020 12:38 am
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

Re: Contact us

Posted: Sun Jan 19, 2020 10:19 am
by PUBLIEDIT
OK thank you very much!!