Admin panel doesn't work after restarting server
Hi, I have Bagisto deployed on an AWS Ubuntu server. Everything was running fine until I rebooted the server this evening. While the front end of the store still works, as soon as I login to the Admin section, I am greeted with the following screen:
The error message is: "Trying to access array offset on value of type null (View: /var/www/NcodeBagisto/packages/Webkul/Admin/src/Resources/views/dashboard/index.blade.php)"
I have tried clearing the cache, but to no avail. As soon as I login, I am greeted with the above screen.
I'm not sure what's causing this (since it was working fine before rebooting the server). Any help here would be great!
May I know the below configuration on your server
Here are the specs you requested.
PHP version = 7.4.16
Composer version = 2.0.12
Bagisto version = 1.3.1
The application is hosted on an AWS EC2 virtual machine running Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws x86_64). The front end of the store is accessible at https://ncodebkk.ga.
this issue is not due to the restarting server, this bug is already exist in v1.3.1.
Might you have deleted some purchased product which cause the issue on dashboard.
You can simply fix this by updating the changes as mention here https://github.com/bagisto/bagisto/pull/4733/files , after that flush the cache and check the error again.
That worked! Thank you so much!