1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Action '2009' isn't allowed on class BlogHolder_Controller
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 4139 Views |
-
Action '2009' isn't allowed on class BlogHolder_Controller

4 August 2009 at 1:01am Last edited: 4 August 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/08Any ideas why this is happening? How does the BlogHolder_Controller pick up that URL (my php is not very good).
many thanks
Wayne -
Re: Action '2009' isn't allowed on class BlogHolder_Controller

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 -
Re: Action '2009' isn't allowed on class BlogHolder_Controller

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.
-
Re: Action '2009' isn't allowed on class BlogHolder_Controller

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
-
Re: Action '2009' isn't allowed on class BlogHolder_Controller

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.
-
Re: Action '2009' isn't allowed on class BlogHolder_Controller

6 August 2009 at 2:28am
Nice! Thank you!
-
Re: Action '2009' isn't allowed on class BlogHolder_Controller

23 September 2009 at 9:25am
where in the blogholder.php did you put it ?
Could show more code ?
tx in advance -
Re: Action '2009' isn't allowed on class BlogHolder_Controller

8 October 2009 at 2:02pm
Thanks Wayne!
brtlvrs: I put it in the BlogHolder_Controller class and it seems to work.
| 4139 Views | ||
| Go to Top | Next > |


