Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Generates DI configuration #483

Open
ashok1421 opened this issue Apr 4, 2024 · 4 comments
Open

Error in Generates DI configuration #483

ashok1421 opened this issue Apr 4, 2024 · 4 comments

Comments

@ashok1421
Copy link

ashok1421 commented Apr 4, 2024

Hello @yashgit891 ,
After installed Razorpay module when we run command php bin/magento setup:di:compile.
It throw the error.

PHP Fatal error:  Uncaught Error: Class 'WpOrg\Requests\Autoload' not found in project/vendor/razorpay/magento/Model/TrackPluginInstrumentation.php:23
Stack trace:
#0 project/vendor/composer/ClassLoader.php(576): include()
#1 project/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/Users/ashokmah...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Razorpay\\Magent...')
#3 [internal function]: spl_autoload_call('Razorpay\\Magent...')
#4 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Razorpay\\Magent...')
#5 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Razorpay\\Magent...', '/Users/ashokmah...')
#6 /Users/ashokmahyvanshi/Documents/projec in project/vendor/razorpay/magento/Model/TrackPluginInstrumentation.php on line 23

Fatal error: Uncaught Error: Class 'WpOrg\Requests\Autoload' not found in project/vendor/razorpay/magento/Model/TrackPluginInstrumentation.php:23
Stack trace:
#0 project/vendor/composer/ClassLoader.php(576): include()
#1 project/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/Users/ashokmah...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Razorpay\\Magent...')
#3 [internal function]: spl_autoload_call('Razorpay\\Magent...')
#4 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Razorpay\\Magent...')
#5 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Razorpay\\Magent...', '/Users/ashokmah...')
#6 /Users/ashokmahyvanshi/Documents/projec in project/vendor/razorpay/magento/Model/TrackPluginInstrumentation.php on line 23
PHP Fatal error:  Uncaught Error: Class 'WpOrg\Requests\Autoload' not found in project/vendor/razorpay/magento/Model/System/Message/UpgradeMessageNotification.php:20
Stack trace:
#0 project/vendor/composer/ClassLoader.php(576): include()
#1 project/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/Users/ashokmah...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Razorpay\\Magent...')
#3 [internal function]: spl_autoload_call('Razorpay\\Magent...')
#4 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Razorpay\\Magent...')
#5 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Razorpay\\Magent...', '/Users/ashokmah...')
#6 /Users/ashokmahyvanshi/Documents/projec in project/vendor/razorpay/magento/Model/TrackPluginInstrumentation.php on line 23

Fatal error: Uncaught Error: Class 'WpOrg\Requests\Autoload' not found in project/vendor/razorpay/magento/Model/System/Message/UpgradeMessageNotification.php:20
Stack trace:
#0 project/vendor/composer/ClassLoader.php(576): include()
#1 project/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/Users/ashokmah...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Razorpay\\Magent...')
#3 [internal function]: spl_autoload_call('Razorpay\\Magent...')
#4 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Razorpay\\Magent...')
#5 project/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Razorpay\\Magent...', '/Users/ashokmah...')
#6 /Users/ashokmahyvanshi/Documents/projec in project/vendor/razorpay/magento/Model/TrackPluginInstrumentation.php on line 23
@yashgit891
Copy link
Contributor

@ashok1421 what is the magento and php version being used?

@ashok1421
Copy link
Author

@yashgit891 Magento2.4.1 php v7.4.33

@yashgit891
Copy link
Contributor

@ashok1421 not able to reproduce at my end. Can you please tell if you installed plugin via composer or the code.zip file that we provide.

@ashok1421
Copy link
Author

@yashgit891 composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants