i have installed Magento 2 of version 2.2.7 EE and 2.2.6 CE. After installing i am getting this error in frontend and admin panel as well.

Errors i am getting:

1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'D:/xampp/htdocs/mage227ee/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js'

enter image description here


Blank page

My current System:-

  • Windows 8
  • XAMPP /php 7.1.26 /MariaDb 10.1 /Apache 2.4
  • 8GB RAM

I have tried multiple attempts of command with:

  • php bin\magento or php bin/magento
  • setup:upgrade
  • setup:static-content:deploy -f
  • indexer:reindex
  • setup:di:compile
  • cache:flush

Then i tried with the following approaches:

  • composer update
  • increased memory limit in index.php by adding ini_set('memory_limit', '2048M');
  • increased memory limit in user.ini, .htaccess and other locations as well.
  • No errors found in error.log and access.log in apache2/log folder.

Can anyone help me a on how to approach to solve it. thank you.


1 Answer 1


the error still exists. I tried the last approach, but now again the issue came, and i am getting blank page.

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.