How to fix 'Trying to access array offset on value of type null' Error and 413
I'm encountering the error 'Trying to access array offset on value of type null.' And it prints the following error to the console '/livewire/upload-file?expires=1703146593&signature=2957b831764ba772e5ba5707167b7eeae7e464a8565e04eef693bc4e9da0e27b:1 Failed to load resource: the server responded with a status of 413 ().' I've tried following Google's suggestion by adjusting the php.ini as follows and using phpinfo(), which returns the following:
However, the error persists. I am using Linux - PHP 8.2 - Livewire-Laravel - NGINX. When I run it on localhost, everything works fine, but when deployed on Linux, I encounter this issue. Please help me.
The payload is to large, so either increase the allowed size on your production server and restart fpm and nginx, or chunk the upload instead och sending everything at once.