Warning: call_user_func_array() (5 posts)

  1. Bogdan Batranu
    Posted 1 year ago #

    I modified my theme metabox.php to fit my needs but i get this error when i go to add a new listing :

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'mytheme_add_box' not found or invalid function name in E:\xampp\htdocs\wordpress\wp-includes\plugin.php on line 406

    I have a online version of this wordpress site but it is not modified if it helps this is the website http://www.dreamsimob.ro

    this is the old code

    [ 439 lines of code moderated, that's just way too much. For that many lines of code please use pastebin.com instead. ]

  2. Which theme are you using?

  3. Bogdan Batranu
    Posted 1 year ago #

    avenue from web2feel

  4. That's not a theme that's supported here, only themes downloaded from the WordPress repo are.

    That said, you should back out your changes (obviously ;) ) and then create a child theme of that Avenue theme.


    Activate that child theme and try your modifications on that child theme instead. It's safer that way.

    Whatever you do, do not copy the parent theme's functions.php file into the child theme directory. That just won't work. Whatever changes you wanted to make usually they can be made by editing copies of the theme files such as header.php or footer.php.

    For more specific help then consider contacting the theme author.


  5. Bogdan Batranu
    Posted 1 year ago #

    thanks for helping me. i will try to do this way.

Topic Closed

This topic has been closed to new replies.

About this Topic