New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMSAttachMenu failing to register after 3.0.12 #3936
Comments
@yakky It looks like this fixed it for me. I had to edit the page to attach the menu again, but it is working as expected. Thanks! |
@mrhanlon thanks for testing. Yes menu might need to be attached again as a spurious menu might have been attached before |
FWIW I also stumbled unto this issue and can confirm #3950 fixes it. |
Thanks, @yakky for the fix and all those reporting! |
I'm still seeing this in 3.0.13 |
@yakky ping? I'm still seeing all Am I doing something wrong? |
Have you wiped out local cache and updated aldryn-apphooks-config too? |
I had (and just have again) cleared the local cache. I'm not using Apphook namespaces (my apps are attached only once), nor |
@yakky ping? Should this be reopened? |
I think yes, because we also experience this problem with 3.0.13. First I need some clarification about how CMSAttachMenu should actually work if it is registered alone or in AppHook or in AppHook attached multiple times.
I'm not sure if it needs to show at all in the dropdown when the menu is attached to page by AppHook, and to allow user to attach it twice by using one of it's instances. Also when AppHook with menu is attached to a page then menu elements doesn't work as expected when using UPDATE: |
What I've discovered is that when @mbi Is your problem related only to |
@vstoykov I'm only using |
Please try with this branch: https://github.com/divio/django-cms/tree/issues/fix_breadcrumbs?files=1
|
@mkoistinen With that branch the menus seem to get rendered correctly (yay!) but I'm still getting duplicate entries in the "attached menu" dropdown in the page's advanced settings. |
@mkoistinen for me it looks also ok. About double rendered menus I think that the option for attaching menu when AppHook is attached need to be disabled in order people to not be confused. |
I still see issues with app menus in 3.1. Lets assume app is available as page at /shop/ and app menus contains available products. 3.0.10 worked fine but I needed Django>=1.7 support. Is anyone still working on this? |
@dzonder changes made by @mrhanlon are note merged yet and issue persist in current released versions. You can try the branch mentioned by him and tell if the problem is fixed there for you. Until issue is resolved you can try a workaround by putting this in
|
Yep, same here, in version 3.1.0. I see the double entries in the advances settings, and the menu's don't show up if the actual content is below a different page as the menu. Strangely enough it does seem to work quite fine, unpublished, published and even when I log out. But as soon as I reload apache (or restart the debug server) the menu's disappear. @vstoykov Thanks for your suggestion, but it doesn't seem to have any effect on the behavior of my menu's... |
Awesome feedback guys. To be clear, most of the issue has been solved in the above-mentioned PR for the 3.0.x branch. What remains is more of an ugly cosmetic issue with the Advanced Page Settings. I'll try to fix this asap. Once these are committed to the Support 3.0.x branch, we'll port it up to 3.1 too. |
Hi all, what is the status of this bug? I'm developing a website that's supposed to go live on the 1st of June. It's almost finished except for the menu's. They organize workshops, courses and trainings, so I made an application to manage these. They all share the same models, but they are divided in three categories. The urls of the courses are: /some-fixed-name/[category_slug]/[slug]. I created three menus that filter on the category: WorkshopMenu, CourseMenu, TrainingMenu. These should show up under the pages /workshops/, /courses/, /trainings/. When I assign a menu to a page, it shows up properly and all works as expected, until I restart the webserver. Than they just disappear and the page admin shows that no menu is selected. It shows the same behaviour in development mode (manage.py runserver) and in live mode (service apache2 reload). I don't really know how to proceed, all URLs are correct and unique and I don't seem to get any errors. Any thoughts on this? |
@mkoistinen Anything we can do to help get this to the finish line? Is the only thing left to fix the fact that the menus are shown multiple times in the admin? |
Sorry all, I've been particularly consumed with personal things lately (like moving to another country in less than 1 week). However, I am going to try to focus on this again starting.... now! =) |
Thanks @mkoistinen ! About to move 3,000 miles myself, I feel your pain. I'll watch the PR #4042 and let us know there if you need any help testing etc. |
Anyone care to test the updated version of this branch: https://github.com/divio/django-cms/tree/issues/fix_breadcrumbs |
Will be able to in a couple hours, thanks! |
reopening this as it's not fixed yet |
I will test these changes tomorrow at work and will told you if my problems are gone. |
With current |
Thanks @vstoykov ! |
Fixed in #4042 |
I noticed that after upgrading from 3.0.10 to 3.0.12 that a CMSAttachMenu was not registering on a page. It would periodically appear and disappear. In the advanced settings sometimes I would see zero, one, or two options for the same menu. I only have one CMSAttachMenu menu defined in a single app in my project. I attempted to delete and recreate the page to no avail. I noticed in the database, if there was only one option available in advanced settings, the page record showed
UserMenu
fornavigation_extenders
. If there were two options, it would beUserMenu:190
orUserMenu:193
depending which option I selected.Ultimately I reverted to 3.0.10 and the issue went away.
My menu class:
The text was updated successfully, but these errors were encountered: