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   2481 Views

Avatar
Jmiles

12 April 2010 at 8:04am Community Member, 3 Posts

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

12 April 2010 at 9:03am Forum Moderator, 5511 Posts

Are you trying to use 2.3 or 2.4?

Avatar
Jmiles

12 April 2010 at 9:20am Community Member, 3 Posts

2.3.7

Avatar
Willr

12 April 2010 at 9:27am Forum Moderator, 5511 Posts

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

12 April 2010 at 9:28am Community Member, 3 Posts

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

Avatar
Double-A-Ron

14 April 2010 at 9:50am Community Member, 604 Posts

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

28 April 2010 at 8:21pm Community Member, 4 Posts

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