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

SmartyPaginate broken after upgrade to PHP5.1.6

 
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 -> Add-ons
View previous topic :: View next topic  
Author Message
Dieter
Smarty Rookie


Joined: 08 Sep 2003
Posts: 9

PostPosted: Sat Sep 09, 2006 5:49 pm    Post subject: SmartyPaginate broken after upgrade to PHP5.1.6 Reply with quote

I've upgraded my PHP to version 5.1.6 today. However, SmartyPaginate (1.5) seems to be broken now.

I've got tons of errors like:
Fatal error in line [...] Unkown error type: [2048] Non-static method SmartyPaginate::connect() should not be called statically
Fatal error in line [...] Unkown error type: [2048] Non-static method SmartyPaginate::getTotal() should not be called statically
Fatal error in line [...] Unkown error type: [2048] Non-static method SmartyPaginate::getUrlVar() should not be called statically

etc.

Error settings: E_ALL & ~E_NOTICE

any advice on this? I can't seem to find any help in the search...


Last edited by Dieter on Sat Sep 09, 2006 5:57 pm; edited 2 times in total
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sat Sep 09, 2006 5:53 pm    Post subject: Reply with quote

It seems to be a PHP 5 thing, try putting the word "static" in front of the method declarations in the class.

static function connect() { ... }
Back to top
View user's profile Send private message Visit poster's website
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 -> Add-ons 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