Bug #23090 Bug Fixed

Category Update produces JSON errors

Version: 3.5.6 Reporter: Paul Bell

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

When editing a category (adding a new one, editing an existing one, removing one) using the “in entry” editing features, when I click “Save” or “Remove”, the dialog box doesn’t disappear, and then new/edited category is not in the list. The edit is happening behind the scenes (say if I refresh the page the new category will be there).

I see the following error in the console:

SyntaxError: JSON Parse error: Unrecognized token ‘<’ admin.php:214:363

I have tried disabling extensions but I still see the error.

I can update categories via Channel Management > Category Groups.

  • Fixed for next release, but for a temporary solution, in system/ee/EllisLab/ExpressionEngine/Model/Category/CategoryGroup.php you can change line 175 from:

    $default = ($object->getName() == 'ee:ChannelEntry') ? $object->Channel->deft_category : '';

    to:

    $default = ($object->getName() == 'ee:ChannelEntry'  && is_object($object->Channel)) ? $object->Channel->deft_category : '';
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases