Closed Thedemon007 closed 11 months ago
You should to runcomposer install
command inside directory to rebuild the code.
You should to run
composer install
command inside directory to rebuild the code.
Thanks, i tried but it no solve
You should to run
composer install
command inside directory to rebuild the code.Thanks, i tried but it no solve
https://github.com/abantecart/ups-php/issues/10#issuecomment-1858182148
OAuthClientCredentials work but Rating not, anyway i download the zip file of #10 (comment) and tried run i add line var_dump( is_file('../Rating/vendor/autoload.php'));
first run Same error but var_dump() return: bool(false)
So i do this: cd ../Rating composer install
Tried run again get same error but var_dump() return: bool(true)
did you removed composer.lock and vendor directory before "composer install" command? You should
did you removed composer.lock and vendor directory before "composer install" command? You should
I tried again this time removing composer.lock and vendor directory and get same error
So i do this:
cd ../Rating
composer install
did you unpack ups.zip that i posted above? It already contains correct vendor subfolder and all api installed. In your case you tried to install one of many different APIs of UPS. Just unpack zip and use vendor/autoload.php file.
This is still an issue in the most recent version.
I try run a example with this code but no work
Code:
Error:
PHP Fatal error: Uncaught Error: Class "OneOfRateResponseResponseAlert" not found in /home/demon/php/simple_ups_rate/Rating/src/ObjectSerializer.php:298 Stack trace: #0 /home/demon/php/simple_ups_rate/Rating/src/ObjectSerializer.php(315): UPS\Rating\ObjectSerializer::deserialize() #1 /home/demon/php/simple_ups_rate/Rating/src/ObjectSerializer.php(315): UPS\Rating\ObjectSerializer::deserialize() #2 /home/demon/php/simple_ups_rate/Rating/src/ObjectSerializer.php(315): UPS\Rating\ObjectSerializer::deserialize() #3 /home/demon/php/simple_ups_rate/Rating/src/Request/DefaultApi.php(171): UPS\Rating\ObjectSerializer::deserialize() #4 /home/demon/php/simple_ups_rate/Rating/src/Request/DefaultApi.php(107): UPS\Rating\Request\DefaultApi->rateWithHttpInfo() #5 /home/demon/php/simple_ups_rate/_examples/getRates_.php(115): UPS\Rating\Request\DefaultApi->rate() #6 {main} thrown in /home/demon/php/simple_ups_rate/Rating/src/ObjectSerializer.php on line 298