cancel
Showing results for 
Search instead for 
Did you mean: 

CMS Page Builder Product Widget Conditions Causing Issue

CMS Page Builder Product Widget Conditions Causing Issue

Hello Here,

 

I found an issue with CMS Page Builder Product Widget, when use Condition section with more then one condition on Vanila Magento 2.4.6 p2 with sample data its causing the error "main.CRITICAL: InvalidArgumentException: Class does not exist in /var/www/html/vendor/magento/module-rule/Model/ConditionFactory.php:50".

on 2.4.6 Latest products are visible, but error happens in exception.log, but on earliest versions, like Adobe Commerce ver. 2.4.5-p2 it shows : "No Products were found matching your condition2.4.5-p22.4.5-p22.4.6 p22.4.6 p2

Please, assist.

 

If ALL  of these conditions are TRUE :

 

Here is the full stack of error:

[2023-11-14T20:37:19.191439+00:00] main.CRITICAL: InvalidArgumentException: Class does not exist in /var/www/html/vendor/magento/module-rule/Model/ConditionFactory.php:50
Stack trace:
#0 /var/www/html/vendor/magento/module-rule/Model/Condition/Combine.php(243): Magento\Rule\Model\ConditionFactory->create('')
#1 /var/www/html/vendor/magento/module-rule/Model/AbstractModel.php(320): Magento\Rule\Model\Condition\Combine->loadArray(Array)
#2 /var/www/html/vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php(101): Magento\Rule\Model\AbstractModel->loadPost(Array)
#3 /var/www/html/vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php(242): Magento\PageBuilder\Model\Catalog\ProductTotals->decodeConditions(Array)
#4 /var/www/html/vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php(150): Magento\PageBuilder\Model\Catalog\ProductTotals->applyConditionsToCollection('{"1":{"type":"M...', Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor))
#5 /var/www/html/vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php(183): Magento\PageBuilder\Model\Catalog\ProductTotals->getProductCollection('{"1":{"type":"M...', false)
#6 /var/www/html/vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php(259): Magento\PageBuilder\Model\Catalog\ProductTotals->getDisabledCount('{"1":{"type":"M...')
#7 /var/www/html/vendor/magento/module-page-builder/Controller/Adminhtml/Form/Element/ProductTotals.php(56): Magento\PageBuilder\Model\Catalog\ProductTotals->getProductTotals('{"1":{"type":"M...')
#8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals->execute()
#9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->___callParent('execute', Array)
#10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->Magento\Framework\Interception\{closure}()
#11 /var/www/html/generated/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductTotals/Interceptor.php(23): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->___callPlugins('execute', Array, Array)
#12 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->execute()
#13 /var/www/html/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#14 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->___callParent('dispatch', Array)
#16 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#17 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#18 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#19 /var/www/html/generated/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductTotals/Interceptor.php(32): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->___callPlugins('dispatch', Array, Array)
#20 /var/www/html/vendor/magento/framework/App/FrontController.php(245): Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /var/www/html/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse(Object(Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor), Object(Magento\Framework\App\Request\Http))
#22 /var/www/html/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\PageBuilder\Controller\Adminhtml\Form\Element\ProductTotals\Interceptor))
#23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#25 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#27 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#28 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()
#29 /var/www/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#30 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#31 {main} {"exception":"[object] (InvalidArgumentException(code: 0): Class does not exist at /var/www/html/vendor/magento/module-rule/Model/ConditionFactory.php:50)"} []
[2023-11-14T20:37:19.195612+00:00] main.CRITICAL: InvalidArgumentException: Class does not exist in /var/www/html/vendor/magento/module-rule/Model/ConditionFactory.php:50