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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Smarty warning ...
Pages: [1]

Author Topic: Smarty warning ...  (Read 1990 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Smarty warning ...
April 08, 2009, 08:40:08 am
I'm trying to upgrade my CiviCRM 1.9 site (with Drupal 5.x) on my localhost (dev on PC running XP).  I have the site working but I'm getting errors when trying to load CiviCRM - the main CiviCRM home page comes up but when I try going to the CiviCRM admin or CiviEvent (etc) pages I get the following:



    * warning: Smarty::include(/www/ousa/files/civicrm/templates_c/\en_US\\%%AE\AEB\AEB1C504%%Admin.tpl.php) [smarty.include]: failed to open stream: No such file or directory in C:\www\ousa\sites\all\modules\civicrm\packages\Smarty\Smarty.class.php on line 1871.
    * warning: Smarty::include() [function.include]: Failed opening '/www/ousa/files/civicrm/templates_c/\en_US\\%%AE\AEB\AEB1C504%%Admin.tpl.php' for inclusion (include_path='.;/www/ousa/sites/all/modules/civicrm/;/www/ousa/sites/all/modules/civicrm/\packages;.;C:\php5') in C:\www\ousa\sites\all\modules\civicrm\packages\Smarty\Smarty.class.php on line 1871.


Any suggestions on how to fix this?  I checked my civicrm config file and the root path is set correctly:


$civicrm_root = '/www/ousa/sites/all/modules/civicrm/';



define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/www/ousa/files/civicrm/templates_c/' );




What's odd is that it creates another /www/ousa/files/civicrm/   directory at the root of my site directory - that seems wrong.  How  can I just get it to recognize the correct root path?

-backdrifting


backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Smarty warning ...
April 08, 2009, 08:41:48 am
BTW - I don't get these errors in my production site - only when I moved it over to my dev localhost.

-backdrifting

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Smarty warning ...
April 08, 2009, 08:45:51 am
Never mind - it's fixed now.  I had to add the drive path to the root directory in the settings file:

$civicrm_root = 'c:/www/ousa/sites/all/modules/civicrm/';



define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'c:/www/ousa/files/civicrm/templates_c/' );

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Smarty warning ...

This forum was archived on 2017-11-26.