Re: [MediaWiki-l] 403 Forbidden error if i use table header (!)

2016-07-02 Thread Brian Wolff
On Saturday, July 2, 2016, scout morciano wrote: > in my mediawiki installation if i try to update or create a page that > contain tables with header (!) > https://www.mediawiki.org/wiki/Help:Tables#Table_headers > i receive this error: > > 403 Forbidden > You do not have permission to access this

Re: [MediaWiki-l] 403 Forbidden error if i use table header (!)

2016-07-02 Thread Brian Wolff
On Sat, Jul 2, 2016 at 9:45 AM, scout morciano wrote: > Brian Wolff gmail.com> writes: > >> In the past similar issues have been caused by apache >> mod_security/mod_security2 being installed on the host. >> >> -- >> bawolff > > thank you! i check wi

Re: [MediaWiki-l] getting T74931 fixed

2016-08-01 Thread Brian Wolff
On Monday, August 1, 2016, John wrote: > T74931 ( https://phabricator.wikimedia.org/T74931 ) is about adding > el_timestamp to the external links table. (IE the timestamp when a link was > added) its been sitting for almost two years now. Can we get this fixed > before it turns two? >

Re: [MediaWiki-l] Mediawiki sidebar displaced

2016-08-14 Thread Brian Wolff
Sometimes this can be caused by invalid html (unclosed tag in a page, something giving out php warnings, an extension outputting invalid html, etc) -- Bawolff On Friday, August 12, 2016, John Foster wrote: > Well this is something I've not run into before. I recently set up and > upgraded my me

Re: [MediaWiki-l] Customizing the File page

2016-08-15 Thread Brian Wolff
There are certain messages you can use, such as [[MediaWiki:filehist-help]], [[mediawiki:metadata-help]], but they aren't really in ideal position. On commons, there is some user js that is sort of for this purpose: https://commons.wikimedia.org/wiki/MediaWiki:Gadget-Stockphoto.js (and associated

Re: [MediaWiki-l] Customizing the File page

2016-08-16 Thread Brian Wolff
Addendum to my last message. I might have misinterpreted your message. I assumed you wanted to modify the contents of the file page, without adding stuff to the actual file description. If you want to change the default for the form on Special:Upload, try editing [[[mediawiki:upload-default-descri

Re: [MediaWiki-l] Managing updates of Mediawiki with git (?)

2016-08-26 Thread Brian Wolff
[responses inline] On Fri, Aug 26, 2016 at 3:37 AM, Dr. Michael Bonert wrote: > Are there any thoughts on managing updates of Mediawiki with git? > Personally I think its a great way to manage things. Always nice to keep track of what's changed when running a site. > I'm not a developer... but

Re: [MediaWiki-l] Prevent editing of a single section

2016-09-13 Thread Brian Wolff
You could include the section you want to be able to edit as a template. Then you protect the page, but leave the template unprotected. -- bawolff On Tue, Sep 13, 2016 at 7:25 AM, Dr. Hirn wrote: > Hi, > > is it possible to forbid editing of a single section? > Or the other way round: Allow only

Re: [MediaWiki-l] After update 1.22 to 1.27 no links created to added new pages

2016-09-13 Thread Brian Wolff
Does setting $wgRunJobsAsync = false; At the bottom of LocalSettings.php fix things? On Tue, Sep 13, 2016 at 9:28 AM, wrote: > Hello, > > i updated our local mediawiki (followed update method on mediawiki web) > 1.22.2 to 1.27.1. Detected only one problem for now - after creating new > page, pa

Re: [MediaWiki-l] Mediawiki MySQL user-related database [dead]locks?

2016-09-15 Thread Brian Wolff
On Thu, Sep 15, 2016 at 5:36 AM, Andrew Smith wrote: > Hello > > I administer a relatively busy wiki for our school, at > https://wiki.cdot.senecacollege.ca > > In august I migrated the wiki from an older server where it had as far as I > can tell 1.15.4 on. The new server had the latest mediawiki

Re: [MediaWiki-l] [CentralAuth] Illegal mix of collations (latin1_bin, IMPLICIT) and (utf8_general_ci, COERCIBLE)

2016-09-22 Thread Brian Wolff
btw, an alternative solution might have been to change the charset to binary (not utf8_binary or latin1_binary, but just binary). utf8 in mysql takes 3 bytes per letter (instead of 1 bytes as binary charset does), which is probably why the limit was hit. Additionally, utf8 charset can't actually en

Re: [MediaWiki-l] Moved site providers and now my URLs are /wiki/index.php?title=page

2016-09-30 Thread Brian Wolff
Usually this means that mediawiki detects the new server as not supporting PATH INFO (usually deoends on the combination of server software and which php sapi is in use), so it cannot use the automatic short url setup. In such a case you usually need to setup rewrite rules to make it work, although

Re: [MediaWiki-l] File:DEC-VT420-0a.jpg doesn't fallover to wikipedia?

2016-10-05 Thread Brian Wolff
On Wed, Oct 5, 2016 at 8:05 PM, Richard wrote: > > In article <7e1c2b66-3131-8105-a285-641eafc16...@libreoffice.org>, > Dennis Roczek writes: > >> On 05.10.2016 07:48, Richard wrote: >> > Any ideas? >> What you have in mind is InstantCommons. >> >> https://www.mediawiki.org/wiki/InstantCommon

Re: [MediaWiki-l] Calling local scripts from common.js

2016-10-27 Thread Brian Wolff
On Thu, Oct 27, 2016 at 10:24 PM, Huji Lee wrote: > Hi, > > In the old days (i.e. before ResourceLoader), one could load a user script > from their own local machine using something like > importScript('file:///home/user/script.js') > > Today I tried to do something similar except that my script r

Re: [MediaWiki-l] Security of widgets? Way to limit parameters? OpenSeadragon

2016-10-29 Thread Brian Wolff
On Sat, Oct 29, 2016 at 2:50 PM, Dr. Michael Bonert wrote: > Hello, > > I was wondering about the security of Widgets ( > https://www.mediawiki.org/wiki/Extension:Widgets ) that get parameters > passed to them. Any thoughts? > > Are the parameters passed through to the widget cleansed of html/sc

Re: [MediaWiki-l] Security of widgets? Way to limit parameters? OpenSeadragon

2016-10-29 Thread Brian Wolff
On Sat, Oct 29, 2016 at 3:40 PM, Brian Wolff wrote: > On Sat, Oct 29, 2016 at 2:50 PM, Dr. Michael Bonert > wrote: >> Hello, >> >> I was wondering about the security of Widgets ( >> https://www.mediawiki.org/wiki/Extension:Widgets ) that get parameters &

Re: [MediaWiki-l] Security of widgets? Way to limit parameters? OpenSeadragon

2016-10-29 Thread Brian Wolff
On Sat, Oct 29, 2016 at 2:50 PM, Dr. Michael Bonert wrote: > Hello, > > I was wondering about the security of Widgets ( > https://www.mediawiki.org/wiki/Extension:Widgets ) that get parameters > passed to them. Any thoughts? > > Are the parameters passed through to the widget cleansed of html/sc

Re: [MediaWiki-l] Security of widgets? Way to limit parameters? OpenSeadragon

2016-10-29 Thread Brian Wolff
On Saturday, October 29, 2016, Daniel Friesen wrote: > On 2016-10-29 8:40 AM, Brian Wolff wrote: >> On Sat, Oct 29, 2016 at 2:50 PM, Dr. Michael Bonert >> wrote: >>> Hello, >>> >>> I was wondering about the security of Widgets ( >>> https://w

Re: [MediaWiki-l] Follow Up:What Impact did the Mediawiki Stakeholders Wishlist of Features Have

2016-10-29 Thread Brian Wolff
On Saturday, October 29, 2016, chris tharp wrote: > Hi All, > > As a lone tinker with Mediawiki, who pays some attention to things > connected with it, I thought I would ask for a follow up to last year's > Mediawiki Stakeholders survey (see: > https://www.mediawiki.org/wiki/MediaWiki_Stakeholders

Re: [MediaWiki-l] Security of widgets? Way to limit parameters? OpenSeadragon

2016-10-30 Thread Brian Wolff
On Sun, Oct 30, 2016 at 10:25 PM, Dr. Michael Bonert wrote: > Thanks for all the comments Bawolff and Daniel! > > They have confirmed the suspicion I had: using the 'Widget' extension is a > way to insert something into Mediawiki... but it puts a hole into the > security framework-- especially if

Re: [MediaWiki-l] prepared statements, MySQL, Database.php

2016-10-31 Thread Brian Wolff
On Sun, Oct 30, 2016 at 7:37 PM, Tom Bishop, Wenlin Institute wrote: > The following code and comment appears in includes/db/Database.php: > > protected function prepare( $sql, $func = 'DatabaseBase::prepare' ) { > /* MySQL doesn't support prepared statements (yet), so just >

Re: [MediaWiki-l] Update reliability

2016-11-02 Thread Brian Wolff
> > - Wrong page in print version: > When clicking on "print page", the link shows a different page than the one > that > currently is displayed. No idea where that comes from, maybe a problem with > the > template? Hmm, that sounds like an interesting bug. Do you have an example of the incorrec

Re: [MediaWiki-l] populating categories

2016-11-08 Thread Brian Wolff
If you don't have shell access, adding the following to the bottom of LocalSettings.php $wgRunJobsAsync = false; $wgJobRunRate = 10; will probably clear out the job queue backlog, after some time (Once the backlog is clear, reduce $wgJobRunRate to either 1 or 2, but keep $wgRunJosAsync set to fal

Re: [MediaWiki-l] [request for help] Error "Error creating thumbnail: Invalid thumbnail parameters" when viewing some images

2016-11-17 Thread Brian Wolff
Hi. Blank page generally means a php fatal error. Most likely in this case is php max_execution_time exceeded, but check the php error log to see what it is. Also you may want to check wgShellMaxMemory (i might be mangling the name) The hash_equals is probably a bug, but probably an unrelated bug

Re: [MediaWiki-l] [request for help] Error "Error creating thumbnail: Invalid thumbnail parameters" when viewing some images

2016-11-17 Thread Brian Wolff
t; 265353 CENSORED [17/Nov/2016:18:06:28 +0100] - 200 www.bomosil.eu "GET > /index.php?title=Soubor:Jihlava_-_zemska_hranice_Cech_a_Moravy_v_okoli_Jihlavskych_drevarskych_zavodu_2.jpg&uselang=en > HTTP/1.1" > 254433 CENSORED [17/Nov/2016:18:06:35 +0100] 9120 200 www.bomosil.

Re: [MediaWiki-l] Mediawiki 1.28

2016-12-11 Thread Brian Wolff
What version of php? Can you verify that you have a high enough version of php? Can you double check that mw-config/index.php has not been corrupted (e.g. make sure the file looks exactly like the version from the tarball). -- Brian On Sunday, December 11, 2016, Bri wrote: > After I installed M

Re: [MediaWiki-l] Mediawiki 1.28

2016-12-11 Thread Brian Wolff
Are you 100% sure your version is 5.5.9. This error message is usually caused by using php 5.3 or earlier. On Sun, Dec 11, 2016 at 3:49 PM, Bri wrote: > This was an update to a previous version of the MediaWiki files. > > I downloaded the update, and extracted it. > > I FTP'ed the files to the w

Re: [MediaWiki-l] OpenID Connect extension and redirect_uri

2016-12-19 Thread Brian Wolff
Its not CGI support so much as if MW detects it can properly use $_SERVER['PATH_INFO']. Generally speaking, this is true provided your PHP sapi is not cgi, apache2filter, or isapi. Of course, if you have set $wgArticlePath yourself, then this auto-detection stuff is overridden. -- Brian On Mon, D

Re: [MediaWiki-l] Problem migrating from an old CentOS6/MySQL5 to new CentOS7/MariaDB5.5

2016-12-19 Thread Brian Wolff
It sounds like you migrated the mysql/mariadb server incorrectly (MariaDB is basically just a higher version of mysql). You should take a db dump from your old wiki (using something like mysqldump) and then re-import it on your new wiki. -- Brian On Mon, Dec 19, 2016 at 8:24 PM, Edilmar LISTAS w

Re: [MediaWiki-l] Image not visible

2017-01-05 Thread Brian Wolff
Hi. It appears you have 404 thumbnail handling partially set up, which is messing things up because it needs to be either fully setup or not at all. (I come to this conclusion because thumb.php can render images, but images are not being rendered on parse or on 404 hit. Additionally, there are mul

Re: [MediaWiki-l] Using a hook to change the logo

2017-01-17 Thread Brian Wolff
You could set up img_auth.php and point the logo to something protected by it. Then only logged in users would be able to see the logo. -- brian On Tuesday, January 17, 2017, Jean Valjean wrote: > I have a super-secret wiki. Therefore, I want to set up my wiki so that > when a user is logged in,

Re: [MediaWiki-l] Constant crashing of searchindex table

2017-01-18 Thread Brian Wolff
I have heard reports that myisam and innodb can give rather different search results. Keep that in mind when testing using innodb for searchindex. -- brian On Wednesday, January 18, 2017, Max Semenik wrote: > Because previously only MyISAM supported text indexes. > > On Wed, Jan 18, 2017 at 6:02

Re: [MediaWiki-l] Uploaded documents and searching

2017-01-27 Thread Brian Wolff
Depends on your search backend. If you install CirrusSearch you can search through the text layer of pdf and djvu files. -- Brian On Friday, January 27, 2017, John wrote: > Does mediawiki have support for searching the contents of uploaded PDFs and > other formats? > ___

Re: [MediaWiki-l] Pass category into template

2017-02-02 Thread Brian Wolff
On Fri, Feb 3, 2017 at 2:47 AM, Bri wrote: > I recently upgraded to 1.28. > Before the update I could pass a category into a template: > > {| > |align="center"|Also see [[{{#if: {{{term|}}}|{{{term}}}|{{{1}}}| }}]] > |} > > But now it fails if I pass "Category:Foo" or ":Category:Foo". > > In the f

Re: [MediaWiki-l] Wikibase usage

2017-02-08 Thread Brian Wolff
On Wednesday, February 8, 2017, Jean-Baptiste Pressac < jean-baptiste.pres...@univ-brest.fr> wrote: > Hello, > I installed yesterday the latest available wikibase repository extension on a fresh install of Mediawiki 1.28 (PHP 5.6.29). I followed the instructions of https://www.mediawiki.org/wiki/Wi

Re: [MediaWiki-l] [Wikitech-l] SHA-1 hash officially broken

2017-02-24 Thread Brian Wolff
Before anyone panics, this is not something that people who run mediawiki wikis have to worry about. -- Brian On Friday, February 24, 2017, Pine W wrote: > Forwarding info that may be of interest. > > Pine > > > -- Forwarded message -- > From: Brion Vibber > Date: Fri, Feb 24, 2

Re: [MediaWiki-l] [Wikitech-l] SHA-1 hash officially broken

2017-02-24 Thread Brian Wolff
acks on other software that still runs SHA-1 should be considered. Is that correct, Brian? > > Pine > > > On Fri, Feb 24, 2017 at 1:01 PM, Brian Wolff wrote: > >> Before anyone panics, this is not something that people who run >> mediawiki wikis have to worry a

Re: [MediaWiki-l] Understanding the generation of thumbs ...

2017-03-01 Thread Brian Wolff
I think only the default value of wgImageLimits would actually do anything for this. The other limits Are only triggered for people with non default preferences. If you dont care about things looking nice on high dpi displays (e.g. apple retina type things) you could set $wgResponsiveImages You

Re: [MediaWiki-l] MW 1.28.1

2017-03-15 Thread Brian Wolff
As an aside, perhaps SMW should be putting its link updates in a separate transaction. That would work around the bug (I think. I only skimmed the report) and probably be a good idea anyways. -- bawolff On Wednesday, March 15, 2017, J. Waanders wrote: > ?Hi, > > > When will MW 1.28.1 be released

[MediaWiki-l] SyntaxHighlight_GeSHi in latest tarball does not include security fixes

2017-04-29 Thread Brian Wolff
Hello everyone. Unfortunately there's been a mistake in generating the 1.28.1 and 1.27.2 tarball releases, where the wrong version of SyntaxHighlight_GeSHi extension was included. The version of this extension that was included has publically known severe security issues in it. Until such a time

Re: [MediaWiki-l] Load from a wget crawl

2017-05-03 Thread Brian Wolff
Yeah, that's basically impossible. Maybe you could try and use parsoid to convert the html into wikitext-ish stuff (but it would be lossy as its not parsoid-html that's being converted) and also would still involve some programming to connect all the parts. -- Brian On Wed, May 3, 2017 at 5:44 P

Re: [MediaWiki-l] Translated Interface only working when logged in

2017-05-17 Thread Brian Wolff
If $wgLanguageCode was just recently switched, then you may be encountering caching issues (either browser, filecache, or varnish/squid cache depending on config). -- Brian On Wed, May 17, 2017 at 3:34 PM, Dustin Phillips wrote: > I am working on a wiki family with several languages. The problem

Re: [MediaWiki-l] Announcing: the Enterprise MediaWiki Consortium

2017-05-25 Thread Brian Wolff
On Wednesday, May 24, 2017, Yaron Koren wrote: > Hi, > > I'm very excited to announce the launch of the Enterprise MediaWiki > Consortium (EMC), an organization devoted to supporting and maintaining > "enterprise MediaWiki" software. > > As you may know, a lot of open-source software has some sort

Re: [MediaWiki-l] DISPLAYTITLE warning message

2017-06-09 Thread Brian Wolff
On Thu, Jun 8, 2017 at 3:54 PM, Daniel Barrett wrote: > Andrew Geary laments: >>I am seeing this message displayed on our wiki: "Warning: Display title >>"Dictionary:Shepherd’s cane" overrides earlier display title >>"Instrumento de Shepard"." > > Each of your articles contain *two* DISPLAYTITLE l

Re: [MediaWiki-l] PDFHandler and limit.sh

2017-06-09 Thread Brian Wolff
On Fri, Jun 9, 2017 at 2:04 AM, John wrote: > Im working with several large PDFs and Im running into the message *limit.sh: > timed out executing command "'pdftotext' *is there a way to let that run > until it finishes? Set $wgMaxShellWallClockTime = 0; (0 should mean disable the check. Default

Re: [MediaWiki-l] DISPLAYTITLE warning message

2017-06-09 Thread Brian Wolff
On Fri, Jun 9, 2017 at 5:55 PM, Brian Wolff wrote: > On Thu, Jun 8, 2017 at 3:54 PM, Daniel Barrett wrote: >> Andrew Geary laments: >>>I am seeing this message displayed on our wiki: "Warning: Display title >>>"Dictionary:Shepherd’s cane" override

Re: [MediaWiki-l] REL1_28 error

2017-06-09 Thread Brian Wolff
It would be helpful if you could get a full backtrace (Add a "throw new MWException();" at the point causing the issue, and set $wgShowExceptionDetails=true;). It sounds like the maintenance script is calling into the Skin code, which assumes you're viewing an actual page, which isn't true in the s

Re: [MediaWiki-l] SVG generated by DIA fails whitelist checks

2017-06-21 Thread Brian Wolff
Yes, please provide a data sample. Also what is the error that it fails with? Is this a typical example of a dia svg file? Itd probably be better to file this as a bug in phabricator.wikimedia.org than a mailing list discussion. Thanks, Brian On Wednesday, June 21, 2017, Charles Bennett wrote:

Re: [MediaWiki-l] Architecture document

2017-07-01 Thread Brian Wolff
Thats awesome that you are making this. One small correction - wmf no longer uses cdb files for interwiki cache. We now use just a php array thats included so that the hhvm opcode cacher can cache it. -- bawolff On Saturday, July 1, 2017, Greg Rundlett (freephile) wrote: > On my wiki, I'm worki

Re: [MediaWiki-l] deleteOldRevisions.php is an accident waiting to happen

2017-07-01 Thread Brian Wolff
Github is only a mirror of the code base-we dont use it for pull requests. If you want to submit a change, put a unified diff in https://tools.wmflabs.org/gerrit-patch-uploader/ or submit the change directly to gerrit.wikimedia.org (using the user account from wikitech.wikimedia.org). There is more

Re: [MediaWiki-l] Any security problems involved in letting administrators edit LocalSettings.php via a wiki page?

2017-07-01 Thread Brian Wolff
Even ignoring the security issues, if one of your users makes a typo, they take down the site and they cannot revert because the site is then down. From a security prespective, this is equivalent to giving your users shell access to your server. They can run any arbitrary program, do anything, ins

Re: [MediaWiki-l] Any security problems involved in letting administrators edit LocalSettings.php via a wiki page?

2017-07-01 Thread Brian Wolff
ontrol system in place so that as > different people are changing the files, we know who did what when, and can > revert easily to a previous version. > > On Sat, Jul 1, 2017 at 7:04 PM, Brian Wolff wrote: > >> Even ignoring the security issues, if one of your users makes a t

Re: [MediaWiki-l] A problem in URL

2017-07-03 Thread Brian Wolff
Well that url is double encoded (stuff like %25D7 should be just %D7. The 25 part means literal % which is invalid in titles if it looks like a hex escape) However without knowing where this url comes from or how it was generated, i cant guess as to the cause. Rewrite rules/short url config might

Re: [MediaWiki-l] URL

2017-07-04 Thread Brian Wolff
Not really. I need to know where you get the url from. Where does it appear? Is it from clicking a link somewhere and if so what link? Are you redirected there when visiting your site? Something else? -- brian On Tuesday, July 4, 2017, אחיקם אלירז wrote: > Thank you. > This is from the LocalSett

Re: [MediaWiki-l] php rebuildFileCache.php

2017-07-04 Thread Brian Wolff
This is more a generic sysadmin question. First step is figure out where all your diskspace has gone - run the command: du | sort to find out (The command will list space usage in all the subdirectories of the current directory). Delete files as necessary. Obviously be careful you don't delete a

Re: [MediaWiki-l] Stopping Users from Creating Account

2017-07-07 Thread Brian Wolff
That is exactly what the createaccount permission is. Do something like (i havent tested this and im a little rusty on the autopromote syntax): $wgGroupPermissions['*']['createaccount'] = true; $wgRevokePermissions['usernotadmin']['createaccount'] = true; $wgAutopromote = [ 'usernotadmin' =>

Re: [MediaWiki-l] Request for MediaWiki installation assistance

2017-07-12 Thread Brian Wolff
Wait what? Why are you installing mediawiki in a kubernetes cluster on OS X? If that sort of thing is your jam, by all means do it - but given that you are asking for help im going to guess its not. In which case why not follow standard install instructions (e.g. get a debian host somewhere, do:

Re: [MediaWiki-l] Readonly wiki and Read/Wright wiki serving the same pages

2017-07-14 Thread Brian Wolff
Yes its possible, however its probably not a very good way to speed up your wiki and it probably would not be much faster. For the use case you describe, id reccomend setting up varnish (ideally on a separate server) in front of your wiki. There should be instructions on how to do this on mediawik

Re: [MediaWiki-l] setting up a wiki-farm

2017-07-14 Thread Brian Wolff
Most likely the unix permissions are incorrect. Make sure that the apache user (often www-data) has read access to your mediawiki install. If its not permissions, then apache is probably misconfigured. Check the various access directives in httpd.conf, .htaccess, etc. Brian On Friday, July 14, 2

[MediaWiki-l] Security warning for SimpleSecurity extension.

2017-07-18 Thread Brian Wolff
the issue public and issuing this warning about it. The issue in question is https://phabricator.wikimedia.org/T48843 The extension in question is https://www.mediawiki.org/wiki/Extension:SimpleSecurity Sincerely, Brian Wolff Wikimedia Security Team P.S. This is the first time I've ever wr

Re: [MediaWiki-l] Security warning for SimpleSecurity extension.

2017-07-18 Thread Brian Wolff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi. So I wanted to be cool and use gpg like all the cool kids do, but I didn't know what I was doing, and the line length got adjusted by the email client, rendering the signature invalid. So umm, the last email really was me, despite the invalid s

[MediaWiki-l] Security announcement for CentralAuth extension

2017-07-18 Thread Brian Wolff
L1_27: 4db90e20808f (Now requires at least 1.27.2) Associated bug: https://phabricator.wikimedia.org/T134931 Sincerely, Brian Wolff Wikimedia Security Team -BEGIN PGP SIGNATURE- iQIcBAEBCAAGBQJZbudjAAoJEDYflDsVwI3Ux1AQAJXV2pcQicZzApo+WUbqD5aS 5GSEmNlLsS5E16r/tYU2Fhih

Re: [MediaWiki-l] Drupal 7 and MediaWiki

2017-07-19 Thread Brian Wolff
You may also want to look into index.php?action=render&title=foo if you are doing this sort of thing. -- brian On Wednesday, July 19, 2017, Greg Rundlett (freephile) wrote: > On Wed, Jul 19, 2017 at 2:53 PM, Johnny Guo wrote: > >> I was wondering if it was possible to have a MediaWiki section i

Re: [MediaWiki-l] Image thumbnailing in MediaWiki

2017-07-28 Thread Brian Wolff
Hi, MediaWiki will by default only create image thumbs for needed sizes at time the size is used on a page. So for example when you add an image to a page, MW will create the thumbnail sizes needed to display an article. However, if the image is uploaded but never added to a normal page, then thum

Re: [MediaWiki-l] Image thumbnailing in MediaWiki

2017-07-30 Thread Brian Wolff
with default thumb size in a page, and there is a thumb size preference that nobody uses, then that thumb size will never be generated. -- bawolff On Friday, July 28, 2017, Brian Wolff wrote: > Hi, > > MediaWiki will by default only create image thumbs for needed sizes at > time the siz

Re: [MediaWiki-l] Image thumbnailing in MediaWiki

2017-07-31 Thread Brian Wolff
---- Am 29. Jul 2017 um 2:22 schrieb Brian Wolff bawo...@gmail.com: > >> Hi, >> >> MediaWiki will by default only create image thumbs for needed sizes at >> time the size is used on a page. So for example when you add an image >> to a page, MW will create the thum

Re: [MediaWiki-l] Image thumbnailing in MediaWiki

2017-08-01 Thread Brian Wolff
> the way for the new handling mode when switching the mode on wiki > already in use? > > Cheers Karsten > > > Am 31.07.2017 um 15:52 schrieb Brian Wolff: >> Thumbnails will generally not be deleted except if an image is deleted, >> overwritten wit

Re: [MediaWiki-l] Large debug file

2017-08-04 Thread Brian Wolff
Debug logging is generally meant for debugging issues as they come up, not for usage in production - especially when set to record all debug events. If you really want to keep debug logging on all the time, I'd recommend adjusting the severity of events that are recorded to avoid huge files - for

Re: [MediaWiki-l] The migration of the Database left some contents out

2017-08-09 Thread Brian Wolff
Its because the project: namespace is wikiRioDoce in the new wiki (but presumably not in the old). Run the namespaceDupes.php maintenance script -- brian On Wednesday, August 9, 2017, Nordik wrote: > In the special page "Special: AllPages" > ( http://wikiriodoce.org/Especial:Todas_as_páginas )

Re: [MediaWiki-l] Customizing how search results are displayed/adding content to search results

2017-08-14 Thread Brian Wolff
The code for searching is split between the stuff in includes/search, includes/specials/SpecialSearch.php and includes/widgets/search. Im not all that familar with the search code, so ymmv. I guess what you would want to do is have a custom SearchEngine subclass, which would return a custom Search

Re: [MediaWiki-l] Moderation

2017-08-17 Thread Brian Wolff
I think flaggedrevs is what you want (Replying mostly because Amanda sent her email from yahoo mail, and many service providers consider yahoo to be spam, especially when sent to mailing lists, due to DMARC - so there is a good chance that message was not seen). -- brian On Thursday, August 17,

Re: [MediaWiki-l] Connect to AdSense

2017-08-20 Thread Brian Wolff
You could try putting it in the page mediawiki:copyright On Sunday, August 20, 2017, Eduardo Elias Camponez < campo...@eduardoelias.com> wrote: > On 20/08/2017 12:30, Mike Bautsch wrote: >> Where In mediawiki do I insert the code Google provides to initially connect to AsSense? I’ve seen all of th

Re: [MediaWiki-l] Where is the documentation for creating "Portals" in a small MediaWiki site?

2017-09-08 Thread Brian Wolff
Hi, Portals (as in the pages starting with Portal:, not to be confused with www.wikipedia.org which is also sometimes called a portal) are just normal wikipages using various templates maintained by the wikipedia community. The only mediawiki specific config is adding Portal to $wgExtraNamespaces.

Re: [MediaWiki-l] Unit testing your patch before submitting to gerrit

2017-09-11 Thread Brian Wolff
On Monday, September 11, 2017, Huji Lee wrote: > After having worked with gerrit for years, I have finally decided to be a > good citizen and instead of submitting a patch, finding out that Gerritbot > has found issues with it, and re-submitting the patch (and thereby, > generating very long chain

Re: [MediaWiki-l] move/upgrade ancient MediaWiki 1.18.3

2017-10-03 Thread Brian Wolff
This actually isn't all that ancient (MediaWiki has unit tests making sure upgrades work from at least 1.15. And really, anything after 1.5 should probably work fine). Normal upgrade procedure should work fine. -- Brian On Tue, Oct 3, 2017 at 1:59 PM, Bakkies Gatvol wrote: > I have been asked to

Re: [MediaWiki-l] Another Moving a Mediawiki Question

2017-10-05 Thread Brian Wolff
> > Looking at this site, right at the bottom in the footer I see 'This page > has been accessed 2,061,160 times.' How can I get that for my drugfacts > wiki site please? > > Thanks > Sharon. > That is part of extension:HitCounters. -- Brian ___ MediaWi

Re: [MediaWiki-l] Active users getting the wrong number

2017-10-19 Thread Brian Wolff
On Thursday, October 19, 2017, Eduardo Elias Camponez < campo...@eduardoelias.com> wrote: > Hi, > > I was expecting to see by the {{NUMBEROFACTIVEUSERS}} to show the same number of users as the Special:ActiveUsers page. Am I right? > > If so, what could be happening for those numbers to diverge? >

Re: [MediaWiki-l] showing Parsoid/npm version on Special:Version page?

2017-10-19 Thread Brian Wolff
On Thursday, October 19, 2017, Evans, Richard K. (GRC-H000) < richard.k.ev...@nasa.gov> wrote: > [Parsoid version from the cli] Your suggestion worked like a charm... thank you! > > My response is also "0.7.1+git", but my SHA number does not match yours. Should it? > > [npm not always needed].. tha

Re: [MediaWiki-l] Dependency in positioning an element in a table

2017-11-11 Thread Brian Wolff
The best I can come up with (Not using tables, but div based layout). 85% main column 2% gap 13% second column Some random text. More random text Next paragraph. Yadda Yadda TEXT WE ARE ALIGNING AGAINST Some note. Here. (Keep in mind the percentags on the span are relative to the wid

Re: [MediaWiki-l] Cannot access the database

2017-11-17 Thread Brian Wolff
First of all, Mediawiki 1.25 is out of date and has publically known security vulnerabilities. You should upgrade. For the error, I would start by checking $wgDBServer. If your db is on the same host as mediawiki and commandline is working, it could be something like using network vs local socket.

Re: [MediaWiki-l] Extension Duplicator help

2017-11-20 Thread Brian Wolff
Hi. The line you point out is wrong. It should be ->parse() instead of ->text() (In order to prevent admins from inserting javascript by editing the page MediaWiki:duplicator-success-revisions). In fact most of the message related stuff is wrong in this extension. I think the issue you're experia

Re: [MediaWiki-l] custom Permissions Error (with action)

2017-11-20 Thread Brian Wolff
That's very odd, it should just work. You're sure you have $1 in there exactly (e.g. no space between $ and 1)? If your wiki is public, can you link to it? -- bawolff p.s. When finding what mediawiki messsage to change, appending ?uselang=qqx (or &uselang=qqx) to the url can be much easier than

Re: [MediaWiki-l] Mediawiki extension IframePage with {{Special: ... }}

2017-11-29 Thread Brian Wolff
Actually using the tag approach (or a parser func such as #iframe) is the preferred approach imo. Using transcluded special pages disables parser cache by default which would have a negative impact on performance. Otherwise there is probably not much difference. Parser tags lets you interact with

Re: [MediaWiki-l] only 404 error after upgrade

2017-12-07 Thread Brian Wolff
Given that you just moved domains, my first guess would be that your new domain is serving files for that virtual host from a directory different then the one you expect. Check to see if you can serve any files from that domain, even a simple static html file or text document. Your wgArticlePath s

Re: [MediaWiki-l] CAS update failed on user_touched for user ID # (User.php line 3889)

2017-12-11 Thread Brian Wolff
So first of all, check what the value of user_touched is for that user in the database. It should be a timestamp. If its a timestamp for some time in the future, that would cause the problem. If this is not a timestamp, then what this means is that there is a conflict in updating the user object,

Re: [MediaWiki-l] Set MySQL connection to use SSL

2017-12-18 Thread Brian Wolff
There is no config variable named $wgDBflags. Set $wgDBssl = true; -- Brian On Mon, Dec 18, 2017 at 7:00 PM, cdhgold wrote: > In my MW site I'm using MW 1.30 and MySQL 5.7.x > > I need to set MW to use SSL for the database connection but am not finding > the right settings in MW documentation (

[MediaWiki-l] Security announcement for TemplateData extension

2017-12-18 Thread Brian Wolff
the flaw, see the ticket: https://phabricator.wikimedia.org/T118682 Thank you, Brian Wolff Wikimedia Security Team -BEGIN PGP SIGNATURE- iQIcBAEBAgAGBQJaODEUAAoJEDYflDsVwI3U7q0P+weJjUHZ7nd4c669jw5aXg82 jQ1bT88YsoXr5vFr22etdFyN4VjgM+ZoMfKWGwxh7V2FjYQocKvOm1A5fCyWRaXp MMz6

Re: [MediaWiki-l] UTF-8 and Error: 1064 ... syntax to use near '-8' at line 9

2017-12-21 Thread Brian Wolff
Well first of all, running update.php definitely is mentioned at https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script The error sounds like you have $wgDBTableOptions set incorrectly. -- bawolff On Thursday, December 21, 2017, Jeffrey Walton wrote: > We are working on CentOS 7

Re: [MediaWiki-l] Do we need wgDBmysql5 for MediaWiki 1.30?

2017-12-22 Thread Brian Wolff
$wgDBmysql5 is poorly named. It has little to do with Mysql5, and is all about wheter the db connection is using the "utf8" or "binary" charset. It is still used in modern MediaWiki. Generally speaking, I would probably reccomend against changing the value of this setting unless you're sure you kn

Re: [MediaWiki-l] How to configure to always log error information?

2017-12-22 Thread Brian Wolff
https://m.mediawiki.org/wiki/Manual:How_to_debug has some info about how to enable mediawiki debug logs. For syntax highlight, the most common problem is an issue executing external commands. The mediawiki debug log, once enabled will tell you the exact command mediawiki is trying to execute. --

Re: [MediaWiki-l] How to configure to always log error information?

2017-12-22 Thread Brian Wolff
On Friday, December 22, 2017, Jeffrey Walton wrote: > On Fri, Dec 22, 2017 at 9:28 PM, Brian Wolff wrote: >> https://m.mediawiki.org/wiki/Manual:How_to_debug has some info about how to >> enable mediawiki debug logs. >> >> For syntax highlight, the most common pr

Re: [MediaWiki-l] Getting thumbnails of all images with Javascript

2018-01-09 Thread Brian Wolff
What Huji said is true on Wikimedia, but not most wikis (depends on config for 404 thumbnailing). You need to use the imageinfo api query module to get the thumb urls in a way garunteed to work regardless of wiki config. Im unclear what you mean by "all images". If you literally mean all images on

Re: [MediaWiki-l] Source protection

2018-01-10 Thread Brian Wolff
Honestly, at that point, you'd probably be better setting up some sort of proxy thing, where non-logged in users view some sort of proxy that only proxies the page view (not allowing any url parameters through or viewing any special pages), and logged in users actually deal with MW. The biggest th

Re: [MediaWiki-l] Data Queuing

2018-01-10 Thread Brian Wolff
Its in the database. You can extract it using standard database tools. Once you get into your database (You can use the mysql command line tool if using mysql. Many hosts will often include software like MyPHPAdmin to let you run db queries. Details will vary depending on your db configuration. If

Re: [MediaWiki-l] Objectcache table - records expiry time 2038

2018-02-06 Thread Brian Wolff
Generally speaking objectcache is used as a last resort form of caching if you dont have apcu, memcached, redis, or something else configured. Truncating the contents of the table will make the next couple of requests to mediawiki slower as some of the cache entries will need to be rebuilt. But it

Re: [MediaWiki-l] Objectcache table - records expiry time 2038

2018-02-07 Thread Brian Wolff
On Wednesday, February 7, 2018, John Horne wrote: > On Tue, 2018-02-06 at 15:33 -0500, Brian Wolff wrote: >> Generally speaking objectcache is used as a last resort form of caching if >> you dont have apcu, memcached, redis, or something else configured. >> > ... >&g

Re: [MediaWiki-l] Remove Submit Button From Form (Class HTMLForm)

2018-02-07 Thread Brian Wolff
Hi, Assuming you HTMLForm object is named $form, You can call $form->suppressDefaultSubmit() For more information see https://doc.wikimedia.org/mediawiki-core/master/php/classHTMLForm.html#ad378993f825a14e63cb0e15d7e95e383 -- Brian On Wed, Feb 7, 2018 at 9:08 PM, Jay prakash <0freerunn...@gmai

Re: [MediaWiki-l] Web application security scanner for Mediawiki?

2018-02-13 Thread Brian Wolff
Hi, Not a web application security scanner, but on a related note, I am currently experimenting with using static analysis to detect flaws in MediaWiki extensions - https://github.com/wikimedia/Phan-Taint-Check-Plugin . It is still rather experimental (And has some annoying dependency requirements

Re: [MediaWiki-l] Escaping template parameter values

2018-02-16 Thread Brian Wolff
So, should work perfectly fine in template parameters. Unless you mean you want most wikitext to work, just not }} and friends. In which case there are two things you could do: either have a separate template containing just the characters (there is a built in template:! Where {{!}} Puts out a |)

Re: [MediaWiki-l] DismissableSiteNotice - click and hide

2018-02-16 Thread Brian Wolff
CentralNotice (Which is different from DismissableSiteNotice) uses raw html for the banner. So you could definitely do that if you wanted in the central notice banners. Using the current stewvote banner as an example https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/stewvote repla

  1   2   3   >