cancel
Showing results for 
Search instead for 
Did you mean: 

M2 site copy - Theme error

M2 site copy - Theme error

Hi all -

I have our site running fine on our hosting. Our hosting is split into two separate instances of Magento 2 and I've copied the files, exported and imported the database so that I use this copied version for staging and developing.
The problem is that I'm getting an error (in the reports) containing the below:

It's obviously connected with the theme, but I can't figure out how to fix it.

As far as I am aware, I have copied all third party modules and enabled them using SSH.

Any ideas anyone?

Many thanks in advance

Andy

{"0":"Required parameter 'theme_dir' was not passed","1":"<pre>#1 Magento\\Framework\\View\\Design\\Fallback\\Rule\\Theme->getPatternDirs() called at [vendor\/magento\/framework\/View\/Design\/FileResolution\/Fallback\/Resolver\/Simple.php:126]\n#2 Magento\\Framework\\View\\Design\\FileResolution\\Fallback\\Resolver\\Simple->resolveFile() called at [vendor\/magento\/framework\/View\/Design\/FileResolution\/Fallback\/Resolver\/Simple.php:67]\n#3 Magento\\Framework\\View\\Design\\FileResolution\\Fallback\\Resolver\\Simple->resolve() called at [vendor\/magento\/framework\/View\/Design\/FileResolution\/Fallback\/LocaleFile.php:42]\n#4 Magento\\Framework\\View\\Design\\FileResolution\\Fallback\\LocaleFile->getFile() called at [vendor\/magento\/framework\/View\/FileSystem.php:106]\n#5 Magento\\Framework\\View\\FileSystem->getLocaleFileName() called at [vendor\/magento\/framework\/Translate.php:409]\n#6 Magento\\Framework\\Translate->getThemeTranslationFileName() called at [vendor\/magento\/framework\/Translate.php:450]\n#7 Magento\\Framework\\Translate->getThemeTranslationFilesList() called at [vendor\/magento\/framework\/Translate.php:350]\n#8 Magento\\Framework\\Translate->_loadThemeTranslation() called at [vendor\/magento\/framework\/Translate.php:220]\n#9 Magento\\Framework\\Translate->loadData() called at [vendor\/magento\/framework\/App\/Area.php:245]\n#10 Magento\\Framework\\App\\Area->_initTranslate() called at [vendor\/magento\/framework\/App\/Area.php:216]\n#11 Magento\\Framework\\App\\Area->_loadPart() called at [vendor\/magento\/framework\/App\/Area.php:143]\n#12 Magento\\Framework\\App\\Area->load() called at [vendor\/magento\/framework\/View\/DesignLoader.php:55]\n#13 Magento\\Framework\\View\\DesignLoader->load() called at [vendor\/magento\/framework\/App\/Action\/Plugin\/Design.php:48]\n#14 Magento\\Framework\\App\\Action\\Plugin\\Design->beforeDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:121]\n#15 Magento\\Cms\\Controller\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#16 Magento\\Cms\\Controller\\Index\\Index\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Cms\/Controller\/Index\/Index\/Interceptor.php:39]\n#17 Magento\\Cms\\Controller\\Index\\Index\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/FrontController.php:159]\n#18 Magento\\Framework\\App\\FrontController->processRequest() called at [vendor\/magento\/framework\/App\/FrontController.php:98]\n#19 Magento\\Framework\\App\\FrontController->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#20 Magento\\Framework\\App\\FrontController\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#21 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/module-store\/App\/FrontController\/Plugin\/RequestPreprocessor.php:94]\n#22 Magento\\Store\\App\\FrontController\\Plugin\\RequestPreprocessor->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#23 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php:73]\n#24 Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#25 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#26 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#27 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:137]\n#28 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#29 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#30 Magento\\Framework\\App\\Bootstrap->run() called at [index.php:39]\n<\/pre>","url":"\/","script_name":"\/index.php"}
3 REPLIES 3

Re: M2 site copy - Theme error

Hi @Andy_Acute 

Follow the below steps to solve this issue in Magento 2.

  1. Go to Magento Admin
  2.  Move to CONTENT > Themes
  3. Remove theme which directory is already deleted by you.
  4. Go to CONTENT > Configuration
  5. Assign the proper theme to your website store.

If issue resolve, please click on 'Kudos' & Accept as Solution!

 

Problem solved? Click Accept as Solution!

Re: M2 site copy - Theme error

Hello @Andy_Acute ,

 

Go to DB and check theme table

and check type column into db

 

It should be value 0 if it is one 1 then change to 0

 

and do cache flush and check it

 

If works then mark as solution

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: M2 site copy - Theme error

Hi @Andy_Acute ,

Go to your core_config_data table and search the column path for design/theme/theme_id

SELECT * FROM core_config_data WHERE path = "design/theme/theme_id"

and replace your default theme id in it.

Flush your cache using php bin/magento cache:flush

 

Problem Solved! Click kudos & Accept as Solution!