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 /admin
Line 263 in /homepages/xx/xxx/htdocs/sapphire/core/Core.php
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Source
254 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 }
269
I am using version 2.3.1
Any ideas?
Thank you