ERROR
500
It's not you, it's me.
Trying to get property 'category_id' of non-object