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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Smarty error (need to set permissions?)
Pages: [1]

Author Topic: Smarty error (need to set permissions?)  (Read 1718 times)

sachab

  • Guest
Smarty error (need to set permissions?)
June 18, 2007, 10:54:58 am
after some headaches performing a manual install of civicrm-1.7.9821-joomla-php4 on joomla 1.0.12 stable (on a windows host), i finally got a message of install success (!). very exciting. however, now when i go to the civcrm component admin panel, I get the following error:

Smarty error: problem creating directory 'c:/webroot/mywebsite' in c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1095

whenever i try to select "find contacts", "manage groups", "import contacts", etc.

the smarty FAQ i found says that this error is caused by not having permission to write or create the specified directory. it also said "Be sure the directory exists in the location defined in Smarty.class.php,
and the web server user can write to it."

my host can set the required permissions that i need, but i need to say specifically what directory needs to be made writable... and when i looked at Smarty.class.php, i couldn't figure out where it needs to write to. the directory specified in the error above is the root of my website, and so it already exists. does it really need to write to the root?

can someone help point me in the right direction??
« Last Edit: June 18, 2007, 10:59:30 am by sachab »

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: Smarty error (need to set permissions?)
June 18, 2007, 11:57:17 am

1. make sure re u have set:

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'c:\webroot\mywebsite\media\civicrm');

in your civicrm.settings.php file. also ensure that the web server user has write access to the above directory

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

sachab

  • Guest
Re: Smarty error (need to set permissions?)
June 18, 2007, 06:33:52 pm

hmmm...

i just did as you suggested, and got one step further, but with a similar error followed by:

Warning: fetch(c:/webroot/mywebsite/media/civicrm\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php) [function.fetch]: failed to open stream: No such file or directory in c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

any further ideas?

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: Smarty error (need to set permissions?)
June 18, 2007, 07:23:39 pm

can u check if that file exists? If not, can u make sure that the web server has write permissions on the directory.

If you can get on IRC (http://civicrm.org/participate/), we might be able to help you further

Are u sure u used c:\webroot .. in your TEMPLATE_COMPILEDIR definition. I'm not sure why u r seeing c:/webroot ...

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

sachab

  • Guest
Re: Smarty error (need to set permissions?)
June 18, 2007, 09:39:54 pm

i checked with the web host, and they confirm that everything in 'c:\webroot\mywebsite\media\' is writeable. and there are several subdirectories, but all are empty:

c:\webroot\mywebsite\media\civicrm\en_US\
c:\webroot\mywebsite\media\civicrm\persist\contribute\
c:\webroot\mywebsite\media\civicrm\templates_c\en_US\
c:\webroot\mywebsite\media\civicrm\upload\custom\

so i don't seem to have this file index.tpl.php

but i'm still a bit confused about the first warning indicates a different location than the second warning:

Quote

Warning: Smarty error: problem creating directory 'c:/webroot/mywebsite' in c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1095

Warning: fetch(c:\webroot\mywebsite\media\civicrm\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php) [function.fetch]: failed to open stream: No such file or directory in c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

Warning: fetch() [function.include]: Failed opening 'c:\webroot\mywebsite\media\civicrm\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php' for inclusion (include_path='.;c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm;c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm\packages;.;c:\php4\pear') in c:\webroot\mywebsite\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

sorry this a bit long, and thanks for any pointers...

(i'll also try to get IRC working, but have had firewall problems in the past)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Smarty error (need to set permissions?)

This forum was archived on 2017-11-26.