Page 1 of 1
EMERGENCY - Error Message
Posted: Thu Jul 19, 2012 12:19 pm
by fr0z3ng33k
Site was working this morning and about 20 minutes ago it just completely crashed with this error:
"
Fatal error: Class 'ContentOperations' not found in /home/content/18/4216918/html/lib/autoloader.php on line 82"
Admin Page error:
Fatal error: Call to undefined function check_login() in /home/content/18/4216918/html/lib/misc.functions.php on line 683
Can't access the Admin page either. I haven't even touched the admin section or ftp'd in in weeks. Very random, please help.
Re: EMERGENCY - Error Message
Posted: Thu Jul 19, 2012 12:21 pm
by Rolf
CMSMS version?
Re: EMERGENCY - Error Message
Posted: Thu Jul 19, 2012 12:31 pm
by fr0z3ng33k
Rolf wrote:CMSMS version?
1.10.3
Also just added ".bak" to the end of the .htaccess file (now looks like: .htaccess.bak) and it fixed everything.
The last change I made on my server was June 6th, 2012 and all I did was upload an image. So this is extremely strange that this just randomly happened.
Let me know if you need anything else to help troubleshoot and thanks for your time!
Re: {solved} EMERGENCY - Error Message
Posted: Thu Jul 19, 2012 2:02 pm
by SimonJ
What is in that file?
Re: {solved} EMERGENCY - Error Message
Posted: Fri Jul 20, 2012 12:28 pm
by fr0z3ng33k
SimonJ wrote:What is in that file?
Issue just happened again last night, site completely crashed. Any ideas? Here is that file with the error:
In the autoloader file line 82 this is what is in there:
Code: Select all
$contentops = ContentOperations::get_instance();
if( $contentops )
{
// why would this ever NOT be true.. dunno, but hey.
$types = $contentops->ListContentTypes();
if( in_array(strtolower($classname),array_keys($types)) )
{
$contentops->LoadContentType(strtolower($classname));
return;
}
}
$fn = $config['root_path']."/modules/{$classname}/{$classname}.module.php";
if( file_exists($fn) )
{
__cms_load($fn);
return;
}
$list = ModuleOperations::get_instance()->GetLoadedModules();
if( is_array($list) && count($list) )
{
foreach( array_keys($list) as $modname )
{
$fn = $config['root_path']."/modules/$modname/lib/class.$classname.php";
if( file_exists( $fn ) )
{
__cms_load($fn);
return;
}
}
}