Page 1 of 1

Server Settings

Posted: Sun Oct 25, 2009 11:50 pm
by pgwalsh
Hi All,

I keep finding this error in my logs.

PHP Warning:  filemtime() [function.filemtime]: stat failed for /hermes/bosweb/web060/b607/sl.calbever/public_html/tmp/templates_c/%%97^97E^97ECB234%%template%3A26.php in /hermes/bosweb/web060/b607/sl.calbever/public_html/lib/smarty/Smarty.class.php on line 1410

My root directory is:       /home/users/web/b607/sl.calbever/public_html/
My old root directory is: /hermes/bosweb/web060/b607/sl.calbever/public_html/

tmp:
/home/users/web/b607/sl.calbever/public_html/tmp (0755)

templates_c:
/hermes/bosweb/web060/b607/sl.calbever/public_html/tmp/templates_c (0755)

modules:
/home/users/web/b607/sl.calbever/public_html/modules (0755)

File Creation Mask (umask):
/hermes/bosweb/web060/b607/sl.calbever/public_html/tmp/cache (0755)

I'm not sure why it's not showing the new root path and I have no idea where/how I can fix it. The site works fine, but I'd like to get rid of the error nonetheless.

Any help or guidance is greatly appreciated.

Peter

Re: Server Settings

Posted: Mon Oct 26, 2009 12:41 am
by Jeff
Clear your site cache. Edit your config.php file you probably have some bad settings, or run the install script with the database options turned off.

But as always backup your site first to be on the safe side.

Re: Server Settings

Posted: Mon Oct 26, 2009 12:46 am
by Peciura
You can adapt this config file. It is based on standart configuration, and assumes config.php is in root folder.
For example, instead of setting absolute uploads path and url it calculates them as follows:

Code: Select all

$config['uploads_path'] = $config['root_path'].'/uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
You will have to set "root_url" and DB connection params and may be some other options.

EDIT
this config is for urls like "http://sitename.com/index.php?page=page-name" and
not for "http://sitename.com/page-name"

Re: Server Settings

Posted: Mon Oct 26, 2009 2:00 am
by pgwalsh
ajprog wrote: Clear your site cache. Edit your config.php file you probably have some bad settings, or run the install script with the database options turned off.

But as always backup your site first to be on the safe side.
I tried this earlier and didn't have any luck, that's one reason I posted.
Peciura wrote: You can adapt this config file. It is based on standart configuration, and assumes config.php is in root folder.
For example, instead of setting absolute uploads path and url it calculates them as follows:

Code: Select all

$config['uploads_path'] = $config['root_path'].'/uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
You will have to set "root_url" and DB connection params and may be some other options.
I did this, but the situation hasn't changed. Is any of the server information for templaces_c or file create mask held in the database?

Re: Server Settings

Posted: Mon Oct 26, 2009 2:17 am
by pgwalsh
pgwalsh wrote:
ajprog wrote: Clear your site cache. Edit your config.php file you probably have some bad settings, or run the install script with the database options turned off.

But as always backup your site first to be on the safe side.
I tried this earlier and didn't have any luck, that's one reason I posted.
Peciura wrote: You can adapt this config file. It is based on standart configuration, and assumes config.php is in root folder.
For example, instead of setting absolute uploads path and url it calculates them as follows:

Code: Select all

$config['uploads_path'] = $config['root_path'].'/uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
You will have to set "root_url" and DB connection params and may be some other options.
I did this, but the situation hasn't changed. Is any of the server information for templaces_c or file create mask held in the database?
Peciura,

Thank you, this stopped the error from occurring, but it still lists the same url in System information.

Now I have another error, but it's not part of the core, it's related to link manager

Re: Server Settings

Posted: Mon Oct 26, 2009 9:34 am
by Peciura
Can you please post complete "System Information".