Jump to content

Featured Replies

Posted

When using the downloads/categories end hook, an error is shown in the returned data:

{
    "errorCode": "EX0",
    "errorMessage": "UNKNOWN_ERROR"
}

The system log displays the following error:

lang_not_exists__downloads_category_29

With this backtrace:

#0 /home/xxxxxxx/public_html/community/applications/downloads/sources/Category/Category.php(172): IPS\_Lang->get('downloads_categ...')
#1 /home/xxxxxxx/public_html/community/system/Patterns/ActiveRecord.php(335): IPS\downloads\_Category->get_name_furl()
#2 /home/xxxxxxx/public_html/community/system/Node/Model.php(519): IPS\Patterns\_ActiveRecord->__get('name_furl')
#3 /home/xxxxxxx/public_html/community/system/Node/Model.php(3838): IPS\Node\_Model->url()
#4 /home/xxxxxxx/public_html/community/system/Api/PaginatedResponse.php(117): IPS\Node\_Model->apiOutput(NULL)
#5 /home/xxxxxxx/public_html/community/system/Dispatcher/Api.php(351): IPS\Api\_PaginatedResponse->getOutput()
#6 /home/xxxxxxx/public_html/community/api/index.php(11): IPS\Dispatcher\_Api->run()
#7 {main}

The full URL and API key are available in my account's access information, entered in the client area. I also added the full URL in the control panel area, in the admin notes.

Thanks for your assistance.

Edited by Interferon

  • Author

The problem was that some phantom categories were still present that had either NULL names or perhaps invalid parent IDs. Apparently, this was due to a very old bug.

Once the issue was identified, I was able to construct URLs to delete the phantom URLs, like this:
https://www.yoursite.com/community/admin/?app=downloads&module=downloads&controller=categories&do=delete&id=10&csrfKey=xxxxxxxxxxxxxxxxxxxx

The system log gave the ID of the next bad category after each attempt.

Of course back up your database before doing anything like this!

Thanks to the team for your support.

Edited by Interferon

Recently Browsing 0

  • No registered users viewing this page.