cancel
Showing results for 
Search instead for 
Did you mean: 

Permission error

Permission error

Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/home/comfortegypt/public_html/var/cache/" is not writable in /home/comfortegypt/public_html/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 /home/comfortegypt/public_html/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/hom...') #1 /home/comfortegypt/public_html/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/home/comforteg...') #2

I got this error message on my website can anyone help me to fix this issus

/home/comfortegypt/public_html/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /home/comfortegypt/public_html/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4 /home/comfortegypt/public_html/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #5 /home/comfortegypt/public_ in /home/comfortegypt/public_html/vendor/magento/zendframework1/library/Zend/Cache.php on line 209

2 REPLIES 2

Re: Permission error

I had backup from cash folder when I add it I got this error 

3 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid Document: /home/comfortegypt/public_html/app/code/Ves/CustomWidget/etc/module.xml
 Error: DOMDocument::loadXML(): String not started expecting ' or " in Entity, line: 1 in /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php on line 159
Exception #1 (Magento\Framework\Exception\LocalizedException): DOMDocument::loadXML(): String not started expecting ' or " in Entity, line: 1 in /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php on line 159
Exception #2 (Magento\Framework\Exception\LocalizedException): DOMDocument::loadXML(): String not started expecting ' or " in Entity, line: 1 in /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php on line 159

Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid Document: /home/comfortegypt/public_html/app/code/Ves/CustomWidget/etc/module.xml
 Error: DOMDocument::loadXML(): String not started expecting ' or " in Entity, line: 1 in /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php on line 159
#0 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList.php(72): Magento\Framework\Module\ModuleList\Loader->load()
#1 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList.php(92): Magento\Framework\Module\ModuleList->getAll()
#2 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(140): Magento\Framework\Module\ModuleList->getOne('Magento_Store')
#3 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(56): Magento\Framework\Module\DbVersionInfo->isModuleVersionEqual('Magento_Store', '2.0.0')
#4 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(79): Magento\Framework\Module\DbVersionInfo->isSchemaUpToDate('Magento_Store')
#5 /home/comfortegypt/public_html/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(55): Magento\Framework\Module\DbVersionInfo->getDbVersionErrors()
#6 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#7 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#8 /home/comfortegypt/public_html/vendor/magento/module-page-cache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#9 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#10 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#11 /home/comfortegypt/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#12 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#13 /home/comfortegypt/public_html/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#14 /home/comfortegypt/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#15 /home/comfortegypt/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#16 /home/comfortegypt/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#17 {main}

Exception #1 (Magento\Framework\Exception\LocalizedException): DOMDocument::loadXML(): String not started expecting ' or " in Entity, line: 1 in /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php on line 159
#0 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList/Loader.php(83): Magento\Framework\Xml\Parser->loadXML('<?xml version=\xE2...')
#1 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList.php(72): Magento\Framework\Module\ModuleList\Loader->load()
#2 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList.php(92): Magento\Framework\Module\ModuleList->getAll()
#3 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(140): Magento\Framework\Module\ModuleList->getOne('Magento_Store')
#4 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(56): Magento\Framework\Module\DbVersionInfo->isModuleVersionEqual('Magento_Store', '2.0.0')
#5 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(79): Magento\Framework\Module\DbVersionInfo->isSchemaUpToDate('Magento_Store')
#6 /home/comfortegypt/public_html/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(55): Magento\Framework\Module\DbVersionInfo->getDbVersionErrors()
#7 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#8 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#9 /home/comfortegypt/public_html/vendor/magento/module-page-cache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#10 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#11 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#12 /home/comfortegypt/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#13 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#14 /home/comfortegypt/public_html/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#15 /home/comfortegypt/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#16 /home/comfortegypt/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#17 /home/comfortegypt/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#18 {main}

Exception #2 (Magento\Framework\Exception\LocalizedException): DOMDocument::loadXML(): String not started expecting ' or &quot; in Entity, line: 1 in /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php on line 159
#0 [internal function]: Magento\Framework\Xml\Parser->errorHandler(2, 'DOMDocument::lo...', '/home/comforteg...', 159, Array)
#1 /home/comfortegypt/public_html/vendor/magento/framework/Xml/Parser.php(159): DOMDocument->loadXML('<?xml version=\xE2...')
#2 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList/Loader.php(83): Magento\Framework\Xml\Parser->loadXML('<?xml version=\xE2...')
#3 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList.php(72): Magento\Framework\Module\ModuleList\Loader->load()
#4 /home/comfortegypt/public_html/vendor/magento/framework/Module/ModuleList.php(92): Magento\Framework\Module\ModuleList->getAll()
#5 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(140): Magento\Framework\Module\ModuleList->getOne('Magento_Store')
#6 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(56): Magento\Framework\Module\DbVersionInfo->isModuleVersionEqual('Magento_Store', '2.0.0')
#7 /home/comfortegypt/public_html/vendor/magento/framework/Module/DbVersionInfo.php(79): Magento\Framework\Module\DbVersionInfo->isSchemaUpToDate('Magento_Store')
#8 /home/comfortegypt/public_html/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(55): Magento\Framework\Module\DbVersionInfo->getDbVersionErrors()
#9 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#10 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#11 /home/comfortegypt/public_html/vendor/magento/module-page-cache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#12 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#13 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#14 /home/comfortegypt/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#15 /home/comfortegypt/public_html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#16 /home/comfortegypt/public_html/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#17 /home/comfortegypt/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#18 /home/comfortegypt/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#19 /home/comfortegypt/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#20 {main}
can anyone help me to solve it please

Re: Permission error

The Information you shared above is great. I have been reading all you shared here. In this you explained everything very well. If i want any further guideline we will contact you here https://community.magento.com/t5-gosloto/forums/replypage/board-id/Meta/message-id/1108/tab/rich