-
Notifications
You must be signed in to change notification settings - Fork 347
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
IndexStatsProvider::sizeFormatted() must be of the type string, null returned #1865
Comments
Hello @jocielandrade |
Follow: |
I can't reproduce it in my environment. Regards |
Maybe there is something different on Magento Cloud hosted Elasticsearch server that would make the response being different ? |
Hello @androshchuk We have same issue and we are using magento version 2.3.5 and elastic suite version 2.9.1 As per your above question for output of $indexStats array, in my case its completely empty output of this line We are using separate elastic server and defined in "Elasticsearch Servers List" like 178.33.4.248:9200 Is there anything else that would help us to sort out the issue. Can you please provide your view for same. Thanks, |
Hello @davidandersson1 Unfortunately, I was never able to reproduce this error. Regards |
Hi @androshchuk Thanks, it's work with above suggested solution and i can Indices with Index status. Some index status with EXTERNAL, some with GHOST and some with LIVE. So what does it means exactly? is it fine if we remove Indices with status "EXTERNAL"? Can you please provide your view for the same. Thanks, |
Please read the original feature/issue ticket : #1606 Quick recap :
|
Hi @romainruaud Thanks for your reply. I understand about external indices like we are not able to delete through back office and they are not belonging to website. But somehow if we have to delete those external indices forcefully then is it good to use below syntax? curl -XDELETE http://localhost:9200/{Index Title} Where {Index Title} same as display on back office grid. Thanks, |
This issue was waiting update from the author for too long. |
Preconditions
Magento Version : Magento Cloud 2.3
ElasticSuite Version : 2.9.0
Environment : Developer
Third party modules : None
Steps to reproduce
Expected result
Actual result
Fatal error: Uncaught TypeError: Return value of Smile\ElasticsuiteIndices\Model\IndexStatsProvider::sizeFormatted() must be of the type string, null returned in /app/vendor/smile/elasticsuite/src/module-elasticsuite-indices/Model/IndexStatsProvider.php:170 Stack trace: #0 /app/vendor/smile/elasticsuite/src/module-elasticsuite-indices/Model/IndexStatsProvider.php(126): Smile\ElasticsuiteIndices\Model\IndexStatsProvider->sizeFormatted(NULL) #1 /app/vendor/smile/elasticsuite/src/module-elasticsuite-indices/Model/ResourceModel/Index/Collection.php(85): Smile\ElasticsuiteIndices\Model\IndexStatsProvider->indexStats('magento2_mexico...', NULL) #2 /app/vendor/magento/framework/Data/Collection.php(691): Smile\ElasticsuiteIndices\Model\ResourceModel\Index\Collection->loadData(false, false) #3 /app/vendor/magento/framework/Data/Collection.php(333): Magento\Framework\Data\Collection->load() #4 /app/vendor/smile/elasticsuite/src/module-elasticsuite-indices/Model/Index/Collection.php(87): Magento\Framework\Data\Collection->getItems() in /app/vendor/smile/elasticsuite/src/module-elasticsuite-indices/Model/IndexStatsProvider.php on line 170
The text was updated successfully, but these errors were encountered: