mirasvit / module-blog

Magento 2 Blog Extension
https://mirasvit.com/magento-2-extensions/blog.html
Open Software License 3.0
67 stars 48 forks source link

PHP Fatal error: Uncaught TypeError: Argument 2 passed - when deploying #69

Closed andidhouse closed 7 years ago

andidhouse commented 7 years ago

After trying to install the extension via composer in exactly the way described we get the following error below while running:

sudo php -f bin/magento setup:static-content:deploy

Module 'Mirasvit_Blog': Please re-run Magento compile command au@vm1:~/bab$ sudo rm -rf pub/static/; rm -rf var/view_preprocessed/; au@vm1:~/bab$ sudo php -f bin/magento setup:static-content:deploy Requested languages: en_US Requested areas: frontend, adminhtml Requested themes: Magento/blank, Magento/luma, Bab/bab, Magento/backend === frontend -> Magento/blank -> en_US === === frontend -> Magento/luma -> en_US === === frontend -> Bab/bab -> en_US === === adminhtml -> Magento/backend -> en_US === ...PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Design\FileResolution\Fallback\StaticFile::getFile() must implement interface Magento\Framework\View\Design\ThemeInterface, array given, called in /srv/live/bab/vendor/magento/framework/View/Asset/Source.php on line 227 and defined in /srv/live/bab/vendor/magento/framework/View/Design/FileResolution/Fallback/StaticFile.php:41 Stack trace:

0 /srv/live/baby/vendor/magento/framework/View/Asset/Source.php(227): Magento\Framework\View\Design\FileResolution\Fallback\StaticFile->getFile('frontend', Array, 'en_US', 'favicon.ico', 'Magento_Theme')

1 /srv/live/bab/vendor/magento/framework/View/Asset/Source.php(198): Magento\Framework\View\Asset\Source->findFileThroughFallback(Object(Magento\Framework\View\Asset\File), Object(Magento\Framework\View\Asset\File\FallbackContext))

2 /srv/live/baby/vendor/magento/framework/View/Asset/Source.php(143): Magento\Framework\View\Asset\Source->findSourceFile(Object(Magento\Framework\View\ in /srv/live/bab/vendor/magento/framework/View/Design/FileResolution/Fallback/StaticFile.php on line 41

........................

[Exception]
Notice: unserialize(): Error at offset 0 of 1 bytes in /srv/live/bab/vendor/magento/module-config/App/Config/Type
/System.php on line 214

andidhouse commented 7 years ago

Running sudo php -f bin/magento setup:static-content:deploy a second time solved the issue.