Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

BUGFIX: 404 on ./date/... for BlogTree Pages.


Reply

3 Posts   922 Views

Avatar
jaredkipe

16 July 2011 at 11:52am Community Member, 16 Posts

Some of you may have noticed, that date archive widget and the BlogTree pages do not work well together. Specifically the url fragment such as '/blog/date/2011/04' doesn't work if 'blog' is a BlogTree instance, but DOES work if it is a BlogHolder instance.

Inside BlogTree.php and the BlogTree_Controler class. You need to add 'date' to the $allowed_actions array.

   static $allowed_actions = array(
      'index',
      'rss',
      'tag',
      'date'
   );

Avatar
Willr

16 July 2011 at 1:43pm Forum Moderator, 5511 Posts

Sounds like this should be fixed in the core download so make sure you either submit it as a pull request to the module's github page (https://github.com/silverstripe/silverstripe-blog) or at least as a ticket on open.silverstripe.org.

Thanks!

Avatar
jaredkipe

17 July 2011 at 5:31am Community Member, 16 Posts

Actually, it seems that the github version has this simple fix already. But still the current download version has the bug. So I guess this is for people that are just downloading it from the mail module section on silverstripe.org, or have a version in production that exhibits this bug.