View previous topic :: View next topic |
Author |
Message |
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Thu Jul 04, 2019 7:38 pm Post subject: Website Smarty Error---- Fatal error: Uncaught --> Smar |
|
|
Hello there
I have been upgrading my site to a newer version of PHP due to a new VPS hosting migration. as I was going through the upgrade I have come across the following error.
Fatal error: Uncaught --> Smarty: Plugin "image" not callable <-- thrown in /var/www/vhosts/websiteName/httpdocs/system/ext/Smarty/libs/sysplugins/smarty_internal_templatebase.php on line 451
Could someone point me in the right direction of what I should do please.
That would be most appreciated.
Kind Regards
Rob |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Thu Jul 04, 2019 7:44 pm Post subject: |
|
|
for a bit more information line 541 has the following code
throw new SmartyException("Plugin \"{$tag}\" not callable"); |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Jul 05, 2019 6:57 am Post subject: |
|
|
Please look in Smarty's /plugins/ folder for a file with the name of function.image.php or modifier.image.php.
If it is not there, then determine if a command has been given to Smarty to add any other folders to Smarty's collection of folders where plugins could be found. If so, look there. |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Jul 05, 2019 7:04 am Post subject: |
|
|
Also, in my copy of smarty_internal_templatebase.php, the line numbers end at 386.
Please note if the statements in your copy are double-spaced?
If not, let us know the exact version of Smarty you are using. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Jul 05, 2019 7:53 pm Post subject: |
|
|
As bsmither pointed out, the error message indicates that one of your templates using a function or modifier by the name "image", which is not registered with Smarty instance.
Judging by the path in error message, you're using some kind of framework of CMS. I would suggest addressing your question to the authors of that CMS/Framework first, as they would be able to advise more correctly. |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Fri Jul 05, 2019 8:39 pm Post subject: |
|
|
hello there
I have upgraded to latest version and now have the following error.
Fatal error: require_once(): Failed opening required '/var/www/vhosts/rollonmonday.co.uk/httpdocs/system/ext/Smarty/libs/Smarty.class.php' (include_path='/var/www/vhosts/rollonmonday.co.uk/httpdocs/system/ext/:/var/www/vhosts/rollonmonday.co.uk/httpdocs/system/lib/:.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/ext/Zend/Loader/ClassMapAutoloader.php on line 148 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Jul 07, 2019 9:27 am Post subject: |
|
|
Then you did something wrong or missed some step in your upgrade process.
Given that you are using Zend loader, it's even harder for us to advise. Please direct your questions to the support channel for your CMS, or hire qualified someone to look over your issue. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Jul 07, 2019 9:34 am Post subject: |
|
|
Said that, what is the error message right above that one? |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Sun Jul 07, 2019 8:10 pm Post subject: |
|
|
That is the only error in the log.
All I have done to upgrade is import the new set of files into my file structure. I take it there is more to do than just update the files within the Header folder 'Libs'
Has anyone got a list of tasks to perform to upgrade. |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Sun Jul 07, 2019 9:05 pm Post subject: |
|
|
just learned that the Top folder needs to be libs, not Libs.
and I now have the following error.
Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Runtime__RegisterPlugin' <-- thrown in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/ext/Smarty/libs/sysplugins/smarty_internal_undefined.php on line 62 |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Sun Jul 07, 2019 9:10 pm Post subject: |
|
|
Line 62 is highlighted in the section of code below.
public function __call($name, $args)
{
if (isset($this->class)) {
throw new SmartyException("undefined extension class '{$this->class}'");
} else {
throw new SmartyException(get_class($args[ 0 ]) . "->{$name}() undefined method");
}
} |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jul 09, 2019 11:30 pm Post subject: |
|
|
Look deeper in the stack.
This line is from internal Smarty class, and is of little use. |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Wed Jul 24, 2019 8:49 pm Post subject: List of errors when previewing site in plesk |
|
|
Can anyone help with the error below please
Code: | 0. . Notice: Undefined property: PathCombiner::$separator in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/core/Path.php on line 71
Notice: Undefined property: PathCombiner::$separator in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/core/Path.php on line 66
Notice: Undefined property: PathCombiner::$separator in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/core/Path.php on line 66
Notice: Undefined property: PathCombiner::$separator in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/core/Path.php on line 38
Warning: file_get_contents(/var/www/vhosts/rollonmonday.co.uk/httpdocs/languagesfr.conf.xml): failed to open stream: No such file or directory in /var/www/vhosts/rollonmonday.co.uk/httpdocs/system/ext/Translation2/Admin/Container/xml_ex.php on line 146 |
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Jul 26, 2019 6:33 am Post subject: |
|
|
That's not even Smarty code to begin with.
Smarty error is presumable a result of earlier script errors. |
|
Back to top |
|
RobDineen Smarty Rookie
Joined: 04 Jul 2019 Posts: 10
|
Posted: Fri Jul 26, 2019 10:11 am Post subject: |
|
|
Would i be better off starting again and downloading the newest
version and see what error i get from there? |
|
Back to top |
|
|