Page 1 of 1

can't access site... what happened? [SOLVED]

Posted: Tue Jun 24, 2014 8:41 pm
by deschnell
(might not be the best board... can't find a better one)
Here's the site that I help administer: http://www.sledsicamous.com
But there is a problem which happened 'randomly' - Neither myself nor the editors for this site have done anything to the core, no changes in the hosting that we know of, and all of a sudden these errors come up:

Code: Select all

 Fatal error: Class 'CmsRoute' not found in /hermes/bosnaweb07a/b2355/ipw.sledsica/public_html/lib/classes/class.contentoperations.inc.php on line 1077
and in going to the /admin/ page:

Code: Select all

ERROR: The CGExtensions module could not be found.

Warning: opendir(/hermes/bosweb26b/b2355/ipw.sledsica/public_html/admin//lang) [function.opendir]: failed to open dir: No such file or directory in /hermes/bosnaweb07a/b2355/ipw.sledsica/public_html/lib/translation.functions.php on line 88

Warning: closedir(): supplied argument is not a valid Directory resource in /hermes/bosnaweb07a/b2355/ipw.sledsica/public_html/lib/translation.functions.php on line 94

Warning: opendir(/hermes/bosweb26b/b2355/ipw.sledsica/public_html/admin//lang) [function.opendir]: failed to open dir: No such file or directory in /hermes/bosnaweb07a/b2355/ipw.sledsica/public_html/lib/translation.functions.php on line 88...
...
...
Any ideas? It was still running 1.9.4.2 Fanui with CMS schema 34
(it wasn't broke... didn't want to fix it, wasn't too worried about security for this particular site).

Any tips or quick fixes besides doing a full upgrade?

Re: can't access site... what happened?

Posted: Tue Jun 24, 2014 10:15 pm
by psy
The errors about CGExtensions show a double // in the path. Would fix this first to ensure the path to CGE is correct.

Check your config.php file.

Re: can't access site... what happened?

Posted: Wed Jun 25, 2014 5:39 am
by deschnell
I noticed the double slash... but don't know why it would happen now all of a sudden. Nothing seems out of the ordinary from config:

Code: Select all

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://sledsicamous.com';

#SSL URL.  This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://sledsicamous.com';

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/hermes/bosweb26b/b2355/ipw.sledsica/public_html';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/hermes/bosweb26b/b2355/ipw.sledsica/public_html/tmp/cache';

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/hermes/bosweb26b/b2355/ipw.sledsica/public_html/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
...
...
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
I don't know what else to check to make sure it's good - or what file to check... it's been a few years since I did anything with CMSMS or really any web dev.

Re: can't access site... what happened?

Posted: Wed Jun 25, 2014 7:07 am
by chandra
Try to upload all files (core and modules) once again. Maybe there's something corrupted or hacked.

By the way - you should update as soon as possible. There are a lot bug and security fixes.

Re: can't access site... what happened?

Posted: Wed Jun 25, 2014 4:34 pm
by deschnell
Well I did the upgrade, and had to dig into the host's settings to upgrade PHP to 5.3 (was still at 5.1), and the site is now mostly working, except for the event calendar page, which isn't loading the whole template, pagedata, css, for some reason. I'll do some more sleuthing. When I remove the call to the calendar module, the empty page loads fine. There's a conflict there...

Re: can't access site... what happened?

Posted: Wed Jun 25, 2014 4:50 pm
by deschnell
the reason for the original errors was simple and stupid: The host changed the root path of where the files are saved... I as the volunteer admin wasn't notified (unsure if the site owners received any notices).

I'm also noticing that the 'use WYSIWYG' button is reversed (checked gives me code, unchecked gives me WYSIWYG.

There is a setting in the Calendar module that asks for the full root path for calendar uploads which doesn't affect the conflict mentioned earlier.

When trying to view the 'Events' page with the editor's Preview function, it gives me the 404 page I've setup.

Re: can't access site... what happened?

Posted: Wed Jun 25, 2014 5:45 pm
by deschnell
I decided that the old 'Calendar' module is no longer compatible... so I installed the new CGCalendar, and tweaked the template/CSS to work for the site. Good enough...

Thanks for you help... I've tried to leave a trail here on the thread for others to search for if they have similar problems to search through.

Cheers