After an install, and configuration, first login gets:
PHP Warning: Smarty::include(D:\Program Files\testlink\gui\templates_c\\%%6A^6A5^6A537DD8%%login.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in D:\Program Files\testlink\third_party\smarty\Smarty.class.php on line 1247 PHP Warning: Smarty::include() [function.include]: Failed opening 'D:\Program Files\testlink\gui\templates_c\\%%6A^6A5^6A537DD8%%login.tpl.php' for inclusion (include_path='.;d:\php\pear;.;D:\Program Files\testlink\lib\functions\') in D:\Program Files\testlink\third_party\smarty\Smarty.class.php on line 1247
This is pretty much the same issue as in http://www.teamst.org/phpBB2/viewtopic.php?t=604
OS: Windows 2000, SP4
IIS: 5.0
I have granted IUSR_{machine} write access to the entire Testlink directory including templates_c; in fact, I've tried giving lots of users and groups extensive permissions (IWAM_{machine}, Web Anonymous Users, Web Applications, and SYSTEM). I've also set in IIS, write permissions on the gui\ folder and all of its children.
Since the temporary files do get created, this does not appear to be a permissions issue.
When I attempt to login, a temporary login template file of the form - wri2AB.tmp - is created but never gets turned into the actual compiled template.
The first few lines of wri2AB.tmp are:
<?php /* Smarty version 2.6.3, created on 2007-12-11 08:10:16
compiled from login.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'login.tpl', 29, false),array('function', 'lang_get', 'login.tpl', 37, false),array('modifier', 'escape', 'login.tpl', 30, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array('title' => "TestLink - Login",'openHead' => 'yes')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
Since this is an upgrade type install (from 1.7.0), I've tried copying all of the previous template files from the old folder. This allows me to login but some template files are actually deleted prior to being recreated. In this case, I get the temporary file, but the final template (which just got deleted) is never recreated).
I set $g_log_level='EXTENDED' and see this in templates_c\userlog0.log
8:54:30][INFO][/testlink/login.php][<unknown>][<nosession>]
Login page requested by 192.168.1.148
[07/Dec/11 08:54:30][DEBUG][/testlink/login.php][<unknown>][<nosession>]
SQL [1] executed [took 0.0008 secs][all took 0.0008 secs]:
SET CHARACTER SET utf8
[07/Dec/11 08:54:31][DEBUG][/testlink/login.php][<unknown>][<nosession>]
SQL [2] executed [took 0.0010 secs][all took 0.0026 secs]:
SET collation_connection = 'utf8_general_ci'
[07/Dec/11 08:54:31][DEBUG][/testlink/login.php][<unknown>][<nosession>]
SQL [3] executed [took 0.0021 secs][all took 0.0057 secs]:
SELECT password, login, users.id, role_id, email, first, last, roles.description AS role, locale, active FROM users,roles WHERE users.role_id = roles.id AND login='admin'
[07/Dec/11 08:54:31][DEBUG][/testlink/login.php][<unknown>][<nosession>]
SQL [4] executed [took 0.0018 secs][all took 0.0096 secs]:
SELECT * FROM db_version ORDER BY upgrade_ts DESC
[07/Dec/11 08:54:31][DEBUG][/testlink/login.php][<unknown>][<nosession>]
SQL [5] executed [took 0.0027 secs][all took 0.0141 secs]:
select id,name from nodes_hierarchy WHERE id IN(SELECT id FROM testplans
WHERE testproject_id=0)
What I've not yet tried is wiping out my database and starting completely over with a fresh install.
After 1.7.1 Install, Testlink cannot make templates
Moderators: Amaradana, TurboPT, TL Developers
After 1.7.1 Install, Testlink cannot make templates
I figured out the issue to some extent; I don't have all of the details and probably did more than was required but I got things working. Long story short: the user SYSTEM needs some level of access. I gave it r/w/e to the entire testlink directory. This is probably too broad but it works.
Also, in a CMD window one needs to do an iisreset /restart between permission changes. Again, I'm not sure what IIS is holding onto but this seems to be the way to flush it out.
Finally, and again I'm not sure if this was required, I explicitly set $compile_dir and $template_dir in Smarty.class.php
If someone fine tunes this or has additional insights, please post.
Also, in a CMD window one needs to do an iisreset /restart between permission changes. Again, I'm not sure what IIS is holding onto but this seems to be the way to flush it out.
Finally, and again I'm not sure if this was required, I explicitly set $compile_dir and $template_dir in Smarty.class.php
If someone fine tunes this or has additional insights, please post.
-
- TestLink user
- Posts: 11
- Joined: Mon Mar 24, 2008 6:37 am
install page
<?php
/*
TestLink Open Source Project - http://testlink.sourceforge.net/
$Id: index.php,v 1.7.2.1 2008/01/04 16:18:27 franciscom Exp $
*/
require_once("../cfg/const.inc.php");
session_start();
$_SESSION['session_test'] = 1;
$_SESSION['testlink_version']=TL_VERSION;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Testlink <?php echo $_SESSION['testlink_version'] ?> Install</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
@import url('./css/style.css');
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="mainTable">
<tr class="fancyRow">
<td><span class="headers"> <img src="./img/dot.gif" alt="" style="margin-top: 1px;" /> TestLink <?php echo $_SESSION['testlink_version'] ?> </span></td>
<td align="right"><span class="headers">Installation</span></td>
</tr>
<tr class="fancyRow2">
<td colspan="2" class="border-top-bottom smallText" align="right"> </td>
</tr>
<tr align="left" valign="top">
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr align="left" valign="top">
<td class="pad" id="content" colspan="2">
<p><b>TestLink Setup</b></p>
<a href="newInstallStart_TL.php?installationType=new">New installation</a>
<p />
<a href="newInstallStart_TL.php?installationType=upgrade">Upgrade installation</a>
</p>
<a href="./migration/index.php">Migration from 1.6.2/1.6.3 to <?php echo $_SESSION['testlink_version'] ?></a>
</p>
</td>
</tr>
</table></td>
</tr>
<tr class="fancyRow2">
<td class="border-top-bottom smallText"> </td>
<td class="border-top-bottom smallText" align="right"> </td>
</tr>
</table>
</body>
</html>
i am getting this on my IE page when i try http://localhost/testlink/install/index.php
/*
TestLink Open Source Project - http://testlink.sourceforge.net/
$Id: index.php,v 1.7.2.1 2008/01/04 16:18:27 franciscom Exp $
*/
require_once("../cfg/const.inc.php");
session_start();
$_SESSION['session_test'] = 1;
$_SESSION['testlink_version']=TL_VERSION;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Testlink <?php echo $_SESSION['testlink_version'] ?> Install</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
@import url('./css/style.css');
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="mainTable">
<tr class="fancyRow">
<td><span class="headers"> <img src="./img/dot.gif" alt="" style="margin-top: 1px;" /> TestLink <?php echo $_SESSION['testlink_version'] ?> </span></td>
<td align="right"><span class="headers">Installation</span></td>
</tr>
<tr class="fancyRow2">
<td colspan="2" class="border-top-bottom smallText" align="right"> </td>
</tr>
<tr align="left" valign="top">
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr align="left" valign="top">
<td class="pad" id="content" colspan="2">
<p><b>TestLink Setup</b></p>
<a href="newInstallStart_TL.php?installationType=new">New installation</a>
<p />
<a href="newInstallStart_TL.php?installationType=upgrade">Upgrade installation</a>
</p>
<a href="./migration/index.php">Migration from 1.6.2/1.6.3 to <?php echo $_SESSION['testlink_version'] ?></a>
</p>
</td>
</tr>
</table></td>
</tr>
<tr class="fancyRow2">
<td class="border-top-bottom smallText"> </td>
<td class="border-top-bottom smallText" align="right"> </td>
</tr>
</table>
</body>
</html>
i am getting this on my IE page when i try http://localhost/testlink/install/index.php