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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Smarty error after fresh 3.2.4 install (Drupal 6.19)
Pages: [1]

Author Topic: Smarty error after fresh 3.2.4 install (Drupal 6.19)  (Read 2148 times)

ms-studio

  • Guest
Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 06, 2010, 03:04:54 pm
After having quite successfully used CiviCRM 3.1.5 on another server, I just created a fresh installation on a new server (hosted at Mediatemple, Grid-Service), on a fresh version of Drupal 6.19, using today's civicrm-3.2.4-drupal.tar.gz from SourceForge. I installed CiviCRM by unzipping it via SSH, not via FTP upload.

After a successful installation, when loading the CiviCRM admin panel, I run into a page full of warnings/errors, that read as follows:

# warning: include(/**REDACTED**/sites/default/files/civicrm/templates_c/en_US/en_US//%%06/06C/06C5296F%%jquery.files.tpl.php) [function.include]: failed to open stream: No such file or directory in /**REDACTED**/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
# warning: include() [function.include]: Failed opening '/**REDACTED**/sites/default/files/civicrm/templates_c/en_US/en_US//%%06/06C/06C5296F%%jquery.files.tpl.php' for inclusion (include_path='.:/**REDACTED**/sites/all/modules/civicrm:/**REDACTED**/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-1/share/pear') in /**REDACTED**/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
# warning: include(/**REDACTED**/sites/default/files/civicrm/templates_c/en_US/en_US//%%06/069/0693F89E%%drupal.tpl.php) [function.include]: failed to open stream: No such file or directory in /**REDACTED**/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

Those are the three first entries, there are 16 in total.

I tried to troubleshoot based on the advices from similar forum entries:

http://forum.civicrm.org/index.php?topic=16146.0
It looks like I have the same issue as Kurt here, but I'm not able to accomplish the troubleshooting steps that he came up with.

http://forum.civicrm.org/index.php/topic,16410.0.html
Not exactly the same error message, but I followed Michał Mach's indications:
- the CIVICRM_TEMPLATE_COMPILEDIR (in civicrm.settings.php) appears to be correct. However, the folder /sites/default/files/civicrm/templates_c/en_US/en_US remains totally empty.
- the $civicrm_root/templates directory appears to contain all the necessary files (meaning: a lot of files, their read permissions are 644 like everywhere else... so i suppose this is correct?).

Any advice is welcome...
« Last Edit: November 06, 2010, 03:45:40 pm by ms-studio »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 07, 2010, 12:25:11 am
Hi,

I think this must point to your problem:

- the CIVICRM_TEMPLATE_COMPILEDIR (in civicrm.settings.php) appears to be correct. However, the folder /sites/default/files/civicrm/templates_c/en_US/en_US remains totally empty.

Does the webserver user account have permissions to write to the /sites/default/files/civicrm/ folder (& subfolders)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

ms-studio

  • Guest
Re: Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 07, 2010, 01:27:25 am
Indeed, the permissions of /sites/default/files/civicrm/ and subfolders were on 755.

Other folders, such as /sites/default/files/color (+ css, js) have a more permissive 775 setting.

So I did the following:
- Change /sites/default/files/civicrm/ and subfolders to 775.
- Since this didn't help, i deleted the civicrm.settings.php file, to re-run the modules/civicrm/install/ script.
- The same error messages still show up. Still no files are created in templates_c/en_US/en_US

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 07, 2010, 01:35:01 am
And, the web service account is either the owner of the files directory or in the group for that directory?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

ms-studio

  • Guest
Re: Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 07, 2010, 02:10:51 am
Quote from: Eileen on November 07, 2010, 01:35:01 am
And, the web service account is either the owner of the files directory or in the group for that directory?

What's the best method to check that?

Just to be sure that I didn't any mistake, I deleted the whole Drupal system and repeated the installation. Same behavior, same errors when entering the CiviCRM admin area.

One hint: during the CiviCRM installation, the installer complained about the /sites/default/ directory not being writable (which seemed normal to me, since the Drupal installer had set it to 555 - read-only). I set it to 755 (owner), then 775 (group) -- still the installer complained. Then finally at 777 (others) the CiviCRM installer was able to run.

Same behavior as before: the directory default/files/civicrm gets created (with write permissions 755), containing the folders "custom", "persist", "templates_c", "upload" (all with 755).

templates_c/en_US/ConfigAndLog contains some files (.htaccess and Config.IDS.ini), but templates_c/en_US/en_US remains as empty as before.
« Last Edit: November 07, 2010, 02:23:45 am by ms-studio »

ms-studio

  • Guest
Re: Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 07, 2010, 02:17:43 am
And one more info regarding webservice account / owner / group access rights.

When I turn on caching and CSS compression for Drupal, files get created inside the default/files/css folder which by default has 775 write permission (group).

Even if I restrict the permission of that folder to 755 (owner), new css files still get created there.

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: Smarty error after fresh 3.2.4 install (Drupal 6.19)
November 18, 2010, 11:22:22 am
Quote from: Eileen on November 07, 2010, 12:25:11 am
I think this must point to your problem:

- the CIVICRM_TEMPLATE_COMPILEDIR (in civicrm.settings.php) appears to be correct. However, the folder /sites/default/files/civicrm/templates_c/en_US/en_US remains totally empty.

This is the exact symptom I had with the open_basedir problem with Smarty--solution outlined here:

 http://forum.civicrm.org/index.php/topic,16636.msg71078.html

(Though a word of warning--this same symptom has numerous possible causes--permissions problems and this open_basedir issue are just two of them.)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Smarty error after fresh 3.2.4 install (Drupal 6.19)

This forum was archived on 2017-11-26.