Issue: PHP Warning: call_user_func() expects parameter 1 to be a valid callback
-
Hello,
I’m getting the following error with the current version of Five Star Restaurant Reservations – WordPress Booking Plugin. Would you be able to assist me in addressing the issue?
PHP Warnings on my error_log file:
[09-Apr-2022 08:30:56 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/testUser/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 224 [09-Apr-2022 09:04:16 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/testUser/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 224 [09-Apr-2022 09:04:16 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/testUser/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 224 [09-Apr-2022 11:40:33 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/testUser/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 224 [09-Apr-2022 11:40:33 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/testUser/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 224This is the code I have on Line 224 of my template-functions.php:
call_user_func( $field[‘callback’], $slug, $field[‘title’], $field[‘request_input’], $callback_args );Any suggestions or help would be greatly appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Issue: PHP Warning: call_user_func() expects parameter 1 to be a valid callback’ is closed to new replies.