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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[User Error] Object::__call() Method 'providePermissions' not found in class 'SiteTree'
GET /silverstripetest/admin/security/

Line 133 in /Applications/xampp/xamppfiles/htdocs/silverstripetest/sapphire/core/Object.php
Source

124 
125 			} else if($config['function_str']) {
126 				$function = Object::$extraMethods[$this->class][strtolower($methodName)]['function'] = create_function('$obj, $args', $config['function_str']);
127 				return $function($this, $args);
128 
129 			} else {
130 				user_error("Object::__call() Method '$methodName' in class '$this->class' an invalid format: " . var_export(Object::$extraMethods[$this->class][$methodName],true), E_USER_ERROR);
131 			}
132 		} else {
133 			user_error("Object::__call() Method '$methodName' not found in class '$this->class'", E_USER_ERROR);
134 		}
135 	}
136 
137 	/**
138 	 * This function allows you to overload class creation methods, so certain classes are
139 	 * always created correctly over your system.

Trace

    * Object::__call() Method 'providePermissions' not found in class 'SiteTree'
      Line 133 of Object.php
    * Object->__call(providePermissions,Array)
    * SiteTree->providePermissions()
      Line 439 of Permission.php
    * Permission::get_codes(1)
      Line 11 of PermissionDropdownField.php
    * PermissionDropdownField->__construct(Permissions[new][Code][],Code)
      Line 731 of TableField.php
    * TableField_Item->createFields()
      Line 644 of TableField.php
    * TableField_Item->__construct(,TableField,,Array,1)
      Line 192 of TableField.php
    * TableField->Items()
    * call_user_func_array(Array,Array)
      Line 551 of ViewableData.php
    * ViewableData->cachedCall(Items,,)
      Line 592 of ViewableData.php
    * ViewableData->hasValue(Items)
      Line 404 of .cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.sapphire.templates.TableField.ss
    * include(/private/var/folders/Sh/Sh2pRDQdHcmHipJXbDgbpU+++TI/-Tmp-/silverstripe-cache-Applications-xampp-xamppfiles-htdocs-silverstripetest/.cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.sapphire.templates.TableField.ss)
      Line 328 of SSViewer.php
    * SSViewer->process(TableField)
      Line 774 of ViewableData.php
    * ViewableData->renderWith(TableField)
      Line 478 of TableField.php
    * TableField->FieldHolder()
    * call_user_func_array(Array,Array)
      Line 409 of ViewableData.php
    * ViewableData->XML_val(FieldHolder,,1)
      Line 74 of .cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.sapphire.templates.TabSetFieldHolder.ss
    * include(/private/var/folders/Sh/Sh2pRDQdHcmHipJXbDgbpU+++TI/-Tmp-/silverstripe-cache-Applications-xampp-xamppfiles-htdocs-silverstripetest/.cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.sapphire.templates.TabSetFieldHolder.ss)
      Line 328 of SSViewer.php
    * SSViewer->process(TabSet)
      Line 774 of ViewableData.php
    * ViewableData->renderWith(TabSetFieldHolder)
      Line 62 of TabSet.php
    * TabSet->FieldHolder()
    * call_user_func_array(Array,Array)
      Line 409 of ViewableData.php
    * ViewableData->XML_val(FieldHolder,,1)
      Line 64 of .cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.sapphire.templates.Includes.Form.ss
    * include(/private/var/folders/Sh/Sh2pRDQdHcmHipJXbDgbpU+++TI/-Tmp-/silverstripe-cache-Applications-xampp-xamppfiles-htdocs-silverstripetest/.cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.sapphire.templates.Includes.Form.ss)
      Line 328 of SSViewer.php
    * SSViewer->process(Form)
      Line 774 of ViewableData.php
    * ViewableData->renderWith(Array)
      Line 905 of Form.php
    * Form->forTemplate()
      Line 425 of ViewableData.php
    * ViewableData->XML_val(EditForm,,1)
      Line 14 of .cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.cms.templates.Includes.SecurityAdmin_right.ss
    * include(/private/var/folders/Sh/Sh2pRDQdHcmHipJXbDgbpU+++TI/-Tmp-/silverstripe-cache-Applications-xampp-xamppfiles-htdocs-silverstripetest/.cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.cms.templates.Includes.SecurityAdmin_right.ss)
      Line 328 of SSViewer.php
    * SSViewer->process(SecurityAdmin)
      Line 774 of ViewableData.php
    * ViewableData->renderWith(Array)
      Line 352 of LeftAndMain.php
    * LeftAndMain->Right()
    * call_user_func_array(Array,Array)
      Line 409 of ViewableData.php
    * ViewableData->XML_val(Right,,1)
      Line 71 of .cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.cms.templates.LeftAndMain.ss
    * include(/private/var/folders/Sh/Sh2pRDQdHcmHipJXbDgbpU+++TI/-Tmp-/silverstripe-cache-Applications-xampp-xamppfiles-htdocs-silverstripetest/.cache.Applications.xampp.xamppfiles.htdocs.silverstripetest.cms.templates.LeftAndMain.ss)
      Line 328 of SSViewer.php
    * SSViewer->process(SecurityAdmin)
      Line 175 of Controller.php
    * Controller->handleAction(HTTPRequest)
      Line 107 of RequestHandler.php
    * RequestHandler->handleRequest(HTTPRequest)
      Line 122 of Controller.php
    * Controller->handleRequest(HTTPRequest)
      Line 257 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
      Line 106 of Director.php
    * Director::direct(/admin/security/)
      Line 111 of main.php