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

Fatal error: Uncaught Error: Class "UPS/* not found #6

Closed
graffxdesign opened this issue Nov 26, 2023 · 4 comments
Closed

Fatal error: Uncaught Error: Class "UPS/* not found #6

graffxdesign opened this issue Nov 26, 2023 · 4 comments

Comments

@graffxdesign
Copy link

graffxdesign commented Nov 26, 2023

Hi,

I can't figure out how to fix this. I had a blank directory, used your composer line and am getting this error.

Am I supposed to add another composer line to add the UPS directory? I do not see one in the files.

Fatal error: Uncaught Error: Class "UPS\OAuthClientCredentials\Configuration" not found in /home/NULL/public_html/dadev/wp-content/plugins/rma/ups.php:13 Stack trace: #0 {main} thrown in /home/NULL/public_html/dadev/wp-content/plugins/rma/ups.php on line 13

Thank you

<?php
require __DIR__ . '/vendor/autoload.php';

-- account info removed --

$config = \UPS\OAuthClientCredentials\Configuration::getDefaultConfiguration()
    ->setUsername($clientId)
    ->setPassword($password);
@abolabo
Copy link
Collaborator

abolabo commented Nov 27, 2023

Hi
To solve, you can try do download zip with code and run composer install inside directory.
Probably command require abantecart/ups-php does not work correctly.

@graffxdesign
Copy link
Author

image

Thank you for responding!

I have all the files from your system, am I supposed to install a UPS folder?

@abolabo
Copy link
Collaborator

abolabo commented Nov 28, 2023

each directory is a separate API.
You can use only needed.
Composer.json in the root directory just merge all composer.jsons inside all directories.
You can delete no needed directories and run composer install i the root to compound one vendor directory instead few

@graffxdesign
Copy link
Author

image

Thank you again for responding, I did try that and still no luck. I will try something else.

Thank you for trying to help, there must be something I messed up.

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