Support » Plugin: WooCommerce Bookings Dropdown » Not working: PHP errors showing

  • Hi Webby,

    I’ve tried to debug these errors showing on Query Monitor, but it seems they’re a bit above my pay grade..

    Invalid argument supplied for foreach()

    Undefined index: type

    I really appreciate your efforts in building and maintaining this plugin!

    • This topic was modified 2 months, 3 weeks ago by  Timbre Design.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    I was able to solve it, at least for my purposes, I found that there was an extra array not accounted for in the foreach nest.

    I wrapped line 121 with another foreach.

    So this:
    foreach($rules as $key => $dateset) {

    Turns into this:
    foreach($rules as $rule => $keys) {
    foreach($keys as $key => $dateset) {

    With the subsequent closes at the end of course.

    I hope that helps.

    Plugin Author Webby Scots


    Can you tell me what version of WooCommerce Bookings you were using when you encountered this error?


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.