Jump to content

Topic on Extension talk:Favorites/Flow

File "extension.json" doesn't exist in 1.34

4
WhitWye (talkcontribs)

The error begins: "Fatal error: Uncaught Exception: Unable to open file /var/www/mediawiki-1.34.0/extensions/Favorites/extension.json ... and indeed the only .json files in the Favorites folder (from the current tar download) are composer.json, gitinfo.json, package-lock.json and package.json. Should one of those be symlinked as "extension.json"?


Note that was with the new way. The old spec of 'require_once "$IP/extensions/Favorites/Favorites.php";' doesn't error out on that nonexistent file, but instead, "

No such action


The action specified by the URL is invalid. You might have mistyped the URL, or followed an incorrect link. This might also indicate a bug in the software used by eiswiki.

Lwangaman (talkcontribs)

I am now trying to install the Favorites extension. When I run the "php update.php" in the maintenance folder I get the same error:

PHP Fatal error: Uncaught Exception: Unable to open file /var/www/vhosts/.../extensions/Favorites/extension.json: filemtime(): stat failed for /var/www/vhosts/.../extensions/Favorites/extension.json in /var/www/vhosts/.../includes/registration/ExtensionRegistry.php:136 Stack trace:

  1. 0 /var/www/vhosts/.../includes/GlobalFunctions.php(52): ExtensionRegistry->queue()
  2. 1 /var/www/vhosts/.../LocalSettings.php(177): wfLoadExtension()
  3. 2 /var/www/vhosts/.../includes/Setup.php(124): require_once('/var/www/vhosts...')
  4. 3 /var/www/vhosts/.../maintenance/doMaintenance.php(83): require_once('/var/www/vhosts...')
  5. 4 /var/www/vhosts/.../maintenance/update.php(277): require_once('/var/www/vhosts...')
  6. 5 {main}
 thrown in /var/www/vhosts/.../includes/registration/ExtensionRegistry.php on line 136

Anyone have a fix?

2403:AC00:0:1001:0:0:2:5C9E (talkcontribs)

请问你解决了吗?

188.27.50.189 (talkcontribs)

To fix the issue, you'll need to comment the following line, inside the LocalSettings.php file.

require_once( "$IP/includes/DefaultSettings.php" );

Reply to "File "extension.json" doesn't exist in 1.34"