I am trying to use PHPTAL with Drupal 4.5.2. I have followed Christian Federmann's HOWTO (except that I renamed the folder PHPTAL-NP-0.7.0 to phptal instead of creating a symbolic link). I also changed *.html to *.tal as described here: http://drupal.org/node/14422. But after I have activated tal_grey in Administer > Themes, I just get the following error message:

warning: phptal_init(PHPTAL.php): failed to open stream: No such file or directory in E:\sites\localhost\themes\engines\phptal\phptal.engine on line 38.

The file PHPTAL.php exists in the directory E:\sites\localhost\themes\engines\phptal\libs.

Comments

cl2dlope’s picture

there is a path related problem on windows with the phptal.engine file.

You need to edit the phptal.engine file by hand and change line 37:

realpath('themes/engines/phptal/libs') . ':' . ini_get('include_path'));

to

realpath('themes/engines/phptal/libs') . ';' . ini_get('include_path'));

Possibly on other places as well, but these are what I found.

The reason is that on windows, the separator for different paths is ';' and not ':' (which woudl clash with 'c:\...' style paths.

Im am sure there is a neat way to avoid this issue altgether, but I am php newbie (still learning), so I don't know enough yet to provide code to solve this.

Hope this helps.

olav’s picture

Status: Active » Closed (won't fix)

Please use the PEAR version of PHPTAL as suggested with the rewrite of the engine for 4.7.