[00:47:31] Monster discussion about me trying to get gd installed in #openbsd. Got told to RTFM, others came to my defensive. More folks chiming in than I've ever seen in that channel! I think I have the X stuff installed now. I'll try a thumbnail in MediaWiki to see.... [00:52:51] Crud... [6c0387e0b7917ce1d402de4e] 2017-10-26 00:52:10: Fatal exception of type "DomainException" something else to fix... ;-) [01:05:17] hmm I wonder if I need to configure an openbsd httpd equilivent of .htaccess for the uploads to work? [01:19:00] GumShoe: you can configure MW to use imagemagick instead of gd [01:19:28] (I hope it doesn't depend on KDE or somesuch) [01:20:15] $wgUseImageMagick = true; [01:20:34] Right now my pressing problem is uploading a file. [01:20:37] and adjust $wgImageMagickConvertCommand if needed [01:20:40] Crud... [6c0387e0b7917ce1d402de4e] 2017-10-26 00:52:10: Fatal exception of type "DomainException" something else to fix... ;-) [01:21:52] I'm using openbsd. I see that a .htaccess was installed in images. Trying to learn how to enable php uploads in openbsd. I'm using openbsd httpd not apache [01:22:10] we need more info about this exception [01:22:13] !debug [01:22:13] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [01:23:02] basically flip $wgShowExceptionDetails = true; [01:24:06] Hey all. I need some assistance. Is there anywhere EASY to find an old version of a Mediawiki extension? I have tried to dig through the github for the extension and didn't see anything, and the download on the main mediawiki website only offers the most recent version [01:24:40] MaxSem: I don't have wgShowException... can I just add that to LocalSettings.php [01:25:07] GumShoe: yep, to the bottom. that's where all the configuration should go [01:25:47] ElmerG: source control is your best bet, unless there's a tarball somewhere. which extension is this? [01:26:22] I'm trying to find a version of tabber that is compatible with mediawiki 1.23.9 (an old version, but apparently all that will install on a friend's website). [01:29:08] Wowza lot's more debug.... https://pastebin.com/kwaMgZJW [01:30:28] GumShoe: it even tells you what to do:P [01:30:50] searching php allow_url_fopen [01:31:47] ElmerG: looks like it's not tagged for MW releases, so your best bet would be to try some revision around the time MW 1.23 was relased (2014-04-14) [01:33:50] Where do I go to GET the revision? I cannot find ANYTHING that isn't the most recent version. I am not at ALL familiar with how github and stuff works. [01:34:31] * ElmerG is not a server programmer; I can maintain mediawiki when it's basic stuff, and I do CSS design, but when I search for tabber "mediawiki version here" I get NOTHING useful. [01:35:49] Check it out! http://wiki.homeamation.net/index.php?title=File:CatAssTrophy.jpg [01:36:11] now to try a thumbnail of it .... [01:36:56] if you can't use git and don't want to learn, the only option left is the earliest release at https://github.com/HydraWiki/Tabber/releases [01:37:29] no warranty that it will work, but for later ones the chance is lower :P [01:37:36] I would be happy to learn, but usually when asking for help I get told things like 'check version control' and such and, when I ask for clarification... get nothing back. [01:39:05] git clone https://github.com/HydraWiki/Tabber.git && cd Tabber && git checkout e98ee46e6b369babad7d21c8156d470bf70dd81d [01:41:37] MaxSem: Check out http://wiki.homeamation.net/index.php?title=Gdtest it displays a thumbnail. gd or ImageMagick is necessary for thumbnails correct? Looks like it's working! :-) [01:49:56] GumShoe: client-side scaling. it just serves the original in the absense of means to scale it [01:50:44] Hmm all this work I've been doiong to install gd is because the install said it was missing and thumbnailing wouldn't work. [01:51:10] it didn't lie [01:51:46] Ohh! So I can wag my tail that I accomplished my goal to get it working on a openbsd vm? [01:51:56] imagine you uploaded a bunch of flag images and used them for 20px tiny flag icons [01:52:16] users wouldn't be happy to receive full sized images that can be quite large [01:55:31] so if gd wasn't working it would show the thumbnail anyway? Just scaled and the user would be downloading the HUGE original? Or the thumbnail is resized smaller. [01:56:19] see the HTML, it serves the original [01:56:40] you still may want to install gd or imagemagick :) [01:56:47] sorry, gtg [01:57:59] Crap! So I have to stop wagging my tail? gotta run late for another appointment, but this is what I want to be doing. Been working on it most of the day [03:56:57] I'm gonna get gd installed. Check it's installed. and now I ran phpinfo and see gd enabled. [03:58:16] the gd.ini file wasn't present in the php file. I found a sample on the vm and added a symbolic link. restarted php fpm and there ya go! [04:05:35] and by there ya go I see that gd is enabled now by way of the phpinfo() Might still need some configuration for gd in mediawiki for thumbnails. [04:12:20] This page says I can use gd or ImageMagic. It gives instructions for ImageMagic but not for gd https://www.mediawiki.org/wiki/Manual:Installing_third-party_tools [04:16:41] At any rate I enabled ImageMagick and now I have 120px... 300px... 450px... and 600px... images [04:20:54] come on! Now I can't log in again! :-( please one more hurdle before bed... [04:39:14] anybody home? Hey
 works, but not   I'm using mw 1.29.1 reading with some confusiion https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
[04:40:29] 	 hi GumShoe
[04:40:39] 	 how did you install MediaWiki? git? tarball?
[04:40:49] 	 And do you have Python installed? syntaxhighlight depends upon it
[04:41:47] 	  $wfLoadExtension( 'Highlightjs_Integration' ); broke it.
[04:41:52] 	 I installed from tar
[04:42:28] 	 python -v .... not installed
[04:42:43] 	 er
[04:42:45] 	 it should be
[04:42:56] 	 wfLoadExtension( 'SyntaxHighlight' );
[04:43:19] 	 pkg_info says IO have python-2.7.14 and python-3.6.2 installed.
[04:43:51] 	 ok, and does the vendor/symfony/process directory exist?
[04:44:38] 	 umm... I dunno
[04:45:11] 	 guess I'm missing a sym link ehh?
[04:47:52] 	 can you elaborate on vendor/symfony/process directory exist
[04:49:53] 	 in the main MediaWiki directory there's a "vendor" directory. Inside that there should be a "symfony" directory, and inside that one there should be a "process" directory with some php code in it
[04:50:37] 	 I'm there
[04:50:55] 	 so it exists?
[04:51:04] 	 and since you have python installed, it should just work
[04:51:51] 	 well pkg_info says I have two versions installed. However just entering 'python' doesn't bring up the interperter as I would expect.
[04:52:27] 	 can I run from this dir? PhpExecutableFinder.php looks interesting.
[04:53:55] 	 uhh
[04:53:56] 	 I get 200 but a blank screen
[04:54:11] 	 !blankpage
[04:54:11] 	 A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see .
[04:54:47] 	 you're not supposed to run anything directly from the symfony/process directory. it's just something that sometimes people accidentally delete without realiing it
[04:54:52] 	 realizing*
[04:54:58] 	 blank page on the PhpExecutableFiinder... the wiki is working...
[04:55:40] 	 I dont understand. What exactly is the problem you're having?
[04:56:09] 	 syntax highlighting. 
[04:56:21] 	 you suggested I need python
[04:56:54] 	 I have it installed according to pkg_info but it looks like it's installed incorectly as 'python' does't give me the interperter.
[04:57:14] 	 please be more specific about what exactly isn't working. what are you inputting? what are you getting out? is there anything in your error log?
[04:58:07] 	 check this page http://wiki.homeamation.net/index.php?title=Gdtest
[04:58:49] 	 http://wiki.homeamation.net/index.php?title=Special:Version
[04:58:52] 	 you don't have the extension installed
[04:59:05] 	 you need to add wfLoadExtension( 'SyntaxHighlight' ); to your LocalSettings.php
[05:02:17] 	 with a preceding $ ??
[05:02:24] 	 no
[05:04:00] 	 that didn't work, but this did  wfLoadExtension( 'SyntaxHighlight_GeSHi' );
[05:05:05] 	 my bad, I forgot the _GeSHi part
[05:05:25] 	 so its working now?
[05:05:41] 	 I've been working off a couple pages maybe this one should be deprcated? https://www.mediawiki.org/wiki/Extension:Highlightjs_Integration
[05:06:03] 	 yup. syntax highlighting working now. Thanks.
[05:06:39] 	 that is something entirely different
[05:08:40] 	 one little mite... I copy pasted the python example with lang=python and line numbrs. No colors,  and no line numbers.... 
[05:11:54] 	 is there anything in your error log?
[05:14:36] 	 Doesn't appear to be. I also pasted in the C example with a blue border. It works. http://wiki.homeamation.net/index.php?title=Gdtest
[05:16:22] 	 uhh
[05:16:26] 	 it doesn't?
[05:16:33] 	 the code isn't syntax highlighted
[05:21:18] 	 this error leads me to believe it's because python isn't being picked up in the path.
[05:27:57] 	 I made a symbolic link ln -s /usr/local/bin/python3.6 python
[05:28:43] 	 now python runs. Still no joy for the line numbers. Maybe I need to inform mediawiki that I have python?
[06:07:51] 	 how do i diagnose why i can't save a page? i thnk it might be a parsoind issue. it was working this morning but seems to have stopped now
[06:09:40] 	 no its not parsoid
[06:09:47] 	 it happened when saving a normal page
[06:10:07] 	 bah, it saved. no idea whats going on
[09:37:56] 	 hi
[09:39:00] 	 i am using mediawiki 1.19, i would like to install Math extention (since removed from core), and it looks impossible to download this version : https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Math
[09:39:24] 	 how to get the Math extention for mediawiki version 1.19 ?
[09:40:17] 	 i am using debian jessie and didn't found any package with this extention 
[10:24:50] 	 Daneel, 1.19 is unsupported since 2015 (I really hope Jessie backports and provides security fixes.) hence not supported by ExtensionDistributor
[10:25:06] 	 Daneel, the git code repository for the Math extension has a "REL1_19" branch which you could checkout.
[10:25:16] 	 It saws its last update in early 2012.
[10:25:41] 	 or maybe better: update to a supported and secure MediaWiki version.
[11:02:40] 	 Hi everyone! Jolan Wuyts from Europeana here. I had a quick question about the wikidata SPARQL query service, anyone online who could be of assistance?
[11:08:28] 	 !ask | JolanWuyts
[11:08:28] 	 JolanWuyts: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :)
[11:08:36] 	 though #wikidata might be a better venue
[11:09:01] 	 excellent, thanks! I'll repost the question in #wikidata
[11:09:50] 	 The Europeana SPARQL endpoint was federated into the SPARQL API, albeit a few years back. When trying to create a query that calls on the Europeana SPARQL API through the Wikidata query service, I get the error "Unknown error: Service URI http://query.wikidata.org/bigdata/namespace/wdq/sparql.europeana.eu is not allowed"
[11:10:21] 	 my SPARQL syntax seems in order, using the SERVICE parameter to call upon the Europeana endpoint at sparql.europeana.eu
[11:11:06] 	 Which would leave the possibility that the Wikidata Query service isn't connected to the Europeana SPARQL endpoint (anymore). Is there a way this can be checked, or is there someone who knows the status of this?
[11:11:50] 	 relevant document: Europeana is mentioned on the list of federated API endpoints in the SPARQL query service user manual: https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#Federation 
[11:15:05] 	 i'm using /mvs/ for the first time to try to edit wikipedia.. my login is refused
[11:15:10] 	 error is "Insecure Request Forbidden - use HTTPS "
[11:16:26] 	 mvs doesn't ask for the scheme (http:// or https://)
[11:16:43] 	 has anyone used mvs on wikipedia?
[11:18:41] 	 andre__, thank you for your answer
[11:26:51] 	 Need help: Looking to scrape a custom built totally old and gross CMS and export 10s of thousands of html pages into MediaWiki
[11:26:58] 	 cybrNaut: and what is "/mvs/"?
[11:27:38] 	 looking for any guidance / help / code that would help our devs write a script
[11:28:15] 	 (no one here really *knows* mediawiki, we just have one installed)
[11:28:34] 	 any guidance on using a wiki as an archive would also be super helpful
[11:29:52] 	 Finally - if there are any freelancer mediawiki experts in the channel who maybe want to give some advice at some point in the future, would be good to connect
[11:56:44] 	 Hi All! Why could it be that my Special:WantedPages is empty?
[11:58:12] 	 andre__: mvs is a CLI tool to avoid using the GUI web interface.  It fetches the article and loads it in your text editor of choice, and after the edits it posts the changes.  see https://en.wikipedia.org/wiki/Help:Text_editor_support#Command-line_tools
[11:58:28] 	 kuznero: Updates are handled by the job queue, make sure you have it set up correctly: https://www.mediawiki.org/wiki/Manual:Job_queue
[11:59:30] 	 andre__: thanks! I am using official docker image, I guess it is not enabled by default in there
[12:01:49] 	 I'm testing syntax  on this page; http://wiki.homeamation.net/index.php?title=Gdtest It's working except for color and line numbering. Examples pulled from https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
[12:04:38] 	 openbsd 6.2 mw 1.29.1
[12:05:01] 	 andre__: even after I am running `$ php ./runJobs.php` I get nothing...
[12:06:31] 	 Is Pygments distributed with mediawiki? 
[12:06:55] 	 What is wanted page? If I have [[Something]] that does not have corresponding page (a red link) - is that a wanted page?
[12:13:39] 	 Hmm pkg_add pkg_add py3-pygments then restart httpd. Still no color or line numbers.
[12:17:00] 	 Are there any special requirements for wanted pages to be generated? I can see that it takes a little while before templates get re-rendered after it is updated. So, I would assume it is part of the same periodic job that is running... Perhaps it is simply disabled in settings?
[12:19:03] 	 Cannot find anything remotely relevant in LocalSettings.php... Anybody can help?
[12:29:08] 	 Is there any way to find source for Special:WantedPages?
[12:32:37] 	 kuznero, yes. Take the source code and search for it. /includes/specials/SpecialWantedpages.php, /includes/specialpage/QueryPage.php, /includes/specialpage/SpecialPageFactory.php, /includes/specialpage/WantedQueryPage.php
[12:39:52] 	 andre__: that is a bit difficult as last I saw some php was 15 years ago :(
[12:40:33] 	 I can see there is something like WantedPagesThreshold, which can be part of LocalSettings.php, can that affect it?
[12:42:36] 	 Can it potentially be related to the fact that I am running with sqlite database?
[12:44:16] 	 Is there a way to see errors that occur to mediawiki in general?
[12:47:38] 	 Seems like it is just not in the database. Presentation side is very clean - most likely nothing is coming out of database. Now how to check what is putting it into the database?
[12:55:59] 	 ok, I am giving up now...
[13:04:48] 	 HI! Can any deploy patch: https://gerrit.wikimedia.org/r/#/c/386311/
[13:21:56] 	 Hey guys, is there any way I could embed a PDF of a file that's stored on our local network?
[13:22:36] 	 The thing is they cannot be stored on the mediawiki as they are used in our documenting system
[13:25:32] 	 I posted some log from root@glitch0 /var/www/logs # grep -i pygments * https://pastebin.com/Xp4ULtBX
[13:26:25] 	 Trying to figure out why Extension:SyntaxHighlight color and line numbering doesn't appear to be working.
[13:28:27] 	  "GET /load.php?debug=false%26lang=en%26modules=ext.pygments%257Cmed ... y=styles%26skin=vector HTTP/1.1" 200 0   -- 200 OK right? So pygments is being seen?
[13:29:01] 	 This is my test page http://wiki.homeamation.net/index.php?title=Gdtest
[13:34:24] 	 GumShoe, I had the same issues, I just decided to use the one embedded in VisualEditor and that worked fine for me
[13:36:08] 	 ll ./extensions/SyntaxHighlight_GeSHi/pygments/pygmentize
[13:36:41] 	 -rwxr-xr-x  1 www  www   822K Aug 23 10:12 ./extensions/SyntaxHighlight_GeSHi/pygments/pygmentize
[13:37:16] 	 I'll check out VisualEditor sounds intriguing anyway...
[13:39:02] 	 I tested... and pygmetize executes ... from bash
[13:39:27] 	 are your PHP PATH variables configured correctly?
[13:40:18] 	 I don't know if PHP PATH variables are configured correctly
[13:43:21] 	 GumShoe, hosting on Linux?
[13:43:28] 	 looks like it anyway
[13:43:45] 	 openbsd 6.2
[13:45:15] 	 Make yourself a php info file, then check for your Webserver's Environment, and the first field should be PATH
[13:45:24] 	 you can configure that in your php.ini
[13:45:33] 	 eg /etc/php/7.0/apache2/php.ini
[13:48:26] 	 what m I looking for in .ini ?
[13:54:10] 	 This page https://www.mediawiki.org/wiki/Extension_talk:SyntaxHighlight shows $wgPygmentizePath = '...\\cgi-bin\\pygmentize.pyc'; which I don't have....
[13:59:00] 	 Do I need wfLoadExtension( 'Highlightjs_Integration' ); ??? It's not installed.
[14:00:32] 	 If I'm reading https://www.mediawiki.org/wiki/Extension:Highlightjs_Integration corectly it's one or the other...
[14:01:43] 	 adding the wfLoadExtension line is how you install an extension (assuming you've already downloaded it)
[14:03:34] 	 I'm trying to get  Syntax Highlighting working. I'm not seeing color or line numbers on my test page taken from MW examples http://wiki.homeamation.net/index.php?title=Gdtest
[14:05:20] 	 So, the syntax highlight extension used on mediawiki.org is a different one
[14:05:35] 	 Extension:SyntaxHighlight is the one installed at MediaWiki.org
[14:06:00] 	 If you're comparing against general examples on mediawiki.org
[14:06:12] 	 That's the one I'm using. That I enabled in LocalSettings.php.... 
[14:06:52] 	 Using examples from this page https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
[14:07:27] 	 hmm, it is indeed listed as installed at http://wiki.homeamation.net/index.php?title=Special:Version so it should work
[14:08:11] 	 GumShoe: I think maybe you have the wrong lang selected
[14:08:34] 	 Instead of  try doing 
[14:08:38] 	 It has this Category: Category: Pages with syntax highlighting errors
[14:09:57] 	  This syntax on the python should give some color and line numbers
[14:10:04] 	 oh, you have other examples on that page with other languages, so that can't be the issue
[14:10:05] 	 yeah
[14:11:09] 	 Maybe its having problems executing pygments or something
[14:11:25] 	 You can try enable mediawiki debug logging to see if there is anything interesting in there when you render the page
[14:15:01] 	 ?? $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log"; ??
[14:17:12] 	 !debug
[14:17:12] 	 For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms
[14:17:47] 	 yeah.
[14:18:25] 	 file doesn't exist ... 
[14:18:45] 	 you'll have to change the path to soemthing writable by your webserver
[14:18:57] 	 what do you mean by !debug
[14:19:24] 	 The !debug was to make wm-bot show the help text, because i couldn't remember if that was the right variable name
[14:21:19] 	 Hmm pointed it to /tmp/mw.log ... nope
[14:22:20] 	 Did anybody have issue with empty wanted pages? I don't even have a clue where to look...
[14:23:43] 	 kuznero: Totally empty (like just a blank white page)?
[14:24:14] 	 GumShoe: You also have to visit your mediawiki install before mediawiki will create the logfile (it creates it on first event to log)
[14:24:25] 	 kuznero: If so, usually means php fatal error
[14:24:30] 	 !blankpage | kuznero 
[14:24:30] 	 kuznero: A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see .
[14:24:45] 	 bawolff: no no, just no pages, but it says that there no wanted pages
[14:24:59] 	 it is not completely blank
[14:25:42] 	 so, it is not a fatal error, it runs well, just no wanted pages
[14:25:44] 	 Oh, wanted pages like Special:WantedPages
[14:25:50] 	 yes
[14:25:55] 	 sorry, i thought you meant the 404 page and got confused
[14:26:01] 	 I did a ^F5 on my test page.... Not sure what you mean by visit mw install ...
[14:26:14] 	 kuznero: Is $wgMiserMode set to true or false ?
[14:26:48] 	 GumShoe: that should be enough to get at least some log entries. Actually making an edit though is probably neccesary for the syntax highlight log entries, as you have to force mediawiki to re-render the page
[14:27:13] 	 kuznero: If $wgMiserMode is not set in LocalSettings.php, than its probably false (which is default)
[14:28:06] 	 kuznero: If $wgMiserMode is set to true, you have to run updateSpecialPages.php . If its set to false, than Special:Wantedpages should just work - make sure there actually are wanted pages on your wiki (I think only wanted pages in the content namespace count)
[14:30:17] 	 bawolff: i am not sure, cannot check now. as I remember it is default
[14:30:20] 	 Interesting. Lot's of info now. First time I  reloaded at the top of the page, ill formed, under Logo I saw faile to invoke Pygment or some such... Reload test page again that disapeard and doen'st seem to show in log. Progress... Thanks.
[14:31:13] 	 but thanks bawolff, I will try to play with these values
[14:34:49] 	 Hi =)
[14:34:51] 	 I have to upgrade my MW 1.26.2 to actual stable.
[14:34:54] 	 Is it possible to just aply once https://www.mediawiki.org/wiki/Manual:Upgrading ?
[14:34:57] 	 Or will I need to upgrate 1.26 > 1.27 > 1.28 > 1.29 ?
[14:34:59] 	 Thank you!
[14:35:05] 	 Just once
[14:35:32] 	 Cool =)
[14:36:36] 	 thanks to dev team <3
[14:44:44] 	 $wgDebugToolbar = true; sounds interesting, but not showing for me in Chrome, Edge or Firefox...
[14:45:23] 	 I've used that feature on firefox before, so it definitely should work
[14:46:08] 	 I'd like to find someone that has experience with mw on openbsd
[14:59:02] 	 ahh smokin' gun for syntaxhighlight found in httpd error.log  PHP Notice:  Failed to invoke Pygments:
[15:44:55] 	 Is there a way in the api to have some parameters not have unicode normalization applied to them. Or is unicode normalization always applied to api parameters?
[15:46:31] 	 (Asking from the prespective of I want to audit to see if that happens, I don't actually want to do that)
[15:50:22] 	 looking like no
[16:01:32] 	 when i want to open https://fa.wikipedia.org/wiki/%DA%98%D8%A7%D9%86-%D9%BE%D9%84_%D8%B3%D8%A7%D8%B1%D8%AA%D8%B1
[16:01:38] 	 it shows this error
[16:01:45] 	 Request from 79.127.86.144 via cp1054 cp1054, Varnish XID 569513242 Error: 503, Backend fetch failed at Thu, 26 Oct 2017 16:00:17 GMT
[16:03:01] 	 Problems with Wikimedia servers are a good a topic for #wikimedia-tech . And yes, confirming
[16:16:59] 	 hello
[16:19:38] 	 can anybody help me ? i think i found an error in Special:LintErrors
[16:20:14] 	 i dont know where is the best place to report it
[16:20:19] 	 can you elaborate?
[16:20:26] 	 here is fine
[16:20:28] 	 !ask
[16:20:29] 	 Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :)
[16:20:45] 	 well
[16:20:59] 	 it is about html5-misnesting
[16:21:29] 	 helps page says a \n b is an error
[16:21:57] 	 link to the page?
[16:22:01] 	 because tidy and html5 outputs different results
[16:22:06] 	 https://www.mediawiki.org/wiki/Help:Extension:Linter/html5-misnesting
[16:22:20] 	 that's \n\n
[16:22:25] 	 which is a paragraph break
[16:22:35] 	 ok ok
[16:22:40] 	 span is an inline tag, and cannot contain 

