Last modified: 2014-03-20 03:39:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 42151 - Various ResourceLoader PHP Warnings
Various ResourceLoader PHP Warnings
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: code_quality
  Show dependency treegraph
 
Reported: 2012-11-15 14:50 UTC by Sam Reed (reedy)
Modified: 2014-03-20 03:39 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2012-11-15 14:50:20 UTC
48 Warning:  Illegal offset type in isset or empty in /usr/local/apache/common-local/php-1.21wmf4/includes/resourceloader/ResourceLoader.php on line 378

48 Warning:  Illegal offset type in isset or empty in /usr/local/apache/common-local/php-1.21wmf4/includes/resourceloader/ResourceLoader.php on line 377

44 Warning:  array_map() [<a href='function.array-map'>function.array-map</a>]: An error occurred while invoking the map callback in /usr/local/apache/common-local
/php-1.21wmf4/includes/resourceloader/ResourceLoaderFileModule.php on line 0

22 Warning:  array_map() [<a href='function.array-map'>function.array-map</a>]: An error occurred while invoking the map callback in /usr/local/apache/common-local
/php-1.21wmf4/includes/resourceloader/ResourceLoaderFileModule.php on line 607


I know the for the last two (though, I'm guessing they have some relevance to the offset warnings above) are a known PHP bug that Roan has reported upstream...
Comment 1 Krinkle 2012-11-15 17:27:35 UTC
The first one looks like it's coming from a loop over module object, where it tries to fetch the module object by module name, when in fact the looped-over array always contains module object (not module names).

so $modules[$someModuleObject] triggers illegal offset.
Comment 2 Krinkle 2014-03-20 03:39:48 UTC
Haven't found these in the logs for a while.

The stacktrace-less array_map stuff has been rid from the code.

Let's file new bugs for specific errors we encounter.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links