Reply To: contact form will not work

Support Forums Gris – HTML Template contact form will not work Reply To: contact form will not work

#5544
Steve
Participant

i have contacted provider – no help there at all. I have put the path back and also the contact form, and now I am getting message_body_error on the form when I press send.
The logs show:
Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Notice: Use of undefined constant TEMPLATE_PATH – assumed ‘TEMPLATE_PATH’ in /home/itgroup/public_html/php/contact.php on line 30, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Warning: include(TEMPLATE_PATH): failed to open stream: No such file or directory in /home/itgroup/public_html/php/contact.php on line 30, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Warning: include(TEMPLATE_PATH): failed to open stream: No such file or directory in /home/itgroup/public_html/php/contact.php on line 30, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Warning: include(): Failed opening ‘TEMPLATE_PATH’ for inclusion (include_path=’.:/usr/share/pear:/usr/share/php’) in /home/itgroup/public_html/php/contact.php on line 30, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Notice: Use of undefined constant SMTP_HOST – assumed ‘SMTP_HOST’ in /home/itgroup/public_html/php/contact.php on line 40, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Notice: Use of undefined constant SMTP_USERNAME – assumed ‘SMTP_USERNAME’ in /home/itgroup/public_html/php/contact.php on line 42, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Notice: Use of undefined constant SMTP_PASSWORD – assumed ‘SMTP_PASSWORD’ in /home/itgroup/public_html/php/contact.php on line 43, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Notice: Use of undefined constant SUBJECT – assumed ‘SUBJECT’ in /home/itgroup/public_html/php/contact.php on line 45, referer: http://www.itgroup.net.au/
[Sat Oct 29 20:57:05 2016] [error] [client 1.129.97.116] PHP Notice: Use of undefined constant MSG_SEND_ERROR – assumed ‘MSG_SEND_ERROR’ in /home/itgroup/public_html/php/contact.php on line 58, referer: http://www.itgroup.net.au/

Last lines of Only show lines with text

<- Return to system logs