|
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 |
barry.dunnage Smarty Rookie
Joined: 18 Sep 2011 Posts: 14
|
Posted: Mon Sep 19, 2011 7:47 pm Post subject: error function call |
|
|
Hi I read the read me but got lost as this is my first attempt at using smarty. I think I'm getting somewere now but got lost with this
Notice: function call '_construct' is unknown or deprecated. in C:\wamp\www\tshirtshop\libs\smarty\sysplugins\smarty_internal_wrapper.php on line 57
line 57 is an error statment.
Any help appreciated. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Sep 19, 2011 8:14 pm Post subject: |
|
|
Looks like you called the Smarty constructor with a sigle underscore '_construct'. Correctly is a double underscore '__construct' |
|
Back to top |
|
barry.dunnage Smarty Rookie
Joined: 18 Sep 2011 Posts: 14
|
Posted: Tue Sep 20, 2011 5:30 am Post subject: |
|
|
hi U
great thanks |
|
Back to top |
|
barry.dunnage Smarty Rookie
Joined: 18 Sep 2011 Posts: 14
|
Posted: Tue Sep 20, 2011 5:41 am Post subject: |
|
|
hi again sorry
I looked at that in my application file and sees OK. would the problem be anywhere else? |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Tue Sep 20, 2011 7:19 am Post subject: |
|
|
You can easily scan your code for this with a regular expression: »\b_construct\s*\(«.
You could also print a stack trace to help you find the source, have a look at http://php.net/debug_print_backtrace _________________ Twitter |
|
Back to top |
|
barry.dunnage Smarty Rookie
Joined: 18 Sep 2011 Posts: 14
|
Posted: Tue Sep 20, 2011 5:44 pm Post subject: |
|
|
thanks sorted I was using only 1 _
thanks for your help |
|
Back to top |
|
Mahindra Smarty Rookie
Joined: 25 Aug 2011 Posts: 6
|
Posted: Fri Sep 30, 2011 9:55 pm Post subject: error function call |
|
|
I reinstalled and yes it now says error on the globals... But eitherway i read somewhere you did a compatibility fix. Maybe thats the problem? Is there a way of using opencart with this error? |
|
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
|