Support » Fixing WordPress » Theme Error 'disable_autoformating'

  • Resolved Lanesa


    Hi I’m having an error with a theme i purchased and can’t see to understand what i need to do to resolve it.

    Warning: call_user_func_array() []: First argument is expected to be a valid callback, ‘disable_autoformating’ was given in /home/template_folder/public_html/wp-includes/plugin.php on line 406

    This is the code below:

    // Do 'all' actions first
    	if ( isset($wp_filter['all']) ) {
    		$wp_current_filter[] = $tag;
    		$all_args = func_get_args();
    	if ( !isset($wp_filter[$tag]) ) {
    		if ( isset($wp_filter['all']) )
    	if ( !isset($wp_filter['all']) )
    		$wp_current_filter[] = $tag;
    	$args = array();
    	if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
    		$args[] =& $arg[0];
    		$args[] = $arg;
    	for ( $a = 2; $a < func_num_args(); $a++ )
    		$args[] = func_get_arg($a);
    	// Sort
    	if ( !isset( $merged_filters[ $tag ] ) ) {
    		$merged_filters[ $tag ] = true;
    	reset( $wp_filter[ $tag ] );
    	do {
    		foreach ( (array) current($wp_filter[$tag]) as $the_ )
    			if ( !is_null($the_['function']) )
    				call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));   // LINE 406 is Here
    	} while ( next($wp_filter[$tag]) !== false );

    [Please use the code buttons or backticks when posting code — as is your code may have been corrupted here.]

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ll need to contact the vendor/developer about the problem as these forums don’t support commercial themes.

    Christine Rondeau


    Volunteer Forum Moderator

    In addition to what wpyogi said, the line of code that you are referring to:
    is part of WordPress core.

    None of the files in the wp-admin or wp-includes should ever be touched.

    If the theme is triggering this error, you’ll need to let the company you’ve purchased from know.

    You may also want to deactivate all of your plugins just to make sure that the error is not caused by a theme/plugin conflict.

    Hi Christine, they gave me a hack to fix it but said it will be fixed in the next version update. Right now its temporarily resolved.

    Christine Rondeau


    Volunteer Forum Moderator

    That’s good to know. Maintaining themes is a lot of work. This Internet business changes so fast. 😛

    It’s great to hear that they are working on it.

    Yes it does!!! And thank you for your response. I appreciate it!!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme Error 'disable_autoformating'’ is closed to new replies.