1779 Posts in 582 Topics by 556 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 441 Views |
-
[User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1

3 April 2012 at 3:39pm
I got this error when I tried to rebuild the database with my newly created form VolunteerRegistrationForm.php file.
I couldn't understand where it got this error?
Here's the trace of the errors
Trace
ReflectionClass->__construct(VolunteerRegistrationForm)
Line 222 of Object.php
Object::get_static(VolunteerRegistrationForm,db)
Line 264 of Object.php
Object::uninherited_static(VolunteerRegistrationForm,db)
Line 2016 of DataObject.php
DataObject::has_own_table(VolunteerRegistrationForm)
Line 89 of ClassInfo.php
ClassInfo::dataClassesFor(SiteTree)
Line 2254 of DataObject.php
DataObject->buildSQL(HomepageForDomain REGEXP '(,|^) *localhost *(,|$)')
Line 2519 of DataObject.php
DataObject->instance_get_one(HomepageForDomain REGEXP '(,|^) *localhost *(,|$)',)
Line 2464 of DataObject.php
DataObject::get_one(SiteTree,HomepageForDomain REGEXP '(,|^) *localhost *(,|$)')
Line 64 of RootURLController.php
RootURLController::get_homepage_urlsegment()
Line 41 of RootURLController.php
RootURLController->handleRequest(HTTPRequest)
Line 277 of Director.php
Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
Director::direct(/)
Line 118 of main.phpI checked the following folders too.
C:\wamp\www\silverstripe\themes\mysite\templates
C:\wamp\www\silverstripe\themes\mysite\templates\Layout
C:\wamp\www\silverstripe\themes\mysite\templates\Includeswhere I placed my VolunteerRegistrationForm.ss file.
Obviously the database did not successfully create a record for my 'VolunteerRegistrationForm'.
I'm wondering where did I go wrong?
-
Re: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1

3 April 2012 at 8:10pm
Isn't anybody out there who can help me out on this one?
-
Re: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1

16 December 2012 at 2:17pm
I had this happen and it turned out that I had forgotten to put the php in <?php at the top of the file.
| 441 Views | ||
|
Page:
1
|
Go to Top |


