Page MenuHomePhabricator

Fatal error: Uncaught Exception: Unable to open file
Closed, DeclinedPublic

Description

Hello, I need help with this fatal error: (paths deleted for easy reading)

Fatal error: Uncaught Exception: Unable to open file /extensions/CookieWarning/extension.json: filemtime(): stat failed for 
/extensions/CookieWarning/extension.json in /includes/registration/ExtensionRegistry.php:136 Stack trace: #0 
/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/kunden/vexilli...') #1 /LocalSettings.php(322): wfLoadExtension('CookieWarning') #2 /includes/Setup.php(124): require_once('/kunden/vexilli...') #3 
/includes/WebStart.php(81): require_once('/kunden/vexilli...') #4 /index.php(41): require('/kunden/vexilli...') #5 {main} thrown in 
/includes/registration/ExtensionRegistry.php on line 136

The error occurred after installing this extension with these local settings:

wfLoadExtension( 'CookieWarning' );
$wgCookieWarningEnabled = true;
$wgCookieWarningGeoIPLookup = 'none';

These lines are now commented away (auskommentiert) to let the wiki run.

I would rather not make the error visible again because then the wiki would be blocked until the technicians have visited it. I can only do this for some minutes if really needed.

I am using Google Chrome browser Version 86.0.4240.183 (Offizieller Build) (64-Bit).
Software Version
MediaWiki 1.34.1
PHP 7.2.23 (cgi-fcgi)
MySQL 5.6.19-67.0-log
ICU 52.1

The wiki is at https://vexilli.net/LuftGeo/

Event Timeline

Aklapper changed the task status from Open to Stalled.Nov 5 2020, 1:57 PM

Hi @Wschroedter, thanks for taking the time to report this! Unfortunately this Wikimedia Phabricator task lacks some information.
If you have time and can still reproduce the situation: Please add a more complete description to this task. That should be

  • a clear and complete list of exact steps to reproduce the situation, step by step, so that nobody needs to guess or interpret how you performed each step,
  • what happens after performing these steps to reproduce,
  • what you expected to happen instead,
  • a full link to a web address where the issue can be seen,
  • the web browser(s) and web browser version(s) that you tested.

In some situations it can also be helpful to know if you see the same behavior when you are not logged in, and your exact MediaWiki version (if it is not on a Wikimedia website) which is shown on Special:Version, and your exact PHP version, etc.

You can edit the task description by clicking Edit Task. Ideally, a good description should allow any other person to follow these steps (without having to interpret steps) and see the same results. Problems that others can reproduce can get fixed faster. Thanks again!

@Wschroedter: There has not been any activity in this task recently. Due to the high number of tasks we sometimes have to clean some older tasks, as some might have already been resolved in the meantime in newer versions.

If you have time, could you please update to a recent supported version and tell us if this problem still happens?
If this still happens, please add a comment to this Phabricator task and tell us either your exact software version in case that you know (for a MediaWiki installation, see the "Special:Version" page on your wiki), or the complete web address for a public wiki where the problem can be seen.

If the problem does not happen anymore at all, please set the status of this task to "Declined" via the Add Action...Change Status dropdown. Thanks a lot for your help!

Hmm, I wouldn't necessarily call a three month old task an "older task", but thanks for the ping. :) That website uses version 1.35.1 now.

filemtime(): stat failed for /extensions/CookieWarning/extension.json in /includes/registration/ExtensionRegistry.php:136

@Wschroedter: If the problem still happens in 1.35.1 (and after upgrading the CookieWarning extension to use the REL1_35 branch, currently it still uses REL1_34 on that website according to Special:Version), which exact owner/group/read/write permissions does the file /extensions/CookieWarning/extension.json have?

Sorry for the nuisance. Extension:CookieWarning doesn't disturb 1.35.1. Function not visible, perhaps because I'm the site admin. Feel free to remove the task completely. However, a note may be added to the extnsion page about the needed wiki version.

-Winfried

Hmm, not sure what to make out of that, but alright. :-/ (Feel free to edit the wiki page.)