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 Issues
Pages: [1] 2

Author Topic: Smarty Issues  (Read 3140 times)

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Smarty Issues
April 06, 2011, 07:35:56 am
I installed CiviCRM with no issues but on the Home page I get these error messages.

warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%06/06C/06C5296F%%jquery.files.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%06/06C/06C5296F%%jquery.files.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%06/069/0693F89E%%drupal.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%06/069/0693F89E%%drupal.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%9D/9D3/9D3B6E05%%RecentlyViewed.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%9D/9D3/9D3B6E05%%RecentlyViewed.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%79/79B/79B5A8D2%%Dashboard.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%79/79B/79B5A8D2%%Dashboard.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include(/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%63/63D/63D062BA%%LangSwitch.tpl.php) [function.include]: failed to open stream: No such file or directory in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
warning: include() [function.include]: Failed opening '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/en_US//%%63/63D/63D062BA%%LangSwitch.tpl.php' for inclusion (include_path='.:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm:/home/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages:.:/usr/local/php-5.2.14-2/share/pear') in /nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

What do I need to do.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 06, 2011, 08:33:34 am
Would appear to me to be a Linux file permissions issue. I would ask your web host if they can adjust that for you if you don't know how yourself.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Re: Smarty Issues
April 06, 2011, 10:14:47 am
What do the permissions need to be set to?

Thanks,
Josh

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 06, 2011, 10:25:33 am
Apache user needs read and write permissions to templates_c
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Re: Smarty Issues
April 06, 2011, 09:05:41 pm
I have changed the permissions to 777 for that folder and contents, but am still getting the same error messages.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 07, 2011, 07:41:02 am
I would recommend 755 not 777, but anyhow if that didn't work, try applying the same to folders higher up in the hierarchy. Sometimes that is also necessary.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Re: Smarty Issues
April 07, 2011, 08:47:22 am
The files and folders in the higher levels are already set to 755.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 07, 2011, 10:13:12 am
I bet it's a open basedir issue. Note that your templates start with

/home/52716/domains/fismc.com/...

whereas your code starts with:

/nfs/c03/h01/mnt/52716/domains/fismc.com/...

Seems these are different directories...
« Last Edit: April 07, 2011, 10:15:38 am by hershel »
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Re: Smarty Issues
April 07, 2011, 11:07:50 am
I add this to .htaccess:

php_value open_basedir /nfs:/tmp:/usr/local:/etc/apache2/gs-bin:/home/52716/domains/ourdomain.com/html/:/home/52716/data/tmp/

.htaccess files is located here:
/domains/fismc.com/html

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 07, 2011, 11:13:49 am
and? :)

If it still fails, I would ask your host for assistance.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Re: Smarty Issues
April 07, 2011, 11:40:04 am
It still doesn't work.

The site is hosted with MediaTemple. I have spoken to them a number of times, but don't know what to do next.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Smarty Issues
April 07, 2011, 02:48:00 pm
You could talk to the helpful people at civihosting....
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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 07, 2011, 03:27:21 pm
Quote from: Eileen on April 07, 2011, 02:48:00 pm
You could talk to the helpful people at civihosting....

Eileen, you have the job of our new PR team. ;)

I did have one more idea for voicebox. Now that you have changed a few settings, perhaps try removing all files from inside of templates_c. That's always safe to do.

The other idea actually would be to manually adjust sites/default/civicrm.settings.php and set your directories there to match the error messages, regarding the location of the code. That might help.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

voicebox

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: 7.0
  • MySQL version: 5.1.26
  • PHP version: 5.2.14
Re: Smarty Issues
April 08, 2011, 11:35:31 am
I don't see any issues with the directories listed in this file.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Smarty Issues
April 09, 2011, 11:31:32 am
Try changing

Code: [Select]
$civicrm_root = '/home/52716/domains/fismc.com/html/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/' );


to

Code: [Select]
$civicrm_root = '/nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/nfs/c03/h01/mnt/52716/domains/fismc.com/html/sites/default/files/civicrm/templates_c/' );

CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Smarty Issues

This forum was archived on 2017-11-26.