Big issue day rule – PHP Notice: Undefined offset: 1
-
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.
- The topic ‘Big issue day rule – PHP Notice: Undefined offset: 1’ is closed to new replies.