Click here to Skip to main content
14,929,864 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'restaurant_zymphonies_theme_settings_form_submit' not found or invalid function name in Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (line 114 of core/lib/Drupal/Core/Form/FormSubmitter.php).

What I have tried:

I tried to create the function:

function restaurant_zymphonies_theme_form_system_theme_settings_submit($form, &$form_state) {
  
}


but am still facing the same error when i submit a file for the sildeshow.
Posted
Updated 25-Mar-21 3:11am

1 solution

Look at the error message. Now look at your function name. Back to the error message. And back to your function name again.

Do you see the problem yet?
Quote:
function 'restaurant_zymphonies_theme_settings_form_submit' not found
function restaurant_zymphonies_theme_form_system_theme_settings_submit ...
Aside from the fact that they both start with restaurant_zymphonies_theme_ and end with _submit, the function you've created does not match the name of the missing function.
   
v2
Comments
Member 13457620 7-Apr-21 18:43pm
   
how do i solve this error in drupal 8

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'restaurant_zymphonies_theme_settings_form_submit' not found or invalid function name in Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (line 114 of core/lib/Drupal/Core/Form/FormSubmitter.php)
Richard Deeming 8-Apr-21 3:25am
   
Read the error message again. Or read my solution again.

Either way, you are still trying to use a function which you have not defined.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900