include problem

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.
Locked
jubydoo

include problem

Post by jubydoo »

Hi, I'm running CMSMS .12.1 and I recieved the following error message:

Warning: _include(/var/www/beta/tmp/templates_c/45^%%70^707^707A8977%%content%3Acontent_en.inc): failed to open stream: Permission denied in /var/www/darcorp.com/lib/content.functions.php on line 133

Warning: _include(): Failed opening '/var/www/beta/tmp/templates_c/45^%%70^707^707A8977%%content%3Acontent_en.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/darcorp.com/lib/content.functions.php on line 133
{nocache:2f8640e4aa9000b8c8546a87d0267d21#0}

I know exactly what the problem is; originally this page was stored in /var/www/beta/ while we were testing it, but we have since moved it.  I thought I had tracked down all instances of 'beta' in the scripts, but apparently I have not.  Does anyone know where I can find the appropriate setting to get this fixed?
Piratos

Re: include problem

Post by Piratos »

delete the cache and it works
jubydoo

Re: include problem

Post by jubydoo »

I deleted the contents of beta/tmp/cache/, beta/tmp/templates_c/ and live_site/tmp/cache/, with no change (aside from any index.html's and contentcache.php).  When I deleted the contents of live_site/tmp/cache/, I get even more error messages and on all pages, not just the few that were having it before.  Am I doing something wrong?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: include problem

Post by Dr.CSS »

i think he meant clear the cache, if you change where the pages are or the origin of your site you need to change your "config.php" file in the root of your install to point to new location, mine says,,

<?php

$config['dbms'] = 'mysql';
$config['db_hostname'] = '*********';
$config['db_username'] = '*******';
$config['db_password'] = '********';
$config['db_name'] = '********';
$config['db_prefix'] = 'cms_';
$config['root_url'] = 'http://www.multiintech.com/cmsite';
$config['root_path'] = '/homepages/24/d151200904/htdocs/cmsite';
$config['query_var'] = 'page';
$config['use_bb_code'] = false;
$config['use_smarty_php_tags'] = false;
$config['previews_path'] = '/homepages/24/d151200904/htdocs/cmsite/tmp/cache';
$config['uploads_path'] = '/homepages/24/d151200904/htdocs/cmsite/uploads';
$config['uploads_url'] = 'http://www.multiintech.com/cmsite/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'] = '/homepages/24/d151200904/htdocs/cmsite/uploads/images';
$config['image_uploads_url'] = 'http://www.multiintech.com/cmsite/uploads/images';
$config['default_encoding'] = '';
$config['disable_htmlarea_translation'] = false;
$config['admin_dir'] = 'admin';
$config['persistent_db_conn'] = true;
$config['default_upload_permission'] = '664';
$config['page_extension'] = '.html';
$config['use_adodb_lite'] = true;
$config['locale'] = '';
$config['admin_encoding'] = 'utf-8';

iif i moved it to the root and out of the cmsite folder i would remove all the cmsite,, don't have more than one / in the path ie
htdocs/cmsite/uploads/images';  this changes to,,
htdocs/uploads/images';
'http://www.multiintech.com/cmsite';  to
'http://www.multiintech.com/;  etc....

that's my understanding of it,, ok

    mark
Locked

Return to “CMSMS Core”