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?
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