Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. # first method
  2. ### This error appears when you remove a template folder, which is still referenced in the database. The simplest way to fix it is, go to the database, and in table 'theme', find the theme name which does not exist in app/design/frontend/package.
  3. ### DELETE the reference to the missing theme from the table.
  4.  
  5. # Second method
  6. ### I have the same error Required parameter 'theme_dir' was not passed. I work with 2.1.0 from the beginning, not with updating. And I have one custom product attribute "style".
  7. ### The problem occurs when I try to save the new photo in the material. Without the image, the product saved normally.
  8. ### Fix with commenting the exception under the file:
  9. ### vendor/magento/framework/view/design/Fallbck/Rule/Simple.php
  10. ### It worked for me. But I think it's a hack.
  11.  
  12. # Finally
  13. ### I fixed it by commenting out the exception under vendor/magento/framework/View/Design/Fallback/Rule/Simple.php.
  14.  
  15. if (in_array($placeholder, $this->optionalParams)) {
  16. return [];
  17. } else {
  18. return [];
  19. //throw new \InvalidArgumentException("Required parameter '{$placeholder}' was not passed");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement