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.php
I 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\Includes
where 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?