Page MenuHomePhabricator

Various ResourceLoader PHP Warnings
Closed, DeclinedPublic

Description

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...


Version: 1.21.x
Severity: normal

Details

Reference
bz42151

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:08 AM
bzimport set Reference to bz42151.
bzimport added a subscriber: Unknown Object (MLST).

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.

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.