WordPress.org

Ready to get started?Download WordPress

Forums

Please help! Not able to get into dashboard or create a new post or anything! (5 posts)

  1. Jacque Solomon
    Member
    Posted 1 year ago #

    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

  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. frenchesco
    Member
    Posted 1 year ago #

    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.

  4. qgrobler
    Member
    Posted 9 months ago #

    Thank you frenschesco.

    Sorted the issue out.

  5. kindlevision
    Member
    Posted 4 months ago #

    This fix worked for me too. Thanks frenchesco.

Topic Closed

This topic has been closed to new replies.

About this Topic