2

i created a new module, after runing this command

php bin/magento module:enable myFirstModule

i am getting this error.

Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist in C:\xampp\htdocs\magento2\vendor\magento\framework\Code\Reader\ClassReader.php:19 Stack trace: #0 C:\xampp\htdocs\magento2\vendor\magento\framework\Code\Reader\ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...') #1 C:\xampp\htdocs\magento2\vendor\magento\framework\ObjectManager\Definition\Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...') #2 C:\xampp\htdocs\magento2\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\Framewo...') #3 C:\xampp\htdocs\magento2\vendor\magento\framework\ObjectManager\ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...') #4 C:\xampp\htdocs\magento2\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManage in C:\xampp\htdocs\magento2\vendor\magento\framework\Code\Reader\ClassReader.php on line 19

i have clear all of my cache and also used upgrade command. but in CMD the results are...CMD Results

what would be the reason of this?enter image description here i also removed those module files but still there is error.

Mohit Rane
2,0001 gold badge18 silver badges52 bronze badges
asked Apr 5, 2018 at 0:29
3
  • You can supply your module code? Commented Aug 20, 2019 at 6:12
  • One can give a try on this - magento.stackexchange.com/a/351498/34579 Commented Dec 30, 2021 at 15:35
  • That seems a Windows environment... You are brave 👏🏼 Commented Oct 29, 2022 at 9:14

1 Answer 1

0

In Magento2 module names are the case sensitive in your case check the name of the modules you defined in namespaces and other places like module.xml or registration.php

answered Sep 11, 2019 at 12:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.