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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44151, the corresponding Phabricator task for complete and up-to-date bug report information.
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