Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 17, 20177 yr The license api return incorrect format data tested in last version. Correct format is {"errorCode":0,"errorMessage":"BAD_METHOD"} where errorCode is a int But other erros return like this throw new ApiException( 'MAX_USES', 201 ); ->This code is in the current version and return {"errorCode": "MAX_USES", "errorMessage": 201} How to fix it? Search the file "root/applications/nexus/interface/licenses/index.php" and search the code catch ( ApiException $e ) { $api->error( $e->getMessage(), $e->getCode() ); } and replace for catch ( ApiException $e ) { $api->error($e->getCode(), $e->getMessage() ); }
Archived
This topic is now archived and is closed to further replies.