Jump to:

1975 Posts in 1305 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1

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

Page: 1
Go to End
Author Topic: 851 Views
  • CMSPlayer
    Avatar
    Community Member
    25 Posts

    [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1 Link to this post

    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?

  • CMSPlayer
    Avatar
    Community Member
    25 Posts

    Re: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1 Link to this post

    Isn't anybody out there who can help me out on this one?

  • AlphaCactus
    Avatar
    Community Member
    11 Posts

    Re: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1 Link to this post

    I had this happen and it turned out that I had forgotten to put the php in <?php at the top of the file.

    851 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.