简体   繁体   English

升级Fedora 24 Mediawiki网站时出错

[英]Error upgrading Fedora 24 Mediawiki site

Edit 1 - More error information, below: 编辑1-更多错误信息,如下所示:

I normally rebuild systems rather than upgrade them. 我通常重建系统而不是升级它们。 I first rebuild my system with a virtual machine as a test. 我首先使用虚拟机重建系统作为测试。 I am having a problem with mediawiki. 我在mediawiki上遇到问题。

Working system: Fedora 24, mediawiki 1.26.4-1 php 5.6.27-1 工作系统:Fedora 24,mediawiki 1.26.4-1 php 5.6.27-1

New system: Fedora 25, mediawiki 1.27.1-1 php 7.0.13-1 新系统:Fedora 25,MediaWiki 1.27.1-1,PHP 7.0.13-1

I have followed the normal process to backup/restore the database and file system that has worked many times before, and ran the upgrade script. 我已按照正常过程备份/还原以前已经工作了很多次的数据库和文件系统,并运行了升级脚本。 Now though, when I pull up the wiki home page I get this error: 现在,当我打开Wiki主页时,出现此错误:

Exception encountered, of type "Error"
[WDi085SSXW4b8deWoT2rTgAAAAA] /wiki/ Error from line 161 of /usr/share/mediawiki/includes/session/PHPSessionHandler.php: Class 'Wikimedia\PhpSessionSerializer' not found
Backtrace:
#0 /usr/share/mediawiki/includes/session/SessionManager.php(939): MediaWiki\Session\PHPSessionHandler->setManager(MediaWiki\Session\SessionManager, CachedBagOStuff, MediaWiki\Logger\LegacyLogger)
#1 /usr/share/mediawiki/includes/session/PHPSessionHandler.php(58): MediaWiki\Session\SessionManager->setupPHPSessionHandler(MediaWiki\Session\PHPSessionHandler)
#2 /usr/share/mediawiki/includes/session/PHPSessionHandler.php(120): MediaWiki\Session\PHPSessionHandler->__construct(MediaWiki\Session\SessionManager)
#3 /usr/share/mediawiki/includes/Setup.php(741): MediaWiki\Session\PHPSessionHandler::install(MediaWiki\Session\SessionManager)
#4 /usr/share/mediawiki/includes/WebStart.php(137): require_once(string)
#5 /usr/share/mediawiki/index.php(40): require(string)
#6 {main}

Any suggestions as to troubleshooting this would be appreciated. 任何有关解决此问题的建议,将不胜感激。

Edit 1: More Information: 编辑1:更多信息:

Note this problem also occurs trying to upgrade mediawiki in place on Fedora 24 as shown by the errors below: 请注意,尝试升级Fedora 24上的mediawiki时也会发生此问题,如以下错误所示:

On Screen: 在屏幕上:

Fatal error: Class 'Wikimedia\PhpSessionSerializer' not found in /usr/share/mediawiki/includes/session/PHPSessionHandler.php on line 161

In httpd log file: 在httpd日志文件中:

[Fri Dec 02 09:34:26.160621 2016] [:error] [pid 3941] [client ::1:59474] PHP Fatal error:  Class 'Wikimedia\\PhpSessionSerializer' not found in /usr/share/mediawiki/includes/session/PHPSessionHandler.php on line 161
[Fri Dec 02 09:34:26.160666 2016] [:error] [pid 3941] [client ::1:59474] PHP Stack trace:
[Fri Dec 02 09:34:26.160675 2016] [:error] [pid 3941] [client ::1:59474] PHP   1. {main}() /usr/share/mediawiki/index.php:0
[Fri Dec 02 09:34:26.160681 2016] [:error] [pid 3941] [client ::1:59474] PHP   2. require() /usr/share/mediawiki/index.php:40
[Fri Dec 02 09:34:26.160686 2016] [:error] [pid 3941] [client ::1:59474] PHP   3. require_once() /usr/share/mediawiki/includes/WebStart.php:137
[Fri Dec 02 09:34:26.160692 2016] [:error] [pid 3941] [client ::1:59474] PHP   4. MediaWiki\\Session\\PHPSessionHandler::install() /usr/share/mediawiki/includes/Setup.php:742
[Fri Dec 02 09:34:26.160697 2016] [:error] [pid 3941] [client ::1:59474] PHP   5. MediaWiki\\Session\\PHPSessionHandler->__construct() /usr/share/mediawiki/includes/session/PHPSessionHandler.php:120
[Fri Dec 02 09:34:26.160702 2016] [:error] [pid 3941] [client ::1:59474] PHP   6. MediaWiki\\Session\\SessionManager->setupPHPSessionHandler() /usr/share/mediawiki/includes/session/PHPSessionHandler.php:58
[Fri Dec 02 09:34:26.160708 2016] [:error] [pid 3941] [client ::1:59474] PHP   7. MediaWiki\\Session\\PHPSessionHandler->setManager() /usr/share/mediawiki/includes/session/SessionManager.php:939

The wiki move instructions on the MediaWiki site only work if you are moving from and to the EXACT same version of the software. 仅当您在软件的相同版本之间来回移动时,MediaWiki站点上的Wiki移动说明才起作用。

To do a move/upgrade of a wiki running on Fedora follow these steps: 要移动/升级在Fedora上运行的Wiki,请执行以下步骤:

  1. Backup the wiki filesystem and database on the old system as you normally would. 照常备份旧系统上的Wiki文件系统和数据库。
  2. On the new system copy the wiki filesystem /var/www/wiki directory into your apache accessible wiki directory (ie /var/www/html/wiki) 在新系统上,将Wiki文件系统/ var / www / wiki目录复制到您的Apache可访问的Wiki目录(即/ var / www / html / wiki)
  3. Restore the /images directory from the old system into the new 从旧系统还原/ images目录到新系统
  4. Restore and/or reinstall any plugins you had on the old system onto the new system 将旧系统上拥有的所有插件还原和/或重新安装到新系统上
  5. Restore the database on the new system 在新系统上还原数据库
  6. Run the maintenance database upgrade script 运行维护数据库升级脚本
  7. Test the restored wiki 测试还原的Wiki

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM