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

uTime failed...

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
andrewhu
Smarty n00b


Joined: 18 Sep 2003
Posts: 3

PostPosted: Thu Sep 18, 2003 12:51 pm    Post subject: uTime failed... Reply with quote

Hi
After chmod 777 every template_c I could find and sub_dirs to false got demo app almost working but for
utime failed: Operation not permitted in /Volumes/WebServer/Documents/Smarty/Smarty.class.php on line 1575
Server MacOS X/Apache 1.3.27/PHP 4.1.2
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Thu Sep 18, 2003 5:36 pm    Post subject: Reply with quote

did you clear all files in templates_c and let the webserver recreate them?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
andrewhu
Smarty n00b


Joined: 18 Sep 2003
Posts: 3

PostPosted: Fri Sep 19, 2003 1:31 am    Post subject: uTime failed...templates_c Reply with quote

Yes, I did empty templates_c but no change. I am begining to suspect an overriding factor from MacOS X Server settings on www access rights.
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Fri Sep 19, 2003 7:30 am    Post subject: Reply with quote

unfortunately i only have access to a plain MacOS X machine (not "server") at the office to test smarty and there it runs without problems/warnings. "utime() failed" is normally caused when the file you want to "touch()" is not owned by you.

for a quick fix, i suggest you put an "@" before the call to "touch" in Smarty.class.php at line 1575 . that makes the warning silent. i don't see any real problems if the touch cannot be executed. the only thing is the compiled template then hast not *the same* timestamp as the source template but a newer one. that shouldn't be a problem.

of course i am interested in a real solution. please let us know on the list, if you get it working without that warning and what settings MaxOS X Server needs to handle templates_c correctly.

greetings
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
andrewhu
Smarty n00b


Joined: 18 Sep 2003
Posts: 3

PostPosted: Mon Sep 22, 2003 2:29 am    Post subject: uTime failed...MacOS X Server Reply with quote

Thanks removing touch does allow the smarty templates to work. For interest touch commands have been restricted in MacOS X Server since 10.2.5 as a security measure.
Placing files outside of the web root is also a problem. (At least on my server but I may have been a little anal in my security set up)
The Apache user on server is www. So chown www:www or sometimes www:admin not nobody:nobody.
There is no php.ini though you can create one which seems to work. Pear/db.php etc live at System/Library/PHP/ on server. They may move if you use Entropy php binary install.
Server ships with php version < 4.2.
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 -> Installation and Setup 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