Labs64 / PluginPass

PluginPass - WordPress PRO Plugin/Theme Licensing
https://wordpress.org/plugins/pluginpass-pro-plugintheme-licensing/
13 stars 1 forks source link

HTTP 4xx/5xx handling #7

Closed r-brown closed 5 years ago

r-brown commented 5 years ago

Following stack trace is shown in case of Unauthorized user request to NetLicensing service

Plugin could not be activated because it triggered a fatal error.

Fatal error: Uncaught NetLicensing\RestException: [0]: Unsupported response status code 401: Unauthorized thrown in /var/www/html/wp-content/plugins/pluginpass/vendor/labs64/netlicensingclient-php/service/NetLicensingService.php on line 169

Improve standard HTTP errors handling and show clear instructions / error messages

r-brown commented 5 years ago

Current output:

Fatal error: Uncaught NetLicensing\RestException: [0]: Unsupported response status code 400: Licensee with the number 'localhost' does not exist. thrown in /var/www/html/wp-content/plugins/pluginpass/vendor/labs64/netlicensingclient-php/service/NetLicensingService.php on line 169

The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.