Post by scottdog129 » Wed Dec 09, 2015 3:33 am

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

New member

Posts

Joined
Thu Aug 01, 2013 10:01 am

Post by viethemes » Wed Dec 09, 2015 9:07 pm

To fix it, you can open file system\library\mail.php
find

Code: Select all

foreach ($config as $key => $value) {
and replace with

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


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by scottdog129 » Thu Dec 10, 2015 6:37 am

That was it!! Thanks so much! Where do you change the structure of the email the customer gets?

Thanks again!

New member

Posts

Joined
Thu Aug 01, 2013 10:01 am

Post by ArcherData » Thu Dec 10, 2015 9:59 am

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.

Don Bledsoe


User avatar
New member

Posts

Joined
Mon Dec 24, 2012 4:30 am
Location - Cherryvale, KS
Who is online

Users browsing this forum: No registered users and 70 guests