Page 1 of 1

Fatal error: Class ContentOperations

Posted: Sat Apr 30, 2016 12:43 pm
by emac
Hello,

I use cms made simple for many years. For some reason the current version running is Hyacinthe 1.10.3. I know this is not very good to use an old version like this one.

Ten days ago, with no apparent reason, the website turned into a white page. After activating the error, i have this one:
Fatal error: Class 'ContentOperations' not found in /flex/storage/lapensiondes3chats.fr/site/www/lib/autoloader.php on line 82
I have not made any recent change. After reading all the post on the forum about this line 82 error, i uploaded again all files on the ftp but nothing changes.

I put here the config file
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = false;
$config['timezone'] = 'Europe/Paris';
$config['dbms'] = 'mysql';
$config['db_hostname'] = '';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = '';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.lapensiondes3chats.fr';
$config['ssl_url'] = 'https://www.lapensiondes3chats.fr';
$config['root_path'] = '/';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/tmp/cache';
$config['uploads_path'] = '/uploads';
$config['uploads_url'] = 'http://www.lapensiondes3chats.fr/uploads';
$config['max_upload_size'] = 50000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/uploads/images';
$config['image_uploads_url'] = 'http://www.lapensiondes3chats.fr/uploads/images';
$config['ssl_uploads_url'] = '/uploads';
$config['locale'] = '';
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';
I asked to my host if they change anything but they said no.

Does anyone know how i can solve this ?

Thanks a lot for your help.

Re: Fatal error: Class ContentOperations

Posted: Sat Apr 30, 2016 6:15 pm
by chandra
First step - compare the files of your current install with the files of a fresh CMSMS 1.10.3 Core ...

Re: Fatal error: Class ContentOperations

Posted: Sun May 01, 2016 12:04 am
by Jeff
$config['root_path'] = '/';
This is VERY rare, please verify.

The typical problem when you have a "Class not Found" with the autoloader is that the $config['path'] is incorrect.

Re: Fatal error: Class ContentOperations

Posted: Thu May 05, 2016 2:31 pm
by emac
Thank you for your answers.

You say that the way to access to the root path seems wrong. But how do i know the real path on the server ?

Thanks again

Re: Fatal error: Class ContentOperations

Posted: Thu May 05, 2016 5:42 pm
by Jeff
On most site is can be remove and the system will figure it out.

From the error message my guess is that your root path is:
/flex/storage/lapensiondes3chats.fr/site/www/

Re: Fatal error: Class ContentOperations

Posted: Fri May 06, 2016 1:34 am
by emac
Thank you Jeff, problem is solved.

Re: Fatal error: Class ContentOperations

Posted: Sat May 07, 2016 11:26 pm
by paulbaker
emac wrote:problem is solved.
Well, it is, sort of.

Now you have a working site you should upgrade to the latest CMSMS. You are running a very old version. Latest version has no known vulnerabilities.

Start here and post any issues to another thread:
http://docs1.cmsmadesimple.org/upgrading/old-versions