- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020
09:58 AM
11-18-2020
09:58 AM
PHP Fatal error: Uncaught Error: Undefined constant 'Magento\Framework\View\Element\Template\File'
I am trying to setup a magento site on my Windows server that has been sent to us from the old hosting company as a zip file.
I now get the following error:
PHP Fatal error: Uncaught Error: Undefined constant 'Magento\Framework\View\Element\Template\File' in C:\inetpub\vhosts\mydomain.co.uk\httpdocs\vendor\magento\framework\View\Element\Template\File\Valida...:6 |
The line referred to in the error message is:
namespace \Magento\Framework\View\Element\Template\File;
Can anybody advise what I should be changing to make this work?
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2020
11:29 PM
11-19-2020
11:29 PM
Re: PHP Fatal error: Uncaught Error: Undefined constant 'Magento\Framework\View\Element\Template\Fil
check your PHP version & extensions
Magento 2.4 supports PHP 7.4.0
check your system requirements here
after that kindly update vendor dependency files using
composer update
into the website root directory
if this finishes successfully than you can try with
php bin/magento