0

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?

asked Sep 15 at 13:08
3
  • Have you check console log when show the blank page on browser? Commented Sep 16 at 5:33
  • Yes there is no Error. CSP is all whitelist. In Developer mode is also no error in console. Commented Sep 16 at 6:26
  • Clear browser cache or check into private browser mode. Commented Sep 16 at 6:30

1 Answer 1

0

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
answered Sep 16 at 7:45
2
  • Thanks for your help. I have found the issue. The Module Amasty_PageSpeedOptimizer was the problem. Commented Sep 16 at 8:23
  • 1
    @Thomas Schlosser since you found the solution, please answer your own question with details. Commented Sep 16 at 20:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.