Page MenuHomePhabricator

Can't open [[Image:Foo.png]] directly
Closed, ResolvedPublic

Description

Author: pkchan+bug=mediawiki

Description:
Symptom:
Upon clicking a link to [[Image:Foo.png]], the browser gives the following php
error message:

Fatal error: Call to a member function on a non-object in
/var/srv/www/investor-wiki/includes/ImagePage.php on line 182


Version: 1.5.x
Severity: normal

Details

Reference
bz3643

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:50 PM
bzimport set Reference to bz3643.
bzimport added a subscriber: Unknown Object (MLST).

pkchan+bug=mediawiki wrote:

Patch of includes/ImagePage.php for fixing this bug.

The problem is found to be caused by an apparent syntax error in
includes/ImagePage.php . This patch attempts to patch that syntax error.

Attached:

Seems to trigger if $wgResizeImages is off.

Fix applied to REL1_5 and HEAD, will be included in 1.5.1.

  • Bug 3740 has been marked as a duplicate of this bug. ***