Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » CMS Workflow - Error on Publication Request

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1433 Views
  • rainerh
    Avatar
    Community Member
    23 Posts

    CMS Workflow - Error on Publication Request Link to this post

    Hello everybody,

    when I click on the Request Publication button I get a server error with the follow error description. Could somebody give me a little advice on that:

    500//ERROR [Notice]: Undefined index: WorkflowComment
    IN POST /admin/EditForm
    Line 96 in /usr/local/src/silverstripe-v2.4.0-alpha1/cmsworkflow-v1.0-rc2/code/LeftAndMainCMSWorkflow.php

    Source
    ======
    87:       RSSFeed::linkToFeed(Director::absoluteURL('admin/cms/changes.rss'), 'All content changes');
    88:    }
    89:    
    90:    // Request
    91:    
    92:    /**
    93:     * Handler for the CMS button
    94:     */
    95:    public function cms_requestpublication($data, $form) {
    * 96:       return $this->workflowAction('WorkflowPublicationRequest', 'request', $data['ID'],
    $data['WorkflowComment']);
    97:    }
    98:    
    99:    public function cms_requestdeletefromlive($data, $form) {
    100:       return $this->workflowAction('WorkflowDeletionRequest', 'request', $data['ID'],
    $data['WorkflowComment']);
    101:    }
    102:

    <ul>LeftAndMainCMSWorkflow->cms_requestpublication(Array,Form,SS_HTTPRequest)

    call_user_func_array(Array,Array)
    line 556 of Object.php

    Object->__call(cms_requestpublication,Array)

    KigaMain->cms_requestpublication(Array,Form,SS_HTTPRequest)
    line 292 of Form.php

    Form->httpSubmission(SS_HTTPRequest)
    line 135 of RequestHandler.php

    RequestHandler->handleRequest(SS_HTTPRequest)
    line 152 of RequestHandler.php

    RequestHandler->handleRequest(SS_HTTPRequest)
    line 150 of Controller.php

    Controller->handleRequest(SS_HTTPRequest)
    line 282 of Director.php

    Director::handleRequest(SS_HTTPRequest,Session)
    line 127 of Director.php

    Director::direct(/admin/EditForm)
    line 122 of main.php

    </ul>

  • Tama
    Avatar
    Community Member
    130 Posts

    Re: CMS Workflow - Error on Publication Request Link to this post

    I've just come across the "Server Error" on "Publication Request" too - did you find any solution?

    500 Notice: "Undefined index: WorkflowComment" at line 141 of /var/www/dev01/workflow/code/LeftAndMainCMSWorkflow.php

  • Tama
    Avatar
    Community Member
    130 Posts

    Re: CMS Workflow - Error on Publication Request Link to this post

    Ah ha! Looks like the directory should be named /cmsworkflow rather than /workflow.

  • mark_s
    Avatar
    Community Member
    78 Posts

    Re: CMS Workflow - Error on Publication Request Link to this post

    Hi.

    Yes, you'll need to install it into the 'cmsworkflow' folder, without version numbers etc. Requirements:: calls are made that reference this directory.

    @rainerh: let us know if this doesn't fix your issue.

    Mark

  • Tama
    Avatar
    Community Member
    130 Posts

    Re: CMS Workflow - Error on Publication Request Link to this post

    Damn, I'm now getting the error that rainerh had:

    ERROR [Notice]: Undefined index: WorkflowComment
    IN POST /admin/EditForm
    Line 141 in /var/www/dev01/cmsworkflow/code/LeftAndMainCMSWorkflow.php

    This warning is happening beforehand which may not be helping:

    CMSWorkflow is not defined
    [Break on this error] CMSWorkflow.setOption('noPromptForAdmin', false)

  • Tama
    Avatar
    Community Member
    130 Posts

    Re: CMS Workflow - Error on Publication Request Link to this post

    After reinstalling the module I'm no longer getting these errors.

  • Roman
    Avatar
    Community Member
    1 Post

    Re: CMS Workflow - Error on Publication Request Link to this post

    Hi. I had the same problem. Renaming the installation directory from "cmsworkflow-v1.0-rc4" to "cmsworkflow" fixed it for me. Thanks!

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