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

Action '2009' isn't allowed on class BlogHolder_Controller


Go to End


15 Posts   8392 Views

Avatar
wayne

Community Member, 14 Posts

4 August 2009 at 1:01am

Edited: 04/08/2009 1:02am

HI,

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:
http://www.glasscubes.com/silverstrip/blog/2009/08

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

many thanks
Wayne

Avatar
qlex

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,
qlex

Avatar
Bernhard

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 http://www.silverstripe.org/assets/modules/trunk/blog-trunk-r83655.tar.gz and http://svn.silverstripe.com/open/modules/blog/trunk/ (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.

Avatar
wayne

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

Avatar
wayne

Community Member, 14 Posts

6 August 2009 at 12:04am

Hi,

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.

Avatar
Juanitou

Community Member, 323 Posts

6 August 2009 at 2:28am

Nice! Thank you!

Avatar
brtlvrs

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

Avatar
david_nash

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