-
Notifications
You must be signed in to change notification settings - Fork 450
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
Building site from WP import fails with 'Task generation 'render_site' has duplicated definition...' #2315
Comments
Just did another test: if I change the tag name from "MIDI" to "Midi" (i.e. not all uppercase), the site builds fine. |
Do you have any categories named MIDI? Is your category prefix changed from the default? Try restoring uppercase tags and adding a debug print after [https://github.com/getnikola/nikola/blob/master/nikola/plugins/task/tags.py#L374](line 374 in tags.py): print(tag, output_name, lang, posts, is_category) Run |
Yes, there's also a Wordpress category "Musik>Midi" (permalink form "midi").
In the Wordpress Settings-Permalinks, category-base is set to "category" and tag base is set to "tag". The nikola config is unchaged from the one created by "import_wordpress".
|
Here’s where it breaks down:
Please paste the metadata of 882.md and 598.md. |
Already included the relevant parts in the grep command above, but here are the full
|
This is something we did not expect users to do. I’ll try to fix it. |
The first form must come from the tags of the article in Wordpress, the second from the category. |
There, now it would complain. I thought the WordPress compiler did something different to categories? |
Now I get the following error output (with a fresh import from the Wordpress XML-Export): IMHO, there's a mismatch between what the
|
Signed-off-by: Chris Warrick <[email protected]>
Well, I got the order a bit wrong. Does 5372c8b look sane? |
No, sorry. Now we're back to the original error: Anyway, IMHO the error is in the export. Why do the tags and categories get all mixed into tags?
|
Only if you specify |
Ok, it seems we have three different problems:
Why is this issue labelled as "user error" then? |
Re 3: all categories are stored in Re "user error": no idea. |
So the problem is actually not that the import drops categories (it doesn't), that building the site uses only the first category, correct? I think that doesn't really come across clearly from the command's help text and this message. |
It should drop categories, because we don’t support multiple categories in core. |
Signed-off-by: Chris Warrick <[email protected]>
I think I got 0af1770 right. |
Sorry, that was misleading. |
Nikola ignores (In Nikola v8, categories will probably vanish completely, see #1718. But as soon as #2107 leads to something useful, it will (hopefully) be possible to re-add categories in a simple way via plugins, and then also possible to easily allow multiple categories per post without big hacks.) |
(As first reported in #2246)
I exported my Wordpress blog and imported it with "nikolo import_wordpress .xml". When I try to build the site in the newly created dir
new_site
(i.e. withconf.py
file created by the import process), I get the following error:Two of my blog posts use the same tag "MIDI`:
Only if I remove the "MIDI" tag from both files found by the grep command shown above,
nikola build
succeeds. It is not enough to remove the tag only from one file, even if I deleteoutput
,cache
and.doit.db
between build attempts.The text was updated successfully, but these errors were encountered: