[15:14:56] Hey! I'm writing a parser function with setFunctionHook. In the callback i need the page_id, where can i find the id? [15:17:23] You would be able to get a Title object from the Parser passed in... But $parser->getTitle() is deprecated [15:17:33] my computer is going a bit slow as it's updating a load of code repos [15:25:33] Yes. I found the deprecated getTitle. Docs say, i should use getPage. But getPage returns a PageReference which does not have a getId() or anything similar. [15:26:09] You'll almost certainly be able to turn a page reference into someone else though [15:30:29] I have a feeling that getPage actually returns a Title, which inherits from PageReference [15:30:43] https://doc.wikimedia.org/mediawiki-core/master/php/Parser_8php_source.html#l01069 [15:36:04] ah, ok [15:39:04] probably safest to future-proof it with Title::castFromPageReference() https://doc.wikimedia.org/mediawiki-core/master/php/classTitle.html#a136e37af32bdb7dffa45eaaaa3700315 [15:39:34] I was gonna say, should *at least* check it's a title (because it can also return null) [15:39:44] that too [15:43:17] sound good. many thanks [17:44:34] Hi [17:44:34] I've found multiple problems when trying to update a (private) MediaWiki from 1.35 LTS to 1.39 LTS, using PostgreSQL backend. [17:45:02] Where should I report them? https://www.mediawiki.org/wiki/Project:Support_desk or https://phabricator.wikimedia.org/ ? [17:51:36] amiconn: https://phabricator.wikimedia.org/project/profile/2339/ is the tag for problems that are specific to PostgreSQL. https://www.mediawiki.org/wiki/Project:Support_desk is likely a much better place than Phabricator to get help figuring out if something you have found to be problematic is actually a bug or is instead a documentation or other issue. [17:53:37] Well, running maintenance/update.php throws several errors during the 1.35 --> 1.39 update. I can work around this by editing the database accordingly, but only after the first (failed) update.php run, because one of the tables in question doesn't exist before. [17:54:04] Another problem where I have no idea whether it's related is that the sidebar is reset to default. [17:54:45] Luckily I did snapshot he VM beforehand, so rollback was easy... but of course not a proper solution. [18:22:04] amiconn: Depending on what they are... There's been a few postgres related fixes in 1.39 since the last point release [18:22:16] especially wrt database issues [18:23:00] https://github.com/wikimedia/mediawiki/compare/1.39.1...REL1_39