question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating new TranslatablePage gives: keyerror: 'canonical_page'

See original GitHub issue

My issue is basically identical to #54 but I’m using Wagtail 2.0.1, WagtailTrans 2.0.1 and Django 2.0.4.

Followed the docs precisely and I have these as my settings:

WAGTAILTRANS_SYNC_TREE = False
WAGTAILTRANS_LANGUAGES_PER_SITE = True

As far as I can tell, the fixes from pull 55 are still in place though. https://github.com/LUKKIEN/wagtailtrans/pull/55/commits

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
drcongocommented, Apr 11, 2018

In case anyone else stumbles across this, I found the cause. One of the mixins we use modifies the settings tab on the Wagtail edit page, half way through this we were getting the settings panels from Page settings_panels = Page.settings_panels to inject our own. Switching this to load them from TranslatablePage fixes it.

I knew it would be my own fault 😉

0reactions
Henk-JanVanHasselaarcommented, Apr 11, 2018

That’s good to hear! Thanks for coming back to this, let us know if you’re running into any other issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating new TranslatablePage gives: keyerror ... - GitHub
From an empty database, I have performed migrations and created a ... Creating new TranslatablePage gives: keyerror: 'canonical_page' #54.
Read more >
Why do I get a KeyError? - Stack Overflow
You forgot a comma: urls = ( '/', 'index' # ^ '/runs', 'runs' ). Without the comma, Python concatenates the two consecutive strings, ......
Read more >
A language switch for multilingual Wagtail sites - PythonEatsTail
Creating a language switch that returns to the home page in the ... except KeyError: # if for some reason the previous page...
Read more >
5 common mistakes with rel=canonical - Google Developers
Conclusion. To create valuable rel=canonical designations: Verify that most of the main text content of a duplicate page also appears in the canonical...
Read more >
Canonical Tags: A Simple Guide for Beginners - Ahrefs
Google, Microsoft and Yahoo united to create them. ... If new pages tend to be crawled the same day they're published, crawl budget...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found