Taddei Jean-Baptiste Posted January 11, 2016 Posted January 11, 2016 We have an error in the Reference API within the Admin CP When we try to display the reference for the database Records, we get an EX0 error. Our log files shows the following informations: Quote 0: Class \IPS\cms\Category does not exist #0 /home/forumshalo/www/applications/core/modules/admin/applications/apiReference.php(154): ReflectionMethod->__construct('\\IPS\\cms\\Catego...', 'apiOutput') #1 /home/forumshalo/www/applications/core/modules/admin/applications/apiReference.php(169): IPS\core\modules\admin\applications\_apiReference->_getAdditionalClasses('\\IPS\\cms\\Catego...') #2 /home/forumshalo/www/applications/core/modules/admin/applications/apiReference.php(100): IPS\core\modules\admin\applications\_apiReference->_getAdditionalClasses('IPS\\cms\\Records') #3 /home/forumshalo/www/system/Dispatcher/Controller.php(94): IPS\core\modules\admin\applications\_apiReference->manage() #4 /home/forumshalo/www/applications/core/modules/admin/applications/apiReference.php(34): IPS\Dispatcher\_Controller->execute() #5 /home/forumshalo/www/applications/core/modules/admin/applications/api.php(86): IPS\core\modules\admin\applications\_apiReference->execute() #6 /home/forumshalo/www/system/Dispatcher/Controller.php(94): IPS\core\modules\admin\applications\_api->__call('manage', Array) #7 /home/forumshalo/www/system/Dispatcher/Controller.php(94): IPS\core\modules\admin\applications\api->manage() #8 /home/forumshalo/www/system/Dispatcher/Dispatcher.php(129): IPS\Dispatcher\_Controller->execute() #9 /home/forumshalo/www/seedling-star/index.php(13): IPS\_Dispatcher->run() #10 {main} What can we do to fix the problem ? Thanks
Get-Gaming Posted January 11, 2016 Posted January 11, 2016 Got no answer to this either.. So once again I solved it myself. Quote /** * GET /cms/records/{database_id} * Get list of records * * @param int $database Database ID * @apiparam string categories Comma-delimited list of category IDs * @apiparam string authors Comma-delimited list of member IDs - if provided, only records started by those members are returned * @apiparam int locked If 1, only records which are locked are returned, if 0 only unlocked * @apiparam int hidden If 1, only records which are hidden are returned, if 0 only not hidden * @apiparam int pinned If 1, only records which are pinned are returned, if 0 only not pinned * @apiparam int featured If 1, only records which are featured are returned, if 0 only not featured * @apiparam string sortBy What to sort by. Can be 'date' for creation date, 'title' or leave unspecified for ID * @apiparam string sortDir Sort direction. Can be 'asc' or 'desc' - defaults to 'asc' * @apiparam int page Page number * @throws 2T306/1 INVALID_DATABASE The database ID does not exist * @return \IPS\Api\PaginatedResponse<IPS\cms\Records> */ Quote /** * GET /cms/records/{database_id}/{record_id} * View details about a specific record * * @param int $database Database ID Number * @param int $record Record ID Number * @throws 2T306/2 INVALID_DATABASE The database ID does not exist * @throws 2T306/3 INVALID_ID The record ID does not exist * @return \IPS\cms\Records */ Quote /** * POST /cms/records/{database_id} * Create a record * * @param int $database Database ID Number * @reqapiparam int category The ID number of the category the record should be created in. If the database does not use categories, this is not required * @reqapiparam int author The ID number of the member creating the record (0 for guest) * @reqapiparam obejct fields Field values. Keys should be the field ID, and the value should be the value * @apiparam string prefix Prefix tag * @apiparam string tags Comma-separated list of tags (do not include prefix) * @apiparam datetime date The date/time that should be used for the record date. If not provided, will use the current date/time * @apiparam string ip_address The IP address that should be stored for the record. If not provided, will use the IP address from the API request * @apiparam int locked 1/0 indicating if the record should be locked * @apiparam int hidden 0 = unhidden; 1 = hidden, pending moderator approval; -1 = hidden (as if hidden by a moderator) * @apiparam int pinned 1/0 indicating if the record should be pinned * @apiparam int featured 1/0 indicating if the record should be featured * @throws 2T306/4 INVALID_DATABASE The database ID does not exist * @throws 1T306/5 NO_CATEGORY The category ID does not exist * @throws 1T306/6 NO_AUTHOR The author ID does not exist * @return \IPS\cms\Records */ Quote /** * POST /cms/records/{database_id}/{record_id} * Edit a record * * @param int $database Database ID Number * @param int $record Record ID Number * @param int $database Database ID Number * @apiparam int category The ID number of the category the record should be created in. If the database does not use categories, this is not required * @apiparam int author The ID number of the member creating the record (0 for guest) * @apiparam obejct fields Field values. Keys should be the field ID, and the value should be the value * @apiparam string prefix Prefix tag * @apiparam string tags Comma-separated list of tags (do not include prefix) * @apiparam datetime date The date/time that should be used for the record date. If not provided, will use the current date/time * @apiparam string ip_address The IP address that should be stored for the record. If not provided, will use the IP address from the API request * @apiparam int locked 1/0 indicating if the record should be locked * @apiparam int hidden 0 = unhidden; 1 = hidden, pending moderator approval; -1 = hidden (as if hidden by a moderator) * @apiparam int pinned 1/0 indicating if the record should be pinned * @apiparam int featured 1/0 indicating if the record should be featured * @throws 2T306/9 INVALID_DATABASE The database ID does not exist * @throws 2T306/6 INVALID_ID The record ID is invalid * @throws 1T306/7 NO_CATEGORY The category ID does not exist * @throws 1T306/8 NO_AUTHOR The author ID does not exist * @return \IPS\cms\Records */
Taddei Jean-Baptiste Posted January 11, 2016 Author Posted January 11, 2016 Thank you for your quick answer. I tested and it's fixed thank you for all
Taddei Jean-Baptiste Posted February 12, 2016 Author Posted February 12, 2016 I Bump this topic, as the bug is still present and the fix doesn't work (IPS 4.1.8.1)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.