I am getting error while trying to reindex catalog search
with the following command:
php bin/magento indexer:reindex catalogsearch_fulltext
Here is the error that I am getting while running the above reindex command:
PHP 2. Symfony\Component\Console\Application->run() /var/www/html/magento2/bin/magento:23
PHP 3. Magento\Framework\Console\Cli->doRun() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 4. Symfony\Component\Console\Application->doRun() /var/www/html/magento2/vendor/magento/framework/Console/Cli.php:96
PHP 5. Symfony\Component\Console\Application->doRunCommand() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 6. Symfony\Component\Console\Command\Command->run() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP 7. Magento\Indexer\Console\Command\IndexerReindexCommand->execute() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP 8. Magento\Indexer\Model\Indexer->reindexAll() /var/www/html/magento2/vendor/magento/module-indexer/Console/Command/IndexerReindexCommand.php:57
PHP 9. Magento\CatalogSearch\Model\Indexer\Fulltext->executeFull() /var/www/html/magento2/vendor/magento/module-indexer/Model/Indexer.php:412
PHP 10. Magento\CatalogSearch\Model\Indexer\IndexerHandler->saveIndex() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext.php:111
PHP 11. Magento\Framework\Indexer\SaveHandler\Batch->getItems() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/IndexerHandler.php:95
PHP 12. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator->next() /var/www/html/magento2/vendor/magento/framework/Indexer/SaveHandler/Batch.php:23
PHP 13. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator->next() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:198
PHP 14. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator->next() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:198
...
...
...
/var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:198
PHP 253. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider->prepareProductIndex() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:232
PHP 254. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider->getSearchableAttributes() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/DataProvider.php:421
PHP 255. Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->getBackendType() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/DataProvider.php:225
PHP 256. Magento\Framework\Interception\PluginList\PluginList->getNext() /var/www/html/magento2/var/generation/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php:880
PHP Fatal error: Maximum function nesting level of '256' reached, aborting! in /var/www/html/magento2/vendor/magento/framework/Session/SaveHandler.php on line 80
PHP Stack trace:
PHP 1. {main}() /var/www/html/magento2/bin/magento:0
PHP 2. Symfony\Component\Console\Application->run() /var/www/html/magento2/bin/magento:23
PHP 3. Magento\Framework\Console\Cli->doRun() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 4. Symfony\Component\Console\Application->doRun() /var/www/html/magento2/vendor/magento/framework/Console/Cli.php:96
PHP 5. Symfony\Component\Console\Application->doRunCommand() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 6. Symfony\Component\Console\Command\Command->run() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP 7. Magento\Indexer\Console\Command\IndexerReindexCommand->execute() /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP 8. Magento\Indexer\Model\Indexer->reindexAll() /var/www/html/magento2/vendor/magento/module-indexer/Console/Command/IndexerReindexCommand.php:57
PHP 9. Magento\CatalogSearch\Model\Indexer\Fulltext->executeFull() /var/www/html/magento2/vendor/magento/module-indexer/Model/Indexer.php:412
PHP 10. Magento\CatalogSearch\Model\Indexer\IndexerHandler->saveIndex() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext.php:111
PHP 11. Magento\Framework\Indexer\SaveHandler\Batch->getItems() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/IndexerHandler.php:95
PHP 12. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator->next() /var/www/html/magento2/vendor/magento/framework/Indexer/SaveHandler/Batch.php:23
PHP 13. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator->next() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:198
PHP 14. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator->next() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:198
...
...
...
/var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:198
PHP 253. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider->prepareProductIndex() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:232
PHP 254. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider->getSearchableAttributes() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/DataProvider.php:421
PHP 255. Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor->getBackendType() /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/DataProvider.php:225
PHP 256. Magento\Framework\Interception\PluginList\PluginList->getNext() /var/www/html/magento2/var/generation/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php:880