Bug #22789 Bug Fixed

ChannelEntry model cannot access parent Channel model when deleting entries

Version: 3.4.4 Reporter: Derek Hogue

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 deleting entries using a bulk action from the Entry Manager, I encounter several PHP notices exiting to the screen, all having to do with the ChannelEntry model not being able to find the properties of $this->Channel. I found this under all 3.4.x versions. Examples:

Line 464: $this->Channel->updateEntryStats()
Line 598: $this->Channel->enable_versioning
Line 866: $this->Channel->deft_comments
  • In system/ee/EllisLab/ExpressionEngine/Model/Comment/Comment.php at line 151 add:

    if (is_null($this->Entry->Channel))
    {
        $this->getAssociation('Entry')->markForReload();
    }
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases