Magento2 - Error: Can't find custom block
-
10-12-2020 - |
Domanda
I've created my custom extension and tried to install it. Now I get the following error:
PHP Fatal error: Class 'My\Module\Block\Customer\Form\Register' not found in /var/www/html/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php on line 117, referer: http://192.168.56.101/magento2/
I tried to recompile the di, upgrade with setup command, clean cache, but nothing works.
How can I fix it?
Soluzione
Make sure you have the case correct. I.e. Register, not register. – Smartie
Thanks Smartie the issue was the wrong case for my module. I created folders with lower case and used upper case in code. ;-)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange