WordPress.org

Support

Support » How-To and Troubleshooting » Please help! Not able to get into dashboard or create a new post or anything!

Please help! Not able to get into dashboard or create a new post or anything!

  • Anyone ever not able to even get into their Dashboard? When logging in all I get is several ‘Warning’ messages like this one:

    Warning: Illegal offset type in /home/jacsol1/tanglebright.com/wp-content/plugins/contact-form-7/includes/shortcodes.php on line 15

    When I login all that shows is the above information and nothing else. I think I updated to a new contact-form-7 but can’t get to my plugins page.

    It also appears at the top of my website banner. Take a look at http://www.tanglebright.com and let me know what you think this is….

    Thank you for ANY help or ideas! I’m so frustrated.
    Jacque

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    @esmi

    Forum Moderator

    FTP into your site (or whatever file management application your host provides) & delete the wp-content/plugins/contact-form-7 folder.

    I was getting a similar error message when I updated Contact Form 7 to version 3.4.2. Replacing the add_shortcode function in wp-content/plugins/contact-form-7/includes/shortcodes.php from this:

    function add_shortcode( $tag, $func, $has_name = false ) {
        if ( is_callable( $func ) )
            $this->shortcode_tags[$tag] = array(
                'function' => $func,
                'has_name' => (boolean) $has_name );
    }

    …to this:

    function add_shortcode( $tag, $func, $has_name = false ) {
        if ( ! is_callable( $func ) )
            return;
    
        $tags = array_filter( array_unique( (array) $tag ) );
    
        foreach ( $tags as $tag ) {
            $this->shortcode_tags[$tag] = array(
                'function' => $func,
                'has_name' => (boolean) $has_name );
        }
    }

    …seemed to work for me. I think it has something to do with a change in PHP 5.4 and how it handles $this.

    Thank you frenschesco.

    Sorted the issue out.

    This fix worked for me too. Thanks frenchesco.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please help! Not able to get into dashboard or create a new post or anything!’ is closed to new replies.
Skip to toolbar