Wordpress plugin gives Illegal string offset error

HappyCoder

Member
Apr 27, 2012
15
0
51
cPanel Access Level
Root Administrator
Hi friends,

I have a customer who is experiencing a strange error with a plugin for WordPress.

I have a clean install of cPanel on CentOS.
I have enabled one-click installer with WordPress. It works nicely.
When I install the plugin "Send e-mail" by Paolo Melchiorre, I get following error:
PHP:
Warning: Illegal string offset 'Widget' in /{...}/wordpress/wp-content/plugins/send-e-mail/send-e-mail.php on line 18
Line 18 is:
PHP:
if ($ atts ['widget']) {
Can anyone help me with this weird error which I do not understand why occurs?
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
If you're speaking of this plugin, the message at top might help explain the problems:
/http://wordpress.org/plugins/send-e-mail/other_notes/

This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
This isn't a cPanel issue I don't think. You might do better over at the wordpress forums.
 

Aaron.Edwards

Active Member
Sep 21, 2013
36
0
6
cPanel Access Level
Root Administrator
Warning: Illegal string offset 'Widget' in /{...}/wordpress/wp-content/plugins/send-e-mail/send-e-mail.php on line 18
Line 18 is:
PHP Code:

if ($ atts ['widget']) {
As Infopro said, this isn't a cPanel issue. This is a plug-in issue. From the error log and your line 18 posted already, i can notice that there were spaces in the line 18. Can you try removing the spaces after '$' and before '[' ?
 

HappyCoder

Member
Apr 27, 2012
15
0
51
cPanel Access Level
Root Administrator
I would ask on a WordPress-forum.
Aaron.Edwards - there are no spaces in the code. It is a formatting errors when I copied the code.
Provisional thanks for the help.