CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Purpose of %%XX directories
Pages: [1]

Author Topic: Purpose of %%XX directories  (Read 1222 times)

Wonder95

  • Guest
Purpose of %%XX directories
January 28, 2008, 03:39:44 pm
What is the purpose of the %%xx folders under files/civicrm/templates_c/en_US?  They cause a major headache any time I try to move data from a local machine to the server.  Even if I get the database imported successfully, when I go to a screen, I get errors like this:
Code: [Select]
    * user error: Smarty error: unable to write to $compile_dir '/home/campfire/public_html/files/civicrm/templates_c/en_US'. Be sure $compile_dir is writable by the web server user. in /home/campfire/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include(/home/campfire/public_html/files/civicrm/templates_c/en_US//%%DB/DB1/DB10BE01%%Group.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /home/campfire/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1871.
    * warning: Smarty::include() [function.include]: Failed opening '/home/campfire/public_html/files/civicrm/templates_c/en_US//%%DB/DB1/DB10BE01%%Group.tpl.php' for inclusion (include_path='.:/home/campfire/public_html/sites/all/modules/civicrm:/home/campfire/public_html/sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/campfire/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1871.

In this case, somebody screwed up my web server, and the entire server had to be rebuilt.  The en_US/%%DB directory isn't even there now, so I get the error message above.  By chance is there a simple way to get around these errors when moving between servers?  They're a real headache.

Thanks.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Purpose of %%XX directories
January 28, 2008, 09:52:33 pm
Quote
What is the purpose of the %%xx folders under files/civicrm/templates_c/en_US?

This is created by Smarty. When you are moving to server, you don't need to copy files/civicrm/templates_c/ directory. It will be automatically
created.

HTH

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Purpose of %%XX directories

This forum was archived on 2017-11-26.