cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: Uncaught Error: Class

Fatal error: Uncaught Error: Class

Hi. I keep getting this error. I have tried anything at this time, so I have no clue what to do next.. It is working locally, but on the production server it is not. Both have Magento 2.3.4, both have the same database, both have the same files. Php on (broken staging = PHP 7.3.19-1hypernode20200708.100023 (cli)). On my local site it is 7.3.15.

Fatal error: Uncaught Error: Class 'VendorName\Option\Ui\DataProvider\Product\Form\Modifier\All' not found in /data/web/magento2_staging/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121 Stack trace: #0 /data/web/magento2_staging/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('VendorName\\Option\\Ui...', Array) #1 /data/web/magento2_staging/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('VendorName\\Option\\Ui...', Array) #2 /data/web/magento2_staging/vendor/magento/module-ui/DataProvider/Modifier/ModifierFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('VendorName\\Option\\Ui...', Array) #3 /data/web/magento2_staging/vendor/magento/module-ui/DataProvider/Modifier/Pool.php(76): Magento\Ui\DataProvider\Modifier\ModifierFactory->create('VendorName\\Option\\Ui...') #4 /data/web/magento2_staging/vendor/magento/module-catalog/Ui/DataProvider/Product/F in /data/web/magento2_staging/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121

 Any ideas?

2 REPLIES 2

Re: Fatal error: Uncaught Error: Class

Hello @appicsandbox 

 

Try to uninstall this and check if all works then have to check plugin codebase it may be issue with used object manager class in this plugin. 

 

Or you can contact to this extension provider, might be this pluign not support your version or php version.

 

------------------------------------------------
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Fatal error: Uncaught Error: Class

I am the extension provider. 

This is the di.xml code that makes it crash. Somehow the model-factory cannot handle these lines.

<virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool" type="Magento\Ui\DataProvider\Modifier\Pool">
<arguments>
<argument name="modifiers" xsi:type="array">
<item name="vendorname-option-all" xsi:type="array">
<item name="class" xsi:type="string">VendorName\Option\Ui\DataProvider\Product\Form\Modifier\All</item>
<item name="sortOrder" xsi:type="number">71</item>
</item>
</argument>
</arguments>
</virtualType>