Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Template Resource from Windows Network

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
agnivohneb
Smarty n00b


Joined: 25 Jan 2016
Posts: 1

PostPosted: Mon Jan 25, 2016 5:48 pm    Post subject: Template Resource from Windows Network Reply with quote

Windows Filepath will not work with a network directory.

ex.
\\SERVER\Path\to\dir\index.tpl

I keep getting an error that it is not within the allowed path(s).
My wwwroot is on that network location.
When the error appears the first slash is removed and looks like this now \SERVER\Path\to\dir\index.tpl

My error looks like this. I changed the path location to a pseudo path
Code:
Warning: is_file(): open_basedir restriction in effect. File(\SERVER\Path\to\dir\index.tpl) is not within the allowed path(s): (\\SERVER\Path\to\dir\) in \\SERVER\Path\to\dir\smarty-3.1.29\sysplugins\smarty_internal_resource_file.php on line 93

Any help?

EDIT: This error appears when I do a display() or fetch() command.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jan 25, 2016 6:31 pm    Post subject: Reply with quote

Do not use backslashes.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Jan 28, 2016 2:54 am    Post subject: Reply with quote

The fix is now in the master branch on github and will later be included in 3.1.30
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP