|
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 |
lee Smarty n00b
Joined: 05 Apr 2013 Posts: 2
|
Posted: Fri Apr 05, 2013 4:12 am Post subject: Fatal error: 'unable to write file' |
|
|
Hi,
I have written a site using Smarty, it works fine on my two testing servers (one of which is a live external server provided by my ISP), however when I transfer it over to the clients server (provided by a different ISP) I get the following message:
Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file lib/smarty/templates_c/wrt515e433c363994.62283500' in /home/pottsvil/public_html/lib/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /home/pottsvil/public_html/lib/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('lib/smarty/temp...', '<?php /* Smarty...', Object(Smarty)) #1 /home/pottsvil/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 /home/pottsvil/public_html/lib/smtemplate_class.php(32): Smarty_Internal_TemplateBase->fetch('pottsvillehome....') #3 /home/pottsvil/public_html/index.php(209): SMTemplate->render('pottsvillehome') #4 {main} thrown in /home/pottsvil/public_html/lib/smarty/sysplugins/smarty_internal_write_file.php on line 44
I am guessing that it is a server set-up issue, but have no idea how to solve the problem. I have changed permissions to 777 (read write execute for User Group World), but that has had no effect.
I'd greatly appreciate some help,
Thanks
Lee |
|
Back to top |
|
lee Smarty n00b
Joined: 05 Apr 2013 Posts: 2
|
Posted: Fri Apr 05, 2013 12:07 pm Post subject: |
|
|
I have managed to solve this now. I had permissions set for the folder, but not for the individual file! |
|
Back to top |
|
KimhounKP Smarty n00b
Joined: 20 May 2015 Posts: 1 Location: Cambodia
|
Posted: Wed May 20, 2015 3:56 am Post subject: unable to write file |
|
|
I meet this problem too. Please help. |
|
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
|