Topic on Project:Support desk

[RESOLVED] Fatal error after upgrading to 1.19.2

12
195.110.44.4 (talkcontribs)

Hello there :)

I have tried the following to upgrade from Mediawiki 1.11.2 (PHP version 5.2.4-2ubuntu5.26, Mysql 5.0.96-0ubuntu3):

- Downloaded the tarball packages 1.1.9.2 from your website

- Untar the package to a new directory

- Moved LocalSettings.php to the new directory

- Renamed the old wiki directory with a new name

- Renamed the new wiki directory to the old name

- Run the update.php script

- Got the error: *Fatal error*: Cannot redeclare wfprofilein() (previously declared in /mediawiki/includes/profiler/Profiler.php:14) in */mediawiki/includes/ProfilerStub.php* on line *25*

- Renamed the StartProfiler.php to StartProfiler.old as suggested in your Upgrading document

- Getting this error: Fatal error: Call to a member function addMessages() on a non-object in /data/mediawiki/extensions/FCKeditor/FCKeditor.body.php on line 283

For completeness I have to say that I have tried also to untar the package over the old wiki directory, getting the same results. I have tried both with version 1.19.2 and version 1.18.5, still same errors. Can you help me?

Thanks

This post was posted by 195.110.44.4, but signed as THEVIII.

Fereal (talkcontribs)

You are upgrading from a very old version - some of your extensions may no longer work with the later versions of MW and will require updates.

In your case, your installed version of FCKeditor extension is no longer compatible.

Though I don't think it's officially supported in 1.18 and above. Extension:FCKeditor_(Official)

195.110.44.4 (talkcontribs)

Hello, thank you for reply. I have deleted the FCKeditor extension, but my wiki is showing without anything. I mean, there is no css applied to it. So no summary, no box with special pages, nothing... What can I do?

195.110.44.4 (talkcontribs)

My wiki is appearing in a sort of Printable edition, I have tested it with version 1.17 and it is working fine (I have deleted the FCK extension, no longer supported and used by me). After upgrading to version 1.19 is displaying in printable version without any link to special pages, logo, nothinig... Any idea?

I really thank you

Fereal (talkcontribs)

Are you using a modified skin? Try setting $wgDefaultSkin = "vector". Also try disabling all other extensions.

It maybe better to get a fresh, up-to-date LocalSettings.php by rerunning the web installer. Just rename your old LocalSettings file and go to the wiki URL - it will direct you to the installer. When prompted, point it to your old database - the next step will inform you that an existing wiki has been detected and will perform accordingly. Complete the steps to download the new settings file.

Also backup and all that stuff. I won't be responsible for nuking your DB.

195.110.44.4 (talkcontribs)

I have deleted the LocalSettings.php file and I am pointing to the wiki URL, but it is still displaying the wiki, I have no installer...

88.130.92.178 (talkcontribs)

First of all: It's unlikely that running the installer solves your CSS problem. I would restore LocalSettings.php; most likely deleting it will cause more trouble than it solves. ;-)

Second: Have you run update.php successfully now? You should have done that at least once.

Now to your latest problem: If the CSS is missing you likely have an issue with accessing the file load.php, which is used to display the CSS styles.

View your wikis sourcecode with the webbrowser. In the top part of the code you will have some links pointing to load.php. One of them is responsible to load the skin. Copy this link and try to open it with your browser.

You should see (maybe compressed) CSS code. Do you?

195.110.44.4 (talkcontribs)

Hello there,

I have indeed load.php, but it says that it is not found. I have checked and it is in the mediawiki directory...

195.110.44.4 (talkcontribs)

Hello there,

I have indeed load.php, but it says that it is not found. I have checked and it is in the mediawiki directory...

Ciencia Al Poder (talkcontribs)

The problem may be likely a issue with variables $wgScriptPath, $wgArticlePath, $wgUsePathInfo, which may be conflicting.

To be sure, set $wgUsePathInfo = false;

Also, if you tried to configure Short URLs it may be an issue with rewrites or alias defined on the server. Try clearing all rewrites and alias and see if that solves the problem.

Fereal (talkcontribs)

I said rename the file, not delete it. You will need it to import back any settings from the previous install.

Are you sure you are pointing to the right path? The LocalSettings file contains all unique information for that wiki, including the database settings. So if you delete it, then you shouldn't be seeing the wiki nor should it be connected to any database. The web installer should run, since MediaWiki always checks if LocalSettings exists or not.

Try clearing the browser cache.

Reply to "[RESOLVED] Fatal error after upgrading to 1.19.2"