I get weird behavior Magento 2.
I get a 500 error only on the home page, and on all other pages everything works correctly.
How can this be fixed? Please, help)
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
go to bootstrap.php which will be in app/bootstrap.php (nano app/bootstrap.php) and uncomment the #ini_set('display_errors', 1);line in the sense it will be like ini_set('display_errors', 1); it will help you to show error message in front-end and fix the error.Happy coding fell free to drop any comments
I solved problem!
It all consisted in the fact that the header was very large, or rather its size is 9.5 kilobytes, and the nginx limit was 4 kilobytes
I increased the limit for nginx
The header itself is formed so large due to client settings: for products in the carousel, it was mandatory to display the product id in the carousel in INSPECT, which is displayed on the homepage using the widget