Forums

[resolved] wp admin problem with headers (2 posts)

  1. xRommelx
    Member
    Posted 1 year ago #

    hi, i am using WP in a project, everything was going perfect till i installed Comment Validation plugin - http://bassistance.de/wordpress-plugin-comment-validation/
    i don't know why but in admin panel i see this error
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_menu' was given in /home/pixelcr/public_html/revistabellasartes/wp/wp-includes/plugin.php on line 395
    when i try to install a new plugin the errors are those
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_menu' was given in /home/pixelcr/public_html/revistabellasartes/wp/wp-includes/plugin.php on line 395

    Warning: Cannot modify header information - headers already sent by (output started at /home/pixelcr/public_html/revistabellasartes/wp/wp-includes/plugin.php:395) in /home/pixelcr/public_html/revistabellasartes/wp/wp-includes/pluggable.php on line 890

    Warning: Cannot modify header information - headers already sent by (output started at /home/pixelcr/public_html/revistabellasartes/wp/wp-includes/plugin.php:395) in /home/pixelcr/public_html/revistabellasartes/wp/wp-includes/pluggable.php on line 890

    i tried all possibles fixes and solutions in found on internet, but not luck
    i hope someone can help me

    here some pictures :

    dashboard:

    Plugin List:

    trying to install a plugin:

    - Regards

  2. xRommelx
    Member
    Posted 1 year ago #

    i resolve the problem, the problem was with the template in am making
    in this theme i have a function then create a panel in admin section, the wrong code was this

    function admin_menu(){
    	add_menu_page('Administrador','Administrador de Contenido','edit_themes',basename(__FILE__),'theme_options');
    	}
    function theme_options(){
    	}
    add_action('admin_menu','admin_options');

    if u read and put attention the add_action is calling a function then don't exist, so this was the problem
    the correct code is this

    function admin_menu(){
    	add_menu_page('Administrador','Administrador de Contenido','edit_themes',basename(__FILE__),'theme_options');
    	}
    function theme_options(){
    	}
    add_action('admin_menu','admin_menu');

    - I hope this help to others ppl in the future

Topic Closed

This topic has been closed to new replies.

About this Topic