21489 Posts in 5783 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 932 Views |
-
Error accessing Admin Panel

2 October 2010 at 7:12am Last edited: 2 October 2010 8:59pm
Hi Guys,
I have a BIG problem with my site. The site views fine to the outside world but when I go to the admin panel I get and error page presented to me - see below error code:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[User Error] Bad class to singleton() - AccountPage
GET /adminLine 263 in /homepages/xx/xxx/htdocs/sapphire/core/Core.php
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Source254 if(($pos = strpos($className,'_')) !== false) $className = substr($className,0,$pos);
255 if($_CLASS_MANIFEST[$className]) return $_CLASS_MANIFEST[$className];
256 }
257
258 function singleton($className) {
259 static $_SINGLETONS;
260 if(!isset($className)) user_error("singleton() Called without a class", E_USER_ERROR);
261 if(!is_string($className)) user_error("singleton() passed bad class_name: " . var_export($className,true), E_USER_ERROR);
262 if(!isset($_SINGLETONS[$className])) {
263 if(!class_exists($className)) user_error("Bad class to singleton() - $className", E_USER_ERROR);
264 $_SINGLETONS[$className] = Object::strong_create($className,null, true);
265 if(!$_SINGLETONS[$className]) user_error("singleton() Unknown class '$className'", E_USER_ERROR);
266 }
267 return $_SINGLETONS[$className];
268 }
269I am using version 2.3.1
Any ideas?
Thank you
-
Re: Error accessing Admin Panel

2 October 2010 at 7:49pm
[User Error] Bad class to singleton() - AccountPage
It means that the database or the cache is out of date. Its trying to access the AccountPage before its in the cache. Have you added any functionality recently? You might need to do a dev/build?flush=all then reload the admin.
-
Re: Error accessing Admin Panel

2 October 2010 at 8:58pm
Thanks Will - that fixed it. I removed an e-commerce module and forgot to do the dev/build subsequently.
| 932 Views | ||
|
Page:
1
|
Go to Top |


