Skip to content

Indexer not working with PHP 7 (7.0.4) #3833

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
jackiellowery opened this issue Mar 18, 2016 · 3 comments
Closed

Indexer not working with PHP 7 (7.0.4) #3833

jackiellowery opened this issue Mar 18, 2016 · 3 comments
Assignees

Comments

@jackiellowery
Copy link

Steps to reproduce

  1. Install Magento 2.0.2. (apache 2.4.18, php 7.0.4, mariadb 10.0.24)
  2. Import products from Magento 1.7.x store.
  3. In Magento backend, set indexes to update on schedule.
  4. Run php bin/magento indexer:reindex.

Expected result

  1. All indexes reindexed.

Actual result

[~/www/dev]# bin/magento indexer:reindex -vv



  [InvalidArgumentException]
  There are no commands defined in the "indexer" namespace.



Exception trace:
 () at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:501
 Symfony\Component\Console\Application->findNamespace() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:535
 Symfony\Component\Console\Application->find() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:192
 Symfony\Component\Console\Application->doRun() at /home/dev/public_html/dev/vendor/magento/framework/Console/Cli.php:49
 Magento\Framework\Console\Cli->doRun() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at /home/dev/public_html/dev/bin/magento:25

Workaround

  1. if i run /opt/bin/php56/bin/php bin/magento indexer:reindex indexing succeeds.
@jackiellowery jackiellowery changed the title Indexer not working with PHP 7 Indexer not working with PHP 7 (7.0.4) Mar 18, 2016
@katmoon katmoon added the MX label Mar 22, 2016
@vzabaznov
Copy link
Contributor

@jackiellowery maybe you have wrong permission, try to do it with sudo

@jackiellowery
Copy link
Author

i tried sudo too, but it didn't work. it only works if i specify path to php56, and i don't need to sudo with php56.

@piotrekkaminski
Copy link
Contributor

@jackiellowery can you reproduce it on latest version 2.1rc or develop branch using latest PHP7? There are some issues with some versions of PHP7 but 7.0.6 should work ok. I'm not getting this error. If you are, please open a new issue.

magento-engcom-team pushed a commit that referenced this issue Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants