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) »
  • Multiple Smarty errors on 1.8 with Drupal
Pages: [1]

Author Topic: Multiple Smarty errors on 1.8 with Drupal  (Read 2015 times)

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 12:59:54 pm
I'm running 1.8 with Drupal and used the automated installer from civicrm-1.8.10954-drupal-php5

Everything seemed to go fine and the site is up and running.  I can do almost all of the typical tasks like adding members, creating groups, etc.  However, several functions result in smarty erros like the following:

userwarning: Smarty error: unable to read resource:
"CRM/Contact/Form/Task/Export/select.tpl in
XXXX/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095

--I used the XXXX to indicate my full path which is extraordinarily long but verified as correct.

I get a similar error when trying to complete several other functions like the Map function.  The error above is the same except for the following:  "CRM/Contact/Form/Task/Map/Google.tpl"

In each case, the error references a different .tpl file.  These files are not listed in the directories the error messages suggest.  It seems as though the tpl files are either not in existence or are not being created properly.

Any help would be appreciated!!

Below are a few more examples:
user warning: Smarty error: unable to read resource: "CRM/Contact/Page/View/UserDashBoard/GroupContact.tpl" in XXXX/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
user warning: Smarty error: unable to read resource: "CRM/Contact/Page/View/UserDashBoard/Contribution.tpl" in /XXXX/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
user warning: Smarty error: unable to read resource: "CRM/Contact/Page/View/UserDashBoard/Membership.tpl" in /XXXX/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
user warning: Smarty error: unable to read resource: "CRM/Contact/Page/View/UserDashBoard/Participant.tpl" in /XXXXX/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.

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: Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 01:05:02 pm

Not sure what program you used to upload and untar the file on your server, but most likely there was a failure out there and it did not untar all the files. Specifically the tpl's below in the error messages seem to be missing. All of them seem to be pretty deep down in the hierarchy, so you might want to check / untar using a different method?

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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 01:21:37 pm
I considered that and checked again today.  I downloaded and untarred the file again and none of the mentioned files are in the original archive. 

I just tried again with 7-zip.  The tpl files are not there.  I looked in \civicrm\crm\contact\form\task\export and there are only two files:  select.php and map.php.  According to the error messages I've been getting, there should also be a select.tpl and a map.tpl.

Essentially though, so I understand, all the tpl's referenced above should be found in the ORIGINAL download before I get anything on the site.  Is that correct?  Or are these files somehow created on the fly?

Thanks again!
« Last Edit: August 29, 2007, 01:56:10 pm by Stoic »

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: Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 03:27:33 pm

you should check:

/civicrm/templates/crm/contact/form/task/export/

the templates directory is a separate hierarchy from the code 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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 03:46:39 pm
Thanks.  I checked that path and the files are there.  Unfortunately, that still leaves the problem of the error messages.  Any thoughts?

Thanks in advance --

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: Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 04:01:04 pm

I'd check the permissions next. I'd also check the apache error log and see if there are any messages in there which might shed more light on this problem

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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Multiple Smarty errors on 1.8 with Drupal
August 29, 2007, 04:27:50 pm
Thanks for all your help!  Problem solved.

I re-downloaded the package and copied up the templates folder you mentioned above.  I'm not sure if it was just missing files or permissions or what but it worked immediately.

Thanks for your help and sorry for the goose chase!

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

This forum was archived on 2017-11-26.