hurrymaplelad / docpad-plugin-rss

Generates an RSS feed for a collection of documents
Other
10 stars 6 forks source link

Update to version 2.1.3 has not worked #6

Closed fboulay closed 10 years ago

fboulay commented 10 years ago

I have updated Docpad with docpad update from version 6.57 to version 6.68. The rss plugin has also been updated from version 2.0.1 to version 2.1.3. I have updated the plugin configuration according to the documentation. It now looks like this :

plugins: {
    rss: {
        default : {
          collection: 'posts'
          url: '/feed.xml'
        }
    }
}

However when I start docpad with docpad run, I get this error :

error: Something went wrong with the action
error: An error occured: 
TypeError: Cannot call method 'getTemplateData' of undefined
  at writeCollection (/home/fboulay/workspace/website/node_modules/docpad-plugin-rss/src/rss.plugin.coffee:36:23)
  at RssPlugin.writeAfter (/home/fboulay/workspace/website/node_modules/docpad-plugin-rss/src/rss.plugin.coffee:61:9)
  at ambi (/home/fboulay/workspace/website/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/ambi/out/lib/ambi.js:25:27)
  at Task.<anonymous> (/home/fboulay/workspace/website/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:45:23)
  at ambi (/home/fboulay/workspace/website/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/ambi/out/lib/ambi.js:23:18)
  at fire (/home/fboulay/workspace/website/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/taskgroup/out/lib/taskgroup.js:174:25)
  at b (domain.js:183:18)
  at Domain.run (domain.js:123:23)
  at Task.fire (/home/fboulay/workspace/website/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/taskgroup/out/lib/taskgroup.js:184:25)
  at processImmediate [as _immediateCallback] (timers.js:330:15)
error: To report the above error, follow the guide at: http://docpad.org/bug-report
bdillahu commented 10 years ago

Yep, got that here also

fboulay commented 10 years ago

Of course, going back to version 2.0.1 of the plugin works, even with docpad updated. So the issue should be in the rss plugin code.

nylnook commented 10 years ago

Same here ;)

andyj commented 10 years ago

Getting the error here as well.

For anyone new to docpad you need to do the following to use a previous version of the RSS plugin (2.0.1, as mentioned, is working)

$ npm uninstall docpad-plugin-rss
$ npm install --save docpad-plugin-rss@2.0.1
hurrymaplelad commented 10 years ago

Sorry about that. Should be fixed now. Published as 2.1.4.

bdillahu commented 10 years ago

Confirmed, works for me... Thanks!

nylnook commented 10 years ago

Working for me too: http://nylnook.com/en/follow

Thanks a lot !