Page MenuHomePhabricator

ResourceLoader: PHP warning "An error occurred while invoking the map callback"
Closed, ResolvedPublic

Description

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.22wmf3/includes/resourceloader/ResourceLoaderFileModule.php on line 611

Warning: array_map() [<a href='function.array-map'>function.array-map</a>]: An error occurred while invoking the map callback in /home/wikipedia/common/php-1.22wmf3/includes/resourceloader/ResourceLoaderFileModule.php on line 611

Seems this hasn't been reported before, or if it was, maybe closed.

The number of these warnings seem to have incrased quite a bit with 1.22wmf3 being deployed to the testwikis


Version: 1.22.0
Severity: normal
Whiteboard: deploysprint-13
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=49757

Details

Reference
bz47844

Event Timeline

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

It was previously mentioned in bug 42151.

(In reply to comment #0)

The number of these warnings seem to have incrased quite a bit with 1.22wmf3
being deployed to the testwikis

Reedy: Any approx. numbers before and after?
"quite a bit" does not help to judge whether this is important or not...

Reedy: Any approx. numbers before and after?
"quite a bit" does not help to judge whether this is important or not...

The warning can happen, when the callback throws a exception. In line 611 (now 607) the method $this->readStyleFile is called, which can throw a exception.

Are there log entries in group 'resourceloader' which have the text "style file not found:"?

Reedy: per bug 49757 (better monitoring of errors), we can use this specific issue as a test case.

Can you determine if the number of these has gone up/down since you first reported it in April?

Reedy: Can you determine if the number of these has gone up/down since you first reported it in April?

Change 109956 had a related patch set uploaded by Umherirrender:
Unroll array_map in ResourceLoaderFileModule::readStyleFiles

https://gerrit.wikimedia.org/r/109956

Change 109956 merged by jenkins-bot:
Unroll array_map in ResourceLoaderFileModule::readStyleFiles

https://gerrit.wikimedia.org/r/109956