Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » CMS Workflow problems - Can't publish any pages

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 849 Views
  • josh.gross
    Avatar
    Community Member
    8 Posts

    CMS Workflow problems - Can't publish any pages Link to this post

    Hi there,

    I'm new to SilverStripe and I'm considering using it for my next big web project. I've set up a development site, tested it out, and overall I'm very impressed, but for the life of me I can't get the CMS Workflow module to work.

    I've tried uninstalling and reinstalling the module, and the whole site, several times, and I've tried setting it up on different stacks (XAMPP and WAMP) and on different OSs (Windows XP, Windows 7), but each time I run into the same problems with this module.

    Firstly, I get an error message during installation about a reference to "addToGroupByName" in "/code/WorkflowSystemMember.php". Through trial and error I worked out that I can solve that problem by changing the line in WorkflowSystemMember.php from:

    Group::addToGroupByName($su, 'administrators');

    to:

    $su->addToGroupByCode('administrators');

    Then, however, once the module has been installed, I can no longer publish any pages.

    For example, I'll make a change to a page and click "Request Publication" - all well and good - but then, when I try to action the request, I get a red "Server Error" message and no further explanation. This message appears no matter which action button I click ("Approve", "Request edit", "Deny", "Cancel" or "Comment").

    If I try to bypass the workflow altogether and click "Save and Publish" on a page, I get a red "Error Saving Content" message, and the animated loading image on the "Publishing..." button continues to spin and spin.

    Basically, once the module is installed, I can no longer publish any pages, regardless of whether I try to go through the workflow, or just click "Save and Publish".

    Once I've removed the module, I can publish pages again.

    Can anyone help me out here?

    As I mentioned above, I'm very impressed with SilverStripe and leaning towards using it for my next big site, but my inability to get this module working is holding me back.

    Thanks in advance for your help.

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: CMS Workflow problems - Can't publish any pages Link to this post

    get a red "Server Error" message

    If you use Firebug (for Firefox) then a detailed error log will be included as the response in your XHR request. The same information is also available in webkits inspector but it's a little harder to get to. In chrome under network -> XHR -> Click on the request -> Content which will include the same debug backtrace (as long as the site is in devmode).

  • josh.gross
    Avatar
    Community Member
    8 Posts

    Re: CMS Workflow problems - Can't publish any pages Link to this post

    Thanks for the fast response, and the handy tip about Firebug and Chrome.

    The error message says:

    403//Action "cms_approve" not allowed on controller (Class: CMSMain)

    Does that mean anything to you?

  • josh.gross
    Avatar
    Community Member
    8 Posts

    Re: CMS Workflow problems - Can't publish any pages Link to this post

    Does anyone have any other thoughts regarding this?

    I'm guessing what I'm experiencing isn't a common problem, because I can't find any information describing this particular problem.

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: CMS Workflow problems - Can't publish any pages Link to this post

    http://open.silverstripe.org/ticket/6286

    Sounds like it's fixed. Do you still see the issue in the master release of cmsworkflow.

  • josh.gross
    Avatar
    Community Member
    8 Posts

    Re: CMS Workflow problems - Can't publish any pages Link to this post

    Ah, so it is! Excellent.

    Thanks - very impressed with the speedy turn-around.

    849 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.