Skip to content

Unable to switch to production mode #9159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
baltechies opened this issue Apr 7, 2017 · 4 comments
Closed

Unable to switch to production mode #9159

baltechies opened this issue Apr 7, 2017 · 4 comments
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed

Comments

@baltechies
Copy link

baltechies commented Apr 7, 2017

When I trying to switch to production mode on magento version 2.1.5 then its throwing the errors like:

Interception cache generation... 7/7 [============================] 100% 3 mins 306.0 MiB
Generated code and dependency injection configuration successfully.
Compilation complete
Starting deployment of static content
Something went wrong while deploying static content. See the error log for details.
Command returned non-zero exit code:
/usr/bin/php -f /opt/bitnami/apps/magento/htdocs/bin/magento setup:static-content:deploy en_US de_DE fr_FR it_IT
-bash-4.2$ php bin/magento module:status

PHP Fatal error: Uncaught Error: Class 'Magento\Indexer\Model\Config\Reader' not found in /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:93
Stack trace:
#0 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Indexer...', Array)
#1 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\Indexer...')
#2 /opt/bitnami/apps/magento/htdocs/app/code/Manadev/Core/Registries/ConfigurationReaders.php(32): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Indexer...')
#3 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Manadev\Core\Registries\ConfigurationReaders->__construct(Object(Magento\Framework\ObjectManager\ObjectManager), Array)
#4 /opt/bitnami/apps/magento/htdocs/vendor/magento/fram in /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93

PHP version is 7.0.6

@korostii
Copy link
Contributor

Looks like the Magento\Indexer\Model\Config\Reader doesn't exist anymore in the 2.1.5 codebase, see commit abdbc941f03e34e0b78df9cfb129c9c0a76aebb4 . You must be having outdated code somewhere.

The trace you provided seems to be incomplete, so it is not clear where this old class name is referenced from. In case it's somewhere in the generated code leftovers, I would suggest clearing var/di, var/generation and running php bin/magento setup:di:compile again.
If that doesn't help, I'd suggest checking 3rd-party and customized code (if you have any).

@korostii
Copy link
Contributor

Possible duplicate of #6185.

@fideliocc
Copy link

Did you solve the module issue? If you do, try switching to production mode again for results. I have the same behavior and is only possible to switch with --skip-compilation. Then deploy the static content, manage permissions at /pub and /var, and site runs, but with wrong classes and design.

#9202

@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Sep 11, 2017
@magento-engcom-team
Copy link
Contributor

Hi @baltechies
Looks like some of the third-party extensions you have installed are using class which does not exist in your version. Please refer to linked #9202 for more discussion on this topic.

magento-devops-reposync-svc pushed a commit that referenced this issue Aug 19, 2024
…e-deployment

[Bengals Team] Test Automation Tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed
Projects
None yet
Development

No branches or pull requests

4 participants