Topic on Project:Support desk

Fatal Error while upgrading from 1.16.5 to 1.17

8
178.72.112.151 (talkcontribs)

After upgrading my wiki from MW 1.16.5 to 1.17 (release 1.17.0) I get this:

   Fatal error: Call to a member function setCacheTime() on a non-object in (path-to-wiki)/includes/parser/Parser.php on line 4771

when I open a special page that doesn't refer to the database or run update.php. What can it be&

Emufarmers (talkcontribs)

Are you sure you upgraded all the files for your wiki?

IMisspell (talkcontribs)

Ran into this problem too. I ended up commenting out $this->mOutput->setCacheTime( -1 ); // old style, for compatibility

$this->mOutput->updateCacheExpiry( 0 ); // new style, for consistency in the Parser.php file just to get my wiki working again.

Heres what i did.

  • Downloaded the mediawiki-1.17.0.tar.gz file to my home computer, uncompressed, ftp'ed files to my web host overwriting all files (just like i have been doing for years with MW)
  • Tried uploading mediawiki-1.17.0.tar.gz to my web server and uncompressing it there
  • Ran into the same Fatal error doing it both ways.


Updated a second wiki (local, on my home linux server), alittle older wiki 1.16.x (not .5 but but still under 1.16 (sorry cant rember the version)) and had no problem at all, update whent nice and smooth.

  • Tried changing the default skin (was using custom) on the Fatal error wikis (shot in the dark, only noticable different), made no difference.

IMisspell 20:37, 26 June 2011 (UTC)

83.65.127.178 (talkcontribs)

I can second that, I upgraded all files, and after running the update.php I run into the same message

Bawolff (talkcontribs)

Which extensions are you using. Does the error persist when disabling all your extensions. (That method is only used in core when transcluding [not when viewing] a special page, so if you're getting that method, something else must be calling that method).

82.43.85.240 (talkcontribs)

I had this prob, it seems to come in from the vb single sign on plugin I use: AuthPlugin_vBSSO.php Remove this and the error goes.

Not sure how to fix though? Is the prob because the plugin is calling the disable cache function? I guess I could remove that but not sure what the author is trying to acheive, here's the code:

global $wgEnableParserCache, $wgParser, $wgOut, $wgCachePages;

$wgEnableParserCache = false; if ($wgParser) $wgParser->disableCache();

Bawolff (talkcontribs)

AuthPlugins shouldn't do that. Doing that can make your site very slow (when its not causing fatal's). Basically its a problem because its trying to disable the parser cache before the parser is initialized.

Dmb (talkcontribs)

I made a very primative page for information about this extension here: Extension:VBulletin. I put the code for the extension on the talk page there.

Cheers,

Reply to "Fatal Error while upgrading from 1.16.5 to 1.17"