templates_c odd filenames

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

templates_c odd filenames

Post by cb2004 »

All the files being created in here have the file extension .tmp therefore the CMS is not looking in the right place.

Any ideas?
alby

Re: templates_c odd filenames

Post by alby »

cb2004 wrote: All the files being created in here have the file extension .tmp therefore the CMS is not looking in the right place.
Strange, in this folder smarty has own files and should be .inc and .php and not .tmp

Alby
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

I know. Windows server.

Any ideas?
alby

Re: templates_c odd filenames

Post by alby »

cb2004 wrote: Any ideas?
Check content of these files and check phpinfo() for settings in this folder (upload folder, save session, ...)

Alby
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

The contents seem absolutely fine. Its just the filenames and file extensions which are screwy.

What deails do you need from the phpinfo();?
alby

Re: templates_c odd filenames

Post by alby »

cb2004 wrote: The contents seem absolutely fine. Its just the filenames and file extensions which are screwy.
then what's inside?

cb2004 wrote: What deails do you need from the phpinfo();?
search for templates_c in this page

Alby
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

This is inside one of the files:

Code: Select all

<?php /* Smarty version 2.6.18, created on 2008-09-17 13:32:07
         compiled from header.tpl */

$this->_cache_serials['MYSERVER\tmp\templates_c\%%F7^F7F^F7F34188%%header.tpl.inc'] = '7d428e5bfe7a93eb0c52c1a9d021a8a0';

?><?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_install', 'header.tpl', 5, false),)), $this); ?>
<?php
function _smarty_tplfunc_7d428e5bfe7a93eb0c52c1a9d021a8a0_0(&$this)
{
$_cache_attrs =& $this->_smarty_cache_attrs('7d428e5bfe7a93eb0c52c1a9d021a8a0','0');echo smarty_lang(array('a' => 'install_title','1' => $this->_tpl_vars['current_page']), $this);
}


function _smarty_tplfunc_7d428e5bfe7a93eb0c52c1a9d021a8a0_1(&$this)
{
$_cache_attrs =& $this->_smarty_cache_attrs('7d428e5bfe7a93eb0c52c1a9d021a8a0','1');echo smarty_lang(array('a' => 'install_system'), $this);
}


function _smarty_tplfunc_7d428e5bfe7a93eb0c52c1a9d021a8a0_2(&$this)
{
$_cache_attrs =& $this->_smarty_cache_attrs('7d428e5bfe7a93eb0c52c1a9d021a8a0','2');echo smarty_lang(array('a' => 'install_thanks'), $this);
}



?>
As you see whats inside is fine. Its just not creating the correct filename or file extension. I have my phpinfo(); screen up which is placed in templates_c. What shall I be looking for?

I think if we fix this we will fix loads of problems with other peoples Windows problems. I see no end of errors when I search for fetch. I have been using the template files from a Unix server and I am just copying over the template files. Maybe Calguy or Ted would be interested in this post?
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: templates_c odd filenames

Post by Russ »

Mmm, nice and weird, I think having a look at the PHP info is the next step. Does this only happen on Windows Web Servers?
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

Yeah only on a Windows server I am installing on.

What shall I look for in the PHP info?

The files are names like wrtFC.tmp and so on.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: templates_c odd filenames

Post by Russ »

As Alby said
"phpinfo() for settings in this folder (upload folder, save session, ...)" and "search for templates_c in this page"

What PHP you on, CMS Version, Apache Server or other wbe server? Windows OS/Version?
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

PHP: 4.3.10
CMSMS: 1.4.1
Server: IIS 6
alby

Re: templates_c odd filenames

Post by alby »

cb2004 wrote: Yeah only on a Windows server I am installing on.

What shall I look for in the PHP info?

The files are names like wrtFC.tmp and so on.
smarty use tempnam php function
Windows could overwrite behavior of this function and write another filename
I do not think to "abnormal" behavior but a "strange" behavior of Windows (IIS in particulary)  ::)

Alby
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

Is there anything I could do or get the server admin to do?
alby

Re: templates_c odd filenames

Post by alby »

cb2004 wrote: Is there anything I could do or get the server admin to do?
You should make a test with the code of the file: lib/smarty/internals/core.write_file.php

Alby
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: templates_c odd filenames

Post by cb2004 »

I found this:

http://www.phpinsider.com/smarty-forum/ ... php?t=7183

The posts towards the bottom are interesting.
Locked

Return to “[locked] Installation, Setup and Upgrade”