Title: Warning: call_user_func_array() function &#039;ambrosia_load_templates&#039;
Last modified: August 21, 2016

---

# Warning: call_user_func_array() function 'ambrosia_load_templates'

 *  [x.charisma](https://wordpress.org/support/users/xcharisma/)
 * (@xcharisma)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/)
 * Hi,
 * I’m getting this warning message when I try to view my page, it is still under
   construction and I am new to wordpress.
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   ambrosia_load_templates’ not found or invalid function name in …../public_html/
   wordpress/wp-includes/plugin.php on line 406
 * This is my first time making a child theme, I haven’t changed anything in parent
   theme(ambrosia) except for removing custom menu so that I could expand the menu
   to 5 instead of the original 2 in my child theme.
 * Are there any major things I should look at to find the problem first, or will
   I need to include more code to get help?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717223)
 * Where did you download the theme from?
 *  Thread Starter [x.charisma](https://wordpress.org/support/users/xcharisma/)
 * (@xcharisma)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717224)
 * [http://wordpress.org/extend/themes/ambrosia](http://wordpress.org/extend/themes/ambrosia)
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717228)
 * Can you revert to the original, unedited theme and see if the error continues?
 * BTW, when you create a child theme, you do not edit/ customize the parent theme
   at all. Whatever changes you make are only in the child theme.
 *  Thread Starter [x.charisma](https://wordpress.org/support/users/xcharisma/)
 * (@xcharisma)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717229)
 * For now it works as I’ve changed the call to stylesheet in parent functions.php
   back to the original get_template_uri as opposed to get_style_uri. Ofcourse it
   follows that my stylesheet is not applying anymore as that was the only solution
   i had found for overriding parent stylesheet with child stylesheet
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717239)
 * Are you running the child theme or the parent theme? If you want to run the child
   theme, try to start with only the CSS, and if needed, add the other templates
   that you want to modify.
 *  Thread Starter [x.charisma](https://wordpress.org/support/users/xcharisma/)
 * (@xcharisma)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717257)
 * I’m running the child theme, but my style.css won’t override the parent theme’s
   style…would you happen to know a good way?
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717262)
 * Do you have all these – [see CSS file](http://themes.svn.wordpress.org/ambrosia/1.1.4/style.css)–
   or importing parent CSS + adding your own CSS?
 *  Thread Starter [x.charisma](https://wordpress.org/support/users/xcharisma/)
 * (@xcharisma)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717273)
 * I imported from the parents CSS and added my own (but these that I added are 
   just sections of the parent css but changed to have different values)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717276)
 * I’ve recently seen an almost identical topic about this theme (which, unfortunately,
   I cannot locate now). But from what I recall, there may be an issue within this
   theme that means it’s currently not child theme friendly.
 * It might be worth trying to contact the theme’s developer by posting in [http://wordpress.org/support/theme/ambrosia](http://wordpress.org/support/theme/ambrosia)
 *  Thread Starter [x.charisma](https://wordpress.org/support/users/xcharisma/)
 * (@xcharisma)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717279)
 * i had changed
 * `wp_enqueue_style('main', get_template_directory_uri() . '/style.css');`
 * to
 * `wp_enqueue_style('main', get_style_directory_uri() . '/style.css');`
 * in parent functions.php
 * and
 *     ```
       //Custom menu support
       /*if ( function_exists( 'register_nav_menus' ) ) {
       	register_nav_menus(
       		array(
       			'main'  => __('Sidebar main menu'),
       			'secondary' => __('Sidebar secondary menu'),
       		)
       	);
       }
   
       // Ambrosia Custom Menus Callback (HTML5 markup)
       // Categories menu
       function ambrosia_category_menu_cb() {
       	print '<nav class="main"><ul>';
       	wp_list_categories('orderby=name&title_li=');
       	print '</ul></nav>';
       }
   
       // Pages menu
       function ambrosia_pages_menu_cb() {
       	print '<nav class="secondary">';
       	wp_page_menu('sort_column=menu_order&*/
       menu_class=pages');
       	print '</nav>';
       }
       ```
   
 * from parent functions.php to
 *     ```
       //Custom menu support
       if ( function_exists( 'register_nav_menus' ) ) {
       	register_nav_menus(
       		array(
       			'first'  => __('Sidebar first menu'),
       			'second' => __('Sidebar second menu'),
       			'third'  => __('Sidebar third menu'),
       			'fourth'  => __('Sidebar fourth menu'),
       			'fifth'  => __('Sidebar fifth menu'),
       		)
       	);
       }
   
       function ambrosia_category_menu_cb() {
       	print '<nav class="first"><ul>';
       	wp_list_categories('orderby=name&title_li=');
       	print '</ul></nav>';
   
       	print '<nav class="second"><ul>';
       	wp_list_categories('orderby=name&title_li=');
       	print '</ul></nav>';
   
       	print '<nav class="third"><ul>';
       	wp_list_categories('orderby=name&title_li=');
       	print '</ul></nav>';
   
       	print '<nav class="fourth"><ul>';
       	wp_list_categories('orderby=name&title_li=');
       	print '</ul></nav>';
   
       	print '<nav class="fifth"><ul>';
       	wp_list_categories('orderby=name&title_li=');
       	print '</ul></nav>';
       }
       ```
   
 * in the new child functions.php and that’s when it gave the warning
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717304)
 * As **esmi** suggested above, the theme may not be child theme friendly. So, if
   at all you want to try, try only with the style sheet in the child theme. Put
   back the original functions.php file.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717308)
 * [http://wordpress.org/support/topic/child-stylesheet-not-overriding-parent?replies=1](http://wordpress.org/support/topic/child-stylesheet-not-overriding-parent?replies=1)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Warning: call_user_func_array() function 'ambrosia_load_templates'’ is
closed to new replies.

## Tags

 * [call_user_func_array](https://wordpress.org/support/topic-tag/call_user_func_array/)
 * [plugin.php](https://wordpress.org/support/topic-tag/plugin-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-ambrosia_load_templates/#post-3717308)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
