[03:54:35] hi guys [10:48:24] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#797 (i18n - c020fb3 : mwjames): The build failed. [10:48:24] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/i18n [10:48:24] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17896275 [11:41:55] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#799 (i18n - 91bb94b : Karsten Hoffmeyer): The build was canceled. [11:41:55] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/85884596d4d6...91bb94bce175 [11:41:55] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17896883 [11:43:42] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#800 (i18n - 918e667 : Karsten Hoffmeyer): The build was canceled. [11:43:42] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/91bb94bce175...918e667a94c8 [11:43:42] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17896950 [11:57:27] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#802 (i18n - 4c88603 : Karsten Hoffmeyer): The build was canceled. [11:57:27] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/4403e4d00c64...4c886033219d [11:57:27] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17897847 [12:42:27] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#807 (bug - 9671a9a : mwjames): The build was broken. [12:42:27] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/9671a9a50432 [12:42:27] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17902742 [15:13:35] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#811 (bug - f9442a4 : mwjames): The build is still failing. [15:13:35] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/2247194922b9...f9442a4d7578 [15:13:35] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17911356 [15:19:49] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#813 (bug - 5c69a29 : mwjames): The build failed. [15:19:50] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/f9442a4d7578...5c69a29d017a [15:19:50] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17911793 [15:40:43] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#815 (bug - b94bf2f : mwjames): The build is still failing. [15:40:43] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/5c69a29d017a...b94bf2f754be [15:40:43] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17913409 [17:53:32] I've unfortunately blown away a PageSchema because I edited it by hand and included some invalid markup. [17:54:35] Fatal error: Call to a member function children() on a non-object (mPageXML is not an object) [17:54:58] how can I find the last good version and restore it? [17:55:54] freephile: just go to the history page for that category page. [17:57:08] Yaron, thx, but that error's too [17:58:31] ? [18:11:51] Yaron: Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found [18:12:15] Oh, "error's" is a verb... [18:12:17] I'm trying to figure out how to join page with text and revision to actually look at the history from the database [18:12:32] Where is that warning coming from? [18:12:44] /var/www/html/wiki/extensions/PageSchemas/PageSchemas.classes.php on line 323 [18:13:00] It's strange that that's called on the history page... [18:14:46] Does it prevent the history page from displaying? It's only a warning, not a "fatal error". [18:20:39] Yes, bc then it hits a fatal on children() [18:20:49] SELECT /* WikiPage::pageData */ page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '14' AND page_title = 'Person' LIMIT 1 [18:21:04] gets me page_id and page_latest [18:21:42] so I'm trying to figure out the join so I can see into the correct table for content [18:24:00] I'm looking at the schema, and it seems like I need to relate "page" to "recentchanges" in order to get to "text" [18:33:58] freephile: is this code that you added to Page Schemas? I don't understand if you're talking about one problem, or two. [18:43:08] Yaron: I'm looking at the database schema for mediawiki in order to understand the proper query to "view" my PageSchema article [18:43:58] I don't understand - a page schema is just part of a category page. [19:18:18] Yaron: I hand-editted a Category page, and when I saved it, the page save operation did not complete due to a parser error (possibly because there was a bare ampersand in the markup) [19:18:46] Yaron: what's worse, I also can't view the history page to do a simple roll-back [19:19:14] Yaron: so I'm trying to wade through the database to find the history (which I've done now) [19:20:22] Yaron: and I'm working out the UPDATE and/or DELETE query to remove the bad revision [19:21:02] Alright... you could just disable the Page Schemas extension instead. [19:21:43] Yaron:I wish I thought of that [19:22:02] Ah. Well, hopefully it's not too late. [19:22:20] Yaron: not too late [19:23:58] (I used to like it, but now I find using phpmyadmin to be a collosal pain) [19:24:32] (compared to pgAdmin3) [19:30:10] Yaron: that was easy. disabled PageSchemas, fixed content, re-enabled PageSchemas: all is good [19:30:23] Yay! [19:31:23] Yaron: I put in General & Administrative by hand and that is what caused the problem [19:31:35] Ah! [19:31:44] using the & entity solved it [19:31:48] Right. [19:32:12] Page Schemas' parsing could probably be improved, to not crash on stuff like that. [19:32:17] it looks like there is a parser check in the code? [19:33:18] What do you mean by that? [19:34:10] (Whatever specific thing you're referring to, though, I probably don't know - it's been a while since I really looked at that code.) [19:36:18] There is a static function validateXML in the PageSchemas.classes.php [19:38:00] but it doesn't get called by other functions in the class... esp after line 326 $this->mPageXML = simplexml_load_string ( $pageXMLstr ); [19:38:54] I can now confirm that I don't know. :) [19:39:20] :) [19:39:52] https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FPageSchemas/efa6a842d194d7290bad084fc41256af6e28015f/PageSchemas.classes.php#L323 [19:40:30] Okay - so what's the issue? [19:40:32] I think if there was a self::validateXML with the proper catch/bail it would work [19:40:38] Oh, I see. [19:41:29] I have a vague memory of having given up on the validateXML() idea because the DTD for it was getting too complicated. [19:41:36] I could be wrong, though. [19:42:26] Do you do PHP/MediaWiki programming, by the way? [19:42:43] And if so, is there any chance I could persuade you to look into this issue? [19:43:25] I do....I'd love to try, but I'm already behind on my project goals for this week. Let me see if I can get some headway on the deliverables and circle back to this [19:46:39] Cool. [19:52:25] I'm looking at the validateXML() function again now, by the way - and now I remember why I gave up on it: it's because it needs to know about every potential XML tag, including tags that are defined by extensions that hook into PS; which goes against the spirt of PS as a generic framework. [19:53:04] I think the best solution, instead of checking whether it's valid PS XML, is just to have a simple check of whether it's valid XML. [19:53:41] It could be that a simple try/catch statement somewhere is all that's needed. [20:04:16] yes [20:05:45] btw, disabling PS and re-enabling it causes the article (Category:Foo) to not have a recognized schema even if the content of Category:foo is PS XML [20:07:50] I visited action=editschema and clicked save, and it saved the article with the pp_propname 'PageSchema' [20:21:32] Yeah, it makes sense that a resave would be necessary. [22:19:44] Is there a way to accomplish something like this for a page with subobjects, without having to create a template with another query in it? http://olywiki.asciiking.com/wiki/index.php?title=Sandbox&oldid=1777 [23:18:15] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#820 (master - 47ed6eb : Jeroen De Dauw): The build has errored. [23:18:15] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/97acc3f31093...47ed6eb0a8f5 [23:18:15] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17930075 [23:51:49] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#820 (master - 47ed6eb : Jeroen De Dauw): The build has errored. [23:51:49] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/97acc3f31093...47ed6eb0a8f5 [23:51:49] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/17930075