1

I'm upgrading from magento2.2.5 to 2.3.5 I'm facing this issue

PHP Fatal error:  Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found in app/code/<Vendor>/<ModuleName>/registration.php file


<?php
 \Magento\Framework\Component\ComponentRegistrar::register(
     \Magento\Framework\Component\ComponentRegistrar::MODULE,
     'Vendor_Module',
     __DIR__
 );

can anyone please help me.

  • Share the code of this file : app/code/<Vendor>/<ModuleName>/registration.php – Dhiren Vasoya Aug 7 at 6:55
  • updated the code in the ticket – venkata prasad Aug 7 at 7:30
  • Have you check by disabling/Remove this extension? if you disable does above error gone? – Dhiren Vasoya Aug 7 at 9:26
0

there is an issue with one of your module that does not have proper code in registration.php file and it does not have this class Magento\Framework\Component\ComponentRegistrar either delete the module or update the code of of your registration.php file in your module

| improve this answer | |
  • i think you need to upgrade their composer.json file one simple way is to take complete backup of you app/code folder and remove mdules then upgrade and put back those modules – Pramod Aug 6 at 6:13
  • remove generated – Pramod Aug 6 at 6:23
  • yes removed the generated, pub and var data – venkata prasad Aug 6 at 7:01
  • still you are getting error? – Pramod Aug 6 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.