Maybe that will give you an error message and line number to go on. I can't see the problem on the page, so maybe the issue is with one of the include files.
I have been looking for several days but there I am lost
I made an email form in which I entered the recipient's address with a body file with dynamic value and everything works fine.
But when I added a query in the contact page to display the name of the site nothing works and the redirection does not happen.
I got this error message:
Warning: Cannot modify header information - headers already sent by (output started at /home/foyercul/www/contactez-nous.php:26) in /home/foyercul/www/webassist/email/WA_Email.php on line 405
Then I moved this line at the top off the contact page <?php require_once("webassist/email/WA_Email.php"); ?>, as you can see in the file, this message disappeared but another one is displayed :
Fatal error: Call to a member function query() on a non-object in /home/foyercul/www/webassist/mysqli/rsobj.php on line 215
When I want the recipient e mail from database to send it to one or 2 recipients in bcc the email is not sent
I have a main site in php 5.4 which I rewrite with databridge and a mobile site in subdomain on the same shared server OVH in php 7.03 and the problem is the same.
I just removed this : $Email->addTo("firstname.lastname@example.org");
To this : $Email->addTo("".($site->getColumnVal("mailcontact")) ."");
i received the email but i got this error and redirection don't work i have à blank page
Warning: Cannot modify header information - headers already sent by (output started at /home/foyercul/www/contactez-nous.php:34) in /home/foyercul/www/webassist/email/WA_Email.php on line 405
As soon as I remove any request everything is ok.