The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress plugin gives Illegal string offset error

Discussion in 'General Discussion' started by HappyCoder, Sep 23, 2013.

  1. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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:
    WarningIllegal 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?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    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 isn't a cPanel issue I don't think. You might do better over at the wordpress forums.
     
  3. Aaron.Edwards

    Aaron.Edwards Active Member

    Joined:
    Sep 21, 2013
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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 '[' ?
     
  4. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  5. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    The problem is solved. Thanks for your help, friends.
     
Loading...

Share This Page