cancel
Showing results for 
Search instead for 
Did you mean: 

Exception #0 (Magento\Framework\Exception\ValidatorException):

Exception #0 (Magento\Framework\Exception\ValidatorException):

Hi,

i had changed the php version from 7.2 t0 7.3 after i am getting below error and consuming the 100% CPU

 

1 exception(s):
Exception #0 (Magento\Framework\Exception\ValidatorException): Path "/home/vitalticks/public_html/pub/static/" cannot be used with directory "/home/vitalticks/public_html/pub/static/"

Exception #0 (Magento\Framework\Exception\ValidatorException): Path "/home/vitalticks/public_html/pub/static/" cannot be used with directory "/home/vitalticks/public_html/pub/static/"
<pre>#1 Magento\Framework\Filesystem\Directory\Read->validatePath() called at [vendor/magento/framework/Filesystem/Directory/Read.php:111]
#2 Magento\Framework\Filesystem\Directory\Read->getAbsolutePath() called at [vendor/magento/framework/Filesystem/Directory/Write.php:57]
#3 Magento\Framework\Filesystem\Directory\Write->assertWritable() called at [vendor/magento/framework/Filesystem/Directory/Write.php:326]
#4 Magento\Framework\Filesystem\Directory\Write->openFile() called at [vendor/magento/framework/Filesystem/Directory/Write.php:343]
#5 Magento\Framework\Filesystem\Directory\Write->writeFile() called at [vendor/magento/module-require-js/Model/FileManager.php:135]
#6 Magento\RequireJs\Model\FileManager->ensureSourceFile() called at [vendor/magento/module-require-js/Model/FileManager.php:63]
#7 Magento\RequireJs\Model\FileManager->createRequireJsConfigAsset() called at [vendor/magento/module-require-js/Block/Html/Head/Config.php:126]
#8 Magento\RequireJs\Block\Html\Head\Config->_prepareLayout() called at [vendor/magento/framework/View/Element/AbstractBlock.php:283]
#9 Magento\Framework\View\Element\AbstractBlock->setLayout() called at [vendor/magento/framework/View/Layout/Generator/Block.php:149]
#10 Magento\Framework\View\Layout\Generator\Block->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:81]
#11 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:343]
#12 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:89]
#13 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#14 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:55]
#15 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#16 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:253]
#17 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:875]
#18 Magento\Framework\View\Layout->getBlock() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:414]
#19 Magento\Framework\View\Layout\Interceptor->getBlock() called at [vendor/magento/module-cms/Helper/Page.php:171]
#20 Magento\Cms\Helper\Page->prepareResultPage() called at [vendor/magento/module-cms/Controller/Index/Index.php:74]
#21 Magento\Cms\Controller\Index\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#22 Magento\Cms\Controller\Index\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#23 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/Codazon/GoogleAmpManager/Plugin/Controller/Cms/Index/Index.php:27]
#24 Codazon\GoogleAmpManager\Plugin\Controller\Cms\Index\Index->aroundExecute() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#25 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#26 Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins() called at [generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php:26]
#27 Magento\Cms\Controller\Index\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#28 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#29 Magento\Cms\Controller\Index\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#30 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#31 Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins() called at [generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php:39]
#32 Magento\Cms\Controller\Index\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:159]
#33 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:98]
#34 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#35 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#36 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:94]
#37 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#38 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:69]
#39 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#40 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#41 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#42 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:137]
#43 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#44 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#45 Magento\Framework\App\Bootstrap->run() called at [index.php:39]
</pre>

 

 

1 REPLY 1

Re: Exception #0 (Magento\Framework\Exception\ValidatorException):

Hello @sekhar_n 

 

Run following commands :

rm var/cache/* var/generation/* var/view_preprocessed/* var/page_cache/*  pub/static/frontend/* pub/static/adminhtml/* -R
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
chmod -R 777 var/ generated/ pub/static/ pub/media/ 


Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy