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) »
  • Upgrading CiviCRM fails with Smarty plugin error
Pages: [1]

Author Topic: Upgrading CiviCRM fails with Smarty plugin error  (Read 1834 times)

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Upgrading CiviCRM fails with Smarty plugin error
November 14, 2014, 02:35:57 pm
I'm trying to upgrade CiviCRM from 4.3.8 to 4.5.3.  I've been following the upgrade guide and I've gotten to the step of running the upgrade process. When I browse to the upgrader, I see these errors:

    User warning: Smarty error: unable to read resource: "CRM/common/l10n.js.tpl" in Smarty->trigger_error() (line 1094 of /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php).
    User error: Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.php' (core.load_plugins.php, line 118) in Smarty->trigger_error() (line 1094 of /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php).
    User error: Smarty error: [plugin] prefilter 'resetExtScope' is not implemented in Smarty->trigger_error() (line 1094 of /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php).


And if I click the option to proceed with the upgrade, it fails quite promptly:
[Error: Upgrade DB to 4.3.9]

Exception: "PHP Error 256 at /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php:1094: Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.php' (core.load_plugins.php, line 118)"

#0 [internal function](): CRM_Queue_ErrorPolicy->onError(256, "Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.ph...", "/var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php", 1094, (Array:3))
#1 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php(1094): trigger_error("Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.ph...", 256)
#2 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php(1855): Smarty->trigger_error("[plugin] could not load plugin file 'prefilter.resetExtScope.php'\n (core.loa...", 256)
#3 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/internals/core.load_plugins.php(118): Smarty->_trigger_fatal_error("[plugin] could not load plugin file 'prefilter.resetExtScope.php'\n", NULL, NULL, "/var/www/html/civicrm/v4.5.3-d7/packages/Smarty/internals/core.load_plugins.php", 118)
#4 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty_Compiler.class.php(2218): smarty_core_load_plugins((Array:1), Object(Smarty_Compiler))
#5 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty_Compiler.class.php(236): Smarty_Compiler->_load_filters()
#6 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php(1490): Smarty_Compiler->_compile_file("/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl", "{* file to handle db changes in 4.3.9 during upgrade *}\n", NULL)
#7 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php(1423): Smarty->_compile_source("/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl", "{* file to handle db changes in 4.3.9 during upgrade *}\n", NULL, "/var/www/html/fctest/docroot/sites/default/files/civicrm/templates_c/en_US//%...")
#8 /var/www/html/civicrm/v4.5.3-d7/packages/Smarty/Smarty.class.php(1262): Smarty->_compile_resource("/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl", "/var/www/html/fctest/docroot/sites/default/files/civicrm/templates_c/en_US//%...")
#9 /var/www/html/civicrm/v4.5.3-d7/CRM/Core/Smarty.php(205): Smarty->fetch("/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl", NULL, NULL, FALSE)
#10 /var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Form.php(405): CRM_Core_Smarty->fetch("/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl")
#11 /var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Form.php(437): CRM_Upgrade_Form->processLocales("/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl", "4.3.9")
#12 /var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Form.php(699): CRM_Upgrade_Form->processSQL("4.3.9")
#13 [internal function](): CRM_Upgrade_Form::doIncrementalUpgradeStep(Object(CRM_Queue_TaskContext), "4.3.9", "4.3.8", "4.5.3", "/tmp/civicrm-post-upgradeXSvVMo")
#14 /var/www/html/civicrm/v4.5.3-d7/CRM/Queue/Task.php(82): call_user_func_array((Array:2), (Array:5))
#15 /var/www/html/civicrm/v4.5.3-d7/CRM/Queue/Runner.php(189): CRM_Queue_Task->run(Object(CRM_Queue_TaskContext))
#16 /var/www/html/civicrm/v4.5.3-d7/CRM/Queue/Page/AJAX.php(48): CRM_Queue_Runner->runNext(TRUE)
#17 /var/www/html/civicrm/v4.5.3-d7/CRM/Queue/ErrorPolicy.php(89): CRM_Queue_Page_AJAX::{closure}()
#18 /var/www/html/civicrm/v4.5.3-d7/CRM/Queue/Page/AJAX.php(51): CRM_Queue_ErrorPolicy->call(Object(Closure))
#19 [internal function](): CRM_Queue_Page_AJAX::runNext()
#20 /var/www/html/civicrm/v4.5.3-d7/CRM/Core/Invoke.php(296): call_user_func((Array:2))
#21 /var/www/html/civicrm/v4.5.3-d7/CRM/Core/Invoke.php(75): CRM_Core_Invoke::runItem((Array:13))
#22 /var/www/html/civicrm/v4.5.3-d7/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:5))
#23 /var/www/html/civicrm/v4.5.3-d7/drupal/civicrm.module(457): CRM_Core_Invoke::invoke((Array:5))
#24 [internal function](): civicrm_invoke("upgrade", "queue", "ajax", "runNext")
#25 /var/www/html/fctest/docroot/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:4))
#26 /var/www/html/fctest/docroot/index.php(21): menu_execute_active_handler()
#27 {main}


I'm at a total loss with what the problem is and how to resolve it.  ???

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading CiviCRM fails with Smarty plugin error
November 15, 2014, 11:39:02 am
Did you delete your template cache?

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.

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Re: Upgrading CiviCRM fails with Smarty plugin error
November 15, 2014, 12:49:01 pm
Yes, several times.  :(

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading CiviCRM fails with Smarty plugin error
November 16, 2014, 04:52:41 am
I see this in your error output:

/var/www/html/civicrm/v4.5.3-d7/CRM/Upgrade/Incremental/sql/4.3.9.mysql.tpl

Seems like you have a non-standard setup. The standard location for CiviCRM files in site_root/sites/all/modules/civicrm

Can you tell us more about your setup?
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.

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Re: Upgrading CiviCRM fails with Smarty plugin error
November 16, 2014, 03:25:25 pm
Yah, our setup was done by CivicActions, a consulting firm specializing in CiviCRM setups. They put CiviCRM in /var/www/html/civicrm/<the version number>
So my old version is /var/www/html/civicrm/v4.3.8-d7/ and the new one is /var/www/html/civicrm/v4.5.3-d7/

There is a file called settings_location.php in /var/www/html/civicrm. A symbolic link to it exists inside the civicrm directories (ie /v.../v4.5.3-d7/) . The contents of the file are simply: define( 'CIVICRM_CONFDIR', '/var/www/html/fctest/docroot/sites' ); /v.../docroot/sites/default/ contains the configuration files for CiviCRM: civicrm.settings.inc and civicrm.settings.php

A symbolic link inside sites/all/modules (named civicrm) points to the location of the current version of CiviCRM (/v.../civicrm/v4.5.3-d7/).

Honestly I'm not happy with the way they set things up and I see some problems with the setup. For example, the settings_location.php says that the config files are in the *** docroot, but that same settings_location.php file is referenced by our live site which has its' config files in the *** docroot. So the live site will reference the wrong configuration files! But that wouldn't interfere with the upgrading since I'm upgrading the test site right now, not the live site. But it could make our live site wonky... I'm not sure how to resolve this inconsistency other than to abandon the way that CivicActions set it up and use the standard setup. I'm not sure why they decided to set it up like this.
« Last Edit: December 20, 2016, 05:08:33 pm by Eileen »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading CiviCRM fails with Smarty plugin error
November 17, 2014, 04:58:59 am
Quote from: jacoblear on November 16, 2014, 03:25:25 pm
I'm not sure how to resolve this inconsistency other than to abandon the way that CivicActions set it up and use the standard setup. I'm not sure why they decided to set it up like this.

I don't have experience with their setup so perhaps you should try that and see if it helps...
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.

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Re: Upgrading CiviCRM fails with Smarty plugin error
November 18, 2014, 02:28:16 pm
Hi, I tried moving CiviCRM to the standard location and running it from there with the original version, 4.3.8. It ran fine from there (I restored a backup of the database) after I restarted Apache, php-fpm, and memcached.

However, once I tried to upgrade it to a more recent version, such as 4.4.9, I got the same errors as before:
User error: Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.php' (core.load_plugins.php, line 118) in Smarty->trigger_error() (line 1094 of /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).
User error: Smarty error: [plugin] prefilter 'resetExtScope' is not implemented in Smarty->trigger_error() (line 1094 of /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).

Error: Upgrade DB to 4.3.9]

Exception: "PHP Error 256 at /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php:1094: Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.php' (core.load_plugins.php, line 118)"

