|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
kahliala Smarty n00b
Joined: 12 Oct 2011 Posts: 3
|
Posted: Wed Oct 12, 2011 10:49 am Post subject: Fatal error: UnCaught exception |
|
|
I'm totally new to using Smarty and puzzled to say the least.
I'm getting the following error using Smarty with OPUS offering from Ulster University:-
[Wed Oct 12 11:44:54 2011] [error] [client 10.15.4.8] PHP Fatal error: Uncaught exception 'SmartyException' with message 'Call of unknown function 'Smarty'.' in /usr/local/smarty/libs/sysplugins/smarty_internal_templatebase.php:695\nStack trace:\n
#0 /usr/local/uuwaf/include/WA.class.php(81):Smarty_Internal_TemplateBase->__call('Smarty', Array)\n#1 /usr/local/uuwaf/include/WA.class.php(81): WA->Smarty()\n
#2 /usr/local/uuwaf/include/UUWAF.class.php(37): WA->__construct(Array)\n
#3 /usr/local/apache2/htdocs/index.php(4:UUWAF::get_instance(Array)\n
#4 /usr/local/apache2/htdocs/index.php(17): main()\n
#5 {main}\n thrown in /usr/local/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 695
Cannot decipher what is going on here any help greatly appreciated. |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Wed Oct 12, 2011 11:18 am Post subject: |
|
|
/usr/local/uuwaf/include/WA.class.php line 81 is calling the method Smarty() - which does not exist. I guess this is a Smarty 2.6 upgrade error. In PHP5 constructors are called __construct(), and not like PHP4 used to call them by the class name. _________________ Twitter |
|
Back to top |
|
kahliala Smarty n00b
Joined: 12 Oct 2011 Posts: 3
|
Posted: Wed Oct 12, 2011 12:21 pm Post subject: |
|
|
globe wrote: | /usr/local/uuwaf/include/WA.class.php line 81 is calling the method Smarty() - which does not exist. I guess this is a Smarty 2.6 upgrade error. In PHP5 constructors are called __construct(), and not like PHP4 used to call them by the class name. |
If what you say is true can you point me in the right direction to be able to sort this. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
Back to top |
|
kahliala Smarty n00b
Joined: 12 Oct 2011 Posts: 3
|
Posted: Mon Oct 24, 2011 11:25 am Post subject: |
|
|
Tried the above and unfortunately I'm completely new to PHP This is the code that is creating the error any help in changeing or sorting this would be of great assistance :-
function __construct($config)
{
$this->Smarty();
There is much more but this is line 81 with Smarty
Mike |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Oct 24, 2011 12:37 pm Post subject: |
|
|
Code: | function __construct() {
parent::__construct();
} |
get rid of the call to $this->Smarty() |
|
Back to top |
|
|
|
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
|