Page 1 of 1

fail to transfer working site to localhost set-up [SOLVED]

Posted: Sun Feb 12, 2012 5:09 pm
by cife
http://www.cife.org.uk works fine, hosted on 1and1 using CMSMS 1.10.3. I want to duplicate a working version of the site on my own PC, running locally via XAMPP.

Installed XAMPP successfully (MySQL 5.5.16, PHP 5.3.8 ). Downloaded the CMSMS files from 1and1 and installed in the XAMPP htdocs/cmsmadesimple2 folder on my C drive, downloaded contents of Database from 1and1 and set up new local SQL database.

Opened config.php and amended paths, urls and database details to what I hoped were correct settings to work as localhost.

Ran http://localhost/cmsmadesimple2/ and got the following error message:

Fatal error: Class 'ContentOperations' not found in C:\xampp\htdocs\cmsmadesimple2\lib\autoloader.php on line 82

I'm now well out of my depth on what to do next. Might I have got one of the URLs or paths wrong in config.php?

It's

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = true;
$config['output_compression'] = false;
$config['timezone'] = '';
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = 'db264102841';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://localhost/cmsmadesimple2';
$config['ssl_url'] = 'https://localhost/cmsmadesimple2';
$config['root_path'] = 'localhost/cmsmadesimple2';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'localhost/cmsmadesimple2/tmp/cache';
$config['uploads_path'] = 'localhost/cmsmadesimple2/uploads';
$config['uploads_url'] = 'http://localhost/cmsmadesimple2/uploads';
$config['max_upload_size'] = 20000000;
$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'] = 'localhost/cmsmadesimple2/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cmsmadesimple2/uploads/images';
$config['ssl_uploads_url'] = 'https://localhost/cmsmadesimple2/uploads';
$config['locale'] = '';
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = false;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';
?>


Any advice much appreciated!

Re: fail to transfer working site to localhost set-up

Posted: Sun Feb 12, 2012 5:13 pm
by calguy1000
Your config.php file is still wrong.

You can run through the installation routine to force a new config.php to be regenerated, but be sure to uncheck the options to add sample data and to clear the database tables.

Re: fail to transfer working site to localhost set-up

Posted: Sun Feb 12, 2012 6:14 pm
by cife
Thanks Calguy,

That's got me up and running. I've ended up with a config.php file which is 14 lines long instead of 38 but the great thing is that it works!

Re: fail to transfer working site to localhost set-up [SOLVE

Posted: Tue Sep 11, 2012 10:11 am
by JimboDavies
I'm having the same problem - we're just in the process of moving to a VPS.

I've tried running through the install directory, but I get exactly the same error after the initial language screen, so I'm a bit stuck!

Any thoughts gratefully received, this is my config file:

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = true;
$config['timezone'] = '';
$config['dbms'] = 'mysql';
$config['db_hostname'] = '';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = '';
$config['db_port'] = 0;
$config['db_prefix'] = 'cmsms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.stormforce.biz';
$config['ssl_url'] = 'http://www.stormforce.biz';
$config['root_path'] = 'localhost/storm';
$config['admin_dir'] = 'admin';
$config['previews_path'] = 'localhost/storm/tmp/cache';
$config['uploads_path'] = 'localhost/storm/uploads';
$config['uploads_url'] = 'http://www.stormforce.biz/uploads';
$config['max_upload_size'] = 10000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['assume_mod_rewrite'] = '1';
$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'] = 'localhost/storm/uploads/images';
$config['image_uploads_url'] = 'http://www.stormforce.biz/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/User_Handbook/Admin_Panel';
?>

Re: fail to transfer working site to localhost set-up [SOLVE

Posted: Tue Sep 11, 2012 1:29 pm
by JimboDavies
Well, I've resolved the issue. As well as some errors in my config.php file, I think some files were corrupt - uploading over the top from my tarball backup has resolved that.

Now onto resolving the rest of the moving issues...!