Forums

Callback Error (3 posts)

  1. patdryburgh
    Member
    Posted 3 years ago #

    Hello,
    I am developing a theme that includes an options page.
    When I activate the theme, the following error comes up above the dashboard:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'mytheme_add_admin' was given in /home/themedir/public_html/wptest/wp-includes/plugin.php on line 339

    The theme works on the localhost server I created it on, but as soon as I upload to another wordpress installation, it breaks down.

    Any advice is much appreciated!

  2. jeff.smith
    Member
    Posted 3 years ago #

    Which action is 'mytheme_add_admin' added to? Am I correct in assuming that the mytheme_add_admin function is in your theme's functions.php file?

    What version of WordPress do you have installed on your local box, and what version is installed on the other server?

  3. amymahon
    Member
    Posted 3 years ago #

    Pat, I have no idea. But here I am giving you my moral support :)

Topic Closed

This topic has been closed to new replies.

About this Topic