django-cms / djangocms-column

Column Plugin for django-cms
BSD 3-Clause "New" or "Revised" License
18 stars 44 forks source link

Can't create multiple column #14

Open Fenkiou opened 10 years ago

Fenkiou commented 10 years ago

Hello !

Sorry for asking but i can't fix this by myself.

I want to create a multiple column like when you create a new project with djangocms and you answer yes to this question : "Load a starting page with examples after installation".

So the example page works fine with the multiple column but with a new page, i try to put a MultiColumn plugin, it ask me how many column i want and their width (i choose 3, 33%) and during create, i see the bottom-right buttom become red with its title 'Share this traceback on public website' but i can't catch the traceback and my MultiColumn is empty..

Really annoying

I'm using django-cms 3.0.2 and djangocms-column 1.3 and it doesn't work on any browser.

JeremyBYU commented 10 years ago

Having the same issue. Using google chrome.

zanethorn commented 10 years ago

Same issue as JeremyBYU. Using django 1.6, django-cms 3.0.2, djancocms-columns 1.3 on Google Chrome

the-over-ape commented 10 years ago

I'm having similar problem I beleive. I've asked this question on SO, and I'm gonna put a small bounty on it if it lasts.

http://stackoverflow.com/questions/25106591/cant-add-columns-in-multicolumns-for-django-cms

It seems to be windows related. I'll check If it works on linux.

EDIT:

Same on Linux...

the-over-ape commented 10 years ago

this worked for me : https://github.com/divio/djangocms-column/pull/17

pterrien commented 10 years ago

I'm afraid the issue may not be corrected yet, as I'm facing a similar issue on Linux, with djangocms-column 1.4 / django-cms 3.0.4. Either when choosing 'yes' to "Load a starting page with examples after installation" in djangocms-installer, or when choosing "no" and then adding multi-columns plugin into a newly created page.

The error is encountered when interpreting {% render_plugin plugin %}, in _multicolumn.html :

In template /dvlpt/venv/my_project/lib/python3.4/site-packages/djangocms_column/templates/cms/plugins/multi_column.html, error at line 4
'NoneType' object has no attribute 'has_change_permission'

More exactly, the exception is raised in cms/templatetags/cms_tags.py, in get_processors() line 352 :

if toolbar and toolbar.edit_mode and placeholder.has_change_permission(request) and getattr(placeholder, 'is_editable', True):

It doesn't seem to be related to the python version, as someone posted a probably similar issue with python2.7 : http://stackoverflow.com/questions/25344675/django-cms-frontend-editer-display-error (edit: corrected link)

Hope this will help a bit...

Thanks.

the-over-ape commented 10 years ago

I'm pretty new at it too. It Might be a different issue from the one I had. I was only toying arround with djangocms but I successfully added the columns and plugins within it. I used django-cms 3.0.3 and djangocms-column 1.3 with my "xrange to range" modification.

Where exactely did the problem occur ? during creation ? during first display after ? I'll retry at home this week with your versions. and maybe try a django2to3 on the whole folder...

pterrien commented 10 years ago

I got an answer to this: it's probably related to version 3.0.4 of django-cms installed by djangocms-installer, and thus has probably nothing to do with djangocms-column. Just downgrading to django-cms to 3.0.3 will correct the problem. Many thanks for your help, and all my apologies for bringing a fake issue here...