User talk:Aaron Schulz

From MediaWiki.org
(Redirected from User talk:Voice of All)
Jump to: navigation, search


[edit] A barnstar for you!

Kindness Barnstar Hires.png The Random Acts of Kindness Barnstar
For being the most patient helper at IRC today, even when the problem moved from gerrit to git to python to win etc. Siddhartha Ghai (talk) 19:17, 22 March 2012 (UTC)
Start a new discussion

Contents

Thread titleRepliesLast modified
SwiftMedia using Rackspace Cloud Files2102:14, 16 May 2012
Can one control the number of FlaggedRevsTags&117:17, 4 May 2012
Problem Using ReaderFeedback Extension with Some Skin115:04, 13 April 2012
Notes about IPv6002:29, 24 March 2012
"important" tag on CodeReview002:14, 27 February 2012
Email notice at user registration / Customization of registration form313:22, 25 February 2012
FlaggedRevs Extension322:22, 21 February 2012
Request for username usurpation306:42, 17 February 2012
MediaWiki Update on Wikia213:04, 16 February 2012
User:White Cat → User:とある白い猫102:08, 15 February 2012
Unsigned421:34, 14 February 2012
Library for SVG diagrams201:59, 10 January 2012
Mediawiki as a CMS118:59, 5 January 2012
Confirm Account extension does not seem to be working with MediaWiki 1.18118:54, 5 January 2012
sqlite3 and ConfirmAccount121:22, 8 November 2011
ConfirmAccount doesn't work on my mediawiki103:23, 4 October 2011

SwiftMedia using Rackspace Cloud Files

Good morning Aaron,

I am working on a configuration using Rackspace CloudFiles rather than configure my own swift instance. We feel the CDN can provide what we need without having to manage the extra servers. I upgraded to 1.19 as you suggested and am researching the FileBackend object for this. I am, however, trying to locate a central information resource that explains in more detail the steps to integrate between FileBackend and cloudfiles. Do you have any resources that can better help me on this.

Also, rather than installing a full swift implementation, is there a way to install a limited swift configuration for the swiftproxy only?

Thanks! Justin

Jwestyp (talk)14:31, 10 May 2012

You just add "include( 'path/to/extensions/SwiftCloudFiles/SwiftCloudFiles.php' )" to LocalSettings.php, and SwiftFileBackend will use it.

Aaron (talk)16:27, 10 May 2012
 

You will also need to set $wgLocalFileRepo to zone URLs that map to the CDN urls. I may have to change FileRepo to make this work properly for the 'temp' zone (as well as for all other zones with just one setting).

Aaron (talk)16:50, 10 May 2012

I notice that much of the documentation for swift is written with an emphasis on Debian. Is there support for Cloud Files and Swift on Red Hat?

Jwestyp (talk)17:04, 10 May 2012

The cloudfiles package is just PHP, it should work for any system, provided the proper php extensions are enabled via php.ini (and compile flags)...namely fileinfo, curl, mb_string. Unless you are setting up your own swift cluster, you don't have to worry about that. It doesn't matter which OS flavor is running the swift nodes (all contact between cloudfiles and swift is done via an HTTP/HTTPS API).

Aaron (talk)19:18, 10 May 2012
 
 

I think to use rackspace CDN, I think SwiftFileBackend will need to be tweaked. The prepare() and secure() calls need to call container CDN functions.

Aaron (talk)18:24, 10 May 2012

Aaron,

Thanks so much for the excellent support. I will see what I can get from this. I will document as much of it as I can and I will provide it to you.

Justin

Jwestyp (talk)19:23, 10 May 2012
 

Aaron,

I have configured local uploads to my wiki and was trying to move to the files you updated yesterday for me.

Trying the files from your commit yesterday and am getting a blank page when clicking upload and this error from my httpd error log.

[Fri May 11 10:48:54 2012] [error] [client 76.31.142.155] PHP Fatal error: Call to undefined method FileBackend::isPathTraversalFree() in /var/www/html/mediawiki/includes/filerepo/FileRepo.php on line 1422, referer: http://*removed domain*/mediawiki/index.php/Special:Upload

My localsettings are: $wgFileExtensions = array('png','gif','jpg','jpeg','svg','psd','ai','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg','txt'); //What file extensions to allow to be uploaded $wgUploadDirectory = "{$IP}/media"; //Upload directory /mediawiki/media $wgUploadPath = "{$wgScriptPath}/media"; //Upload Path /mediawiki/media

