Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » CMS Workflow issues

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 947 Views
  • trmash
    Avatar
    Community Member
    2 Posts

    CMS Workflow issues Link to this post

    Hello,

    Have looked all through the forums for help with the CMS Workflow issues I'm having, but so far none have applied/fixed my problems. Quite a few just say "I reinstalled and everything works now", unfortunately I've tried that a few times now with no luck.

    Running SilverStripe 2.4.5 and CMS Workflow v1.0 rc4. No specific roles set up as yet, this issue is occurring when logged in as administrator.

    When editing or creating a page, I can save the content but as soon as I try to publish it I see "Error saving content" and the page hangs. Otherwise if I just save and then try to approve it later, I see "Server error".

    I've tried installing SS in two different environments with the same results.

    I'm really keen to use SS, and the CMS Workflow is exactly what I need - but it's getting incredibly frustrating.

    Bearing in mind that I'm no expert at all this stuff, please let me know what details I need to provide for you to help me out. All assistance is greatly appreciated.

    Thanks.

  • trmash
    Avatar
    Community Member
    2 Posts

    Re: CMS Workflow issues Link to this post

    I've managed to find a workaround/fix for this issue, although I'm at a loss as to why these lines weren't included. I was getting 403 Forbidden errors when I tried to approve or publish, so added the following actions to LeftAndMainCMSWorkflow.php at line 5 (public static $allowed_actions):

    'cms_publishwithcomment',
    'cms_approve'

    Everything seems to be working now - hopefully this will help any others who strike the same problem.

  • jsaade
    Avatar
    Community Member
    18 Posts

    Re: CMS Workflow issues Link to this post

    I have been "TRYING" to use this module (as I really need it in a project).

    RC4 breaks on installation:

    public static function addToGroupByName($member, $groupcode) {
    185       user_error('Group::addToGroupByName is deprecated. Please use $member->addToGroupByCode($groupcode)', E_USER_NOTICE);
    186       
    187       return $member->addToGroupByCode($groupcode);
    188    }

    I edited the php and replaced the deprecated function.
    But then the html does not run on Firefox, it even breaks the main site:

    XML Parsing Error: not well-formed
    Location: http://localhost/AutoImmo/
    Line Number 1091, Column 433:   <div id="FutureStateDate[date]" class="field date nolabel"><div class="middleColumn"><input type="text" class="text nolabel" id="FutureStateDate-date" name="FutureStateDate[date]" value="" /></div></div><div id="FutureStateDate[time]" class="field time nolabel"><div class="middleColumn"><input type="text" class="text nolabel" id="FutureStateDate-time" name="FutureStateDate[time]" value="" /></div></div><div class="clear"><!-- --></div>
    ----------------------------------------------------------------------------------------------------------------------------

    I tried the latest revision and still the same problem.

    Edit and I am never able to publish I always get Error in Publishing. I can just save!.

  • MuddleAlong
    Avatar
    Community Member
    1 Post

    Re: CMS Workflow issues Link to this post

    Thanks Jsaade:

    'cms_publishwithcomment',
    'cms_approve'

    that really sorted me out.

    947 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.