Zen Cart Logo
Forums / General Questions / Illegal string offset warning when trying to send an email from Admin

Illegal string offset warning when trying to send an email from Admin

Views: 2,837

Results 1 to 5 of 5
8 Sep 2014, 11:12 AM
#1
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Illegal string offset warning when trying to send an email from Admin

Emails are getting through, but this warning fills the page when sent.

Warning: Illegal string offset 'EMAIL_TO_NAME' in includes/functions/functions_email.php on line 83

Warning: Illegal string offset 'EMAIL_TO_ADDRESS' in includes/functions/functions_email.php on line 84

Warning: Illegal string offset 'EMAIL_SUBJECT' in includes/functions/functions_email.php on line 85

Warning: Illegal string offset 'EMAIL_FROM_NAME' in includes/functions/functions_email.php on line 86

Warning: Illegal string offset 'EMAIL_FROM_ADDRESS' in includes/functions/functions_email.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at includes/functions/functions_email.php:83) in admin/includes/functions/general.php on line 21

8 Sep 2014, 1:17 PM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,844
Plugin Contributions:
0

Re: Illegal string offset warning when trying to send an email from Admin

What version of ZC?
What version of php is the server running?

9 Sep 2014, 9:14 AM
#3
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Illegal string offset warning when trying to send an email from Admin

PHP 5.44, ZC1.38 completely patched up past 1.39 to work with PHP 5.44.

The error above was actually from when I was resending archived emails.

If I send a normal message from the admin side to a user, this is the error messages

Warning: Illegal string offset 'file' in includes/functions/functions_email.php on line 255

Warning: Illegal string offset 'file' in includes/functions/functions_email.php on line 255

Warning: Illegal string offset 'file' in includes/functions/functions_email.php on line 255

Warning: Cannot modify header information - headers already sent by (output started at includes/functions/functions_email.php:255) in admin/includes/functions/general.php on line 26

9 Sep 2014, 10:56 AM
#4
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Illegal string offset warning when trying to send an email from Admin

Fixed the 'file' error messages, inserted new code from Zencart 1.6 files into my includes/functions/functions_email.php and all working perfectly with no errors.

Stilll have the Warning: Illegal string offset 'EMAIL_TO_NAME' in includes/functions/functions_email.php on line 83 from Email Archive Manager, though this is a third party extension.

12 Nov 2014, 7:42 PM
#5
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Illegal string offset warning when trying to send an email from Admin

Did you manage to get this resolved?

I am getting the error > Illegal string offset 'EMAIL_TO_NAME' in when sending mail using the Autoresponder plugin.