• Resolved gianlucafg95

    (@gianlucafg95)


    Good morning (but it isn’t a good morning),
    I’m having a huge issue with your plugin that causes the failure of the entire server, where are located more than 50 web sites.

    I say the problem is with your plugin because in the error log (4GB weight) there’s only one row repeated thousands and thousands of times:

    [04-Dec-2020 08:21:39 UTC] PHP Notice: Undefined offset: 1 in /*websiterootpath*/wp-content/plugins/salon-booking-system/src/SLN/Helper/AvailabilityItems.php on line 83

    This row: “$first = array( ‘from’ => $ranges[‘from’][ $i ], ‘to’ => $ranges[‘to’][ $i ] );”
    in the private function mergeRanges()

    This happens only when I set the 5th day rule.

    I’ve already read about using few rules but my customer need to set a different timetable for all December, xmas, and the starting of January, so he really need more rules.

    Any help will be apreciated. Thanks.

    Gianluca
    Ps: The plugin is updated to the last free version and It doesn’t work with any PHP version. Mine is 7.4.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dimitri Grassi

    (@wordpresschef)

    Hi,

    this [04-Dec-2020 08:21:39 UTC] PHP Notice: Undefined offset: 1 in /*websiterootpath*/wp-content/plugins/salon-booking-system/src/SLN/Helper/AvailabilityItems.php on line 83

    is just a notice that cannot generate any kind of error..

    you should share with us the php error you got on your server.

    Thread Starter gianlucafg95

    (@gianlucafg95)

    Hello,
    I know it’s not an error, but this notice slows down the entire server because it’ really repeated thousands of time in the error log, and when I tried to access the website at the page where there is the booking calendar it went in timeout(max_execution_time:180). The last time I tried the error log’s weight was 3gb.
    I dont’ think it’s normal for a plugin to have so many php notice…
    Thanks for replying anyway.
    Gianluca

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Big issue day rule – PHP Notice: Undefined offset: 1’ is closed to new replies.