Page MenuHomePhabricator

EP: An error occurred while invoking the map callback
Closed, ResolvedPublic

Description

PHP 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.20wmf9/extensions/EducationP
rogram/includes/pagers/EPOAPager.php on line 0

Multiple occurances in WMF error logs


Version: unspecified
Severity: normal

Details

Reference
bz39207

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:07 AM
bzimport set Reference to bz39207.

(In reply to comment #0)

PHP 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.20wmf9/extensions/EducationP
rogram/includes/pagers/EPOAPager.php on line 0

Multiple occurances in WMF error logs

This may be an upstream bug in PHP, depending on whether the error that triggered this was an actual error or an exception thrown from the callback. See https://bugs.php.net/bug.php?id=55416

No exception should be thrown here. So yes it sucks it messes up the message.

Rewritten as foreach after not seeing anything obviously wrong so we'll get a clearer error: https://gerrit.wikimedia.org/r/#/c/18978/

(In reply to comment #2)

No exception should be thrown here. So yes it sucks it messes up the message.

Rewritten as foreach after not seeing anything obviously wrong so we'll get a
clearer error: https://gerrit.wikimedia.org/r/#/c/18978/

Merged into master.