We face a issue with our Magento 2.3.4, we got a blank page error when we visit the frontend.

Already enabled ini_set('display_errors', 1); but still no error is displayed.

We got a debug.log file with the following errors:

[2020-03-17 10:33:01] main.INFO: Broken reference: the '' element cannot be added as child to '', because the latter doesn't exist [] []

I already tried to remove all cache etc, but I can not find and solve this issue.

Any idea how to solve this?

  • you remove this file pub/generated/metadata/global.php and run php bin/magento setup:static-content:deploy the Commented Mar 17, 2020 at 11:38
  • @MohitPatel Thanks! I tried this, but that does not seems to work. But the issue is related to the compile.
    – JGeer
    Commented Mar 17, 2020 at 12:36
  • i think this problem pls try this links :- magento.stackexchange.com/questions/252188/… Commented Mar 17, 2020 at 12:39
  • @MohitPatel Thanks! But we already run 2.3.4. for a while without a problem. This seems to be related to 2.3.3. Are you sure this edit is still necessary?
    – JGeer
    Commented Mar 17, 2020 at 12:42
  • Please try this above link but i am noy sure but you are try . may be complete the issues. Commented Mar 17, 2020 at 12:51

3 Answers 3


Try to debug in this class and see what elements it is referencing and then find those in your XML files - vendor/magento/framework/View/Layout/ScheduledStructure/Helper.php:184

  • Thanks! But how should we debug this and what should we change in this case?
    – JGeer
    Commented Mar 17, 2020 at 13:08
  • Put a xdebug breakpoint if you already have that setup. If not then try doing error_log(); or do echo; die; for the values - $structure, $key, $type, $parentName . $alias
    – Arif Ahmad
    Commented Mar 18, 2020 at 6:37

Try this


Replace #ini_set('display_errors', 1); To ini_set('display_errors', 1);

  • Thanks! I already tried his, but still no error is displayed. I see that we face this error after compile. Any ideas?
    – JGeer
    Commented Mar 17, 2020 at 12:29
  • any console error ? or try to view your page source maybe display error in page-source Commented Mar 17, 2020 at 12:42
  • No the console also does not display any error, also php error logs are empty.
    – JGeer
    Commented Mar 18, 2020 at 8:08
  • What is your magento mode? Commented Mar 18, 2020 at 8:23
  • Running dev mode.
    – JGeer
    Commented Mar 18, 2020 at 8:37

try this awesome solution. it works for me... https://magento.stackexchange.com/a/318528

in this solution, we need to change only one line in "Validator.php" file which is located at vendor\magento\framework\View\Element\Template\File\Validator.php

find the function which named "protected function isPathInDirectories($path, $directories)"

inside this function you will see following line...

$realPath = $this->fileDriver->getRealPath($path);

you have to replace this line with below following line

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

Original Answer you will see at : https://magento.stackexchange.com/a/318528

Post Credit :- Sushant Vishwas

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.