• I updated my Contact Form 7 plugin today, but am now seeing an error above the header (and below the footer) that reads:
    —————————–
    Notice: Undefined index: contact-form-7 in /home/[domain]/public_html/wp-includes/class.wp-scripts.php on line 250

    Notice: Trying to get property of non-object in /home/kilowa5/public_html/wp-includes/class.wp-scripts.php on line 250
    —————————–
    I’m not a coder, and am not even finding where to access the wp-config or functions.php or any of those other things I’m reading about. I’m only seeing a limited left menu when I log into my wordpress admin.

    Where do I go from here and how do I get rid of that message above my header (and below my footer)?

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme (twentyfifteen) and deactivating all other plugins.

    Thread Starter Brent Vawter

    (@brent-vawter)

    Takayuki, I can’t switch themes. This is a custom theme, and it’s the live site for a corporate client. Frankly, I’m concerned that changing themes will re-arrange content on pages, change plugins, etc. … and I don’t have the technical expertise to be able to put things back to where they are now.

    Surely there’s a solution that doesn’t involve changing themes on a live site. Anyone?

    Thread Starter Brent Vawter

    (@brent-vawter)

    Takayuki, is there something I need to edit on line 250 of some file? If so, please tell me how to access that file and what to do.

    Or … can I just go back to the previous version of this plugin that was working?

    Thread Starter Brent Vawter

    (@brent-vawter)

    I’m still needing help with this.
    This is a live corporate site that now shows an error in the header – ever since updating this Contact Form 7 plugin.

    https://www.kilowattfinancial.com/

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Don’t you have a testing environment?

    Thread Starter Brent Vawter

    (@brent-vawter)

    We do.
    https://staging.kilowattfinancial.com

    We inadvertently updated the plugin on the LIVE site instead of the staging site. Now the live site is the one with the error. The staging site still has the older version of the plugin.

    Is there a way to take the live site back to the former version of the plugin?

    Thread Starter Brent Vawter

    (@brent-vawter)

    @takayuki, here are lines 241-258 of the .php file that’s referenced in the error msg:

    }
    
    	/**
    	 * @param string $handle    Name of the item. Should be unique.
    	 * @param bool   $recursion Internal flag that calling function was called recursively.
    	 * @param mixed  $group     Group level.
    	 * @return bool Not already in the group or a lower group
    	 */
    	public function set_group( $handle, $recursion, $group = false ) {
    		if ( $this->registered[$handle]->args === 1 )
    			$grp = 1;
    		else
    			$grp = (int) $this->get_data( $handle, 'group' );
    
    		if ( false !== $group && $grp > $group )
    			$grp = $group;
    
    		return parent::set_group( $handle, $recursion, $grp );
    Thread Starter Brent Vawter

    (@brent-vawter)

    Line 250: if ( $this->registered[$handle]->args === 1 )

    To hide the error on your live site, set WP_DEBUG to false.

    Thread Starter Brent Vawter

    (@brent-vawter)

    @Ov3erfly
    Thanks for this. So this will just hide the error but not necessarily fix the problem, right Should I be concerned about the error then?

    Thread Starter Brent Vawter

    (@brent-vawter)

    Also, I’m having a tough time finding the WP_DEBUG file. Where do I go for that?

    Thread Starter Brent Vawter

    (@brent-vawter)

    @ov3rfly – okay, I found the WP_DEBUG file and set it to false, but am still seeing the error on my home page. What next?
    https://www.kilowattfinancial.com/

    You are using WP Super Cache plugin, clear your page cache.

    Thread Starter Brent Vawter

    (@brent-vawter)

    i use Chrome. Just cleared everything with “kilowatt” from my browsing history. Am still seeing the error. Same on my iPhone browser (Safari).

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Notice: Undefined index: contact-form-7’ is closed to new replies.