Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Website Smarty Error---- Fatal error: Uncaught --> Smar
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Thu Jul 04, 2019 7:38 pm    Post subject: Website Smarty Error---- Fatal error: Uncaught --> Smar Reply with quote

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
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Thu Jul 04, 2019 7:44 pm    Post subject: Reply with quote

for a bit more information line 541 has the following code

throw new SmartyException("Plugin \"{$tag}\" not callable");
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Fri Jul 05, 2019 6:57 am    Post subject: Reply with quote

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
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Fri Jul 05, 2019 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Jul 05, 2019 7:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Fri Jul 05, 2019 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Jul 07, 2019 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Jul 07, 2019 9:34 am    Post subject: Reply with quote

Said that, what is the error message right above that one?
Back to top
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Sun Jul 07, 2019 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Sun Jul 07, 2019 9:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Sun Jul 07, 2019 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Jul 09, 2019 11:30 pm    Post subject: Reply with quote

Look deeper in the stack.
This line is from internal Smarty class, and is of little use.
Back to top
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Wed Jul 24, 2019 8:49 pm    Post subject: List of errors when previewing site in plesk Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Jul 26, 2019 6:33 am    Post subject: Reply with quote

That's not even Smarty code to begin with.
Smarty error is presumable a result of earlier script errors.
Back to top
View user's profile Send private message
RobDineen
Smarty Rookie


Joined: 04 Jul 2019
Posts: 10

PostPosted: Fri Jul 26, 2019 10:11 am    Post subject: Reply with quote

Would i be better off starting again and downloading the newest
version and see what error i get from there?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP