[13:59:37] Hi, when parsing some text I'm missing the section numbers. This behavior doesn't happen when using the same commands on MW's eval shell. [13:59:57] Any ideas as why this happens and how to fix this? [14:04:54] I've pasted the code snippet i'm using here https://dpaste.org/BNhH [14:57:46] I'm building a table using https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) -- does anyone know if there is a way to add a sortbottom tally row? [16:44:53] !2.0 [16:44:53] No, seriously, 2.0. Have a tracking bug: https://phabricator.wikimedia.org/T72000 [16:45:18] lol declined [16:54:33] I've narrow down the issue I'm facing with the parser, added expected results and what I'm getting on the paste https://dpaste.org/RsuL/slim [16:54:53] If anyone can take a quick look on this, it would be much appreciated :) [17:19:10] Hello all...Is there a way to display an entirely different wiki page if someone is using a mobile? [17:20:25] for example, instead of viewing landingpage.com, the mobile user would be taken to landingpage-mobile.com [17:50:33] Amie: its better to go something like m.landingpage.com vs landingpage.com [17:50:51] !mobile [17:52:22] I'm confused by your reply. Are you saying that if I create a m.landingpage.com, that page will automatically be executed when viewing on a mobile? [17:56:06] Amie: I was making a suggestion about how you set it up. [17:56:25] !e MobileFrontend [17:56:25] https://www.mediawiki.org/wiki/Extension:MobileFrontend [17:56:49] Okay, thank you. My problem is how do I get the m.landingpage.com to display when viewing on a mobile app. [17:57:50] See MobileFrontend [17:59:09] got it, thanks. I'll go read that again. [18:09:47] Amir1: If this is new and not test specific might need to block train to avoid regressin https://phabricator.wikimedia.org/T258628 [18:16:48] hi all, what's the best way to call an external script from common.js? [18:19:47] wmat: do you mean which method to use for making an http request? e.g. XHR, fetch(), jQuery.. [18:20:06] It's your call really. There's no requirement either way. Any standard JS is supported. [18:20:24] If you're interacting with MW's own api.php, you may want to use the mw.Api class to simplify your code. [18:20:48] otherwise, it's your choice :) jQuery.ajax() is a fairly simple one and offers cross-browser support. [18:20:53] can I just do something like ;$.getJSON("https://some.external.script.js); [18:21:00] sure thing. [18:21:54] Do beware of the privacy and security implications. It means that external.script will know all your users by IP address, browser, geo location, and possible which article and when and from what decide they were doing so. [18:22:02] (due to referer and such) [18:22:21] If this is for Wikipedia, then unless it's for your personal script, this would not be allowed. [18:22:21] Is it possible to have a page link follow redirects and display the redirected page name? For example, if User:Someone redirects to User:SomeoneElse, would it be possible to make [[User:Someone]] show "SomeoneElse" in a page? [18:25:40] Krinkle: thx, this is for a corporate wiki for analytics purposes [19:06:51] Hi all, I posted a question here yesterday about an error in one of our wikis trying to delete a specific image that has a "missing" entry in its File page history due to the timestamp for the missing entry being a duplicate of the previous change. We tried various troubleshooting methods to no avail. Anyone have any insight into this kind of [19:06:52] problem? I can provide whatever details that might help. [19:49:31] Krinkle: this looks like SDC [19:50:17] Amir1: The leaf node is Wikibase/repo and the `null` was not passed in from Mediainfo from what I can tell. [19:50:47] but if the getDocUrl() call is bad, can pass on to SDC :) [19:52:20] yeah, I thought it's causing errors because Mediainfo wouldn't have entity uril manager [19:52:22] but [19:52:47] it seems it's not like that, it looks like an impossible error again [19:53:07] uri manager is never null from what I can see in the code [20:00:35] Hi - we have a crashed MediaWiki 1.19.0 - I can access the mysql database. How would I migrate the database to a new server? I see there is only one MYD MYI for searchindex the rest are FRM files ... :) [20:06:35] Not really a MW specific question, but... [20:06:37] >Mount the slave drive. Shutdown MySQL. Copy over the content from the old /var/lib/mysql* over to the live disk. Start MySQL. [20:06:42] Something like that would work [20:06:50] If you take slave disk as the old server, and live disk as hte new one [20:10:40] can I do this to another mysql server - I did a fresh mediawiki install on another server [20:11:05] Yes [20:11:41] I wouldn't have bothered doing a fresh mw install, it's probably not going to help much [20:12:13] if I do a fresh install and then copy over the mysql files then restart apache - i should get the wiki? are there any other files to copy [20:12:32] It depends. If your mysql crashed, you might need to repair the files [20:12:40] Uploads aren't in the database [20:12:45] Files are on disk [20:13:04] which other files do I need to copy? [20:13:13] It depends on your setup [20:14:21] !backup [20:14:21] See http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki for information about backing up your wiki. For restoring your wiki, see http://www.mediawiki.org/wiki/Manual:Moving_a_wiki#Import_the_database_backup for more. If you don't have database access, try !grabber. [20:14:43] I tried a mysqlcheck and I get my_wiki.archive [20:14:44] Error : Unknown table engine 'InnoDB' [20:14:44] error : Corrupt [20:14:44] my_wiki.category [20:14:44] Error : Unknown table engine 'InnoDB' [20:14:45] error : Corrupt [20:14:57] Again, this isn't a mediawiki problem [20:15:07] ok I can ask in the mysql irc - sorry [20:15:08] You can find help on how to deal with mysql issues online [20:15:18] I understand [20:15:19] Plenty of guides [21:57:22] Hi - I've moved the database successfully after installing a new mediawiki - non of the content appears from the searchindex table - any suggestions? [21:57:41] moved from windows to a linux server [22:00:49] what do you mean none of the content appears from the search index table? [22:06:58] I imported the mysqldump of searchindex into the new wiki - I guess that won't work? sorry ...It's obvious - I'm not sure the proper procedure since I do not have a proper working system to move things from [22:08:45] not sure if there are any gurus that could help on the system? is there a way to ask for help if we are willing to pay? perhaps get an estimate? [22:19:52] gvvg: search index can be rebuilt if the wiki content is good [22:20:21] oh amazing - how is that done? is there a link? [22:20:43] do I need to copy stuff from the old LocalSettings? like the secret key? [22:23:04] so I installed mediawiki on new server [22:23:19] imported the searchindex into the mysqldatabase [22:24:47] So search index is a what is known as a meta table, its contents are populated from other stuff. What is the condition of the original wiki? [22:25:40] Betacommand: the original wiki is not functional - it was installed by a consultant using denwer it's all in russian - apache won't start and it is on a really old windows 2008 server [22:26:06] is the database intact? [22:26:24] I can access it - can you give me any commands in mysql to see ? [22:26:50] select * from page limit 5; [22:28:29] it says wi_wiki.page doesn't exist [22:29:26] show tables; [22:29:57] sorry it says: Error 1146 (42S02): Table 'my_wiki.page' doesn't exist [22:30:45] are you connected to the right database? [22:30:51] or there's a prefix [22:31:05] that too [22:31:21] the show tables shows archive....watchlist and I do see page [22:32:04] but it seems like page.frm is the only file in the mysql data directory [22:32:12] Ok that means that we should have an intact wiki database. Do you know what version you had? [22:32:22] 1.9.0 [22:32:28] but the select gave an error [23:28:24] FYI for those reading the chat, it looks like the underlying files where deleted/missing causing mysql to see the tables, but not the contents