getpelican / pelican-plugins

Collection of plugins for the Pelican static site generator
Other
1.38k stars 849 forks source link

pelican_comment_system and i18n_subsite issues #880

Closed ghtmtt closed 1 year ago

ghtmtt commented 7 years ago

Hi guys,

maybe I have some strange configurations, but when I enable the pelican_comment_system plugin I have some issues with the pelican_comment_system plugin.

This the error of the make devserve:

........
-> Modified: content, theme, [static]images, settings. re-generating...
DEBUG: Template list: [u'!simple/archives.html', u'!simple/article.html', u'!simple/author.html', u'!simple/authors.html', u'!simple/base.html', u'!simple/categories.html', u'!simple/category.html', u'!simple/gosquared.html', u'!simple/index.html', u'!simple/page.html', u'!simple/pagination.html', u'!simple/period_archives.html', u'!simple/tag.html', u'!simple/tags.html', u'!simple/translations.html', u'archives.html', u'article.html', u'article_list-blog.html', u'article_list.html', u'author.html', u'authors.html', u'base-article.html', u'base-blog.html', u'base.html', u'base_page.html', u'categories.html', u'category.html', u'gosquared.html', u'includes/aboutme.html', u'includes/addthis.html', u'includes/article_info.html', u'includes/banner.html', u'includes/cc-license.html', u'includes/comment_count.html', u'includes/comments.html', u'includes/comments2.html', u'includes/disqus_script.html', u'includes/footer.html', u'includes/ga.html', u'includes/github-js.html', u'includes/github.html', u'includes/links.html', u'includes/liquid_tags_nb_header.html', u'includes/minify_tipuesearch.html', u'includes/nav-menu.html', u'includes/pagination.html', u'includes/piwik.html', u'includes/related-posts.html', u'includes/series.html', u'includes/shariff.html', u'includes/sidebar-article.html', u'includes/sidebar-blog.html', u'includes/sidebar-images.html', u'includes/sidebar.html', u'includes/taglist.html', u'includes/translations.html', u'includes/twitter_cards.html', u'includes/twitter_timeline.html', u'index-blog.html', u'index.html', u'index_back.html', u'page.html', u'page_about.html', u'pagination.html', u'period_archives.html', u'search.html', u'tag.html', u'tags.html', u'translations.html']
DEBUG: Generating i18n subsite for language 'en' using class <class 'pelican.Pelican'>
DEBUG: Generating i18n subsite for language 'it' using class <class 'pelican.Pelican'>
DEBUG: i18n: Updating cross-site links and context of all generators.
CRITICAL: TypeError: 'NoneType' object is not iterable

..........

  File "/home/matteo/lavori/sito/pelican/plugins/i18n_subsites/i18n_subsites.py", line 411, in create_next_subsite
    update_generators()
  File "/home/matteo/lavori/sito/pelican/plugins/i18n_subsites/i18n_subsites.py", line 382, in update_generators
    interlink_static_files(generator)
  File "/home/matteo/lavori/sito/pelican/plugins/i18n_subsites/i18n_subsites.py", line 358, in interlink_static_files
    for staticfile in _MAIN_STATIC_FILES:
TypeError: 'NoneType' object is not iterable
Pelican didn't start. Is the Pelican package installed?
Makefile:93: recipe for target 'devserver' failed
make: *** [devserver] Error 1

and these some of my configurations of the pelicanconf.py:

PLUGINS = ['i18n_subsites', 'headerid', 'pelican_comment_system']

I18N_SUBSITES = {
    'it': {
    },
    'en': {
    },
}

PELICAN_COMMENT_SYSTEM = True

then I just pasted the code of the official plugin repo

Is there some trouble with my configuration or is there some issue between the 2 plugins?

Many many thanks!

Scheirle commented 7 years ago

Is either it or en also your default language (DEFAULT_LANG)? (DEFAULT_LANG is per default en) As far as I know I18N_SUBSITES should only contain additional languages and not the default one.


But anyhow these two plugins do currently conflict with each other. See https://github.com/getpelican/pelican-plugins/issues/751

ghtmtt commented 7 years ago

yes, en is the DEFAULT_LANG. I just arrange the site structure so that I have different output folders for each language..

justinmayer commented 1 year ago

Closed in favor of aforementioned linked issue.