Site not working! Emergency Help Please...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
fr0z3ng33k
Forum Members
Forum Members
Posts: 59
Joined: Thu Mar 03, 2011 4:47 pm

Site not working! Emergency Help Please...

Post 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;
	    }
	}
    }
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
fr0z3ng33k
Forum Members
Forum Members
Posts: 59
Joined: Thu Mar 03, 2011 4:47 pm

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

Post 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>
fr0z3ng33k
Forum Members
Forum Members
Posts: 59
Joined: Thu Mar 03, 2011 4:47 pm

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

Post 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.
SimonJ

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

Post by SimonJ »

If a fresh basic installation doesn't work then it must be the host.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post 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...
fr0z3ng33k
Forum Members
Forum Members
Posts: 59
Joined: Thu Mar 03, 2011 4:47 pm

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post by Dr.CSS »

You may have to log into the server to get to it's own file server to do this...
fr0z3ng33k
Forum Members
Forum Members
Posts: 59
Joined: Thu Mar 03, 2011 4:47 pm

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

Post 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.
fr0z3ng33k
Forum Members
Forum Members
Posts: 59
Joined: Thu Mar 03, 2011 4:47 pm

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

Post 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.
geediu
Forum Members
Forum Members
Posts: 17
Joined: Thu Jan 17, 2008 7:57 pm

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post by Dr.CSS »

IMHO, goduddy is the least recommended host you can use...
geediu
Forum Members
Forum Members
Posts: 17
Joined: Thu Jan 17, 2008 7:57 pm

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

Post by geediu »

Dr. CSS could you recommend hosting site? preferrably a Canadian hosting company. Tnx in advance.
Post Reply

Return to “CMSMS Core”