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

Action 'post' isn't allowed on class BlogHolder_Controller


Reply


2 Posts   1022 Views

Avatar
susgeek

Community Member, 7 Posts

18 March 2013 at 9:53am

I am using Silverstripe 3.0.5 and I installed the most recent version of the blog module from https://github.com/silverstripe/silverstripe-blog

I can add posts using the [mysite/CurrentBlogHolder]/post link, and unpublish posts just fine while logged into the CMS as an administrator.

According to the Readme file,

"[site/CurrentBlogHolder]/post (this is a good url to bookmark if you will be using it to blog regularly). This shows a blog entry form, which requires a subject and some content at the least. Clicking "Post blog entry" takes the user back to the blog. A login form will show if the user is not logged in."

So to test it, after logging out, I went to [mysite/CurrentBlogHolder]/post expecting to be redirected to the login screen, but I received this error:
Action 'post' isn't allowed on class BlogHolder_Controller

I have to explicitly go to the login page, and log in as an administrator, then return to the post link. Logging in as a content editor does not remove the error.

I would prefer to give my users only content editor priviledges, and also I would prefer they only use the post to blog link - I don't want them monkeying around in the admin panel. I want it to work as indicated in the Readme file - they just use the post link, and are redirected to log in, then redirected back to the post page.

What am I missing?

Avatar
susgeek

Community Member, 7 Posts

18 March 2013 at 12:38pm

Update - I received a response to this question on GITHUB:

I've fixed this issue, not logged in users are prompted to login now.
use branch 0.6 if you are using SS3.0.x or master if you are using SS3.1.x

Thanks,
Carlos

The link to branch 0.6 is:
https://github.com/silverstripe/silverstripe-blog/branches