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) »
  • 3.1.6 => 3.2.3 upgrade fails with Smarty cache errors
Pages: [1]

Author Topic: 3.1.6 => 3.2.3 upgrade fails with Smarty cache errors  (Read 1318 times)

kindermaur

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
3.1.6 => 3.2.3 upgrade fails with Smarty cache errors
October 17, 2010, 06:16:24 pm
I got all the way to step 8 of the upgrade instructions (running the upgrade script), and when I did it produced a whole series of warnings, and the upgrade script failed. I reinstalled the previous version and rolled back the database, but I can't seem to lose these warning messages - now I can't run CiviCRM at all (after the warnings, no CiviCRM interface is displayed - Drupal admin menus still display, but not CiviCRM). I've emptied the templates_c directory, but I still get these warning Is there any way to reset Smarty so it will rebuild the cache? Through the filesystem? Through the database?

Any help would be appreciated - thanks!

-Kurt

================================================================================

* warning: include(/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 /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%06/06C/06C5296F%%jquery.files.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/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 /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%06/06C/06C5296F%%jquery.files.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/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 /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%06/069/0693F89E%%drupal.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%8B/8B6/8B6A05F3%%CreateNew.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%8B/8B6/8B6A05F3%%CreateNew.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%B7/B75/B75FFEFA%%Add.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%B7/B75/B75FFEFA%%Add.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%9D/9D3/9D3B6E05%%RecentlyViewed.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%9D/9D3/9D3B6E05%%RecentlyViewed.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%79/79B/79B5A8D2%%Dashboard.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%79/79B/79B5A8D2%%Dashboard.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%63/63D/63D062BA%%LangSwitch.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%63/63D/63D062BA%%LangSwitch.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%6D/6D0/6D0ECBD2%%Event.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%6D/6D0/6D0ECBD2%%Event.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.

* warning: include(/files/civicrm/templates_c/en_US/en_US//%%46/46C/46C561D6%%FullTextSearch.tpl.php) [function.include]: failed to open stream: No such file or directory in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
* warning: include() [function.include]: Failed opening '/files/civicrm/templates_c/en_US/en_US//%%46/46C/46C561D6%%FullTextSearch.tpl.php' for inclusion (include_path='<a bunch of directories>') in /sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1263.
« Last Edit: October 18, 2010, 05:34:40 am by kindermaur »

kindermaur

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: 3.1.6 => 3.2.3 upgrade fails with Smarty cache errors
October 18, 2010, 03:20:29 pm
Well, it looks like it might have been some kind of permissions problem (though without any error reporting, it's hard to know for sure - I noticed in the Smarty code there are quite a few places where errors could occur where the return values of a call are ignored). I ended up:

(a) going through the list of missing cached template files and creating zero-length versions of the files (using the 'touch' command from the shell),

(b) writing a little script to recreate all the template caching subdirectories (%%00/000 through %%FF/FFF), and

(c) temporarily modifying Smarty.class.php to force it to compile templates whether it thought it needed to or not

One or all of those made the errors go away enough so I could complete the upgrade. The only lingering problem was in the Activities dashlet on the dashboard - more template errors there. But that went away with a simple click on 'Refresh Dashboard Data'. Whew.

I hope this helps someone else... and maybe we could get some more error reporting and/or logging in the Smarty code.

-Kurt

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.1.6 => 3.2.3 upgrade fails with Smarty cache errors

This forum was archived on 2017-11-26.