I’m getting a blank page in Magento 2.4.8 only in production mode. In developer mode the checkout works without errors.
I tested with my custom theme and the default Luma theme, and I also tried disabling modules. There are no errors in the Magento logs or in the browser console. The HTML output is empty:
I also ran the following commands, but nothing changed:
bin/magento setup:di:compile bin/magento setup:static-content:deploy bin/magento setup:upgrade
Has anyone seen this and can suggest what to check next?
- 
 Have you check console log when show the blank page on browser?Dhiren Vasoya– Dhiren Vasoya2025年09月16日 05:33:28 +00:00Commented Sep 16 at 5:33
 - 
 Yes there is no Error. CSP is all whitelist. In Developer mode is also no error in console.Thomas Schlosser– Thomas Schlosser2025年09月16日 06:26:03 +00:00Commented Sep 16 at 6:26
 - 
 Clear browser cache or check into private browser mode.Dhiren Vasoya– Dhiren Vasoya2025年09月16日 06:30:03 +00:00Commented Sep 16 at 6:30
 
1 Answer 1
If you don’t see any related errors in system.log or exception.log, it’s possible that the generated/ folder was not properly created for production mode.
You can try the following steps:
Switch Magento to production mode.
Run these commands:
rm -rf var/cache/* var/page_cache/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
 - 
 Thanks for your help. I have found the issue. The Module Amasty_PageSpeedOptimizer was the problem.Thomas Schlosser– Thomas Schlosser2025年09月16日 08:23:48 +00:00Commented Sep 16 at 8:23
 - 
 1@Thomas Schlosser since you found the solution, please answer your own question with details.2025年09月16日 20:22:24 +00:00Commented Sep 16 at 20:22