cancel
Showing results for 
Search instead for 
Did you mean: 

errors after installing magento 2.4 by cmd

errors after installing magento 2.4 by cmd

Hello,

I am new on magento, however I have tried install by cmd on localhost(XAMPP) and I have this error:

Fatal error: Uncaught Error: Class 'Cm_Cache_Backend_File' not found in C:\xampp\htdocs\magento\vendor\magento\zendframework1\library\Zend\Cache.php:153 Stack trace: #0 C:\xampp\htdocs\magento\vendor\magento\zendframework1\library\Zend\Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #1 C:\xampp\htdocs\magento\vendor\magento\framework\App\Cache\Frontend\Factory.php(156): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #2 C:\xampp\htdocs\magento\vendor\magento\framework\Cache\Frontend\Adapter\Zend.php(38): Magento\Framework\App\Cache\Frontend\Factory->Magento\Framework\App\Cache\Frontend\{closure}() #3 C:\xampp\htdocs\magento\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(121): Magento\Framework\Cache\Frontend\Adapter\Zend->__construct(Object(Closure)) #4 C:\xampp\htdocs\magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Ma in C:\xampp\htdocs\magento\vendor\magento\zendframework1\library\Zend\Cache.php on line 153

and this is the report file in \magento\var\report\

 

{"0":"Warning: Use of undefined constant fileDriver - assumed 'fileDriver' (this will throw an Error in a future version of PHP) in C:\\xampp\\htdocs\\magento\\vendor\\magento\\framework\\View\\Element\\Template\\File\\Validator.php on line 138","1":"#1 Magento\\Framework\\View\\Element\\Template\\File\\Validator->isPathInDirectories('C:\/xampp\/htdocs\/...', array('C:\/xampp\/htdocs\/...')) called at [vendor\\magento\\framework\\View\\Element\\Template\\File\\Validator.php:117]\n#2 Magento\\Framework\\View\\Element\\Template\\File\\Validator->isValid('C:\/xampp\/htdocs\/...') called at [vendor\\magento\\framework\\View\\Element\\Template.php:270]\n#3 Magento\\Framework\\View\\Element\\Template->fetchView('C:\/xampp\/htdocs\/...') called at [vendor\\magento\\framework\\View\\Element\\Template.php:303]\n#4 Magento\\Framework\\View\\Element\\Template->_toHtml() called at [vendor\\magento\\framework\\View\\Element\\AbstractBlock.php:1111]\n#5 Magento\\Framework\\View\\Element\\AbstractBlock->Magento\\Framework\\View\\Element\\{closure}() called at [vendor\\magento\\framework\\View\\Element\\AbstractBlock.php:1115]\n#6 Magento\\Framework\\View\\Element\\AbstractBlock->_loadCache() called at [vendor\\magento\\framework\\View\\Element\\AbstractBlock.php:675]\n#7 Magento\\Framework\\View\\Element\\AbstractBlock->toHtml() called at [vendor\\magento\\framework\\View\\Result\\Page.php:249]\n#8 Magento\\Framework\\View\\Result\\Page->render(&Magento\\Framework\\App\\Response\\Http\\Interceptor#000000000cd9a57e00000000381f4459#) called at [vendor\\magento\\framework\\View\\Result\\Layout.php:171]\n#9 Magento\\Framework\\View\\Result\\Layout->renderResult(&Magento\\Framework\\App\\Response\\Http\\Interceptor#000000000cd9a57e00000000381f4459#) called at [vendor\\magento\\framework\\Interception\\Interceptor.php:58]\n#10 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callParent('renderResult', array(&Magento\\Framework\\App\\Response\\Http\\Interceptor#000000000cd9a57e00000000381f4459#)) called at [vendor\\magento\\framework\\Interception\\Interceptor.php:138]\n#11 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Response\\Http\\Interceptor#000000000cd9a57e00000000381f4459#) called at [vendor\\magento\\framework\\Interception\\Interceptor.php:153]\n#12 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callPlugins('renderResult', array(&Magento\\Framework\\App\\Response\\Http\\Interceptor#000000000cd9a57e00000000381f4459#), array(array('deferJsToFooter', 'result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated\\code\\Magento\\Framework\\View\\Result\\Page\\Interceptor.php:95]\n#13 Magento\\Framework\\View\\Result\\Page\\Interceptor->renderResult(&Magento\\Framework\\App\\Response\\Http\\Interceptor#000000000cd9a57e00000000381f4459#) called at [vendor\\magento\\framework\\App\\Http.php:120]\n#14 Magento\\Framework\\App\\Http->launch() called at [generated\\code\\Magento\\Framework\\App\\Http\\Interceptor.php:23]\n#15 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\\magento\\framework\\App\\Bootstrap.php:263]\n#16 Magento\\Framework\\App\\Bootstrap->run(&Magento\\Framework\\App\\Http\\Interceptor#000000000cd9a57100000000381f4459#) called at [index.php:39]\n","url":"\/magento\/","script_name":"\/magento\/index.php","report_id":"5c61b337cbec115c8feeb207ff40d5edbf8e07fa728ca88aa7a49b9963045735"}

please help me ...

2 REPLIES 2

Re: errors after installing magento 2.4 by cmd

Hi, @hemo7appsgf694 

 

Please follow these steps to install magento instance through command line,

do run this command on your cmd root directory, it will works fine.

 

sudo php bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \
--db-host=localhost --db-name=magento2.4 --db-user=root --db-password=root \
--admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \
--admin-user=admin --admin-password=admin123 --language=en_US \
--currency=USD --timezone=America/Chicago --use-rewrites=1

Re: errors after installing magento 2.4 by cmd

Still not working after re installation. It redirects to report page.