<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 1: failed to open stream</title><link>https://sourceforge.net/p/phpready/bugs/1/</link><description>Recent changes to 1: failed to open stream</description><atom:link href="https://sourceforge.net/p/phpready/bugs/1/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Mar 2008 15:43:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpready/bugs/1/feed.rss" rel="self" type="application/rss+xml"/><item><title>failed to open stream</title><link>https://sourceforge.net/p/phpready/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;when loading &lt;a href="http://localhost/phpready-0.2/" rel="nofollow"&gt;http://localhost/phpready-0.2/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Warning: Smarty::include(phpReady/builder/tpl_compile\%%F7^F7F^F7F34188%%header.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\apache\htdocs\phpReady-0.2\phpReady\smarty\Smarty.class.php on line 1258&lt;/p&gt;
&lt;p&gt;here's my fix:&lt;br /&gt;
in &lt;a href="http://localhost/phpready-0.2/index.php" rel="nofollow"&gt;http://localhost/phpready-0.2/index.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;move line 45:&lt;br /&gt;
$dir = dirname($_SERVER['SCRIPT_FILENAME']);&lt;/p&gt;
&lt;p&gt;to line 20 just after&lt;br /&gt;
session_start(); and added a trailing slash like so:&lt;/p&gt;
&lt;p&gt;$dir = dirname($_SERVER['SCRIPT_FILENAME']).'/';&lt;/p&gt;
&lt;p&gt;added the directory path to lines 38 &amp;amp; 39&lt;/p&gt;
&lt;p&gt;from:&lt;br /&gt;
$smarty-&amp;gt;template_dir = 'phpReady/builder/templates';&lt;br /&gt;
$smarty-&amp;gt;compile_dir = 'phpReady/builder/tpl_compile';&lt;/p&gt;
&lt;p&gt;to:&lt;br /&gt;
$smarty-&amp;gt;template_dir = $dir.'phpReady/builder/templates';&lt;/p&gt;
&lt;p&gt;$smarty-&amp;gt;compile_dir = $dir.'phpReady/builder/tpl_compile';&lt;/p&gt;
&lt;p&gt;now working as expected.&lt;/p&gt;
&lt;p&gt;awesome code!! thanks so much...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">repcode128</dc:creator><pubDate>Wed, 19 Mar 2008 15:43:41 -0000</pubDate><guid>https://sourceforge.netdd50755e3e37c83084283fa3e6aac39f24e77706</guid></item></channel></rss>