|
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 |
cnnjack Smarty n00b
Joined: 18 Aug 2003 Posts: 2
|
Posted: Mon Aug 18, 2003 9:41 pm Post subject: Warning: Operation not permitted ... ?? |
|
|
Hello!
After installing Smarty i get the following warnings when opening a page ...
Warning: chmod(): Operation not permitted in /home/www/.../Smarty-2.4.2/Smarty.class.php on line 1994
Warning: touch(): Utime failed: Operation not permitted in /home/www/.../Smarty-2.4.2/Smarty.class.php on line 1284
Except of that, the page shows up properly ...
The lines in Smarty.class.php are:
#1994: chmod($filename, $this->_file_perms); (in _write_file)
#1284: touch($_compile_file,filemtime($_file_path)); (in config_load)
and this line most probably causes the first error:
#1283: $this->_write_file($_compile_file, $_compile_data, true);
The website is running on an Apache Server with PHP 4.3.x
Any help would be great.
Regards,
Chris |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Aug 18, 2003 10:06 pm Post subject: |
|
|
it seems your templates_c-directory has not the correct permissions/ownership. it should belong to the webserver-user or at least grant write-permissions to him. |
|
Back to top |
|
cnnjack Smarty n00b
Joined: 18 Aug 2003 Posts: 2
|
Posted: Mon Aug 18, 2003 10:44 pm Post subject: Warnings... |
|
|
Hi!
I did set the rights for the template_c-dir. But after i deleted it and recreated it with confixx it worked. Don't know what went wrong at first.
Greetz,
Chris |
|
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
|