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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

[User Error] Uncaught ReflectionException: Class SS_Datetime does not exist POST /install.php


Reply


7 Posts   2564 Views

Avatar
Jmiles

Community Member, 3 Posts

12 April 2010 at 8:04am

I am receiveing the following error:
[User Error] Uncaught ReflectionException: Class SS_Datetime does not exist
POST /install.php

with the code snippet:

88 if(version_compare(PHP_VERSION, '5.1.3', '>=')) {
89          $reflector = new ReflectionClass($class);
90          return $reflector->newInstanceArgs($args);
91       } else {

and the following trace:

Trace

ReflectionClass->__construct(SS_Datetime)
Line 89 of Object.php
Object::create(SS_Datetime,EmbargoDate)
Line 1 of Database.php(233) : eval()'d code
eval
Line 233 of Database.php
Database->requireTable(WorkflowRequest,Array,Array)
Line 207 of DB.php
DB::requireTable(WorkflowRequest,Array,Array)
Line 2626 of DataObject.php
DataObject->requireTable()
Line 191 of DatabaseAdmin.php
DatabaseAdmin->doBuild(1)
Line 793 of install.php
Installer->install(Array)
Line 123 of install.php

i ignored it last time and couldn't get the workflow working correctly

any suggestions?

Avatar
Willr

Forum Moderator, 5513 Posts

12 April 2010 at 9:03am

Are you trying to use 2.3 or 2.4?

Avatar
Jmiles

Community Member, 3 Posts

12 April 2010 at 9:20am

2.3.7

Avatar
Willr

Forum Moderator, 5513 Posts

12 April 2010 at 9:27am

Ok then whatever module you are using is not 2.3 compatible. SS_Datetime is the 2.4 classname. Its been changed from Datetime.

CMSWorkflow is 2.4 only.

Avatar
Jmiles

Community Member, 3 Posts

12 April 2010 at 9:28am

this is the downloaded install zip file - before i have installed any modules.

Avatar
Double-A-Ron

Community Member, 604 Posts

14 April 2010 at 9:50am

Is this an absolutely clean install? Or are you installing in a place that once had workflow installed?

Your Trace suggests that CMSWorkflow is there, and it shouldn't be.

If this is a clean install as you say, you should just completely delete the contents of the directory, re-download the archive (just for good measure), and re-install.

WorkflowRequest should not be there if you haven't added the CMSWorkflow module.

Avatar
chefkoch

Community Member, 4 Posts

28 April 2010 at 8:21pm

I had the same problem with the googlesitemapsmodule. Well I just searched for the SS_Datetime class but I could't find it in the project but I found SSDatetime. So I changed SS_Datetime to SSDatetime and it worked fine without any errors.

Correct me if I'm using the wrong class or understood anything totally wrong...

regards