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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl
Pages: [1]

Author Topic: After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl  (Read 819 times)

jimcraner

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl
June 30, 2013, 04:14:20 pm
Hi, we're running Civi 4.2.7 on Drupal 7.

I've been trying to upgrade to 4.3.4 and the upgrade appears to go well (no error messages) but I do get the following error on every Civi page:

Code: [Select]
User warning: Smarty error: unable to read resource: "CRM/common/action.tpl" in Smarty->trigger_error()
(line 1094 of /server_path_redacted/site_root/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).

I found a similar forum post referencing the same error (but a WordPress install instead of Drupal) here:
http://forum.civicrm.org/index.php?topic=27854.0

Like the OP above, I also have the symptom of a missing CiviCRM admin menu bar.

According to the forum post above, the (templates)/CRM/common/action.tpl file has been removed from the code base.  The suggested diagnosis was that a cached file or setting was still calling it, causing the error.  I've tried:

* manually truncating all civicrm_*_cache tables
* purging the CiviCRM file cache folders referenced in the "Moving CiviCRM to a new server" doc
* clearing Drupal and Views caches (since I thought it might have been caused by a Civi/Views integration view)

As far as I can tell, there is no reference to "action.tpl" in the Civi code base on our server, nor in any MySQL database table.

Does anyone have any other suggestions I might try?
Thanks!
Jim

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl
June 30, 2013, 04:40:26 pm
Perhaps it's in of your template definitions? Such as http://wiki.civicrm.org/confluence/display/CRMDOC43/Message+Templates
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.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl
June 30, 2013, 05:23:48 pm
Another common cause is stale caches. Delete the contents of the templates_c directory.
Try asking your question on the new CiviCRM help site.

jimcraner

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Re: After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl
June 30, 2013, 06:21:42 pm
Hi all, thanks for the suggestions!

Coleman, I already tried deleting the template caches but it didn't seem to have an effect.

Hershel, I reverted my one customized message template (event/receipt/confirmation - online) and that seemed to make that error go away so I can proceed with testing 4.3.

Question: all my template contained was the default text and tokens with a bit of extra text thrown in -- was there an old token in there that was replaced since 4.2 and subsequently caused that Smarty error to be thrown?

Thanks again for your suggestions!
Jim

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • After 4.2.7->4.3.4 upgrade, Smarty error referencing missing file action.tpl

This forum was archived on 2017-11-26.