The version in the default settings file from the commit is 1.20alpha and I am still on mediawiki 1.19.

Thanks Justin

Jwestyp (talk)16:01, 11 May 2012

Maybe you should just do a clone of the 'master' branch of MediaWiki from git and use that. That would assure that new CDN features and fixes can be applied with "git pull" and everything would be a consistent MW version (rather than picking out patches). Of course, you'd have to wait for things to get merged.

Aaron (talk)16:06, 11 May 2012

Aaron,

I did a clone of the master branch, added the commit files you created and then a clone of the extension for SwiftCloudFiles.

I assume I will need a filerepo array for this to work.

Do you have an example of the filerepo array settings? Do I still need the swiftproxy set up as well?

Thanks Justin

Jwestyp (talk)19:54, 11 May 2012

Go to http://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php and look for "OpenStack". Around there you can see some swift backend config and some file repo config. Of course our repo is still using the NFS ones, but you could imagine just swapping out the 'backend' => 'local-NFS', lines with the swift backend name. You can probably ignore 'shardViaHashLevels' and 'fileJournal'. Also, 'wikiId' can be ignored or set to some pretty and concise unique ID for the wiki. You won't need to deal with the 'shared' repo or backend either. So your setup will be much simpler.

Aaron (talk)23:14, 11 May 2012
 

also,

Local uploads work great and I have included the call to the extensions/SwiftCloudFiles/SwiftCloudFiles.php in my LocalSettings. I just am not sure where to go from there. The page for Extension:SwiftCloudFiles doesn't have any content and still points to the Rackspace-cloudfiles git repository.

Jwestyp (talk)20:16, 11 May 2012
 
 

CDN support added in https://gerrit.wikimedia.org/r/#/c/7688/. To use this, the 'zones' parameter (from https://gerrit.wikimedia.org/r/#/c/7199/) of FileRepo will have to be set for 'thumb', 'public', and 'temp' to the base CDN URL. Also see the comments in DefaultSettings.php.

Aaron (talk)23:18, 14 May 2012

Aaron,

I grabbed the files and put them in place. I also copied your config from above and get an error that wgSwiftConf is undefined when loading the Special:Upload page and I get a blank screen. The following error repeats several times:

