User talk:Aaron Schulz
[edit] A barnstar for you!
| 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) |
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| SwiftMedia using Rackspace Cloud Files | 21 | 02:14, 16 May 2012 |
| Can one control the number of FlaggedRevsTags& | 1 | 17:17, 4 May 2012 |
| Problem Using ReaderFeedback Extension with Some Skin | 1 | 15:04, 13 April 2012 |
| Notes about IPv6 | 0 | 02:29, 24 March 2012 |
| "important" tag on CodeReview | 0 | 02:14, 27 February 2012 |
| Email notice at user registration / Customization of registration form | 3 | 13:22, 25 February 2012 |
| FlaggedRevs Extension | 3 | 22:22, 21 February 2012 |
| Request for username usurpation | 3 | 06:42, 17 February 2012 |
| MediaWiki Update on Wikia | 2 | 13:04, 16 February 2012 |
| User:White Cat → User:とある白い猫 | 1 | 02:08, 15 February 2012 |
| Unsigned | 4 | 21:34, 14 February 2012 |
| Library for SVG diagrams | 2 | 01:59, 10 January 2012 |
| Mediawiki as a CMS | 1 | 18:59, 5 January 2012 |
| Confirm Account extension does not seem to be working with MediaWiki 1.18 | 1 | 18:54, 5 January 2012 |
| sqlite3 and ConfirmAccount | 1 | 21:22, 8 November 2011 |
| ConfirmAccount doesn't work on my mediawiki | 1 | 03:23, 4 October 2011 |
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
You just add "include( 'path/to/extensions/SwiftCloudFiles/SwiftCloudFiles.php' )" to LocalSettings.php, and SwiftFileBackend will use it.
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).
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?
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).
Just made https://gerrit.wikimedia.org/r/#/c/7199/.
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,
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
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
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,
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
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.
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.
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,
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
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.
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
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?
It is configurable, as documented on the extension page Extension:FlaggedRevs.
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 "
Would appreciate any help figuring this one out. Thanks!
- Antonio
This extension is pretty much obsolete.
- 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.
- Could you please elaborate on Roadmap#April 2012 where it mentions World IPv6 Launch, and your name, but little else.
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!
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
Hi again,
haven't had time to answer or is my request badly placed?
Alex
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.
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?
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).
No pending or accepted revisions would be lost when uninstalling the extension.
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!
Will MediaWiki 1.19 be released to sites like Wikia on the 23rd? Thanks,
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?
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
It stopped working on two wikis I recently updated. I also left a message at the support desk about it.
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
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?