samerton / Nameless-Resources

Resources module for NamelessMC v2
MIT License
10 stars 13 forks source link

Error with Paypal #41

Closed xthomas6428 closed 3 years ago

xthomas6428 commented 3 years ago

Hello I am currently using NamelessMC v2 and I have the resource module but when I buy the resource its done, can anyone help me?

Error is : Fatal error: Uncaught Error: Class 'PayPal\Api\Payer' not found in /var/www/pterodactyl-template-france.com/modules/Resources/pages/resources/purchase.php:165 Stack trace: #0 /var/www/pterodactyl-template-france.com/index.php(106): require() #1 {main} thrown in /var/www/pterodactyl-template-france.com/modules/Resources/pages/resources/purchase.php on line 165 unknown

samerton commented 3 years ago

It looks like you're missing some files, can you please re-upload the modules/Resources/PayPal-PHP-SDK folder from the Resources module onto your web host

samerton commented 3 years ago

Can you check the file cache/logs/other-log.log for errors

xthomas6428 commented 3 years ago

Yes as soon as I put my client ID and secret client his remake, here are the files: File.zip

xthomas6428 commented 3 years ago

So?

samerton commented 3 years ago

Have you checked the file cache/logs/other-log.log for errors?

xthomas6428 commented 3 years ago

There is no errors :/

samerton commented 3 years ago

Which files do you see in the cache/logs folder?

xthomas6428 commented 3 years ago

fatal-log.log other-log.log PayPal.log

samerton commented 3 years ago

Is there anything inside the files other-log.log or is it empty?

xthomas6428 commented 3 years ago

No there are things inside

xthomas6428 commented 3 years ago

I don't think I have the latest version of your module. Can you send me the latest version of Nameless-Resources?

samerton commented 3 years ago

The latest version is 1.4.0, available here: https://github.com/samerton/Nameless-Resources/releases/tag/v1.4.0

xthomas6428 commented 3 years ago

ok but if i change the version i will lose the resources i currently have? if so how can i save them?

samerton commented 3 years ago

You won't lose any resources when you update the module.

If you're uncertain, feel free to back up your files and the database first.

xthomas6428 commented 3 years ago

okay thanks!

xthomas6428 commented 3 years ago

Hello again, I allow myself to reopen the ticket but I just put the new version and its done ?? Screenshot_1

samerton commented 3 years ago

Feel free to re-open the ticket any time

You might also have to update the template you are using - if you switch to the Default Revamp template, does it look normal?

xthomas6428 commented 3 years ago

Yes indeed it comes from the template I will update it sorry ^^