Undefined index: categories[cat_group_id_] - expression engine

Posted 3 years ago

A problem I come across when developing with Expression engine is the above error, Call to a member function setData() on a non-object.

This happened after removing a category group before deselecting from the channel configuration. All I had to do was go back into the channel configuration and click save, resetting the assigned category group id’s.


Undefined index: categories[cat_group_id_]

/var/vhost/www/domain/system/ee/EllisLab/ExpressionEngine/Model/Content/ContentModel.php, line 123 show details

Severity: E_NOTICE
Fatal error: Call to a member function setData() on null in /var/www/vhost/domain/system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php on line 561