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) »
  • Problem creating directory error when saving new contact
Pages: [1]

Author Topic: Problem creating directory error when saving new contact  (Read 2856 times)

Wonder95

  • Guest
Problem creating directory error when saving new contact
January 12, 2008, 10:22:03 am
When trying to create a new organization, I get the following error:

user warning: Smarty error: problem creating directory '/home/campfire/public_html/files/civicrm/templates_c/en_US/%%ED/EDD' in /home/campfire/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.

I've had similar warnings since installing CiviCRM on this server, and I've had to set permissions on multiple files and directories just for CiviCRM to be able to function.  Do I just need to set permissions to 777 on all directories?  I already have it set that way on /en_US, but that doesn't seem to be making a difference.

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: Problem creating directory error when saving new contact
January 12, 2008, 11:28:49 am
You just need to chmod 777 to files directory.

kurund
Found this reply helpful? Support CiviCRM

Wonder95

  • Guest
Re: Problem creating directory error when saving new contact
January 12, 2008, 12:46:51 pm
the /files directory is set as 777, but I still get these errors when I try to edit Address Settings under Global Settings:

# user warning: Smarty error: problem creating directory '/home/campfire/public_html/files/civicrm/templates_c/en_US/%%83/83F' 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//%%83/83F/83FDE372%%Address.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//%%83/83F/83FDE372%%Address.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

Wonder95

  • Guest
Re: Problem creating directory error when saving new contact
January 12, 2008, 05:39:02 pm
On further investigation, it looks like the reason I'm getting this error is that the directory really doesn't exist.  According to the error, it is trying to open a file in /home/campfire/public_html/files/civicrm/templates_c/en_US//%%83/83F, but it turns out that the folder doesn't exist.  The folder /home/campfire/public_html/files/civicrm/templates_c/en_US//%%83/83B exists, but not 83F.

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: Problem creating directory error when saving new contact
January 13, 2008, 11:13:31 pm
Can you try deleting civicrm/template_c directory.

kurund
Found this reply helpful? Support CiviCRM

mmattson

  • Guest
Re: Problem creating directory error when saving new contact
March 07, 2008, 07:38:57 pm
I tried deleting the templates_c directory. It was recreated after returning to the page. I get the same errors, but now, I get them at CiviCRM Home, and CiviEvents. I did not get them there prior to deleting the directory.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem creating directory error when saving new contact
March 07, 2008, 11:41:34 pm

can u ensure permissions on templates_c and everything under it is 777. also ensure that all directories created by apache/php are also readable/writable by itself. There is some wierd permissioning issue with your system

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mmattson

  • Guest
Re: Problem creating directory error when saving new contact
March 08, 2008, 09:44:12 am
The server on which this site is being hosted has the following specs (no *nix):

PHP built On:    Windows NT INFOQUEST32 5.2 build 3790
Database Version:    4.1.22-community-nt
PHP Version:    5.2.3
Web Server:    Microsoft-IIS/6.0
WebServer to PHP interface:    isapi
Joomla! Version:    Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC


But the IUSR, and temporarily all users, have full permissions on all child folders of Joomla - which includes templates_c.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem creating directory error when saving new contact
March 08, 2008, 10:00:30 am

can u cut and paste your error message.

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mmattson

  • Guest
Re: Problem creating directory error when saving new contact
March 08, 2008, 10:13:15 am
I am digging into some "advanced" permissions settings available from my hoster. They are propagating as I type. Here is the error.


Warning: Smarty error: problem creating directory 'C:/inetpub' in C:\inetpub\vhosts\ojfsda.org\httpdocs\joomla\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1095

Warning: Smarty::include(C:\inetpub\vhosts\ojfsda.org/httpdocs/joomla\media\civicrm\templates_c\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\inetpub\vhosts\ojfsda.org\httpdocs\joomla\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

Warning: Smarty::include() [function.include]: Failed opening 'C:\inetpub\vhosts\ojfsda.org/httpdocs/joomla\media\civicrm\templates_c\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php' for inclusion (include_path='.;C:\inetpub\vhosts\ojfsda.org/httpdocs/joomla\administrator\components\com_civicrm\civicrm;C:\inetpub\vhosts\ojfsda.org/httpdocs/joomla\administrator\components\com_civicrm\civicrm\packages;.;./includes;./pear') in C:\inetpub\vhosts\ojfsda.org\httpdocs\joomla\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

mmattson

  • Guest
Re: Problem creating directory error when saving new contact
March 08, 2008, 10:17:26 am
Being very generous with the permissions didn't seem to change anything.

After I deleted the templates_c folder, the templates_c and en_us folders were recreated, but it is not recreating any subfolders below en_us.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem creating directory error when saving new contact
March 08, 2008, 10:28:29 am

you might want to check on the smarty forums (http://smarty.php.net/) and see if they might have any solutions. The error is coming from Smarty, more specifically:

packages/Smarty/internals/core.create_dir_structure.php, line 69

please report back on your findings here. If you are a php hacker, you might want to debug that file

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mmattson

  • Guest
Re: Problem creating directory error when saving new contact
March 08, 2008, 10:31:54 am
I've been to their site. They are not as active as CiviCRM. I'll head back there.

My skills are more ASP unfortunately. I was just impressed with CiviCRM and started using Joomla on another site recently so I decide to try. It looks like I may be learning PHP very soon. Because I haven't found anything near CiviCRM out there.

jyotirmaya

  • Guest
Re: Problem creating directory error when saving new contact
March 17, 2008, 05:43:12 am
I was getting similar problems and just changed my drupal settings to have the file system as public - this seemed to influence some things positively.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Problem creating directory error when saving new contact

This forum was archived on 2017-11-26.