|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
agnivohneb Smarty n00b
Joined: 25 Jan 2016 Posts: 1
|
Posted: Mon Jan 25, 2016 5:48 pm Post subject: Template Resource from Windows Network |
|
|
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 |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jan 25, 2016 6:31 pm Post subject: |
|
|
Do not use backslashes. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Jan 28, 2016 2:54 am Post subject: |
|
|
The fix is now in the master branch on github and will later be included in 3.1.30 |
|
Back to top |
|
|
|
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
|