• Resolved primasavona

    (@primasavona)


    hi there…please help me…!
    i have this error after auto update adamos theme

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘adamos_custom_header_setup’ not found or invalid function name in /home/xxxxxxxx/public_html/wp-includes/plugin.php on line 505

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxxxx/public_html/wp-includes/plugin.php:505) in /home/beew9784/public_html/wp-includes/pluggable.php on line 1179

    Please help me…because i can’t login into admin dashboard.

    thankyou all

Viewing 15 replies - 1 through 15 (of 16 total)
  • Imran Ali

    (@imranaliweb)

    hi

    Remove used plugin in your wordpress plugin Folder (wordpress >> wp-content>> plugin )

    after Check your website

    Thanks.

    Imran Ali

    (@imranaliweb)

    Hi
    Remove used plugin your wordpress plugin folder (wordpress>> wp-content >> plugin )

    after remove plugin and check it your website
    thanks

    Thread Starter primasavona

    (@primasavona)

    I do not think there is a problem with the plugin, because I do an update adamos theme. thanks for your response

    Theme Author Template Express

    (@danstriker)

    Sorry everyone, this is my mistake. I will upload an update asap. In the meantime you can fix this by changing this bit of code in the fuctions.php file:

    /**
     * Implement the Custom Header feature
     */
    add_theme_support( 'custom-header' );
    
    $args = array(
    		'default-image'          => '',
    		'default-text-color'     => 'FFF',
    		'width'                  => 1400,
    		'height'                 => 500,
    		'flex-height'            => true,
    		'wp-head-callback'       => 'adamos_header_style',
    		'admin-head-callback'    => 'adamos_admin_header_style',
    		'admin-preview-callback' => 'adamos_admin_header_image',
    	);
    
    	$args = apply_filters( 'adamos_custom_header_args', $args );
    
    	if ( function_exists( 'wp_get_theme' ) ) {
    		add_theme_support( 'custom-header', $args );
    }
    add_action( 'after_setup_theme', 'adamos_custom_header_setup' );

    TO THIS:

    /**
     * Implement the Custom Header feature
     */
    add_theme_support( 'custom-header' );
    function adamos_custom_header_setup() {
    $args = array(
    		'default-image'          => '',
    		'default-text-color'     => 'FFF',
    		'width'                  => 1400,
    		'height'                 => 500,
    		'flex-height'            => true,
    		'wp-head-callback'       => 'adamos_header_style',
    		'admin-head-callback'    => 'adamos_admin_header_style',
    		'admin-preview-callback' => 'adamos_admin_header_image',
    	);
    
    	$args = apply_filters( 'adamos_custom_header_args', $args );
    
    	if ( function_exists( 'wp_get_theme' ) ) {
    		add_theme_support( 'custom-header', $args );
    }
    }
    add_action( 'after_setup_theme', 'adamos_custom_header_setup' );
    Thread Starter primasavona

    (@primasavona)

    I thank you for a very quick response. I will wait for the next update. once again thank you very much

    Theme Author Template Express

    (@danstriker)

    OK no problem. I have submitted the update so hopefully the WP guys will make it live soon.

    Theme Author Template Express

    (@danstriker)

    Updated theme now live

    marktcor

    (@marktcor)

    I’m unable to log in to my WP site since the update. I keep getting this message when I type in my login page address:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘adamos_custom_header_setup’ not found or invalid function name in /home/sweat9/public_html/wp-includes/plugin.php on line 505

    Warning: Cannot modify header information – headers already sent by (output started at /home/sweat9/public_html/wp-includes/plugin.php:505) in /home/sweat9/public_html/wp-includes/pluggable.php on line 1179

    How can I access my site!?

    marktcor

    (@marktcor)

    And this is at the top of my site:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘adamos_custom_header_setup’ not found or invalid function name in /home/sweat9/public_html/wp-includes/plugin.php on line 505

    HELP!

    Theme Author Template Express

    (@danstriker)

    hello,

    do you have ftp access to your site? you will have to replace your functions.php file with the updated one

    marktcor

    (@marktcor)

    How do I access it through ftp?

    Theme Author Template Express

    (@danstriker)

    you should be able to access your files through your hosting account or they can give you the details needed to access files through an ftp program like filezilla.

    Theme Author Template Express

    (@danstriker)

    marktcor

    (@marktcor)

    I have access through filezilla but don’t know where to find the function.php file to make the change.

    marktcor

    (@marktcor)

    Nevermind, looks like I’ve got it fixed. Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Unexpected error after update adamos theme to ver 2.0’ is closed to new replies.