WordPress.org

Ready to get started?Download WordPress

Forums

SEO Ultimate warnings (2 posts)

  1. Jeremy Kitt
    Member
    Posted 1 year ago #

    I have just activated and completed the meta descriptions etc and I find that I have the following two warnings:
    Warning 1:Parameter 2 to seo_content_control_default_hidden_meta_boxes() expected to be a reference, value given in /home/ajmmedia/public_html/wp-includes/plugin.php on line 170

    This is the section of code in question:

    if ( empty($args) )
    		$args = func_get_args();
    
    	do {
    		foreach( (array) current($wp_filter[$tag]) as $the_ )
    			if ( !is_null($the_['function']) ){
    				$args[1] = $value;
    				$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
    
    			}
    
    	} while ( next($wp_filter[$tag]) !== false );
    
    	array_pop( $wp_current_filter );
    
    	return $value;
    }

    Warning 2:in_array() expects parameter 2 to be array, null given in /home/ajmmedia/public_html/wp-admin/includes/template.php on line 969
    This is the section of code in question:

    if ( !isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context]) )
    			break;
    
    		foreach ( array('high', 'sorted', 'core', 'default', 'low') as $priority ) {
    			if ( isset($wp_meta_boxes[$page][$context][$priority]) ) {
    				foreach ( (array) $wp_meta_boxes[$page][$context][$priority] as $box ) {
    					if ( false == $box || ! $box['title'] )
    						continue;
    					$i++;
    					$style = '';
    					$hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
    					echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
    					if ( 'dashboard_browser_nag' != $box['id'] )
    						echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"></div>';
    					echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
    					echo '<div class="inside">' . "\n";
    					call_user_func($box['callback'], $object, $box);
    					echo "</div>\n";
    					echo "</div>\n";

    I'd be grateful for any help to resolve these warnings

    Many thanks

  2. s_ha_dum
    Member
    Posted 1 year ago #

    The first problem is not in plugin.php. The error is wrong. The problem is going to be in the seo-ultimate plugin itself, and it may be hard to find. Try to find where that seo_content_control_default_hidden_meta_boxes() is used.

    There is probably a similar issue with the second problem. I doubt the real error is in a Core file. It usually isn't. Probably, the plugin has done some minor something wrong. Again, it is going to be hard to locate.

Topic Closed

This topic has been closed to new replies.

About this Topic