Skip to content

MultiColumnPlugin causes AttributeError #10

@asmaps

Description

@asmaps

Sometimes after adding a MultiColumnPlugin the page containing it completely breaks and only throws

AttributeError at /en/home/
'NoneType' object has no attribute 'get_plugin_class'

in https://github.com/divio/django-cms/blob/develop/cms/middleware/toolbar.py#L29
'instance' in this context comes from https://github.com/divio/django-cms/blob/develop/cms/models/pluginmodel.py#L171 where a "DoesNotExist" exception is raised and so instance = None. I tried to figure out how to fix it but I wasn't successful. The problem only seems to occur with MultiColumnPlugin - maybe it doesn't save something I think. Somebody who knows the code better should look after it. Unfortunately I don't know how to reproduce it - I just added a MultiColumn and it broke (using the cms from git in branch develop).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions