You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error is displayed explode() passing null to parameter #2 ($string) of type string is deprecated error
The issue is caused by 14c08fc upgrade. After enforcing VirtualRootCategory as string:
diff --git a/Model/Rule.php b/Model/Rule.php
index 1dc3845..5af5473 100644
--- a/Model/Rule.php
+++ b/Model/Rule.php
@@ -433,7 +433,7 @@ class Rule extends \Smile\ElasticsuiteCatalogRule\Model\Rule implements VirtualR
// - - Category C (virtual with category B as root)
// When you compute the rule of the category A you do not need to compute the rule of the category C
// as all the product will be there.
- if ($rootCategory && array_intersect(explode('/', $rootCategory->getPath()), $excludedCategories)) {
+ if ($rootCategory && array_intersect(explode('/', (string) $rootCategory->getPath()), $excludedCategories)) {
return null;
}
I'm not able to reproduce the issue even after reverting my change.
The text was updated successfully, but these errors were encountered:
Hello @Tomasz-Silpion
Thank you for reporting,
This issue will be fixed by : #3336
It is a bit different that your fix because we should have a category without path, I fixed the root cause too
Preconditions
Magento Version : CE 2.4.7
ElasticSuite Version : 7.17.9
Environment : Production
Steps to reproduce
Expected result
Actual result
explode() passing null to parameter #2 ($string) of type string is deprecated error
The issue is caused by 14c08fc upgrade. After enforcing VirtualRootCategory as string:
I'm not able to reproduce the issue even after reverting my change.
The text was updated successfully, but these errors were encountered: