Closed dasistwas closed 1 year ago
Execute adhoc task: local_shopping_cart\task\delete_item_task Adhoc task id: 122791
Adhoc task custom data: {"itemid":28,"itemname":"1 - Allgemeines Turnen - Vorwiegend Outdoor","price":123,"currency":"EUR","componentname":"mod_booking","area":"option","description":"<div class=\"bo_dayofweektime\">Tag & Uhrzeit: MO, 17:15 - 19:30<\/div>\n\n<a class=\"collapse-description\" data-toggle=\"collapse\" href=\"#collapsedescription_28\" role=\"button\" aria-expanded=\"false\" aria-controls=\"collapsedescription_28\">\n Zeige Beschreibung\n<\/a>\n\n<div class=\"collapse\" id=\"collapsedescription_28\">\n <div class=\"card card-body\">\n <div class=\"bo_location\">Ort: Spitalgasse - USI-Sportst\u00e4tte<\/div>\n <div class=\"bo_institution\">Institution: SPITALGASSE H1<\/div>\n \n \n <div class=\"bo_description\"><p>Vorwiegend Outdoor<\/p><\/div>\n <div class=\"bo_price\">123.00 EUR Student \u00fcber 25<\/div>\n <div >\n <b>Trainer\/innen:<\/b>\n <ul>\n <li>\n Reinhold Brunh\u00f6lzl\n <\/li>\n <\/ul>\n <\/div>\n <a class=\"collapseoptiondatesbutton\" data-toggle=\"collapse\" href=\"#collapseoptiondates_28\" role=\"button\" aria-expanded=\"false\" aria-controls=\"collapseoptiondates_28\">\n Zeige Termine\n <\/a>\n <div id=\"collapseoptiondates_28\" class=\"collapse list-group-item\">\n <div class=\"list-group\">\n <div class=\"list-group-item\">\n <div>\n <b>25. September 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>2. Oktober 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>9. Oktober 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>16. Oktober 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>23. Oktober 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>30. Oktober 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>6. November 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>13. November 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>20. November 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>27. November 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>4. Dezember 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>11. Dezember 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>18. Dezember 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>25. Dezember 2023, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>1. Januar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>8. Januar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>15. Januar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>22. Januar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>29. Januar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>5. Februar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>12. Februar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>19. Februar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <div class=\"list-group-item\">\n <div>\n <b>26. Februar 2024, 17:15 - 19:30<\/b>\n <\/div>\n <div style=\"display:none\">\n <ul>\n <\/ul>\n <\/div>\n <\/div>\n <\/div>\n <\/div>\n <\/div>\n<\/div>","imageurl":"","canceluntil":0,"serviceperiodstart":1695654900,"serviceperiodend":1708972200,"taxcategory":null,"nodelete":0} ... started 01:05:03. Current memory use 39.2 MB. ... used 9 dbqueries ... used 0.14643311500549 seconds Adhoc task failed: local_shopping_cart\task\delete_item_task,Call to a member function user_delete_response() on null Backtrace: * line 132 of /mod/booking/classes/shopping_cart/service_provider.php: call to mod_booking\booking_bookit::answer_booking_option() * line 8144 of /lib/moodlelib.php: call to mod_booking\shopping_cart\service_provider::unload_cartitem() * line 340 of /local/shopping_cart/classes/shopping_cart.php: call to component_class_callback() * line 229 of /local/shopping_cart/classes/shopping_cart.php: call to local_shopping_cart\shopping_cart::unload_cartitem() * line 89 of /local/shopping_cart/classes/task/delete_item_task.php: call to local_shopping_cart\shopping_cart::delete_item_from_cart() * line 367 of /lib/cronlib.php: call to local_shopping_cart\task\delete_item_task->execute() * line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task() * line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks() * line 178 of /admin/cli/cron.php: call to cron_run()
Fixed by adding a check if booking_option still exists when calling unload_cartitem of service_provider.php in mod_booking.
Execute adhoc task: local_shopping_cart\task\delete_item_task Adhoc task id: 122791