Error upgrading Fedora 24 Mediawiki site - php

Edit 1 - More error information, below:
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.
Working system:
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
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:
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:
Note this problem also occurs trying to upgrade mediawiki in place on Fedora 24 as shown by the errors below:
On Screen:
Fatal error: Class 'Wikimedia\PhpSessionSerializer' not found in /usr/share/mediawiki/includes/session/PHPSessionHandler.php on line 161
In httpd log file:
[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.
To do a move/upgrade of a wiki running on Fedora follow these steps:
Backup the wiki filesystem and database on the old system as you normally would.
On the new system copy the wiki filesystem /var/www/wiki directory into your apache accessible wiki directory (i.e. /var/www/html/wiki)
Restore the /images directory from the old system into the new
Restore and/or reinstall any plugins you had on the old system onto the new system
Restore the database on the new system
Run the maintenance database upgrade script
Test the restored wiki

Related

AWS - Elastic BeanTalk: [error] 'php' not found or unable to stat

I have a simple website deployed on Elastic BeanTalk ( platform: PHP 5.6 ).
public
|about.html
|index.html
|style.css
|+ include
|subscribe-email.php
|+ phpmailer
When I checked the log, I received many errors related to '.php' not found or unable to stat. I don't know from where these php files were generated.
[Thu Jun 21 06:18:52.967190 2018] [:error] [pid 12523] [client xxx] script '/var/www/html/xxxx/public/wp-login.php' not found or unable to stat
[Thu Jun 21 06:25:46.354172 2018] [:error] [pid 12742] [client xxx] script '/var/www/html/xxxx/public/wp-login.php' not found or unable to stat
[Thu Jun 21 06:44:44.392342 2018] [:error] [pid 12963] [client xxx] script '/var/www/html/xxxx/public/wp-login.php' not found or unable to stat
[Thu Jun 21 07:18:12.899793 2018] [:error] [pid 13726] [client xxx] script '/var/www/html/xxxx/public/index.php' not found or unable to stat
[Thu Jun 21 07:18:24.145541 2018] [:error] [pid 13531] [client xxx] script '/var/www/html/xxxx/public/wuwu11.php' not found or unable to stat
[Thu Jun 21 07:18:24.925862 2018] [:error] [pid 13418] [client xxx] script '/var/www/html/xxxx/public/xw.php' not found or unable to stat
[Thu Jun 21 07:18:25.689064 2018] [:error] [pid 13418] [client xxx] script '/var/www/html/xxxx/public/xx.php' not found or unable to stat
[Thu Jun 21 07:18:26.489205 2018] [:error] [pid 13418] [client xxx] script '/var/www/html/xxxx/public/s.php' not found or unable to stat
[Thu Jun 21 07:18:27.282847 2018] [:error] [pid 13418] [client xxx] script '/var/www/html/xxxx/public/w.php' not found or unable to stat
[Thu Jun 21 07:18:28.081399 2018] [:error] [pid 13418] [client xxx] script '/var/www/html/xxxx/public/sheep.php' not found or unable
Any suggestion is appreciated.
It is not a solution but I had the same issue.
I'm posting it as an answer to be able to upload an image.
I found something very similar. Also PHP 5.6.
It was new droplet, recently updated. Ubuntu 16, I added a repo to be able to install PHP 5.6 instead of PHP 7 which is the default.
sudo add-apt-repository ppa:ondrej/php
Where does it comes from?

PHP and MySQL user accounts [duplicate]

This question already has answers here:
Reference - What does this error mean in PHP?
(38 answers)
Closed 5 years ago.
I'm very new to both PHP and MySQL.
I have only begun to learn them to run a game server.
The problem I have run into is descriped in apache error log as:
[Mon Sep 04 01:00:16.928467 2017] [:error] [pid 3656:tid 784] [client 127.0.0.1:49401] PHP Notice: Undefined variable: db in C:\Program Files\VertrigoServ\www\sw_game_login.php on line 24
[Mon Sep 04 01:00:16.928467 2017] [:error] [pid 3656:tid 784] [client 127.0.0.1:49401] PHP Stack trace:
[Mon Sep 04 01:00:16.928467 2017] [:error] [pid 3656:tid 784] [client 127.0.0.1:49401] PHP 1. {main}() C:\Program Files\VertrigoServ\www\sw_game_login.php:0
[Mon Sep 04 01:00:16.928467 2017] [:error] [pid 3656:tid 784] [client 127.0.0.1:49401] PHP Fatal error: Call to a member function fetch_row() on null in C:\Program Files\VertrigoServ\www\sw_game_login.php on line 24
[Mon Sep 04 01:00:16.928467 2017] [:error] [pid 3656:tid 784] [client 127.0.0.1:49401] PHP Stack trace:
[Mon Sep 04 01:00:16.928467 2017] [:error] [pid 3656:tid 784] [client 127.0.0.1:49401] PHP 1. {main}() C:\Program Files\VertrigoServ\www\sw_game_login.php:0
line 24 of sw_game_login.php looks like the following:
if(list($id)=$db->fetch_row($db->query("SELECT ID FROM accounts WHERE ACCOUNT_NAME='$account' AND ACCOUNT_PASSWORD='$pass'"))){
The error I receive from my game client says that incorrect account or password, I know this is not the case I have tried several and checked several times. Thus leading me to believe that maybe the request is not being sent through properly.
Thanks in advance to any help!
According to your error log, your db variable is undefined. Add this to the top of your sw_game_login.php script.
if (!isset($db))
$db = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);

Wordpress admin page is blank

We migrated a wordpress site from a cpanel hosting to AWS. The specifications of the box on AWS are as follows :-
OS : Ubuntu 14.04
PHP : 5.6
Wordpress : 4.6
i can see that some requests for static files are still going to the old site for eg. wpac.css http://ip2n.trillbjm.com/files/modules/wordpress-access-control/public/css/wpac.css
We can See the menu items on Left hand side but nothing is visible at the centre of the screen.
I can see below messages in apache2 error.log. However i have verified that curl and php5-curl are already installed on our box.
[Sun Jul 09 20:18:41.365204 2017] [:error] [pid 19222] [client 52.25.187.99:60379] PHP Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/lib/pCurlConnection.php on line 10
[Sun Jul 09 20:18:41.392122 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Warning: Illegal string offset 'version' in /var/www/html/files/modules/postie/postie.php on line 271, referer: http://dev.ipledge2nigeria.com/login-3/?redirect_to=http%3A%2F%2Fdev.ipledge2nigeria.com%2Fwp-admin%2F&reauth=1
[Sun Jul 09 20:18:41.727913 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/postie.php on line 274, referer: http://dev.ipledge2nigeria.com/login-3/?redirect_to=http%3A%2F%2Fdev.ipledge2nigeria.com%2Fwp-admin%2F&reauth=1
[Sun Jul 09 20:18:46.131197 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Warning: Illegal string offset 'version' in /var/www/html/files/modules/postie/postie.php on line 271, referer: http://dev.ipledge2nigeria.com/wp-admin/
[Sun Jul 09 20:18:46.423979 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/postie.php on line 274, referer: http://dev.ipledge2nigeria.com/wp-admin/
[Sun Jul 09 20:18:48.692803 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Warning: Illegal string offset 'version' in /var/www/html/files/modules/postie/postie.php on line 271, referer: http://dev.ipledge2nigeria.com/wp-admin/edit.php
[Sun Jul 09 20:18:48.978328 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/postie.php on line 274, referer: http://dev.ipledge2nigeria.com/wp-admin/edit.php
I was able to solve this eventually. Below error message indicated the root cause :-
[Sun Jul 09 20:18:48.978328 2017] [:error] [pid 19220] [client 67.176.114.208:65308] PHP Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/postie.php on line 274, referer:
I had three php installations on my ubuntu box - php5, php5.6 and php7. php5 had curl installed in it but was being ignore by apache. apache was using php5.6. I went to /etc/apache2/mods-enabled and removed all the php links except for php5.

Website shows 404 not found nginx?

Recently I transferred my website and domain from 1and1 to inmotionhosting. When I try to visit my website (www.wapgee.com). It shows this error:
Anyone who have faced this problem? I will appreciate the help!
This error log I found in public_html folder
[Wed Nov 09 02:38:23.846102 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.694511 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.542651 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.391229 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.088840 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:30:14.558814 2016] [:error] [pid 572374:tid 139899906787072] [client 141.8.143.213:57443] File does not exist: /home/wapgee/public_html/index.php
Firstly You have to wait at least one day. Because dns changes can take 12 hours or than 12 hours to change.
Secondly you need to remove dns cache, lets do it
Windows 7 and Vista:
Click on the Start Menu
Type cmd in the search box
Right click on cmd in the programs search results and choose Run as Administrator
Windows 98/NT/2000/XP
Click on the Start Menu Select Run
Type or select cmd to open the command line window
Once the cmd opens type this command:
ipconfig /flushdns
Then you need to clear your browser chache:
Google chrome:
https://support.google.com/accounts/answer/32050?hl=en
Firefox: https://support.mozilla.org/en-US/kb/how-clear-firefox-cache
See if the root directory of your site is placed at the right place. Unlike Apache, Nginx does not display a file index.

I cannot log in after installing MODX Revolution

After installing MODX Revolution I cannot log in - just a blank page is displayed. My setup: MODX downloaded from git, PHP 5.3, Apache 2.2, OS ubuntu.
In apache error log I see this message:
[Sun Sep 04 08:03:12 2011] [error] PHP Fatal error: Call to a member
function render() on a non-object in
/var/www/modx/manager/controllers/default/welcome.class.php on line
64 [Sun Sep 04 08:03:12 2011] [error] PHP Stack trace: [Sun Sep 04
08:03:12 2011] [error] PHP 1. {main}()
/var/www/modx/manager/index.php:0 [Sun Sep 04 08:03:12 2011] [error]
PHP 2. modManagerRequest->handleRequest()
/var/www/modx/manager/index.php:71 [Sun Sep 04 08:03:12 2011] [error]
PHP 3. modManagerRequest->prepareResponse()
/var/www/modx/core/model/modx/modmanagerrequest.class.php:124 [Sun
Sep 04 08:03:12 2011] [error] PHP 4.
modManagerResponse->outputContent()
/var/www/modx/core/model/modx/modmanagerrequest.class.php:173 [Sun
Sep 04 08:03:12 2011] [error] PHP 5. modManagerController->render()
/var/www/modx/core/model/modx/modmanagerresponse.class.php:106 [Sun
Sep 04 08:03:12 2011] [error] PHP 6.
WelcomeManagerController->process()
/var/www/modx/core/model/modx/modmanagercontroller.class.php:133
Actually, Paul Graffam is right in the comments, when building from git (either through a clone or download from github), you need to run transport.core.php as well as some other things the first time you do it.
Specific instructions can be found here: http://rtfm.modx.com/display/revolution20/Git+Installation
An alternative if you don't want to go through those steps is to download a nightly build from http://modx.com/download/nightlies/ - you can install them as normal there.
(Realise I'm a bit late to the question, but figured others might stuble across it in the future and there's no answer yet)

Categories