moiri / pflanzenlabor

The source code for the webpage of Giovina Nicolai
https://www.pflanzenlabor.ch
1 stars 0 forks source link

Problem with Order Session Data #70

Open moiri opened 2 years ago

moiri commented 2 years ago

When ordering something and entering the user data (address, etc) and the switching to another page to order something different sometimes the page breaks with the following error (e.g.)

[Wed Jan 12 21:37:31.240522 2022] [php7:error] [pid 93974] [client 127.0.0.1:58464] PHP Fatal error:  Uncaught ErrorException: Trying to access array offset on value of type bool in /home/moiri/Documents/git-pflanzenlabor/server/component/enroll/enroll_packet.php:51\nStack trace:\n#0 /home/moiri/Documents/git-pflanzenlabor/server/component/enroll/enroll_packet.php(51): exception_error_handler()\n#1 /home/moiri/Documents/git-pflanzenlabor/server/component/enroll/v_enroll_packet.php(50): EnrollPacket->print_other_address()\n#2 /home/moiri/Documents/git-pflanzenlabor/server/component/enroll/enroll_packet.php(68): require('/home/moiri/Doc...')\n#3 /home/moiri/Documents/git-pflanzenlabor/server/component/page.php(72): EnrollPacket->{closure}()\n#4 /home/moiri/Documents/git-pflanzenlabor/server/component/enroll/enroll_packet.php(69): Page->print_page()\n#5 /home/moiri/Documents/git-pflanzenlabor/index.php(153): EnrollPacket->print_view()\n#6 /home/moiri/Documents/git-pflanzenlabor/index.php(322): {closure}()\n#7 {main}\n  thrown in /home/moiri/Documents/git-pflanzenlabor/server/component/enroll/enroll_packet.php on line 51, referer: http://localhost/pflanzenlabor/paeckli_angebot

Note that the user data should be prefilled because of an earlier ordering.