10375 Posts in 2190 Topics by 1707 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 236 Views |
-
Error: Bad class to singleton() - SiteTree

25 October 2011 at 11:42am
Hi, I've recently gotten a couple errors on our prod server (but not on our dev server):
1.) • Bad class to singleton() - SiteTree
Line 275 of Core.php
• singleton(SiteTree)
Line 2461 of DataObject.php
• DataObject::get_one(SiteTree,HomepageForDomain REGEXP '(,|^) *[ip address] *(,|$)')
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(/)2.)• Bad class to singleton() - SiteTree
Line 275 of Core.php
• singleton(SiteTree)
Line 37 of ModelAsController.php
• ModelAsController->init()
Line 16 of ModelAsController.php
• ModelAsController->handleRequest(HTTPRequest)
Line 277 of Director.php
• Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
• Director::direct(*)
Line 118 of main.phpI've read that the issue could be:
• Multiple classes with the same name
• The function is case sensitive and that the case of the class name and the class that's being called in the function might not match.
• Need to dev/build
• need to flushI've tried all to no avail. Any thoughts?
Thanks,
Marko
| 236 Views | ||
|
Page:
1
|
Go to Top |

