Topic on Project:Support desk

[RESOLVED] Updating from 1.17 not working

5
2A00:C88:4000:A00C:FC9B:3121:3D91:D6F3 (talkcontribs)

My version 1.17 installation recently went into a state where the content of the wiki does not appear, although everythin else does, including menus and the code for the content can be viewed by selecting edit, even if the same content is not displayed when browsing the wiki normally. It is not clear to me what caused this. I don't think I did anything so I suspect an upgrade of some software on the server by the hosting company, the php version or something like that. I am trying to fix this and any help would be greatly appreciated.

It was suggested online that this situation might be amended by upgrading the wiki, but I am having problems with the update process. I have backed everything up and added a sha1 column to table revisions as suggested in the documentation. I copied my old LocalSettings.php to a directory with version 1.24. However, when I run the update script on the server, "php maintenance/update.php", the script exits right away without producing any output. The update process has not been completed successfully as I get a database error if I try to swap the old/new directories and open the new version.

I also tried using the web update. On the second page of the wizard, it seems like the system is supposed to detect my existing wiki, but nothing comes up and I cannot continue.

Because of the lack of error messages, I am unsure what to do. Any ideas?

88.130.67.200 (talkcontribs)

Hi!

The symptoms that the content, although displayed in editing mode, does not show up in the normal pages, is usually caused by an upgrade of the PCRE package on the server. A MediaWiki upgrade will in fact fix this.

For the upgrade please follow our upgrading guide at Upgrade!

You should enable error reporting in PHP and activate error display in MediaWiki to get more information about what is going wrong. See how to debug for more information!

2A00:C88:4000:A00C:FC9B:3121:3D91:D6F3 (talkcontribs)

Thanks! I turned on the error reporting and I am now getting the following output. There is indeed no "ScopedCallback.php" in "includes/libs". I should note that I just downloaded and extracted a fresh copy of the version 1.24.1 tar archive. Did I make some mistake in that process?

Warning: require(/home/linguist/public_html/wiki//includes/libs/ScopedCallback.php) [function.require]: failed to open stream: No such file or directory in /home/linguist/public_html/wikixx/includes/AutoLoader.php on line 1282

Fatal error: require() [function.require]: Failed opening required '/home/linguist/public_html/wiki//includes/libs/ScopedCallback.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/linguist/public_html/wikixx/includes/AutoLoader.php on line 1282

88.130.67.200 (talkcontribs)

MediaWiki 1.24.1 does contain a includes/libs/ScopedCallback.php file - the version I downloaded back in December 2014 did and the tarball offered for download right now does as well. Can you please double check, why that file is missing for you? Did all files from the new tarball get extracted correctly? This file should be there!

89.160.129.200 (talkcontribs)

Okay, I figured this out. The file was there, my mistake. The issue arose because I had the old wiki directory selected in the LocalSettings.php file and the file was not found under the old path. The issue went away when I edited the settings file. Thanks for the help!

Reply to "[RESOLVED] Updating from 1.17 not working"