Illegal string offset 'guest_error'

Discussion in 'Troubleshooting' started by englishfox, Jan 3, 2014.

  1. englishfox

    englishfox New Member

    Sep 18, 2012
    Hi there,

    I opened my site yesterday to see the following error plastered across the front page: "Warning: Illegal string offset 'guest_error' in [...] shortcodes.php on line 185".

    I checked out the line in question but still don't see what the matter could be, but then I don't know anything about php.

        function run($atts=array(), $content=''){
    $errors am4Errors::getInstance();
    am4PluginsManager::getAPI()->isUserActive()) return do_shortcode($errors->get($atts['user_error']));
    Line 185 is:

                return do_shortcode($errors->get($atts['guest_error']));
    My host recently automatically upgraded me from PHP 5.2 to 5.4 (I don't know if this caused the problem, but nothing else has changed on my site between everything being okay and this error appearing).

    I'm using Amember 4.2.9. My site is here.

    I don't have any money to pay for a web developer (again!) to fix my site, so can anyone help me with this?

    Thank you!

Share This Page