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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

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


Go to End


3 Posts   1904 Views

Avatar
jaredkipe

Community Member, 16 Posts

16 July 2011 at 11:52am

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

Forum Moderator, 5523 Posts

16 July 2011 at 1:43pm

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

Community Member, 16 Posts

17 July 2011 at 5:31am

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.