I was testing my contact form and got this error when submitting:
Warning: Invalid argument supplied for foreach() in /home2/clutchin/public_html/system/library/mail.php on line 22Warning: Cannot modify header information - headers already sent by (output started at /home2/clutchin/public_html/index.php:98) in /home2/clutchin/public_html/system/library/response.php on line 12
The email goes through fine, but I get this error on the screen.
Any help would be appreciated. TIA.
Scott
Warning: Invalid argument supplied for foreach() in /home2/clutchin/public_html/system/library/mail.php on line 22Warning: Cannot modify header information - headers already sent by (output started at /home2/clutchin/public_html/index.php:98) in /home2/clutchin/public_html/system/library/response.php on line 12
The email goes through fine, but I get this error on the screen.
Any help would be appreciated. TIA.
Scott
To fix it, you can open file system\library\mail.php
find
and replace with
find
Code: Select all
foreach ($config as $key => $value) {
Code: Select all
foreach ((array)$config as $key => $value) {
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
That was it!! Thanks so much! Where do you change the structure of the email the customer gets?
Thanks again!
Thanks again!
In catalog/view/theme/default/template/mail/order.tpl
I edited mine to make cosmetic improvements and attached it in case you'd like to use it or make your own alterations. This template looks good in an email and prints nicely.
I edited mine to make cosmetic improvements and attached it in case you'd like to use it or make your own alterations. This template looks good in an email and prints nicely.
Don Bledsoe
Who is online
Users browsing this forum: No registered users and 70 guests