#0 [internal function](): CRM_Queue_ErrorPolicy->onError(256, "Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.ph...", "/var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty...", 1094, (Array:3))
#1 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php(1094): trigger_error("Smarty error: [plugin] could not load plugin file 'prefilter.resetExtScope.ph...", 256)
#2 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php(1855): Smarty->trigger_error("[plugin] could not load plugin file 'prefilter.resetExtScope.php'\n (core.loa...", 256)
#3 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/internals/core.load_plugins.php(118): Smarty->_trigger_fatal_error("[plugin] could not load plugin file 'prefilter.resetExtScope.php'\n", NULL, NULL, "/var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/intern...", 118)
#4 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty_Compiler.class.php(2218): smarty_core_load_plugins((Array:1), Object(Smarty_Compiler))
#5 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty_Compiler.class.php(236): Smarty_Compiler->_load_filters()
#6 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php(1490): Smarty_Compiler->_compile_file("/var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Incrementa...", "{* file to handle db changes in 4.3.9 during upgrade *}\n", NULL)
#7 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php(1423): Smarty->_compile_source("/var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Incrementa...", "{* file to handle db changes in 4.3.9 during upgrade *}\n", NULL, "/var/www/html/fctest/docroot/sites/default/files/civicrm/templates_c/en_US//%...")
#8 /var/www/html/fctest/docroot/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php(1262): Smarty->_compile_resource("/var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Incrementa...", "/var/www/html/fctest/docroot/sites/default/files/civicrm/templates_c/en_US//%...")
#9 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Core/Smarty.php(194): Smarty->fetch("/var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Incrementa...", NULL, NULL, FALSE)
#10 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Form.php(300): CRM_Core_Smarty->fetch("/var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Incrementa...")
#11 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Form.php(324): CRM_Upgrade_Form->processLocales("/var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Incrementa...", "4.3.9")
#12 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Upgrade/Form.php(574): CRM_Upgrade_Form->processSQL("4.3.9")
#13 [internal function](): CRM_Upgrade_Form::doIncrementalUpgradeStep(Object(CRM_Queue_TaskContext), "4.3.9", "4.3.8", "4.4.9", "/tmp/civicrm-post-upgrade6U6nxp")
#14 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Queue/Task.php(79): call_user_func_array((Array:2), (Array:5))
#15 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Queue/Runner.php(186): CRM_Queue_Task->run(Object(CRM_Queue_TaskContext))
#16 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(44): CRM_Queue_Runner->runNext(TRUE)
#17 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php(80): CRM_Queue_Page_AJAX::{closure}()
#18 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(47): CRM_Queue_ErrorPolicy->call(Object(Closure))
#19 [internal function](): CRM_Queue_Page_AJAX::runNext((Array:5))
#20 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php(289): call_user_func((Array:2), (Array:5))
#21 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:13))
#22 /var/www/html/fctest/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:5))
#23 /var/www/html/fctest/docroot/sites/all/modules/civicrm/drupal/civicrm.module(456): CRM_Core_Invoke::invoke((Array:5))
#24 [internal function](): civicrm_invoke("upgrade", "queue", "ajax", "runNext")
#25 /var/www/html/fctest/docroot/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:4))
#26 /var/www/html/fctest/docroot/index.php(21): menu_execute_active_handler()
#27 {main}

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading CiviCRM fails with Smarty plugin error
November 19, 2014, 04:48:03 am
I'm not sure but it seems as though the code can't find the Smarty plugins directory. It is normally expected to be right below the Smarty.class.php file I think.
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.

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Re: Upgrading CiviCRM fails with Smarty plugin error
November 19, 2014, 11:28:35 am
Weird. The plugins are there.

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Re: Upgrading CiviCRM fails with Smarty plugin error
November 25, 2014, 01:09:56 pm
Does anyone have any suggestions or ideas on how to get around these errors?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading CiviCRM fails with Smarty plugin error
November 26, 2014, 04:49:59 am
Do you have this file? It should be at:

https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/Smarty/plugins/prefilter.resetExtScope.php
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.

jacoblear

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.28
  • MySQL version: 5.1.73
  • PHP version: 5.4.24
Re: Upgrading CiviCRM fails with Smarty plugin error
November 26, 2014, 11:38:46 am
Hi, thanks for your reply. Yes, that file does exist. The contents are the same too.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading CiviCRM fails with Smarty plugin error

This forum was archived on 2017-11-26.