Topic on Manual talk:Upgrading

Theoldvectortheme (talkcontribs)

I have error when trying to excute update.php

PHP Fatal error:  Uncaught Exception: Unable to open file /var/www/html/w/extensions/LocalisationUpdate/extension.json: filemtime(): stat failed for /var/www/html/w/extensions/LocalisationUpdate/extension.json in /var/www/html/w/includes/registration/ExtensionRegistry.php:199

Jdforrester (WMF) (talkcontribs)

This suggests that you have code in your LocalSettings.php file trying to load the old and no-longer-supported LocalisationUpdate extension. If you comment that out, it should work.

Theoldvectortheme (talkcontribs)

The config i have written is just a modified default 1.38 configuration file

the update script does not mess with the database as just simply excuting the --help command will have the error

here is the full one to better understand the error

PHP Fatal error:  Uncaught Exception: Unable to open file /var/www/html/m/extensions/LocalisationUpdate/extension.json: filemtime(): stat failed for /var/www/html/m/extensions/LocalisationUpdate/extension.json in /var/www/html/m/includes/registration/ExtensionRegistry.php:199

Stack trace:

#0 /var/www/html/m/includes/GlobalFunctions.php(53): ExtensionRegistry->queue()

#1 /var/www/html/m/LocalSettings.php(153): wfLoadExtension()

#2 /var/www/html/m/includes/Setup.php(218): require_once('/var/www/html/m...')

#3 /var/www/html/m/maintenance/doMaintenance.php(83): require_once('/var/www/html/m...')

#4 /var/www/html/m/maintenance/update.php(312): require_once('/var/www/html/m...')

#5 {main}

  thrown in /var/www/html/m/includes/registration/ExtensionRegistry.php on line 199 I have tested the 1.38 update.php and the php script executes the following command --help flawless Theoldvectortheme (talk) 12:10, 5 January 2023 (UTC)

FeRDNYC (talkcontribs)

@Theoldvectortheme:

The config i have written is just a modified default 1.38 configuration file

...Modified how?

According to the traceback you posted, there's a wfLoadExtension() call on line 153 of /var/www/html/m/LocalSettings.php that's triggering the problem, presumably by trying to load LocalisationUpdate (either directly or indirectly).

What's on line 153 of your LocalSettings.php?

Theoldvectortheme (talkcontribs)

Here is my config []

Jdforrester (WMF) (talkcontribs)

Yes, you need to delete line 147 in your file (wfLoadExtension( 'LocalisationUpdate' );).

Theoldvectortheme (talkcontribs)

Thanks