Opening TImes to closed let pluigin crash

WPPizza – A Restaurant Plugin for WordPress Support General Support Opening TImes to closed let pluigin crash

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61882
    freek
    Participant

      It seems that when I configure all opening times to 00:00 to 00:00 (everything closed), the plugin “crashes”. WordPress signals this as an critical error and the site turns in recovery mode.

      Een fout van het type E_ERROR werd veroorzaakt op regelnummer 1768 van het bestand /var/www/vhosts/cafedebrink.nl/httpdocs/wp-content/plugins/wppizza/includes/global.static.functions.inc.php. Foutmelding: Uncaught Error: Unsupported operand types in /var/www/vhosts/cafedebrink.nl/httpdocs/wp-content/plugins/wppizza/includes/global.static.functions.inc.php:1768
      Stack trace:
      #0 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-content/plugins/wppizza/includes/global.static.functions.inc.php(1452): wppizza_get_openingtimes(Array)
      #1 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-content/plugins/wppizza/includes/global.static.functions.inc.php(740): wppizza_get_shop_status()
      #2 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-content/plugins/wppizza-preorder/v3/actions.php(346): wppizza_is_shop_open()
      #3 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-includes/class-wp-hook.php(308): WPPIZZA_PREORDER_ACTIONS->set_parameters('')
      #4 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
      #5 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
      #6 /var/www/vhosts/cafedebrink.nl/httpdocs/wp-settings.php(623): do_action('init')
      #7 /var/www/vhost
      

      WordPress 6.2
      WPPizza 3.17.2
      PHP 7.3.33

      #61883
      Olly
      Admin & Mod

        Hi

        though I can do something about that error, it also seems to me you are using the preorder plugin without the shop ever being open so this is really quite likely to cause issues . There isn’t really any point to use the preorder plugin if you are never open anyway

        Secondly, I would also suggest to simply not put any shoppingcart anywhere if you are always closed (or using some of the other options available to disable the cart/ordering) instead of setting all days to be closed

        additionally see also
        https://docs.wp-pizza.com/faqs/?section=can-i-just-display-the-menu-without-offering-online-order

        #61885
        freek
        Participant

          Yes, preorder is also in use.

          The closure is temporary and it was the best the restaurant owner could think of. I can understand his way of thought, setting all values to 00:00 will also adjust the displayed opening times whilst an extra closure won’t affect that.

          For now I restored the configuration and closed the shop using the checkmark on top of the opening times page.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Opening TImes to closed let pluigin crash’ is closed to new replies.