1

I'm experiencing a white screen of death on product detail pages (both simple & grouped) after running the php bin/magento setup:di:compile command. I've tracked it down to the global.php file in the generated/metadata folder. If I rename this file then the pages display absolutely fine. How can I troubleshoot this issue, ? So that global.php is generated correctly. The white screen gives no obvious error messages and IO cannot see any relevant entries in the log files..

Any help would be appreciated.

Thanks in advance..!

6
  • magento.stackexchange.com/questions/215701/… Commented Oct 17, 2019 at 8:54
  • tried this renaming global.php to global1.php works but I would like to ficx the actual issue.
    – Nath
    Commented Oct 17, 2019 at 8:56
  • on debug mode and check what error will shown.. Or again Upgrade command then then don't compile just deploy php bin/magento setup:static-content:deploy -f then reindex and clear cache. Commented Oct 17, 2019 at 9:00
  • You can uncomment this line ini_set('display_errors', 1); in your app/bootstrap.php file ? and then refresh your product page you'll get error message there Commented Oct 17, 2019 at 9:10
  • ah ha.. tahnks .. This error is returned now.. Fatal error: Uncaught Error: Cannot instantiate abstract class Magento\Catalog\Block\Product\View\AbstractView in /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116 Stack trace: #0 /vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Catalog...', Array) #1 //vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Catalog...')
    – Nath
    Commented Oct 17, 2019 at 9:19

1 Answer 1

2

Whenever you will get blank page (white screen), you can just uncomment below line in this file.

app/bootstrap.php

#ini_set('display_errors', 1);

Remove # sign in this line..

ini_set('display_errors', 1);

You'll get error message on your screen after doing this.

Hope this will help you!

3
  • yep ! thanks error above,,
    – Nath
    Commented Oct 17, 2019 at 9:46
  • Can you please share this file's code with me ? So I can debug more.. app/design/frontend/Concrete/speed/Magento_Catalog/templates/product/price/amount/default.phtml Commented Oct 17, 2019 at 9:48
  • are you able to find out your issue ? Commented Oct 17, 2019 at 9:52

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.