-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Class Magento\Framework\Serialize\Serializer\Json does not exist when installing Smile 2.3.8 #559
Comments
@genyuk one cannot simply downgrade a Magento 2 module. By downgrading Elasticsuite you will face following issues :
It's a known limitation of Magento, we cannot provide any working way of downgrading our module. Regards |
Hi. Thank you for your help. |
@genyuk I do not understand what you are trying to do. As explained by @afoucret here is the compatibility matrix :
So if you are using Magento 2.1.9, Elasticsuite 2.3.8 should work fine. What makes you think that Elasticsuite is requiring Serializer\Json somewhere ? Are you sure this error is coming from Elasticsuite ? |
Hi. When we use Elasticsuite 2.3.8 - we enable modules one by one. main.CRITICAL: ReflectionException: Class Magento\Framework\Serialize\Serializer\Json does not exist in /var/www/svm/vendor/magento/framework/Code/Reader/ClassReader.php:19 I agree, that is is not clear from this log that it is coming from ElasticSuite, but it happens just if we enable Smile_ElasticsuiteCatalog. When we use older commit of the 2.4.x-dev - no errors like this. Any ideas? Thank you for your time. |
I did dig a bit on this issue. the Did you process an update to Magento 2.2 and then a rollback to 2.1.9 ? Or maybe when you upgraded to Elasticsuite 2.4.x it did upgrade the Magento Framework package. In any cases, something is not clear about the versions you are using. It seems you are like "stuck in the middle" between Magento 2.1.9 and 2.2 Do you have any results when searching for "Magento\Framework\Serialize\Serializer\Json" in the source code ? you should not have any occurence if you are using Magento 2.1.9 |
We were using Smile-Sa 2.4.x-dev which was working. After recent commits we can't use composer to updeate it, so we reverted to Smile 2.3.8 (we set ^2.3 in composer).
When we recompile, redeploy, clear all possible caches we are getting an error on any page (fron-end or back-end
Magento Version :
Magento 2.1.9 CE
ElasticSuite Version :
2.4.6
Environment : Production or Developer
Third party modules :
quite long list
Steps to reproduce
Install Smile-SA 2.4.x-dev, them downgrade to Smile-SA:2.3.8
Expected result
The store should open
Actual result
After successful recompilation (no errors during redeployment) and all cache clear we are getting this error on any page of the store:
Fatal error: Uncaught Error: Class 'Magento\Framework\Serialize\Serializer\Json' not found in /var/www/svm/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:93 Stack trace: #0 /var/www/svm/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array) #1 /var/www/svm/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\Framewo...') #2 /var/www/svm/pub/errors/processor.php(148): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewo...') #3 /var/www/svm/pub/errors/processorFactory.php(26): Magento\Framework\Error\Processor->__construct(Object(Magento\Framework\App\Response\Http\Interceptor)) #4 /var/www/svm/pub/errors/report.php(10): Magento\Framework\Error\ProcessorFactory->createProcessor() #5 /var/www/svm/vendor/magento/framework/App/Http.php(323): require('/var/www/svm/pu...') #6 /var/www/svm/vendor/magento/framew in /var/www/svm/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93
Any ideas what can cause it?
The text was updated successfully, but these errors were encountered: