Topic on Project:Support desk

Upgraded to 1.29 - Fatal Exception

11
Grantkinkead (talkcontribs)

I have just upgraded from 1.28 to 1.29. When I attempt to open the main page I get the following error:

[056a2df837ca6662c8607fea] 2017-07-19 23:28:46: Fatal exception of type "Exception"

The number changes each time I refresh.

I have added:

error_reporting( E_ALL );

ini_set( 'display_errors', 1 ); to my Local settings, but receive no further information.

My PHP version is 7.0.18

Mysql version is 5.0.12

http://54.206.106.229/phpinfo.php

http://54.206.106.229/Wiki/index.php/Main_Page

I hope this is an easy one.

MacFan4000 (talkcontribs)

Did you run maintenance/update.php? If not than try running it.

Grantkinkead (talkcontribs)

That helped a lot and I managed to clean up a lot of stuff from a maps extension that was causing grief. However, now I have hit a bit of a wall. It appears that composer is not uploading a couple of files it could upload before the upgraded. The errors I am now getting are:

Warning: Class 'Wikimedia\Timestamp\TimestampException' not found in /var/www/html/Wiki/includes/compat/Timestamp.php on line 18

Warning: require(/var/www/html/Wiki/vendor/composer/../hamcrest/hamcrest-php/hamcrest/Hamcrest.php): failed to open stream: No such file or directory in /var/www/html/Wiki/vendor/composer/autoload_real.php on line 70

Fatal error: require(): Failed opening required '/var/www/html/Wiki/vendor/composer/../hamcrest/hamcrest-php/hamcrest/Hamcrest.php' (include_path='/var/www/html/Wiki/vendor/pear/pear_exception:/var/www/html/Wiki/vendor/pear/console_getopt:/var/www/html/Wiki/vendor/pear/mail_mime:/var/www/html/Wiki/vendor/pear/mail_mime-decode:/var/www/html/Wiki/vendor/pear/mail:/var/www/html/Wiki/vendor/pear/pear-core-minimal/src:/var/www/html/Wiki/vendor/pear/net_socket:/var/www/html/Wiki/vendor/pear/net_smtp:.:/usr/share/php') in /var/www/html/Wiki/vendor/composer/autoload_real.php on line 70

I have had a look in the composer.json file and it has the following:

"autoload": {

"psr-0": {

"ComposerHookHandler": "includes/composer"

},

"files": [

"includes/compat/Timestamp.php"

]

},

"autoload-dev": {

"files": [

"vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php",

"vendor/wmde/hamcrest-html-matchers/src/functions.php"

]

},

I am not too sure where to go from here. Any suggestions would be greatly appreciated.

Grantkinkead (talkcontribs)

I have sorted out the Timestamp issue.

Reception123 (talkcontribs)

Was the composer.json file updating to match the REL1_29 file?

Revansx (talkcontribs)

I am experiencing a similar problem as well:

Warning: require(/opt/htdocs/mediawiki/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php): failed to open stream: Permission denied in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70

Fatal error: require(): Failed opening required '/opt/htdocs/mediawiki/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php' (include_path='/opt/htdocs/mediawiki/vendor/pear/console_getopt:/opt/htdocs/mediawiki/vendor/pear/mail_mime:/opt/htdocs/mediawiki/vendor/pear/pear-core-minimal/src:/opt/htdocs/mediawiki/vendor/pear/pear_exception:.:/usr/share/pear:/usr/share/php') in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70

any advice?

星耀晨曦 (talkcontribs)

Do you installed by tarball, or using Git?

Revansx (talkcontribs)

i have installed MW via Meza

星耀晨曦 (talkcontribs)

For the error message, your web server can't read opt/htdocs/mediawiki/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php. Make sure your web server can read the MW code files.

202.89.106.200 (talkcontribs)

facing the same issue with 1.34.0 version

mediawiki\vendor\composer\autoload_real.php on line 61


any advice?

星耀晨曦 (talkcontribs)

Please paste all error messages.

Reply to "Upgraded to 1.29 - Fatal Exception"