{"id":7180,"date":"2014-05-27T08:58:43","date_gmt":"2014-05-27T08:58:43","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/unable-to-write-cache-folder-for-smarty-project-on-pagodabox-collection-of-common-programming-errors\/"},"modified":"2014-05-27T08:58:43","modified_gmt":"2014-05-27T08:58:43","slug":"unable-to-write-cache-folder-for-smarty-project-on-pagodabox-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/unable-to-write-cache-folder-for-smarty-project-on-pagodabox-collection-of-common-programming-errors\/","title":{"rendered":"Unable to write cache folder for smarty project on pagodabox-Collection of common programming errors"},"content":{"rendered":"<p>I have created project in smarty and now i am trying to host it on pagodabox.com. I have created application on pagodabox.com and uploaded all code on to this application but problem is this now i am unable to configure cache and compiler directory in pagodabox.com that&#8217;s why it output fetal error because cache and compiler directory is read only mode. I have try Boxfile to resolve this issue but failing to solve. I am not aware how i can make these directory writable. please help me. this is url of project <code>http:\/\/moviestock.pagodabox.com\/<\/code> and following is my Boxfile configuration<\/p>\n<pre><code>web1: #component type &amp; number\n  name: blog            #component settings\n  shared_writable_dirs:\n    - var\/secured\/cache\n    - var\/secured\/compiler\n    - var\/sessions\n  document_root: app\n  php_version: 5.3.8\n<\/code><\/pre>\n<p>and i am getting this following error :<\/p>\n<pre><code>Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file   \nshared\/secured\/compiler\/wrt50c17dfaca2932.90478039' in \n\/var\/www\/libs\/sysplugins\/smarty_internal_write_file.php:44 Stack trace: #0 \n\/var\/www\/libs\/sysplugins\/smarty_internal_template.php(201): \nSmarty_Internal_Write_File::writeFile('shared\/secured\/...', 'compileTemplateSource() #2  \n\/var\/www\/libs\/sysplugins\/smarty_internal_templatebase.php(374): \nSmarty_Internal_TemplateBase-&gt;fetch('extends:layout....', '6666cd76f969564...', NULL, \nNULL, true) #3 \/var\/www\/classes\/BaseController.php(22): Smarty_Internal_TemplateBase-\n&gt;display('extends:layout....', '6666cd76f969564...') #4 \n\/var\/www\/secured\/controllers\/HomeController.php(6): BaseController-&gt;render('home') #5 \n[internal function]: HomeController-&gt;indexAction('') #6 \n\/var\/www\/classes\/Router.php(26): call_user_func_array(Array, Array) #7 \n\/var\/www\/index.php(10): Router::run() #8 in \n\/var\/www\/libs\/sysplugins\/smarty_internal_write_file.php on line 44 \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have created project in smarty and now i am trying to host it on pagodabox.com. I have created application on pagodabox.com and uploaded all code on to this application but problem is this now i am unable to configure cache and compiler directory in pagodabox.com that&#8217;s why it output fetal error because cache and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7180","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7180"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7180\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}