cancel
Showing results for 
Search instead for 
Did you mean: 

multi language create store view issue

multi language create store view issue

I tried to create new store view in Magento 2.
I have already set Website>Store>Store View(English)
Name : product-en
Code : product_en
Status : Enable
Sort Order : 0

I wanted to create store view (Chinese) on the same level(in the same Store)
Name : product-zh
Code : product_zh
Status : Enable
Sort Order : 0

But I faced following issue.
Something went wrong while saving. Please review the error log.

Could you help me out?
Thank you.store view issue.JPG

3 REPLIES 3

Re: multi language create store view issue

Hello @sin4 

 

Can you please check error log and post over here ? go to var/log directory you will find error log for the same.

 

Post the same over log over here so its help us to troubleshoot the issue.

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: multi language create store view issue

Hi,

Thank you for reply.

 

You mean go to var > log directory in file manager?

Which file can I find it?

There are some files there.

connector.log
debug.log
exception.log
magento.cron.log
setup.cron.log
system.log
update.cron.log
update.log

 

Or you mean error_log file in public_html directory?

I found following message there.

Stack trace:
#0 /home/sin55/public_html/index.php(62): Magento\Framework\App\Bootstrap::create('/home/sin55/pub...', NULL)
#1 {main}
  thrown in /home/sin55/public_html/vendor/magento/framework/App/Bootstrap.php on line 117
[29-Mar-2019 13:09:28 UTC] PHP Notice:  Undefined variable: params in /home/sin55/public_html/index.php on line 62
[29-Mar-2019 13:09:28 UTC] PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Magento\Framework\App\Bootstrap::create() must be of the type array, null given, called in /home/sin55/public_html/index.php on line 62 and defined in /home/sin55/public_html/vendor/magento/framework/App/Bootstrap.php:117
Stack trace:
#0 /home/sin55/public_html/index.php(62): Magento\Framework\App\Bootstrap::create('/home/sin55/pub...', NULL)
#1 {main}
  thrown in /home/sin55/public_html/vendor/magento/framework/App/Bootstrap.php on line 117

Thank you for your help.

Re: multi language create store view issue

I found following error in system.log in var/log.

 

[2019-03-31 09:23:04] 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} [] []

Can anyone solve this issue?

Thank you.