Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Delphi For PHP > VCL4PHP
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

VCL4PHP VCL for PHP. Questions or comments about the Visual Component Library for PHP, post them here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 8th July 2009, 14:41
guy guy is offline
D4PHP User
 
Join Date: Mar 2009
Posts: 44
guy is on a distinguished road
Default Smarty problem

Hi,

My site is finish and I'd like put here online but I have a problem whis Smarty :

/tmp/tmp

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/%%C4^C41^C415E38B%%home.tpl.php) is not within the allowed path(s): (/mnt/102/sdb/7/3/mysite) in /mnt/102/sdb/7/3/mysite/vcl/smarty/libs/Smarty.class.php on line 1379

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/templates/home.tpl) is not within the allowed path(s): (/mnt/102/sdb/7/3/mysite) in /mnt/102/sdb/7/3/mysite/vcl/smarty/libs/Smarty.class.php on line 1641

Fatal error: Smarty error: the $compile_dir '/tmp' does not exist, or is not a directory. in /mnt/102/sdb/7/3/mysite/vcl/smarty/libs/Smarty.class.php on line 1092



I think it's problem with tmp folder of Smarty, perhaps because my provider
disable functions "set_include_path" "ini_set" ?

when i use "get_include_path" I have only this :
/mnt/102/sdb/7/3/mysite/include:.:/usr/php5/lib/php


/tmp/tmp is because I have put in "smatytemplate.inc.php" to debug problem: echo $this->_smarty->compile_dir;


Did somebody have an explain ?

Thanks,

Guy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 8th July 2009, 22:55
guy guy is offline
D4PHP User
 
Join Date: Mar 2009
Posts: 44
guy is on a distinguished road
Default

Hi,

I find problem

Just replace

$this->_smarty->compile_dir = '/tmp';

by

$this->_smarty->compile_dir = 'tmp';

in "smartytemplate.inc.php" file and it' s ok !

I think it's a bug !

Guy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:58.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use