Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Workflow Install error

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 985 Views
  • KS
    Avatar
    Community Member
    10 Posts

    Workflow Install error Link to this post

    I installed legacydatetimefields. I placed CMS Workflow-v1.0-rc4 in the root directory. Put the two-step decorators in the mysite\_config.php when I run the dev/build?flush=all I see (in green) where it builds tables etc.. I see(in blue) where the fieldmember.classname gets changed.

    Then I run into a big USER NOTICE

    [User Notice] Group::addToGroupByName is deprecated. Please use $member->addToGroupByCode($groupcode)

    Source

    177       }
    178       
    179       return $labels;
    180    }
    181    
    182    /**
    183     * @deprecated 2.5
    184     */
    185    public static function addToGroupByName($member, $groupcode) {
    186       user_error('Group::addToGroupByName is deprecated. Please use $member->addToGroupByCode($groupcode)', E_USER_NOTICE);
    187       
    188       return $member->addToGroupByCode($groupcode);
    189    }
    190    
    191    /**
    192     * Overloaded getter.

    I can rebuild without cmsworkflow and get it working again but a reinstall does not show the same errors yet I can not edit the pages in the cms after that.

    Any Ideas?

    Thank you,

    KS

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Workflow Install error Link to this post

    Its simply a user error. Try the latest trunk release of cmsworkflow to see if its been fixed already. If it hasn't then please raise this as a bug on open.silverstripe.org. It's a simply matter of changing Group::addToGroupByName($member, 'foo'); to $member->addToGroupByCode('foo');

  • KS
    Avatar
    Community Member
    10 Posts

    Re: Workflow Install error Link to this post

    I started from scratch and found that it was me that was the problem. I didn't follow the instructions on the cms-workflow readme. I only put the two step decorators in the _config.php. Do that and the whole thing will be corrupt. You have to do all of the decorators.

    Thanks,
    KS

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