From: Charles S. <sp...@bw...> - 2009-01-15 08:02:27
|
And after many hours of googling, the answer is that you can't have a class name the same as a function name. Fix: lib/WikiUserNew.php every place there's call to "PearDbPassUser", rename it to something - I just tacked "foo" on the end: _PearDbPassUser::_PearDbPassUserFoo($this->_userid, $this->_prefs); lib/WikiUser/PearDb.php Rename the function to match: function _PearDbPassUserFoo($UserName='',$prefs=false) { So far, so good. If I can find more problems like this, I'll try and roll up a patchset. C On Thu, 15 Jan 2009, Charles Sprickman wrote: > Just a quick note - same failure using latest svn. > > From googling around, something changed from php 5.2.6 on - this used to fail > with "E_STRICT" and now it's fatal. > > I don't know OOP to save my life, so I'm stumped. > > On Thu, 15 Jan 2009, Charles Sprickman wrote: > >> Hello all, >> >> I just upgraded from php 4.4.8 to 5.2.8, along with all the Pear and php >> extensions I had installed. Other applications on this machine are doing >> fine, >> but I get this error on loading phpwiki (version 1.3.14): >> >> [14-Jan-2009 21:48:43] PHP Fatal error: Non-static method >> _PearDbPassUser::_PearDbPassUser() cannot be called statically, assuming >> $this >> from incompatible context in /usr/local/www/data/wiki/lib/WikiUserNew.php >> on >> line 1118 >> >> Any ideas on what the root cause is? Pear is at 1.7.2, previously it was >> 1.7.1. >> >> Thanks, >> >> Charles >> >> ___ >> Charles Sprickman >> NetEng/SysAdmin >> Bway.net - New York's Best Internet - www.bway.net >> sp...@bw... - 212.655.9344 >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Phpwiki-talk mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk >> > |