-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Can't access backend indexers page after creating a custom index #21510
Comments
Hi @ccasciotti. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @ccasciotti do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @ccasciotti. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
… after creating a custom index #21575
Hi @ccasciotti. Thank you for your report. The fix will be available with the upcoming 2.2.9 release. |
…dexers page after creating a custom index #21576
After complete all the steps to create a new custom index as described in the official devdoc guide (https://devdocs.magento.com/guides/v2.2/extension-dev-guide/indexing-custom.html)
if you go on admin's indexer list page a fatal error is thrown due to a partially wrong implementation of
Magento\Indexer\Model\Indexer::getLatestUpdated
method called byMagento\Indexer\Model\Indexer\DependencyDecorator::getLatestUpdated
.The result of the
DependencyDecorator::getLatestUpdated
must be a string, but theIndexer::getLatestUpdated
method returnsnull
the very first time you access that backend page because no view is yet present.Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
PHP Fatal error: Uncaught TypeError: Return value of Magento\\Indexer\\Model\\Indexer\\DependencyDecorator::getLatestUpdated() must be of the type string, null returned in <magento_root>/vendor/magento/module-indexer/Model/Indexer/DependencyDecorator.php:240
The text was updated successfully, but these errors were encountered: