• thebigtine

    (@josephbydesign)


    i am tidying up my functions.php file and moving sections of code into separate files with includes, but once i did this i get this error:

    Warning: call_user_func() expects parameter 1 to be a valid callback, function 'section_cb' not found or invalid function name in .../wp-admin/includes/template.php on line 1321

    this is that function that is being included via an include():

    add_settings_section('main_section', 'Main Settings', 'section_cb', __FILE__);

    the file is being included (obviously otherwise the page wouldn’t load at) any why is this having problems, cheers

  • The topic ‘using include() in functions.php causing problems with comments.php’ is closed to new replies.