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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

CMSWorkflow Module wont install


Go to End


13 Posts   4264 Views

Avatar
patjnr

Community Member, 102 Posts

26 March 2010 at 1:49am

I have tried installing CMSWorkflow both on 2.3.6 and 2.4. its not giving me any error messages but just a blank white screen.
all my sites are in dev mode.

i have tried cmsworkflow-v1.0-rc3.tar.gz which is compatible with: SilverStripe 2.4
and 1.0-rc3 1.0-rc2/

all are not working for me. it was better if i had an error message

All ideas

tx

Pat

Avatar
patjnr

Community Member, 102 Posts

28 March 2010 at 2:27am

Hi

after a clean installation 1.0-rc2 worked for me.

ta

Avatar
Stephen

Community Member, 4 Posts

30 March 2010 at 5:02pm

I have the same issue (blank screen) with CMS Workflow (rc2, rc3, and trunk-r101776).

Environment:
silverstripe-v2.4.0-beta2 + genericdataadmin-trunk-r91391 + subsites-trunk-r101755

Errors from the apache logs:
PHP Fatal error: Class 'PopupDateTimeField' not found in ... /BatchSetEmbargo.php

CMS Workflow looks like it prefers TZDateTimeField and defaults back to PopupDateTimeField, neither of which exist in 2.4.0-beta2.

Tried Latest Daily (silverstripe.2.0.DailyBuild.2010-03-30) but that won't even let me run dev/build.

Based on errors in the apache error log, I copied the following from the Daily back into 2.4.0-beta2:
sapphire/css/PopupDateTimeField.css
sapphire/forms/PopupDateTimeField.php
sapphire/javascript/CalendarDateField.js
sapphire/forms/CalendarDateField.php
sapphire/forms/DropdownTimeField.php
sapphire/css/DropdownTimeField.css
sapphire/javascript/DropdownTimeField.js

This gets past the blank screen and gets the CMS Admin screens coming up, but I get a Javascript alert every time I go into the 'Site Content' tab:
Calendar.setup:
Flat specified but can't find parent.

Also getting assorted javascript errors in the console:
$.concrete is not a function
this.icon is null
$("Form_EditorToolbarImageForm").respondToNodeChange is not a function

Before I delve into which javascript files are required and which are not, does anyone know of a DailyBuild that is mostly stable and works with CMSWorkflow?

Thanks, Stephen.

Avatar
Willr

Forum Moderator, 5523 Posts

30 March 2010 at 9:57pm

I copied the following from the Daily back into 2.4.0-beta2:

You should install the legacydatefields module - it has the legacy form fields from 2.3 which you will need to keep workflow going. It appears workflow hasn't been updated to support the new date API yet so hence the need for that module.

Avatar
Mo

Community Member, 541 Posts

30 March 2010 at 11:30pm

Cheers Willr, I was about to start off on a rant about how it isn't working for me either :).

Avatar
Stephen

Community Member, 4 Posts

31 March 2010 at 11:08am

Thanks Will.

I found the module (http://open.silverstripe.org/browser/modules/legacydatetimefields) but failed to find the tarball for SVN dummies. :-)

Instead I reverted to standard SS 2.4.0-beta2 and hacked the trunk of cmsworkflow to change reference to PopupDateTimeField to DateTimeField (tarball of changed files attached).

This gets things going but some of the workflow reports (Recently published pages, Published pages with Expiry on, Approved pages with Embargo on) don't work as DateTimeField does not have defaultToEndOfDay or allowOnlyTime which were functions of PopupDateTimeField.

This is working enough for me for now.

I'll keep an eye out for the CMS Workflow release that is updated for the new API.

Thanks, Stephen.

Avatar
patjnr

Community Member, 102 Posts

10 April 2010 at 1:07am

Edited: 10/04/2010 1:09am

Hi Will

"You should install the legacydatefields module "

where is the link to this module

unfortunately my host does not support SVN
this http://open.silverstripe.org/browser/modules/legacydatetimefields/trunk?rev=102286 does not help people like me

tx

PAt

Avatar
Willr

Forum Moderator, 5523 Posts

10 April 2010 at 6:41pm

If a modules in the svn repo but the author hasn't created a module listing you can download anything as a archive straight from open. You can craft a URL like this in your webbrowser..

http://open.silverstripe.com/changeset/latest/modules/[MODULENAME]/[VERSION]?old_path=/&filename=/[MODULENAME]/&format=zip

So in your case for legacy date fields

http://open.silverstripe.com/changeset/latest/modules/legacydatetimefields/trunk?old_path=/&filename=/legacydatetimefields/&format=zip

Note this URL does create a slightly weird folder structure - you just have to make sure that its the usual format.

Its a handy little trac trick to note. I have it bookmarked as a keyword in firefox.

Go to Top