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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

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

Action '2009' isn't allowed on class BlogHolder_Controller

Go to End

15 Posts   6531 Views


Community Member, 14 Posts

4 August 2009 at 1:01am

Edited: 04/08/2009 1:02am


we've installed and got running the blog with no problems. However we just discovered that if we click on an archive link we get the following response:

Action '2009' isn't allowed on class BlogHolder_Controller

and the URL is:

Any ideas why this is happening? How does the BlogHolder_Controller pick up that URL (my php is not very good).

many thanks


Community Member, 68 Posts

4 August 2009 at 2:58am

Hi wayne,
i had the same and just downloaded newest blog trunk, which solved the problem.
I havent noticed any unstability yet, so i reckon you can do the same.

hope it helps,


Community Member, 3 Posts

5 August 2009 at 6:42pm

I had the same problem with Blog Module's Archive Widget (Browse by Date) not working. So I followed the advice to try the latest two trunks and (83720). Same result with both: The Browse by Date function works fine now BUT the categories (Tag Cloud) does not work now (but did befor the update).

Second problem since that update: I use two blogs (two BlogHolder pages) in my page and the categories of both blogs seem to be mixed (meaning one blog reads the categories of the other blog).

Third problem since that update: While the Blog I set up first does show widgets in the sidebar, the second Blog does not. In the backend the blockholder page of the second blog does not accept any widget get draged and dropped into the "Widgets currently used" area.


Community Member, 14 Posts

5 August 2009 at 10:49pm

Hi qlex,

thanks for the tip but I'm using the latest version. I did just try it again to make sure and theres no difference


Community Member, 14 Posts

6 August 2009 at 12:04am


using the link to trunk that Bernard provided, I just patched my version.
I added this funtion to BlogHolder.php:

function checkAccessAction($action) {
if (preg_match('/[0-9]{4}/', $action))
return true;
return parent::checkAccessAction($action);

this works on the current 2.1 downlaod files.


Community Member, 323 Posts

6 August 2009 at 2:28am

Nice! Thank you!


Community Member, 1 Post

23 September 2009 at 9:25am

where in the blogholder.php did you put it ?
Could show more code ?
tx in advance


Community Member, 55 Posts

8 October 2009 at 2:02pm

Thanks Wayne!

brtlvrs: I put it in the BlogHolder_Controller class and it seems to work.

Go to Top