Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
error function call

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
barry.dunnage
Smarty Rookie


Joined: 18 Sep 2011
Posts: 14

PostPosted: Mon Sep 19, 2011 7:47 pm    Post subject: error function call Reply with quote

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


Joined: 22 Nov 2006
Posts: 4200
Location: Hamburg / Germany

PostPosted: Mon Sep 19, 2011 8:14 pm    Post subject: Reply with quote

Looks like you called the Smarty constructor with a sigle underscore '_construct'. Correctly is a double underscore '__construct'
Back to top
View user's profile Send private message
barry.dunnage
Smarty Rookie


Joined: 18 Sep 2011
Posts: 14

PostPosted: Tue Sep 20, 2011 5:30 am    Post subject: Reply with quote

hi U

great thanks Smile
Back to top
View user's profile Send private message
barry.dunnage
Smarty Rookie


Joined: 18 Sep 2011
Posts: 14

PostPosted: Tue Sep 20, 2011 5:41 am    Post subject: Reply with quote

hi again sorry

I looked at that in my application file and sees OK. would the problem be anywhere else?
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 698
Location: Germany, border to Switzerland

PostPosted: Tue Sep 20, 2011 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
barry.dunnage
Smarty Rookie


Joined: 18 Sep 2011
Posts: 14

PostPosted: Tue Sep 20, 2011 5:44 pm    Post subject: Reply with quote

Smile Smile
thanks sorted I was using only 1 _

thanks for your help
Back to top
View user's profile Send private message
Mahindra
Smarty Rookie


Joined: 25 Aug 2011
Posts: 6

PostPosted: Fri Sep 30, 2011 9:55 pm    Post subject: error function call Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
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