Jump to content

Featured Replies

Posted

I have one more issue to resolve before we can upgrade to version 5.

When this hook is used in an OAUTH app, it will consistently fail, but only for some accounts:
https://www.xxxxxxxx.com/community/api/nexus/purchases?active=1&cancelled=0&itemApp=nexus

This prevents our software license management system from working. Users who encounter this error cannot access their products. This even happens on my own personal account, but not on the admin's account. There are multiple products that can be purchased to validate the license, and it is likely those two accounts have different products in their purchase histories.

The same thing happens when an API key is used and the user id is passed in the customers paramter. I added two sample URLs in the client area for testing.

Here is the error:

Error: Class name must be a valid object or a string (0)
#0 /home/xxxxxxxx/public_html/community/system/Patterns/ActiveRecord.php(148): IPS\nexus\Purchase\_LicenseKey::constructFromData(Array)
#1 /home/xxxxxxxx/public_html/community/applications/nexus/sources/Purchase/Purchase.php(1068): IPS\Patterns\_ActiveRecord::load(187, 'lkey_purchase')
#2 /home/xxxxxxxx/public_html/community/applications/nexus/sources/Purchase/Purchase.php(1044): IPS\nexus\_Purchase->licenseKey()
#3 /home/xxxxxxxx/public_html/community/system/Api/PaginatedResponse.php(117): IPS\nexus\_Purchase->apiOutput(Object(IPS\Member))
#4 /home/xxxxxxxx/public_html/community/system/Dispatcher/Api.php(351): IPS\Api\_PaginatedResponse->getOutput()
#5 /home/xxxxxxxx/public_html/community/api/index.php(11): IPS\Dispatcher\_Api->run()
#6 {main}

Backtrace:

#0 /home/xxxxxxxx/public_html/community/init.php(1049): IPS\_Log::log('Error: Class na...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(Error))
#2 {main}

Edited by Interferon

  • 2 weeks later...
  • Author

This was likely caused by a plugin that distributes Steam keys to users who purchase a product, which was uninstalled and caused an invalid key to make the call fail. This is considered a bug in the IPB software and is being resolved in a future update of 5.x.

Recently Browsing 0

  • No registered users viewing this page.