WordPress.org

Forums

[resolved] Theme Error 'disable_autoformating' (6 posts)

  1. Lanesa
    Member
    Posted 2 years ago #

    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() [function.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();
    		_wp_call_all_hook($all_args);
    	}
    
    	if ( !isset($wp_filter[$tag]) ) {
    		if ( isset($wp_filter['all']) )
    			array_pop($wp_current_filter);
    		return;
    	}
    
    	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];
    	else
    		$args[] = $arg;
    	for ( $a = 2; $a < func_num_args(); $a++ )
    		$args[] = func_get_arg($a);
    
    	// Sort
    	if ( !isset( $merged_filters[ $tag ] ) ) {
    		ksort($wp_filter[$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 );
    
    	array_pop($wp_current_filter);
    }


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

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    You'll need to contact the vendor/developer about the problem as these forums don't support commercial themes.

  3. In addition to what wpyogi said, the line of code that you are referring to:
    /home/template_folder/public_html/wp-includes/plugin.php
    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.

  4. Lanesa
    Member
    Posted 2 years ago #

    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.

  5. That's good to know. Maintaining themes is a lot of work. This Internet business changes so fast. :P

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

  6. Lanesa
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic