Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Add compatibility with Magento Cloud - Fix: "ObjectManager isn't initialized" on deploy#53

Open
fredden wants to merge 1 commit intomirasvit:masterfrom
fredden:magento-cloud-incompat
Open

Add compatibility with Magento Cloud - Fix: "ObjectManager isn't initialized" on deploy#53
fredden wants to merge 1 commit intomirasvit:masterfrom
fredden:magento-cloud-incompat

Conversation

@fredden
Copy link

@fredden fredden commented Apr 24, 2020

Without this, the following PHP Fatal error is encountered when deploying to Magento Cloud instances during the phase which runs vendor/bin/ece-patches apply.

PHP Fatal error: Uncaught RuntimeException: ObjectManager isn't initialized in /var/www/html/vendor/magento/framework/App/ObjectManager.php:36
Stack trace:
#0 /var/www/html/vendor/mirasvit/module-profiler/src/Profiler/Model/Driver/Output/Html.php(18): Magento\Framework\App\ObjectManager::getInstance()
#1 /var/www/html/vendor/magento/framework/Profiler/Driver/Standard.php(195): Mirasvit\Profiler\Model\Driver\Output\Html->display(Object(Magento\Framework\Profiler\Driver\Standard\Stat))
#2 [internal function]: Magento\Framework\Profiler\Driver\Standard->display()
#3 {main}
thrown in /var/www/html/vendor/magento/framework/App/ObjectManager.php on line 36

Fatal error: Uncaught RuntimeException: ObjectManager isn't initialized in /var/www/html/vendor/magento/framework/App/ObjectManager.php:36
Stack trace:
#0 /var/www/html/vendor/mirasvit/module-profiler/src/Profiler/Model/Driver/Output/Html.php(18): Magento\Framework\App\ObjectManager::getInstance()
#1 /var/www/html/vendor/magento/framework/Profiler/Driver/Standard.php(195): Mirasvit\Profiler\Model\Driver\Output\Html->display(Object(Magento\Framework\Profiler\Driver\Standard\Stat))
#2 [internal function]: Magento\Framework\Profiler\Driver\Standard->display()
#3 {main}
thrown in /var/www/html/vendor/magento/framework/App/ObjectManager.php on line 36

Without this, the following PHP Fatal error is encountered when deploying to
Magento Cloud instances during the phase which runs 'vendor/bin/ece-patches apply'.

> PHP Fatal error:  Uncaught RuntimeException: ObjectManager isn't initialized in /var/www/html/vendor/magento/framework/App/ObjectManager.php:36
> Stack trace:
> #0 /var/www/html/vendor/mirasvit/module-profiler/src/Profiler/Model/Driver/Output/Html.php(18): Magento\Framework\App\ObjectManager::getInstance()
> mirasvit#1 /var/www/html/vendor/magento/framework/Profiler/Driver/Standard.php(195): Mirasvit\Profiler\Model\Driver\Output\Html->display(Object(Magento\Framework\Profiler\Driver\Standard\Stat))
> mirasvit#2 [internal function]: Magento\Framework\Profiler\Driver\Standard->display()
> mirasvit#3 {main}
>   thrown in /var/www/html/vendor/magento/framework/App/ObjectManager.php on line 36
>
> Fatal error: Uncaught RuntimeException: ObjectManager isn't initialized in /var/www/html/vendor/magento/framework/App/ObjectManager.php:36
> Stack trace:
> #0 /var/www/html/vendor/mirasvit/module-profiler/src/Profiler/Model/Driver/Output/Html.php(18): Magento\Framework\App\ObjectManager::getInstance()
> mirasvit#1 /var/www/html/vendor/magento/framework/Profiler/Driver/Standard.php(195): Mirasvit\Profiler\Model\Driver\Output\Html->display(Object(Magento\Framework\Profiler\Driver\Standard\Stat))
> mirasvit#2 [internal function]: Magento\Framework\Profiler\Driver\Standard->display()
> mirasvit#3 {main}
>   thrown in /var/www/html/vendor/magento/framework/App/ObjectManager.php on line 36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant