cancel
Showing results for 
Search instead for 
Did you mean: 

multi language create store view issue

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

multi language create store view issue

Hi,

I tried to set up multi language store in Stores tab in Dashboard.

But following error was shown.

---

Something went wrong while saving. Please review the error log.

---

So I checked var/log/system.log

---

[2019-04-11 00:48:50] main.CRITICAL: Exception message: Warning: is_file() expects parameter 1 to be a valid path, string given in /home/sin55/public_html/vendor/colinmollenhour/cache-backend-file/File.php on line 512
Trace: #0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'is_file() expec...', '/home/sin55/pub...', 512, Array)
#1 /home/sin55/public_html/vendor/colinmollenhour/cache-backend-file/File.php(512): is_file('/home/sin55/pub...')
#2 /home/sin55/public_html/vendor/colinmollenhour/cache-backend-file/File.php(227): Cm_Cache_Backend_File->_cleanNew('matchingTag', Array)
#3 /home/sin55/public_html/vendor/magento/zendframework1/library/Zend/Cache/Core.php(465): Cm_Cache_Backend_File->clean('matchingTag', Array)
#4 /home/sin55/public_html/vendor/magento/framework/Cache/Core.php(98): Zend_Cache_Core->clean('matchingTag', Array)
#5 /home/sin55/public_html/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(79): Magento\Framework\Cache\Core->clean('matchingTag', Array)
#6 /home/sin55/public_html/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(91): Magento\Framework\Cache\Frontend\Adapter\Zend->clean('matchingTag', Array)
#7 /home/sin55/public_html/vendor/magento/framework/Cache/Frontend/Decorator/TagScope.php(75): Magento\Framework\Cache\Frontend\Decorator\Bare->clean('matchingTag', Array)
#8 /home/sin55/public_html/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(91): Magento\Framework\Cache\Frontend\Decorator\TagScope->clean('matchingTag', Array)
#9 /home/sin55/public_html/vendor/magento/framework/Cache/Frontend/Decorator/Logger.php(47): Magento\Framework\Cache\Frontend\Decorator\Bare->clean('all', Array, 'all')
#10 /home/sin55/public_html/vendor/magento/framework/App/Cache.php(102): Magento\Framework\Cache\Frontend\Decorator\Logger->clean()
#11 /home/sin55/public_html/vendor/magento/framework/App/Cache/Proxy.php(103): Magento\Framework\App\Cache->clean(Array)
#12 /home/sin55/public_html/vendor/magento/framework/Model/AbstractModel.php(803): Magento\Framework\App\Cache\Proxy->clean(Array)
#13 /home/sin55/public_html/generated/code/Magento/Store/Model/Store/Interceptor.php(1090): Magento\Framework\Model\AbstractModel->cleanModelCache()
#14 /home/sin55/public_html/vendor/magento/framework/Model/AbstractModel.php(815): Magento\Store\Model\Store\Interceptor->cleanModelCache()
#15 /home/sin55/public_html/vendor/magento/module-store/Model/Store.php(1051): Magento\Framework\Model\AbstractModel->afterSave()
#16 /home/sin55/public_html/generated/code/Magento/Store/Model/Store/Interceptor.php(427): Magento\Store\Model\Store->afterSave()
#17 /home/sin55/public_html/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(832): Magento\Store\Model\Store\Interceptor->afterSave()
#18 /home/sin55/public_html/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(418): Magento\Framework\Model\ResourceModel\Db\AbstractDb->processAfterSaves(Object(Magento\Store\Model\Store\Interceptor))
#19 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\ResourceModel\Db\AbstractDb->save(Object(Magento\Store\Model\Store\Interceptor))
#20 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\ResourceModel\Store\Interceptor->___callParent('save', Array)
#21 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\ResourceModel\Store\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Store\Model\Store\Interceptor))
#22 /home/sin55/public_html/generated/code/Magento/Store/Model/ResourceModel/Store/Interceptor.php(117): Magento\Store\Model\ResourceModel\Store\Interceptor->___callPlugins('save', Array, Array)
#23 /home/sin55/public_html/vendor/magento/framework/Model/AbstractModel.php(647): Magento\Store\Model\ResourceModel\Store\Interceptor->save(Object(Magento\Store\Model\Store\Interceptor))
#24 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\AbstractModel->save()
#25 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\Store\Interceptor->___callParent('save', Array)
#26 /home/sin55/public_html/vendor/magento/module-theme/Model/Indexer/Design/Config/Plugin/Store.php(39): Magento\Store\Model\Store\Interceptor->Magento\Framework\Interception\{closure}()
#27 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Theme\Model\Indexer\Design\Config\Plugin\Store->aroundSave(Object(Magento\Store\Model\Store\Interceptor), Object(Closure))
#28 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\Store\Interceptor->Magento\Framework\Interception\{closure}()
#29 /home/sin55/public_html/generated/code/Magento/Store/Model/Store/Interceptor.php(1014): Magento\Store\Model\Store\Interceptor->___callPlugins('save', Array, NULL)
#30 /home/sin55/public_html/vendor/magento/module-backend/Controller/Adminhtml/System/Store/Save.php(72): Magento\Store\Model\Store\Interceptor->save()
#31 /home/sin55/public_html/vendor/magento/module-backend/Controller/Adminhtml/System/Store/Save.php(133): Magento\Backend\Controller\Adminhtml\System\Store\Save->processStoreSave(Array)
#32 /home/sin55/public_html/vendor/magento/framework/App/Action/Action.php(107): Magento\Backend\Controller\Adminhtml\System\Store\Save->execute()
#33 /home/sin55/public_html/vendor/magento/module-backend/App/AbstractAction.php(229): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#34 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#35 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Backend\Controller\Adminhtml\System\Store\Save\Interceptor->___callParent('dispatch', Array)
#36 /home/sin55/public_html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Backend\Controller\Adminhtml\System\Store\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#37 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\System\Store\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#38 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Backend\Controller\Adminhtml\System\Store\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#39 /home/sin55/public_html/generated/code/Magento/Backend/Controller/Adminhtml/System/Store/Save/Interceptor.php(26): Magento\Backend\Controller\Adminhtml\System\Store\Save\Interceptor->___callPlugins('dispatch', Array, NULL)
#40 /home/sin55/public_html/vendor/magento/framework/App/FrontController.php(55): Magento\Backend\Controller\Adminhtml\System\Store\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#41 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#42 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#43 /home/sin55/public_html/app/code/Infortis/Cgen/Plugin/Magento/Framework/App/FrontController.php(32): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#44 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Infortis\Cgen\Plugin\Magento\Framework\App\FrontController->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#45 /home/sin55/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#46 /home/sin55/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#47 /home/sin55/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#48 /home/sin55/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#49 /home/sin55/public_html/index.php(65): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#50 {main} [] []

Anyone can read this issue?

Please help me out.

Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: multi language create store view issue

Hi @sin4 

 

Can you please try by removing "sudo" from all the above command.

I wish that it will work for you.

 

Thanks

View solution in original post

4 REPLIES 4

Re: multi language create store view issue

Hi @sin4 

 

You need to clear your Magento cache once. Run the following commands on Magento root once.

 

sudo rm -Rf var/generation/* var/di/* var/cache/* var/log/* var/page_cache/* var/view_preprocessed/*
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

I hope it will fix this issue.

 

Thanks

--

If answer is helpful, Please give 'Kudos' and accept 'Answer as Solution'

Re: multi language create store view issue

Hi,

Thank you for reply.

 

I tried to run the commands, but putty asked sudo password.

How can I find this password?

Or I entered SSH client password, but following message was shown.

"sin55 is not in the sudoers file. This incident will be reported."

 

How can I solve this problem?

Thank you.

 

Re: multi language create store view issue

Hi @sin4 

 

Can you please try by removing "sudo" from all the above command.

I wish that it will work for you.

 

Thanks

Re: multi language create store view issue

It worked!!

Thank you very much!!