Page MenuHomePhabricator

XTools: Trying to get info about a talk page gives 500 internal server error
Closed, ResolvedPublic2 Estimated Story Points

Description

The new version of the article info page doesn't seem to handle talk pages well.

https://tools.wmflabs.org/xtools-dev/articleinfo/enwiki/Talk:Rudy%20Giuliani currently gives:

500: Internal Server Error
An error has occurred within xTools.

The server said: An exception occurred while executing 'SELECT IF(term_type = 'label', 'label', 'description') AS term, term_text FROM wikidatawiki_p.wb_entity_per_page JOIN wikidatawiki_p.page ON epp_page_id = page_id JOIN wikidatawiki_p.wb_terms ON term_entity_id = epp_entity_id AND term_language = 'en' AND term_type IN ('label', 'description') WHERE epp_entity_id = UNION SELECT pl_title AS term, wb_terms.term_text FROM wikidatawiki_p.pagelinks JOIN wikidatawiki_p.wb_terms ON term_entity_id = SUBSTRING(pl_title, 2) AND term_entity_type = (IF(SUBSTRING(pl_title, 1, 1) = 'Q', 'item', 'property')) AND term_language = 'en' AND term_type = 'label' WHERE pl_namespace IN (0,120 ) AND pl_from = ( SELECT page_id FROM page WHERE page_namespace = 0 AND page_title = 'Q' )': SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION SELECT pl_title AS term, wb_terms.term_text ' at line 7

Event Timeline

DannyH set the point value for this task to 2.