Page 1 of 1

Site not working! Emergency Help Please...

Posted: Fri Jul 20, 2012 12:47 pm
by fr0z3ng33k
I've noticed other posts with similar issues and since my post yesterday under another section I realized this was the section to post my issue. The posts I've read did not resolve my issue either unfortunately.

Using CMSMS version 1.10.3 - PHP version 5.2, MySQL 4.1 and GoDaddy Hosting. I also contacted them and they said they did nothing on there end to my hosting / server that could make a change.

I haven't changed anything to my site since June (last month) and all I did was update an image and a pdf to the site for my News section. However yesterday morning at 8ish AM my site crashed with this error:

Code: Select all

Fatal error: Class 'ContentOperations' not found in /home/content/18/4216918/html/lib/autoloader.php on line 82"
When attempting to access the Admin Page I got this error:

Code: Select all

Fatal error: Call to undefined function check_login() in /home/content/18/4216918/html/lib/misc.functions.php on line 683
I went to line 82 in the "autoloader.php" file and this is the code 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;
	    }
	}
    }

Re: Site not working! Emergency Help Please...

Posted: Fri Jul 20, 2012 1:08 pm
by calguy1000
I suggest you re-upload the install folder for 1.10.3 and do a site verification.

You also mentioned that you renamed the .htaccess file out of the way and everything worked. If that is the case, then restore your .htaccess file to the one shipped with CMSMS. If that then still continues to work then you have something wonky in your .htaccess

Re: Site not working! Emergency Help Please...

Posted: Fri Jul 20, 2012 2:14 pm
by fr0z3ng33k
calguy1000 wrote:I suggest you re-upload the install folder for 1.10.3 and do a site verification.

You also mentioned that you renamed the .htaccess file out of the way and everything worked. If that is the case, then restore your .htaccess file to the one shipped with CMSMS. If that then still continues to work then you have something wonky in your .htaccess

Downloaded 1.10.3 again and uploaded all of the files, same error message. The .htaccess file was changed back to the original (removed .bak at the end) and no luck this time, then put it back on and still nothing. Do I even need the .htaccess file? Working on trying to get the code to show so I can paste it.

Very strange I could only open the .htaccess file using Coda (mac application) and this is all it's showing:

Code: Select all

# To deny PHPs <Files ~ "\.(php|php3|php4|php5|phtml|pl|cgi)$"> order deny,allow deny from all </Files>

Re: Site not working! Emergency Help Please...

Posted: Fri Jul 20, 2012 3:16 pm
by staartmees

Re: Site not working! Emergency Help Please...

Posted: Fri Jul 20, 2012 3:30 pm
by fr0z3ng33k
Thank you but these forums don't help with the issue I'm having. I've had this site hosted on GoDaddy for over 3 years with no issues. I've reinstalled all of the files, etc with no luck.

Re: Site not working! Emergency Help Please...

Posted: Sat Jul 21, 2012 2:26 am
by SimonJ
If a fresh basic installation doesn't work then it must be the host.

Re: Site not working! Emergency Help Please...

Posted: Sat Jul 21, 2012 10:20 pm
by Dr.CSS
The htaccess file we speak of is in the root/doc folder named htaccess.txt, you move/copy that to the root then change it to .htaccess, this is used for pretty URLs, the one you posted is the one that is supposed to be in the doc folder to keep hackers out...

P.S. I would run from goduddy as fast as possible, never have been a good host and most likely never will be, I've read nothing but big problems from them...

Re: Site not working! Emergency Help Please...

Posted: Sun Jul 22, 2012 12:31 pm
by fr0z3ng33k
Dr.CSS wrote:The htaccess file we speak of is in the root/doc folder named htaccess.txt, you move/copy that to the root then change it to .htaccess, this is used for pretty URLs, the one you posted is the one that is supposed to be in the doc folder to keep hackers out...

P.S. I would run from goduddy as fast as possible, never have been a good host and most likely never will be, I've read nothing but big problems from them...
Well thats what everyone keeps saying. Problem is they host several of our sites, hosted exchange e-mail and a few other things. Something to consider down the line.

I'm working on attempting to replace the .htaccess file however in FileZilla it fails every time. I'm going to try to do it by naming the file .txt then switching over, but so far I can't even delete the original in the root.

Re: Site not working! Emergency Help Please...

Posted: Sun Jul 22, 2012 5:36 pm
by Dr.CSS
You may have to log into the server to get to it's own file server to do this...

Re: Site not working! Emergency Help Please...

Posted: Sun Jul 22, 2012 7:52 pm
by fr0z3ng33k
Yeah that's what I had to do. I then deleted all files on the server, then fresh install of CMSMS 1.10.3 then I deleted all the files again and restored my backup files that I made last week. Works perfectly now I think a file became corrupt (to newb to really know) but it works and hopefully stays that way while I code out the new site in html5.

Re: Site not working! Emergency Help Please...

Posted: Mon Jul 23, 2012 1:33 pm
by fr0z3ng33k
Nevermind site crashed yet again, same error in autoloader.php line 82. However when I called my hosting environment (just now) they said my config file had improper information. So I updated all of the lines and the site now works. However that information has been that way for years without an issue, so very strange that my CMSMS error would be autoloader but the config file is what fixed it. Am I right? Any advice? Sorry for harping on this guys.

Re: Site not working! Emergency Help Please...

Posted: Fri Jul 27, 2012 5:41 am
by geediu
Just had a mild stroke when i found out some of my sites hosted on godaddy had the same problem. couple google searches later landed me on this forum post. I figured out what the problem was. I think GoDaddy were doing some upgrades in the background. Rolling updates that hitted your account first and finally got to me today.

My home directory on their hosting server is /home/content/99/12345678. I check the sites affected, in the config.php my home directory was apparently named /home/content/a/b/c/username. So I guess GoDaddy have removed the symbolic link or whatever they did, basically broke our config.php files.

(actual account # and username mentioned above have been changed to generic names for obvious reasons)

I went in the config.php file and did a search and replace. In the config file there should be 4 places you have to change. Once I saved the config.php file I hit refresh and my site loaded fine.

I hope this helps.

Update: re-reading your last post again, I guess you were saying you also arrived at the same conclusion, having to update the paths in config.php files. The problem here is our hosting provider GoDaddy, change things around in the background without letting us know.

Re: Site not working! Emergency Help Please...

Posted: Fri Jul 27, 2012 5:17 pm
by Dr.CSS
IMHO, goduddy is the least recommended host you can use...

Re: Site not working! Emergency Help Please...

Posted: Mon Jul 30, 2012 8:12 pm
by geediu
Dr. CSS could you recommend hosting site? preferrably a Canadian hosting company. Tnx in advance.