Page MenuHomePhabricator

A database query syntax error has occurred while viewing imbedded pics.
Closed, InvalidPublic

Description

Author: Raziel_pawns

Description:
Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "LocalFile::loadFromDB". MySQL returned error "1054: Unknown column 'img_sha1' in 'field list' (localhost)".

This bug was reported when attempting to view any page with an imbedded image.
I would like to fix it if possible, however Im unsure specifically what has caused it.


Version: unspecified
Severity: critical
OS: Windows XP
Platform: Other

Details

Reference
bz11470

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 9:54 PM
bzimport set Reference to bz11470.
bzimport added a subscriber: Unknown Object (MLST).

You haven't run the requisite database upgrades. At a command line, type php maintenance/update.php.

Please direct any further inquiries to the MediaWiki IRC channel (MediaWiki-General on irc.freenode.net) or mailing list (mediawiki-l@lists.wikimedia.org)

Bug is INVALID.

Raziel_pawns wrote:

How do i run it? my php server is located externally, and the url to this file doesnt work obviously.

robchur wrote:

See also http://www.mediawiki.org/wiki/Manual:Upgrading_MediaWiki for full instructions regarding the upgrade process, including alternatives for use in environments without direct shell access.