Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query error: 1054 Unknown column 'Array' in 'where clause' (ApiStashEdit::checkCache) #4

Closed
kghbln opened this issue Aug 5, 2015 · 5 comments

Comments

@kghbln
Copy link
Member

kghbln commented Aug 5, 2015

On about every second edit of the [annotation health](https://wikiapiary.com/wiki/Semantic_statistics/Annotation_Health page) I get this error message. To save the page I have to do a trivial change between the first and last char of wikitext.

A database query error has occurred. This may indicate a bug in the software.

    Query:
    SELECT 1 FROM `page` WHERE (Array) OR (Array) OR (Array) LIMIT 1
    Function: ApiStashEdit::checkCache
    Error: 1054 Unknown column 'Array' in 'where clause' (db-local)

@thingles I guess it will be nice to have a stack trace for this.

@kghbln
Copy link
Member Author

kghbln commented Oct 16, 2015

That's a new variant:

    Query:
    SELECT 1 FROM `page` WHERE (Array) LIMIT 1
    Function: ApiStashEdit::checkCache
    Error: 1054 Unknown column 'Array' in 'where clause' (db-local)

@mwjames
Copy link

mwjames commented Oct 16, 2015

[0] give some hints as to what ApiStashEdit actually does (apparently you can disable it [1]) and it seems someone made a 1.25 backport [2].

[0] https://phabricator.wikimedia.org/T113189
[1] https://www.mediawiki.org/wiki/Manual:$wgAjaxEditStash
[2] https://gerrit.wikimedia.org/r/#/c/244453/

@kghbln
Copy link
Member Author

kghbln commented Oct 16, 2015

Thanks a ton for the info! Apparently not backported to the MW 1.25.x branch. One of MW's finest hours?

@kghbln
Copy link
Member Author

kghbln commented Oct 16, 2015

Ah, no. This was one of my finest moments. The backport was not referenced to the issue and I forgot about [2] the moment I hit save. :(

@jthingelstad
Copy link
Member

Closing now with upgrade to 1.25.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants