• when I use the shortcode [booking-form location = $ id_location]
    this error is due:

    Notice: Undefined index: callback in … / wp-content / plugins / restaurant-reservations / includes / template-functions.php online 119

    Warning: call_user_func () expects parameter 1 to be a valid callback, no array or string given in … / wp-content / plugins / restaurant-reservations / includes / template-functions.php online 119

    Notice: Undefined index: request_input in … / wp-content / plugins / restaurant-reservations / includes / template-functions.php online 119

    is there a way to solve the problem?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @probyn,

    Is it possible that you have deactivated the Business Profile plugin, or that the multi-location feature of Business Profile has been turned off? That would be my best guess for what might be causing this issue.

    Also, are you using or have you ever used my Custom Fields addon?

    Hi,

    I have a similar problem too…

    https://www.jacobinabar.com.br/reservas/

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/storage/b/99/73/jacobinabar1/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 119

    Hi @natewr

    I have a similar problem too…

    https://www.jacobinabar.com.br/reservas/

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/storage/b/99/73/jacobinabar1/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 119

    Hi @adrockers,

    Is it possible that you have deactivated the Business Profile plugin, or that the multi-location feature of Business Profile has been turned off? That would be my best guess for what might be causing this issue.

    Also, are you using or have you ever used my Custom Fields addon?

    Hi @natewr

    The Business profile plugin is activated. https://prnt.sc/mjy86e and https://prnt.sc/mjy8gm

    If I turn on multi-location feature, the error continues and the Location field on the form is wrong. https://prnt.sc/mjy7zr

    I don’t use the custom field addon.

    Hi @adrockers,

    It looks like your theme has made some adjustments to the booking form. Can you try switching to a default theme, like TwentySeventeen, to see if the warning message goes away?

    If it does, you will need to contact your theme developer to ask them for help addressing the warning message.

    When you contact them, send them the screenshot of the Location field as well. They probably forgot to test their theme styles with a multi-location booking form, and they should be able to fix that as well.

    Ok I will contact with theme developer.

    Thread Starter probyn

    (@probyn)

    Hi @natewr ,
    No the the plugin is active, and the problem appear only when i set the parameter location in to the shortcode.
    Yes I have used your Custom Field addon before.

    Thread Starter probyn

    (@probyn)

    @natewr, you can check the error here
    https://www.santamariapizzeria.com/blog/book?res=695

    the same page without the variable (https://www.santamariapizzeria.com/blog/book)
    show correctly the select and do not present the error.

    Thread Starter probyn

    (@probyn)

    I’ve deactivate the Custom Fields for Restaurant Reservations and the warning is disappear.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Warning when I use shortcode’ is closed to new replies.