inside of it [16:22:41] but when b is equal to "


" [16:23:05] you cannot put block-level tags inside of [16:23:06] i mean a \n\n
[16:23:16] the results are the same [16:23:27] that is still an error, technically speaking [16:23:36] because of the \n\n [16:23:36]

a


[16:23:51] you should do a \n\n
[16:24:16] \n\n should never appear inside of a [16:24:28] THAT is what the linter is checking for [16:24:51] if you need it to encompass multiple paragraphs, use a
[16:24:56] i understand, but the result is the same [16:25:16] it's still an error [16:25:25] even if both html5 and tidy fix it the same way [16:25:50] ok, then, can you help me to solve an example ? https://es.wikipedia.org/wiki/Plantilla:Ficha_de_aeronave [16:26:25] lines 11 and 12 [16:26:31] |pie2={{{pie de foto|}}} [16:26:31]
[16:26:54] this will be inserted into a span tag [16:29:30] leoncastro: line 357 of https://es.wikipedia.org/w/index.php?title=Module:Ficha&action=edit [16:29:33] is adding a [16:29:43] you may want to change that to a
-- that will address the linter issue [16:30:54] hummm, so maybe i need to change all span tags to divs [16:31:01] ? [16:33:14] try it in a sandbox first (like, duplicate the module to a for-test one, and then make use of that module in a test template) [16:33:26] just to verify it looks/appears correct before changing a high-use template/module [16:35:05] well, thank you very much for the help Skizzerz [16:35:15] i will try [18:08:57] OMG I can be so obtuse. I just found the $wgDebugToolbar on the bottom of the page not on the top of the page.... geeze [19:05:18] Hey anyone know if mediawiki 1.29 can do ldap auth? [19:06:31] As with all versions, it requires an extension [19:07:01] Dukem: Yes. [19:07:02] !ldap [19:07:02] http://www.mediawiki.org/wiki/Extension:LDAP_Authentication To get support, open a new thread on the support page http://www.mediawiki.org/wiki/Extension_talk:LDAP_Authentication [19:30:07] Esther: but it says its not fully updated for 1.27+ [19:30:15] Should I just downgrade ? [19:31:19] Dukem: looks like it is partially compatible [19:31:37] "Mediawiki 1.28 Does not work 100% on MediaWiki >= 1.27" [19:32:37] yes and see later that it says automatic authentication isn't supported on that version [19:32:54] oh is it just automatic auth? [19:33:01] ok, i will try it. thank you! [19:39:48] thats been broken since authmanager iirc [20:19:36] umm... is there any easy way to undo a misfire with a world edit command? [20:21:25] whoops, wrong channel, sorry [20:22:41] p858snake: so it wont work? [20:22:53] only auto auth won't work [20:28:44] I feel like we just did this. [20:29:03] I really hope greeter isn't Trump in disguise, asking for help about a misfire.... [20:33:42] lol no, typed the wrong command in minetest, although it did a lot of damage to the map [21:10:45] wow got ldap working :) [21:11:06] weird, i had to run update.php in order for an error to go away. it would not let me login before i did it [21:11:30] Kept getting Fatal exception of type "Wikimedia\Rdbms\DBQueryError" [21:12:31] Dukem: did you run the updater after installing? [21:12:37] no [21:12:41] *the extension [21:12:45] no [21:12:52] did i have to do that? [21:13:08] yes [21:13:15] that's what update.php is though [21:13:21] aaaah ok. [21:13:31] if an extension requires database changes (LDAP auth does), you need to run the updater after installing it [21:16:29] When I run `php ./updateSpecialPages.php` I can see `Wantedpages [QueryPage] got 0 rows in 0.01s`. Why is that empty in the database? [21:19:38] But maybe I just misunderstand what a wanted page is... Can someone please explain to me what is a wanted page? [21:20:09] kuznero: links to non-existing pages [21:20:24] thus "wanted" [21:21:34] Vulpix: so, if I type in the content of some article `[[Qwe]]` when it simply not exist - it will be the wanted page, right? [21:22:02] yes [21:22:27] ok, but then why does not it show up on Special:WantedPages at all? [21:23:16] does [[Special:WhatLinksHere/Qwe]] list the page linking to it? [21:23:35] sec [21:24:48] yep, that works, I can see a couple of pages referring to e.g. [[Special:WhatLinksHere/Redis]], where Redis does not exist yet [21:24:58] [[Redis]] does not exist [21:26:03] Wantedpages should list it after running updateSpecialPages.php [21:26:18] I already tried it [21:26:26] But sec, will try again to make sure [21:27:29] When I run updateSpecialPages.pgp it still shows `Wantedpages [QueryPage] got 0 rows in 0.01s` [21:27:44] And then empty list on Special:WantedPages [21:27:57] try updateSpecialPages.php --page=Wantedpages --override [21:28:05] er [21:28:12] that second one should be --only=Wantedpages [21:28:59] Skizzerz: `cd maintenance && php ./updateSpecialPages.php --page=Wantedpages --override` ? Right? [21:29:04] if that still doesn't work, make sure you're running the script on the right wiki [21:29:09] should be --only=Wantedpages [21:29:10] not --page= [21:29:23] Skizzerz: `cd maintenance && php ./updateSpecialPages.php --only=Wantedpages --override` ? [21:29:26] yes [21:29:29] sec [21:29:53] still `Wantedpages [QueryPage] got 0 rows in 0.01s` [21:29:59] is your wiki public? [21:30:12] nope, it is inhouse [21:30:33] what version of mediawiki? [21:31:13] are you sure you're on the correct server / correct directory for that wiki? [21:32:49] hm, that is the only wiki I am running, it is in docker container - so, `docker run -it mediawiki bash`, and then `cd maintenance && php updateSpecialPages.pgp ...` [21:32:56] k [21:32:59] it uses sqlite [21:33:08] in your LocalSettings.php, do you have $wgMiserMode = true; set? [21:33:10] which is mounted as volume on the host [21:33:18] if no, the updateSpecialPages maintenance script is worthless for you [21:33:26] I don't have $wgMiserMode at all in my LocalSettings.ph [21:33:40] because that page is generated on the fly in that case [21:33:43] instead of saving a cached version [21:33:52] so we're barking up a wrong tree :) [21:34:12] check if you have things in the job queue, maybe some link updates are missing? [21:34:14] So, should I try to specify $wgMiserMode=true expicitly? [21:34:17] no [21:34:27] how do I do that? [21:34:30] that parameter is used for high-traffic wikis [21:35:08] Miser mode disables some features that may be useful for lower-traffic wikis due to them causing undue stress on the db/server [21:35:16] (such as generating reporting pages in realtime) [21:35:40] kuznero: execute the runJobs.php maintenance script [21:35:41] I understand caching strategy I think. But how do I check job queue? [21:35:43] see if that reports anything [21:35:48] sec [21:36:12] then check Wantedpages again [21:36:16] That one reports nothing [21:36:37] Then I refreshed wanted pages in browser and still empty [21:36:43] ok [21:36:49] how many links to [[Redis]] do you have? [21:36:51] Just saying `There are no results for this report` [21:36:55] 2 [21:37:09] php showJobs.php [21:37:13] sec [21:37:18] do you have $wgWantedPagesThreshold in your LocalSettings.php? [21:37:30] ./showJobs.php shows 0 [21:37:56] Skizzerz: nope [21:39:08] Btw, I am running 1.29 MW [21:39:11] are the pages linking to [[Redis]] in the MediaWiki namespace by any chance? [21:39:47] Skizzerz: I am not sure what does it mean. On a page I normally just write `[[Redis]]` and that is it [21:40:10] lemme reword: what pages are linking to Redis? [21:40:19] stupid question, but how do i tell it to only authorize users which belong to a specific group in ad? [21:41:09] Skizzerz: 2 pages that link to Redis are normal pages I guess. How can I check what namespace page belong to? [21:41:24] if they have a namespace, it'll be before the page name separated by a colon [21:41:33] for example, the page [[User:Kuznero]] is in the User namespace [21:41:59] Ah, no no, no namespace for those 2 pages [21:42:05] k [21:42:39] might be a sqlite issue then [21:43:25] Do you think it makes sense to raise an issue on github for it? [21:43:34] it'd be in phabricator [21:43:46] Ah... [21:43:47] but I'd like to do a little bit more verification first before blaming sqlite [21:43:58] just need to figure out how to go about verifying it [21:44:39] ok, I can probably try to start another wiki on another container and then try creating a couple of simple pages [21:48:08] kuznero: can you drop into a sqlite shell and execute the following query? lemme know if it reports results for that Redis page or not [21:48:56] SELECT pl_namespace, pl_title, COUNT(*) FROM pagelinks LEFT JOIN page pg1 ON pg1.page_namespace = pl_namespace AND pg1.page_title = pl_title LEFT JOIN page pg2 ON pg2.page_id = pl_from WHERE pg1.page_namespace IS NULL GROUP BY pl_namespace, pl_title; [21:49:13] it should show a record 0, Redis, 2 [21:50:29] sec [21:50:39] db.sqlite, not cache.sqlite, right? [21:50:45] yes [21:50:53] sec [21:53:10] I see `0|Redis|2` [21:53:21] ok [21:53:27] now try this: [21:53:40] SELECT pl_namespace, pl_title, COUNT(*) FROM pagelinks LEFT JOIN page pg1 ON pg1.page_namespace = pl_namespace AND pg1.page_title = pl_title LEFT JOIN page pg2 ON pg2.page_id = pl_from WHERE pg1.page_namespace IS NULL GROUP BY pl_namespace, pl_title HAVING COUNT(*) > 1; [21:53:55] I added HAVING COUNT(*) > 1 to the end, right before the ; [21:53:59] everything else is the same [21:54:26] I still see `0|Redis|2` but now there are much fewer rows. [21:55:22] hmm [21:55:36] So, it seems it is ok on sqlite side, right? [21:55:44] one last thing to check [21:55:59] add to the end AND COUNT(*) > SUM(pg2.page_is_redirect) [21:56:12] so the end looks like HAVING COUNT(*) > 1 AND COUNT(*) > SUM(pg2.page_is_redirect); [21:56:46] still see `0|Redis|2` [21:57:39] ok so not a sqlite issue [21:57:44] that's returning the correct results [21:57:47] Should we also check cache.sqlite? [21:58:06] do you have any extensions installed? [21:58:32] How do I check that? I have syntax highlighting... [21:58:59] go to Special:Version [21:59:02] on your wiki [21:59:05] it'll list all your extensions [21:59:35] Ah, a lot of them, sec [22:00:12] openbsd 6,2, openbsd httpd, mediawiki 1.29.1, Extension:SyntaxHighlight, Pygments / /usr/local/bin/pygmentize will color a file. On my mediawiki test page http://wiki.homeamation.net/index.php?title=Gdtest Syntax Highlighting woks except for color and line numbers. [22:00:39] CiteThisPage, Interwiki, Renameuser, Cite, ImageMap, InputBox, ParserFunctions, SyntaxHighlight, PDF Handler, ConfirmEdit, WikiEditor [22:00:47] PHP Notice: Failed to invoke Pygments: [Called from SyntaxHighlight_GeSHi::highlight [22:01:40] from the shell I've run /usr/local/bin/pygmentize on source code and it works. [22:02:24] Skizzerz: I was wrong about MW version - it is 1.29.1 [22:02:25] I've tried to get mw to log $wgDebugLogFile = "/tmp/mw.log"; no log shows up.... [22:03:21] How about some suggestions for getting that debug long writing? [22:10:08] in php.ini disable_functions string is not set. I'm running openbsd 6.2 are there other places where it might have been set? Can I check the actual running value with phpinfo() ?? [22:12:55] kuznero: none of those should be interfering with Wantedpages, so I have no idea what is going on for you :( [22:14:07] :( can it have something to do with the fact that I am running it as docker container? [22:14:56] Does $wsMiserMode have false by default (if it is not in my LocalSettings.php)? [22:18:10] it is false by default, yes [22:18:18] I recommend keeping it false (the default) [22:18:30] ok [22:20:21] Skizzerz: thanks for your effort! [22:20:39] yeah, sorry I couldn't figure it out [22:22:11] Something tells me it will turn out to be something very small :) [23:25:41] "Something tells me it will turn out to be something very small" yup, that's the way I feel about my dificulty with SyntaxHighlighting invoking pygmatize [23:42:57] I found $process->run( function( $type, $capturedOutput ) use ( &$output )... where my Failed to invoke Pygments error comes from. Is there any php.ini security configuration that could stop this function to run? [23:55:03] ok now I found symfony processbuilder ahh #symfony [23:58:06] I found Symfony Process() my question; Are there possible configuration issues with php and/or httpd that would prohibit Process() from running?