7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » get_static not found!!!
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 558 Views |
-
get_static not found!!!

29 July 2010 at 2:08am
Can anybody please help me out. I cant seem to create new article pages without getting this error.
ERROR [User Error]: Object::__call() Method 'get_static' not found in class 'FileDataObjectManager'
IN POST /admin/getitem?ID=23&ajax=1
Line 133 in /home/.margara/riotsociety/riotsociety.com.au/sapphire/core/Object.phpSource
======
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.<ul>user_error(Object::__call() Method 'get_static' not found in class 'FileDataObjectManager',256)
line 133 of Object.phpObject->__call(get_static,Array)
Object->get_static(File,allowed_file_types)
line 87 of FileDataObjectManager.phpFileDataObjectManager->__construct(ArticlePage,Resources,Resource,Attachment,Array,getCMSFields_forPopup)
line 43 of ArticlePage.phpArticlePage->getCMSFields(CMSMain)
line 380 of CMSMain.phpCMSMain->getEditForm(23)
line 855 of LeftAndMain.phpLeftAndMain->EditForm()
line 344 of LeftAndMain.phpLeftAndMain->getitem(HTTPRequest)
line 162 of Controller.phpController->handleAction(HTTPRequest)
line 107 of RequestHandler.phpRequestHandler->handleRequest(HTTPRequest)
line 122 of Controller.phpController->handleRequest(HTTPRequest)
line 262 of Director.phpDirector::handleRequest(HTTPRequest,Session)
line 106 of Director.phpDirector::direct(admin/getitem)
line 115 of main.php</ul>
-
Re: get_static not found!!!

29 July 2010 at 2:38am
Yikes. Are you running a really old version of SS? Object::get_static() has been around since 2.3.0.
| 558 Views | ||
|
Page:
1
|
Go to Top |

