1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[Warning] Unknown class passed as parameter
GET /Briselda/home?flush

Line 445 in C:\wamp\www\Briselda\sapphire\core\Object.php
Source

436    * Prepare static variables before processing a {@link get_static} or {@link set_static}
437    * call.
438    */
439   private static function prepare_statics($class) {
440     // _cache_statics_prepared setting must come first to prevent infinite loops when we call
441     // get_static below
442     self::$_cache_statics_prepared[$class] = true;
443 
444     // load statics now for DataObject classes
445     if(is_subclass_of($class, 'DataObject')) {
446       $extensions = Object::uninherited_static($class, 'extensions');
447       if($extensions) foreach($extensions as $extension) {
448         if(preg_match('/^([^(]*)/', $extension, $matches)) {
449           $extensionClass = $matches[1];
450           DataObjectDecorator::load_extra_statics($class, $extensionClass);
451         }

Trace

    * is_subclass_of(MyImageGalleryField,DataObject)
      Line 445 of Object.php
    * Object::prepare_statics(MyImageGalleryField)
      Line 269 of Object.php
    * Object::uninherited_static(MyImageGalleryField,db)
      Line 2020 of DataObject.php
    * DataObject::has_own_table(MyImageGalleryField)
      Line 89 of ClassInfo.php
    * ClassInfo::dataClassesFor(SiteTree)
      Line 2258 of DataObject.php
    * DataObject->buildSQL(`SiteTree`.URLSegment = 'home')
      Line 2523 of DataObject.php
    * DataObject->instance_get_one(`SiteTree`.URLSegment = 'home',)
      Line 2468 of DataObject.php
    * DataObject::get_one(SiteTree,`SiteTree`.URLSegment = 'home',1,)
      Line 1094 of SiteTree.php
    * SiteTree::get_by_url(home)
      Line 45 of ModelAsController.php
    * ModelAsController->getNestedController()
      Line 26 of ModelAsController.php
    * ModelAsController->handleRequest(HTTPRequest)
      Line 280 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
      Line 121 of Director.php
    * Director::direct(/home)
      Line 118 of main.php