Topic on Project:Support desk

PHP version missmatch on mediawiki1.27

8
Jfoster81747 (talkcontribs)

I'm experimenting with the new 1.27 mediawiki and have it installed on a working LAMP system ubuntu. I am getting this apache error message when I try to start the server:

[Thu Feb 04 10:03:24.654584 2016] [:error] [pid 26404] [client 51.255.65.68:27433] PHP Fatal error:  require_once(): Failed opening required '/var/www/html/includes/PHPVersionCheck.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/index.php on line 36

I see that the there is no longer a index.php5 file in the start up and the index.php file is vastly different than 1.25.2 mediawiki. Any tips on what to do.

John

Jfoster81747 (talkcontribs)

FYI: I also am running and have verified that it works Php7. Just need to figure out how to configure the mediawiki1.27 to use it. chave also run composer update and only get a depreciation error warning on constraints. that should no stop the mediawiki from running.

Ciencia Al Poder (talkcontribs)

Does /var/www/html/includes/PHPVersionCheck.php exist and can the server read it?

Jfoster81747 (talkcontribs)

Yes it does exist and as far as I know the server has access, however I did just now compare the files ownership to my provious working set up and see they are different. Fixing that & will report.

Thanks

john

Jfoster81747 (talkcontribs)

GOOD CATCH!

That did get the very basic site to running. However now its full of bugs. used the basic recycled LocalSettings from the older running site. However it craps out when I try to run php update.php to get the site updated. I'm getting this error regardless of which extension I put in there.

PHP Parse error:  syntax error, unexpected 'require_once' (T_REQUIRE_ONCE) in /var/www/html/LocalSettings.php on line 190. I do not know if this is because of the new style of loading extensions, but that does not work either. Any tips??

Thanks

John

Jfoster81747 (talkcontribs)

OK I'm now getting this error using the new load syntax:

PHP Parse error:  syntax error, unexpected 'wfLoadExtension' (T_STRING) in /var/www/html/LocalSettings.php on line 190

121.219.226.9 (talkcontribs)

You obviously have an error in your LocalSettings file near that line. If you can't figure out what it is, post the lines near that area (redacting any private information).

Jfoster81747 (talkcontribs)

Thanks to all who assisted. The site is now up and running Mediawiki 1.27 on php7. VERY fast...Now to debug the few things missing..