Notice: Undefined variable: wgSwiftConf in /var/www/html/mediawiki/LocalSettings.php on line 157
[Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP Stack trace:
[Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP 1. {main}() /var/www/html/mediawiki/index.php:0
[Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP 2. require() /var/www/html/mediawiki/index.php:54
[Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP 3. require_once() /var/www/html/mediawiki/includes/WebStart.php:134

I then get these errors as well:

PHP Fatal error: Class 'FileBackendStoreOpHandle' not found in /var/www/html/mediawiki/includes/filerepo/backend/SwiftFileBackend.php on line 1179, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP Stack trace:, referer:*url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 1. {main}() /var/www/html/mediawiki/index.php:0, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 2. MediaWiki->run() /var/www/html/mediawiki/index.php:58, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 3. MediaWiki->main() /var/www/html/mediawiki/includes/Wiki.php:502, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 4. MediaWiki->performRequest() /var/www/html/mediawiki/includes/Wiki.php:592, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 5. SpecialPageFactory::executePath() /var/www/html/mediawiki/includes/Wiki.php:263, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 6. SpecialUpload->execute() /var/www/html/mediawiki/includes/SpecialPageFactory.php:493, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 7. SpecialUpload->getUploadForm() /var/www/html/mediawiki/includes/specials/SpecialUpload.php:181, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 8. SpecialUpload->getWatchCheck() /var/www/html/mediawiki/includes/specials/SpecialUpload.php:220, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 9. wfLocalFile() /var/www/html/mediawiki/includes/specials/SpecialUpload.php:515, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 10. RepoGroup->getLocalRepo() /var/www/html/mediawiki/includes/GlobalFunctions.php:3600, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 11. RepoGroup->getRepo() /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:298, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 12. RepoGroup->initialiseRepos() /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:266, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 13. RepoGroup->newRepo() /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:336, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 14. FileRepo->__construct() /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:348, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 15. FileBackendGroup->get() /var/www/html/mediawiki/includes/filerepo/FileRepo.php:79, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 16. AutoLoader::autoload() /var/www/html/mediawiki/includes/filerepo/FileRepo.php:0, referer: *url removed*/mediawiki/index.php/Main_Page
[Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 17. require() /var/www/html/mediawiki/includes/AutoLoader.php:1032, referer: *url removed*/mediawiki/index.php/Main_Page

Here is my config with private info removed.

/*Swift Backend Config*/
require( "$IP/extensions/SwiftCloudFiles/SwiftCloudFiles.php" );
$wgFileBackends[] = array(
'name' => 'localSwift',
'class' => 'SwiftFileBackend',
'wikiId' => 'Development-Wiki',
'lockManager' => 'fsLockManager',
'swiftAuthUrl' => $wgSwiftConf['http://docs.rackspacecloud.com/auth/api/v1.1'],
'swiftUser' => $wgSwiftConf['removed'],
'swiftKey' => $wgSwiftConf['removed'],
#'swiftProxyUser' => 'test:anon',
'shardViaHashLevels' => array(
'local-public' => array( 'levels' => 2, 'base' => 16, 'repeat' => true ),
'local-thumb' => array( 'levels' => 2, 'base' => 16, 'repeat' => true ),
'local-deleted' => array( 'levels' => 2, 'base' => 36, 'repeat' => false )
),
#'readOnly' => 'Temporary planned maintenence for 5 min',
'fileJournal' => array( 'class' => 'DBFileJournal', 'wiki' => false ),
'parallelize' => 'implicit'
);
$wgLocalFileRepo = array(
'class' => 'LocalRepo',
'name' => 'local',
'backend' => 'localSwift',
'scriptDirUrl' => $wgScriptPath,
'scriptExtension' => $wgScriptExtension,
'url' => 'http://localhost/var/www/html/mediawiki/media',
'hashLevels' => 3,
'transformVia404' => true,
'deletedHashLevels' => 3
);
/*End Swift Backend Config*/

I searched the other files for a reference to wgSwiftConf and am not sure where the variable is defined.

Thanks Justin

Jwestyp (talk)15:51, 15 May 2012

Oh, $wgSwiftConf is just a variable I made up on my testwikis to separate out the private stuff. You can use any variable name that you want, but you'll have to define it yourself. You still want to have:

 'swiftAuthUrl'       => $wgSwiftConf['authUrl'],
 'swiftUser'          => $wgSwiftConf['user'],
 'swiftKey'           => $wgSwiftConf['key'],

...you just have to define $wgSwiftConf, like: $wgSwiftConf = array( 'authUrl' => 'STUFF', 'user' => 'STUFF', 'key' => 'STUFF' );

The FileBackendStoreOpHandle error makes me wonder if you are fully on master or not.

Aaron (talk)20:12, 15 May 2012

I defined the variable. It works fine.

The FileBackendStoreOpHandle error is unknown to me. What do you mean by fully master or not? This is a private server.

I find a reference to it in SwiftFileBackend.php but not anywhere else. Am I missing a file that defines FileBackendStoreOpHandle as a class?

Thanks Justin

Jwestyp (talk)20:53, 15 May 2012
 
 
 
 
 

Can one control the number of FlaggedRevsTags&

Dear Mr Schulz, Are there only 3 FlaggedRevsTags ('accuracy', 'depth' and 'tone')? I mean can one control the number of the tags? If no, why not?

Николай95 (talk)05:21, 4 May 2012

It is configurable, as documented on the extension page Extension:FlaggedRevs.

Aaron (talk)17:17, 4 May 2012
 

Problem Using ReaderFeedback Extension with Some Skin

Hi Aaron,

I have the ReaderFeedback Extension installed, and I'm using the GuMaxDD skin by Paul Gu.

The feedback form doesn't show up in the final page source when I use his skin, even though the hook is correctly executed and the form data is appended to the page data. But somehow in the final source, it's not included anymore.

Is there a particular mediawiki skin configuration which indicates whether or not to include data after page content? Because the section "

" is missing from GuMaxDD page source. And I notice this is where your form data usually goes.

Would appreciate any help figuring this one out. Thanks!

- Antonio

203.125.217.17810:54, 13 April 2012

This extension is pretty much obsolete.

Aaron (talk)15:04, 13 April 2012
 

Notes about IPv6

  1. On Jimmy Wales' enwiki talk page, there was a discussion related to IPv6 support and whether the WMF can participate in the World IPv6 Launch, as asked for by ARIN's CEO.
  2. Could you please elaborate on Roadmap#April 2012 where it mentions World IPv6 Launch, and your name, but little else.
Jasper Deng (talk)02:29, 24 March 2012

"important" tag on CodeReview

Hey Aaron. I opened this topic earlier on Talk:Code review tags. Since you seem to be using this tag, can you please document it at Code review tags, or remove its usage? Thanks!

Krinkle (talk)02:14, 27 February 2012

Email notice at user registration / Customization of registration form

Hi Aaron,

I successfully added ConfirmAccount to my MediaWiki installations - thanks for that. But I have three questions:

  • Can I as the administrator get an email notification when someone registers? It happens very unfrequently, so I won't check very often, but if someone registers, I don't want him to wait for confirmation.
  • Can I customize the registration form content? I don't need all the sections, they will only confuse the users, it will be sufficient to only have user name, email and maybe the bio.
  • Can I let the user choose his password right at the registrarion instead of generating one for him and asking him to change it?

Thanks, Alex

62.227.224.2521:26, 9 February 2012

Hi again,

haven't had time to answer or is my request badly placed?

Alex

62.227.228.17222:11, 14 February 2012
  • Yes, after they confirm their account, see $wgConfirmAccountContact.
  • See ConfirmAccount.config.php, you can cut down some of the form complexity with the options there.
  • No.

Last time I tried to respond I was having network problems.

Aaron02:03, 15 February 2012

Thank you very much, it worked! :-)

84.168.53.6813:22, 25 February 2012
 
 
 

FlaggedRevs Extension

Hi Aaron,

As part of some research on the FlaggedRevs extension, we were wondering about how uninstalling (should we find this extension to not be suitable later on), might affect flagged revisions. Specifically we were wondering if there would be any revisions that would be "lost", should we decide to drop the tables etc, as per the uninstallation instructions. Or if the page revisions will be left intact.

If anything would be lost, would you have any advice or tricks that would "apply" any outstanding changes, or otherwise save the uncommited changes, prior to removal?

Thanks.

Dmcgrath (talk)14:40, 17 February 2012

Hello Aaron, I am riding on the same title with a question unrelated to the original question, but to FR nonetheless.

The page review statistic page of Flagged Revisions [1] lists "the average wait for edits by users that have not logged in to be reviewed is x; the median is y."

How is this calculated exactly? What is the time period or review data that are taken into account? I have noticed that the information is not updated very often, so the time frame must be either several days at least, or maybe from the start. Could you please point me to a page where I could get the necessary information on this?

Pxos (talk)22:04, 21 February 2012

It's a week of data offset backwards so it ends at a censor point (the time the oldest currently pending revision was made). In the FlaggedRevsStats class, the exact start and end points are stored, though not exposed anyway (MW >=1.18).

Aaron (talk)22:20, 21 February 2012
 

No pending or accepted revisions would be lost when uninstalling the extension.

Aaron (talk)22:22, 21 February 2012
 

Request for username usurpation

Hi there, I was wondering if you could help me out with usurping the username Entropy on mediawiki.org as part of my SUL. I have provided confirmation that I'm the owner of this account on en.wikipedia.org here. My justification for usurping this username is that the user with this username here has only one contribution dating back to 2007. Thanks!

Ecliptica 06:39, 13 December 2011 (UTC)06:39, 13 December 2011

Was this handled?

Aaron08:42, 13 January 2012

No, it's not been handled yet.

Ecliptica11:21, 14 January 2012

Done.

Aaron (talk)06:42, 17 February 2012
 
 
 

MediaWiki Update on Wikia

Will MediaWiki 1.19 be released to sites like Wikia on the 23rd? Thanks,

108.17.39.65, Iggyvolz on Wikia21:36, 13 February 2012
Edited by another user.
Last edit: 13:04, 16 February 2012

I have no idea what Wikia is doing.

Aaron21:18, 14 February 2012

Never mind, I got an answer from Wikia, it's a no.

108.17.39.6500:52, 15 February 2012
 
 

I am globally requesting rename for SUL purposes the change of my user name to とある白い猫. Thanks! (both accounts are mine) -- Cat chi? 11:16, 15 January 2012 (UTC)

Cat chi?11:16, 15 January 2012

Done.

Aaron02:08, 15 February 2012
 

Hello! Can you help me? I want to hide my IP on this page [1]. Thanks a lot. Iniquity 21:43, 13 February 2012 (UTC)

Iniquity21:43, 13 February 2012

Which of the IPs, both?

Aaron21:52, 13 February 2012

Yep) Iniquity 21:59, 13 February 2012 (UTC)

Iniquity21:59, 13 February 2012

Done. I think there may be more in the IP contribs though...

Aaron21:18, 14 February 2012

Thank you and Im sorry about this request.

Iniquity21:34, 14 February 2012
 
 
 
 

Library for SVG diagrams

Poking around SVN I noticed that you seem to have evaluated some libraries for SVG graphs and diagrams. For bug 27156, I'm looking for a library that is able to or can be extended to produce timelines, include links and produce parallel PNG output with an HTML map. Have you written down your findings somewhere?

Tim Landscheidt18:22, 5 January 2012

I don't think so...and it's been a while. I only looked around when doing the old ReaderFeedback extension.

Aaron18:52, 5 January 2012

Thanks, I'll search some more :-).

Tim Landscheidt01:59, 10 January 2012
 
 

Mediawiki as a CMS

Hi Mr Schulz

I'm Dr Jean-Guy Levreault, in Québec, I'm a clinician seeing patient but also in the medical team of a clinical laboratory. We have procedures, prodedureS with a capital S because we have so many of them Maintaning the body of text as been challenging

We are using a homemade system that tracks versions of text, list of required reading, a log of done readings, scheduled documents updates

I've created it and it works fine but, but...

  • Editing is restricted to assigned reviewers
  • No support for content re-use
  • No statistics

I think mediawiki can fill those missing requirements, mediawiki was build upon democratic editing, we need that. But we also need structured readings and logs

So here is my problem (finally got to the point)

Versionning of templates in a page

With the "freeze" option the templates are loaded at the version approved, that would be the ideal configuration, but there is no special page that gather documents with templates in need of reviewing. In case of multiple templates updating there is no way to accept one update and leave the rest unchanged. I also don't know how to keep records of the update, if I understand correctly your extensions does not create a new version of the container page but simply updates the database for the new templates id.

I understand completely that Wikipedia is living in a different ecology than our future wiki, they have no "slow" time to do expensive database update as we do

Do I understand the current state well? Do you have plans for a new version of FlaggedRevs, will it change the way it handles templates updates?

Thanks a lot Of course if we can come up with code to do what we need we will make it open source

Levreauj22:16, 13 November 2011

I may add an option to list pages that only have templates/files needing review. There are not plans for anything else though.

Also, why not just add $wgFlaggedRevsHandleIncludes = FR_INCLUDES_STABLE?

Aaron18:59, 5 January 2012
 

Confirm Account extension does not seem to be working with MediaWiki 1.18

It stopped working on two wikis I recently updated. I also left a message at the support desk about it.

MediaWiki Website User15:31, 16 December 2011

Bawolf seems to have responded already.

Aaron18:54, 5 January 2012
 

sqlite3 and ConfirmAccount

Hi Aaron,

I am running into a problem with setting up ConfirmAccount with sqlite3. I want to verify your instructions in the FAQ section. The first step is to modify the ConfirmAccount.sql with the SQL for SQLite (Extension talk:ConfirmAccount#Got it working with SQLite). Do I run update.php after making that change?

SQLite3 PHP 5.3.8 MediaWiki 1.17

Dlw17:29, 17 October 2011

I believe so.

Aaron21:22, 8 November 2011
 

ConfirmAccount doesn't work on my mediawiki

Hi, Aaron. I was using ConfirmAccount on a MediaWiki instance and it worked great until we upgraded to 1.17. Now it causes errors that are very strange. For example, when I try to log in, I get this error:


Fatal error: Call to undefined method OutputPage::addModules() in /home/wiki//extensions/ConfirmAccount/presentation/ConfirmAccountUI.hooks.php on line 40

Any thoughts?

Simsong01:53, 4 October 2011

http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_17/phase3/includes/OutputPage.php?revision=89676&view=markup

The function is there. Make sure you svn up to the latest version of 1.17.

Aaron03:23, 4 October 2011
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox