Page 1 of 3
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 11:16 am
by stup
I have a similar problem. Have done a few fresh installs and have made sure to change the relevant permissions prior to the install. The install appears to go smoothly but when I come to view the site I get nocache errors. Clearing the cache has the effect of causing an Internal Server Error when I try and view the site for the first time. The next time I view it, I'm back to the nocache error. This implies that something is being written to the cache.
The admin panel seems to work at first but when I use debug mode there are errors seemingly un MySQL select queries:
(mysqli): SELECT * FROM cms_userplugins - Error (0):
(mysqli): SELECT sitepref_name, sitepref_value from cms_siteprefs - Error (0):
...and so on...
I saw the post about GD libraries. Where should these be, and how can I get them?
Going a bit mad now but I feel there must be a fix. Any help greatly received
For the record...
URL -
www.eyes-down.net/bangers
MySQL version - 4.1.18-standard
PHP version - 5.0.5
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 1:41 pm
by Russ
If it was working before the upgrade it is more likely to be a plugin or module you havn't reinstalled after your upgrade, that is stil referenced by your site? Sometimes you can just get a blank page if this happens. It could of course be the other way around, a new plugin or module requires different parameters than the ones you have set? - Perhaps the menus?
Hope this at least gives you a starting point
Russ
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 2:06 pm
by stup
Thanks Russ but this is a fresh install rather than a upgrade. Its a Linux box. I've installed CMSMS on a Linux box sucessfully before, but not this one. One thing which might be the cause - my MySQL environment forces a prefix to my database name. So when I create a database called cms it becomes eyesdown_cms. But I entered this info during the installation process anyway, and the admin panel works, so the database connection must be OK(ish).
Any other ideas?
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 2:42 pm
by Russ
Did you check you config.php is correct?
Try resetting the cache and sub directories to 777
Russ
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 3:19 pm
by stup
I set the following to 777 prior to running the installer:
/tmp/templates_c/
/tmp/cache/
/uploads/
/uploads/images/
/modules/
Clearing the cache has the effect of giving a different error once, then the same 'nocache' errors afterwards. You will see what I mean here unless someone else gets there first..
http://www.eyes-down.net/bangers
Would it help to give you the admin password? My email is
stuart@eyes-down.net if you want me to send it.
Thanks for your help.
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 3:40 pm
by tsw
Could you paste your config.php (without db passwords ofcourse)
Installer creates config out of servers information and sometimes that data might be wrong...
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 3:44 pm
by stup
Here you go...
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'eyesdown_cmsuser';
$config['db_password'] = '';
$config['db_name'] = 'eyesdown_cms';
$config['db_prefix'] = 'cms_';
$config['root_url'] = '
http://www.eyes-down.net/bangers';
$config['root_path'] = '/home/eyesdown/public_html/bangers';
$config['query_var'] = 'page';
$config['use_bb_code'] = false;
$config['use_smarty_php_tags'] = false;
$config['previews_path'] = '/home/eyesdown/public_html/bangers/tmp/cache';
$config['uploads_path'] = '/home/eyesdown/public_html/bangers/uploads';
$config['uploads_url'] = '
http://www.eyes-down.net/bangers/uploads';
$config['max_upload_size'] = 1000000;
$config['debug'] = false;
$config['assume_mod_rewrite'] = false;
$config['auto_alias_content'] = true;
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['use_Indite'] = false;
$config['image_uploads_path'] = '/home/eyesdown/public_html/bangers/uploads/images';
$config['image_uploads_url'] = '
http://www.eyes-down.net/bangers/uploads/images';
$config['default_encoding'] = '';
$config['disable_htmlarea_translation'] = false;
$config['admin_dir'] = 'admin';
$config['persistent_db_conn'] = false;
$config['default_upload_permission'] = '664';
$config['page_extension'] = '.html';
$config['use_adodb_lite'] = true;
$config['locale'] = '';
$config['admin_encoding'] = 'utf-8';
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 3:54 pm
by tsw
Cant see anything wrong with the config...
It seems there is a "internel server terror" on the first view.. anything in the errorlogs?
ps. try the "chat" button above to join #cms on freenode, somewhat faster to talk on irc

Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 4:28 pm
by Piratos
Your mysql works - i can see the stylesheets
(
http://www.eyes-down.net/bangers/styles ... mplateid=4 ).
But your contentcache.php in the folder /bangers/tmp/cache has 0 Bytes - it seems as the rights are not set well.
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 5:20 pm
by Russ
You did say MySQL ?
Shouldn't this be $config['dbms'] = 'mysqli';
$config['dbms'] = 'mysql'; Note the 'l' not 'i' at the end?
Other very faint possibilities....
The underscore in 'public_html' paths or in the username 'eyesdown_cmsuser'???
Hope this helps,
Russ
Re: Error message - nocache on install
Posted: Thu Apr 27, 2006 6:04 pm
by Piratos
@russ
Shouldn't this be $config['dbms'] = 'mysqli';
if you can see the stylesheets the database works and 60% of all cms code is loaded.
Re: Error message - nocache on install
Posted: Fri Apr 28, 2006 9:55 am
by stup
Piratos wrote:
But your contentcache.php in the folder /bangers/tmp/cache has 0 Bytes - it seems as the rights are not set well.
I have set the permissions on this file to 777. They were 644 although the folder was set to 777. No change in behaviour though.
tsw wrote:
It seems there is a "internel server terror" on the first view.. anything in the errorlogs?
The error log reads...
[28-Apr-2006 10:34:55] PHP Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/eyesdown/public_html/bangers/lib/classes/class.content.inc.php on line 2010
[28-Apr-2006 10:34:55] PHP Fatal error: Call to a member function getFlattenedContent() on a non-object in /home/eyesdown/public_html/bangers/plugins/function.cms_selflink.php on line 111
Thanks for your help with this.

Stuart
Re: Error message - nocache on install
Posted: Fri Apr 28, 2006 10:27 am
by Piratos
delete the file contentcache.php. the cms try to read this file because the name exists, but it has 0 bytes. if there is no file the cms creates a new one with contents.
Re: Error message - nocache on install
Posted: Fri Apr 28, 2006 11:00 am
by stup
I tried this. The first time I request the website homepage I get an internal server error. The second time I'm back to my standard nocache error. These 2 requests appear to be the actions which result in the lines from the error log which I have pasted above.
Re: Error message - nocache on install
Posted: Fri Apr 28, 2006 11:06 am
by Piratos
it looks like the cms has nothing to write, no values in the tables or so.