User talk:Yaron Koren

Reproducing the createPage functionality from SF_CreatePageJob.php
Hi Yaron, I apologize if this is not the right venue to ask, and for my persistence in seeking your guidance. I think I now understand the code in SF_CreatePageJob but I still don't know how I could use it in a hook to get the functionality I want: I'd like all red links to have their pages created automatically once an article is saved. I tried this syntax, but it didn't work: $wgHooks['ArticleSaveComplete'][] = 'SF_CreatePageJob.run';

Your help would be very much appreciated. Thank you! (Robolobster)


 * That's C- (or Java-)style syntax - 'SF_CreatePageJob::run' might work better instead. Yaron Koren (talk) 11:56, 12 March 2014 (UTC)

Tour of Consumer Reports' laboratories
You live in NYC, do you not, Yaron? On Tuesday January 15 at 3pm Wikipedians are invited to join a tour of laboratories at en:Consumer Reports in Yonkers. If you would like to attend please RSVP at en:Wikipedia:Meetup/NYC/January 2013. If you have questions feel free to ask on that page or contact me on my talk page or by my office phone at 914.378.2684. Thank you.  Blue Rasberry   (talk)   19:48, 9 January 2013 (UTC)


 * Wow! Laboratory tour! Yaron Koren (talk) 20:03, 9 January 2013 (UTC)

Admin Link
Hi, I am one of the admins of the Site www.pflegewiki.de (ist an Wiki for nurses). We use your Extension Admin Link. To talk about the project wie use an group in google+, so my idea was to add an link in Admin Link. But I have no idea how.... pleas help me! THX Dave (schallopp@pflegewiki.de)


 * I just answered your similar question on the Admin Links talk page. Yaron Koren (talk) 16:02, 2 April 2013 (UTC)

GSoC / OPW IRC AllHands this week
Hi, you are invited to the GSoC / OPW IRC AllHands meeting on Wednesday, June 26, 2013 at 15:00 UTC (8:30pm IST, 8am PDT) at #wikimedia-office. We have done our best finding a time that works decently in as many timezones as possibles. Please confirm at qgil@undefinedwikimedia.org so I can add you to the calendar invitation and I have your preferred email for other occasions. If you can't make it's fine, but let me know as well. We have left a notice to all students, but your help is welcome making sure yours is aware about it. Thank you!--Qgil (talk) 20:24, 24 June 2013 (UTC)

Extension:Header_Tabs question
Hello - Please excuse me for the interruption.

I find that asking questions on the talk pages of extensions often get unanswered.

I absolutely LOVE your extension, and I just was hoping if you had a minute if you could answer this simple question?

I am confused where the body tag is located.

RE: ''In the 'skins-yui' folder, create a new skin class (for example: ) to the   tag.

Where is the  tag? In combined-history-min.js?

I really appreciate your time. Have a great weekend. Igottheconch (talk) 17:15, 5 September 2013 (UTC)


 * I just answered your similar question on the Header Tabs talk page. Yaron Koren (talk) 17:45, 5 September 2013 (UTC)
 * thank you! hoping to stay with 1.16 and not upgrade. Appreciate your time! Igottheconch (talk) 19:14, 5 September 2013 (UTC)

Extension:Semantic Forms/Creating query forms
15:50, 22 November 2013‎ Yaron Koren (talk | contribs)‎. . (3,638 bytes) (-130)‎. . (Rejected the last text change (by Hans Oleander) and restored revision 782233 by Daniel K. Schneider: "[ and ]" refers to the square bracket characters "[" and "]". I agree it's a little confusing...) (undo | thank) [automatically checked]
 * Ah, ok - sorry then for deleting this, thought it was some accidental leftover. Using quotes ("[" and "]") like in your comment might make that obvious. - What was the reason to not accept this paragraph: "Another possibility is to embed a default value in the actual query form, using the default=value parameter in the field definition."? It had taken me a while to figure this out, as the char entity trick mentioned before did not work for internal (double square bracket) links in my case, only by constructing an external (single square bracket) link.--Hans Oleander (talk) 16:53, 22 November 2013 (UTC)


 * Hi - yes, quotes would probably be better; they were left out because some people, when they see quotes, think that the quotes should go into the wikitext... you can't win. :( Anyway, sorry that, by rejecting that edit, I rejected the other change you made, which seems perfectly valid. I just added it in again, modified slightly. Yaron Koren (talk) 18:20, 22 November 2013 (UTC)

Multilingual SemanticMediaWiki
Hi, have you seen the latest versions of this proposal? Its scope seems much clearer to me now. Are you willing to mentor it? --Nemo 10:00, 6 March 2014 (UTC)


 * I don't think it's entirely clear yet (see the "More thinking is required..." part), but yes, I'd be willing to help out. I'm already a mentor for one project and a co-mentor for another, and I don't know if you're allowed to be a mentor for more than two projects, but even if all three projects get accepted, I could help out either officially or unofficially. Yaron Koren (talk) 12:47, 6 March 2014 (UTC)


 * Fantastic! An applicant would help with the "more thinking" part. :) I don't think being (co-)mentor for many projects is a formal problem, it's more a problem of capacity on your end. If there are many applications we'll figure out some solution. --Nemo 12:56, 6 March 2014 (UTC)

Please check my answer about "query string"
Extension_talk:Semantic_Forms here is my question!


 * Alright, I checked it. :) Yaron Koren (talk) 22:25, 2 July 2014 (UTC)

Question
Hello. Why Referata has a lot of spam? 190.33.67.43 18:46, 16 August 2014 (UTC)

Regarding Approved Revs extension installation
Hi Yaron,

I have installed “Extension: Approved Revs” to prevent publishing changes to a page until approval and followed the steps mentioned in the MediaWiki for that. But after the installation I still could not see the (approve) link on history page and also the changes made on the pages are published directly to all the users.

Below are the changes I did for the extension installation.

1. Created a folder “ApprovedRevs” inside extension folder and copied all the files. 2. Executed the DB scripts to create the DB objects 3. Added the below configuration in the LocalSettings PHP file

require_once( "$IP/extensions/ApprovedRevs/ApprovedRevs.php" );

$wgGroupPermissions['*']['edit'] = false;

$egApprovedRevsBlankIfUnapproved = true;

$wgGroupPermissions['*']['viewlinktolatest'] = false;

$wgGroupPermissions['sysop']['viewlinktolatest'] = true;

$egApprovedRevsAutomaticApprovals = false;

$egApprovedRevsShowApproveLatest = true;

Am I missing anything? Appreciate your help on this. Thanks

Regards Gopi. R


 * Does Approved Revs show up in your Special:Version page? And are you looking at pages in the main namespace? Yaron Koren (talk) 04:40, 3 November 2014 (UTC)


 * Are you asking about special pages? I checked the special pages and its not showing the Approved Revs. Also I’m looking at the pages which are created newly for my site not in the main page.


 * The question is whether the extension is listed on the page Special:Version in your wiki. This page will have a table with the installed extensions. Is ApprovedRevs there? --88.130.112.113 16:23, 3 November 2014 (UTC)

I could not find the page Special:Version on my wiki and I can see only "special pages" on the left navigation.
 * This one: Special:Version. But in your wiki. --88.130.80.53 22:01, 3 November 2014 (UTC)

Still I could not locate this page on my wiki. Could you advise me if there any way to find(navigate) to this page?

Blank page after installing Widgets in 1.24.1
Hi Yaron,

I am configure a wikifarm based on semantic mediawiki, every wiki shares the same code using symlinks. Everything looks fine but I get a blank page when I configure the Widgets extension. Could you have some idea about this issue?

Thank you very much for your support.


 * Hi - see here for how to see the error message when you get a blank page. Yaron Koren (talk) 00:34, 12 January 2015 (UTC)


 * Thank you Yaron, I found the problem based on your suggestion.

¡Una barnstar para ti!
Hey, gracias! Yaron Koren (talk) 02:15, 14 January 2015 (UTC)

SF: Invalid or virtual namespace -1 given
Hi Yaron, I am carry on to configure a semantic wikifarm. Rigth now, I get the error when user try to create a new page using semantic forms. I had installed Semantic Forms using composer. Could you give some directions about how to solve this issue? Thank you


 * At what point in the process do you get the error? And is the page you're trying to create in a custom namespace? Yaron Koren (talk) 22:27, 15 January 2015 (UTC)

We get the error when it tries to create the page in a custom space. Even the admin user get the same error. Thank you


 * Alright. What happens if you try to create a page in that namespace, without a form? Yaron Koren (talk) 00:08, 16 January 2015 (UTC)

It works create a simple page in custom namespaces, the issue appears when we use SemanticForm even in Main space.


 * On the page where the form is displayed, what does the URL look like? Yaron Koren (talk) 00:19, 16 January 2015 (UTC)

I'll send you by e-mail.

Hi Yaron, the issue is generated by Extension:ConfirmEdit, it was a version conflict. Everything ok. Thank you


 * Oh, great. Yaron Koren (talk) 23:44, 18 January 2015 (UTC)

i'm getting this as well from Confirm edit (latest), and sforms(3.2-alpha(latest)). It gives the error at the top of the form when i hit the save page button. Guess i'm going to try some old versions of confirmedit based on what other user said. http://i.imgur.com/1q1rQdp.png


 * Yup the problem was using a new version of confirm edit with old version of mediawiki. When i got the confirm edit branch for my version of mediawiki the problem went away (mediawiki 1.23, cloned branch wmf/1.23f22wmf)

FURTHER COMMENT Hi Yaron, I am getting the same error. My site uses the following most recent stable versions - Mediawiki 1.25.1, Semantic Forms 3.2 (9a0fbae), Semantic MediaWiki 2.2 and Confirm Edit 1.3. The exact error message is "Invalid or virtual namespace -1 given". The namespace ID "-1" is the default system ID for the "Media" namespace. It happens whenever a form is used to create an article and whether logged in as Sysop or User. It is a recent error which occurred when I updated from Mediawiki 1.24.7 and also installed the latest versions of Semantic Forms and SMW. Commenting out the call to Confirm Edit extension in my LocalSettings.php file solves the problem, so the conflict is with that extension. In my case, I can manage without the Confirm Edit extension because my site requires approval of user accounts (using the Confirm Account extension) and I don't really need any form of captcha. However, thought the above discussion helped me find the problem and I thought my experience / settings may also help in finding the problem. Cheers, Allen

Has there been any update to this? I'm still getting the error, Invalid or virtual namespace -1 given, with Version 1.25 Confirm Edit & MediaWiki 1.25.2 Thanks


 * What version of SF? Yaron Koren (talk) 16:56, 8 October 2015 (UTC)

'SF_VERSION', '2.7' I just upgraded to the 3.3.2 and it seems to work fine. I'm not sure why the 2.7 was still included with the most recent SF Bundle download.... Thanks!~! Me Too! I'll add my name to this reporting list for the exact same bug:
 * MW = v1.25.1,
 * SF = v2.7,
 * Confirm Edit = v1.3, (Note, sysop does not trigger confirmEdit but still gets the same error message.)

This is rather troubling, because ConfirmAccount is not very resistant to smart vandal-bots, without the use of ConfirmEdit. WmBliss (talk) 22:28, 8 October 2015 (UTC)


 * Like everyone else getting this error, you are using a very old version of SF - 2.7 - that comes bundled with Semantic Bundle. (Yes, I know SB has to be updated.) Just upgrade SF. Yaron Koren (talk) 23:13, 8 October 2015 (UTC)


 * Thank you User:Yaron Koren. That did fix most problems. BTW, you and your book seem to be saving MediaWiki. Are you implying that I should upgrade all the other extensions packaged in the SMW Bundle? If so, should I be installing & using Composer to do this? WmBliss (talk) 15:39, 10 October 2015 (UTC)


 * I don't if MediaWiki is in any danger, but if my book and I are saving it in some small way, that's great to hear! No, I wasn't implying that - I meant that I, or someone else, needs to update SB to include all the recent versions of everything. If you're not having problems with SMW, for instance, there's no real need to upgrade it. Though if you do want to, then yes, you'd probably have to use Composer at the moment. Yaron Koren (talk) 23:41, 11 October 2015 (UTC)


 * Sorry, User:Yaron Koren, I know you are probably getting ready for Barcelona, but this problem returned anytime a new page is created using a form created by SF's "Create a Class" or "Create a Form". I'm running, MW 1.25.1, SF 3.2, and Cargo 0.10. ConfirmEdit seems to have no effect. WmBliss (talk) 03:28, 16 October 2015 (UTC)


 * The fact that a form was created in a certain way shouldn't have any impact. Are you creating pages in a custom namespace, perhaps? Is there anything else going on that's unusual? Yaron Koren (talk) 20:50, 16 October 2015 (UTC)


 * I made the changes to SF_AutoeditAPI.php, suggested by Gerrit, and that seems to have fixed the problem (we'll see). WmBliss (talk) 15:05, 17 October 2015 (UTC)


 * Oh - I didn't notice that you were using SF 3.2, and not the latest version, 3.4. Yaron Koren (talk) 23:36, 17 October 2015 (UTC)


 * Yaron, just to let you know,
 * the "Download snapshot" link on the SF page currently points to ExtensionDistributor which downloads REL1_25-ab27659.tar.gz which in-turn contains SF v3.2.
 * The 'zip' file is v3.3.2
 * It is only the link (Git Master) which points to v3.4.
 * Should MW administrators consider git to be a mandatory tool? WmBliss (talk) 14:55, 18 October 2015 (UTC)


 * Oops, I forgot to update the zip file link - sorry about that. I just did it now. Nobody should use that "Download snapshot" link - I wish it weren't there, and I wish it weren't so conspicuous. It's somewhat out of my hands, though; it's set via a standard template. Yaron Koren (talk) 00:46, 19 October 2015 (UTC)

Starting conversion of LiquidThreads to Flow at mediawiki.org
Hello. I'm sending this to you, because you've been one of the top 50 users of LQT on mediawiki.org over the last 360 days, and I wanted to make sure that you'd seen the announcement at Starting conversion of LiquidThreads to Flow at mediawiki.org. There are links in the topic-summary at the top, for other discussions (wikitech-l and Project:Current_issues), and a link to the planned process and timeline (scheduled to begin April 6, with smaller conversions at first). Please do test Flow out at Talk:Sandbox if you haven't tried it recently, and give any feedback/suggestions/requests at that main discussion location. Much thanks, Quiddity (WMF) (talk) 00:02, 28 March 2015 (UTC)

Wiki farm extension
Hi Yaron,

sorry for my simple question, what wiki farm extension you use on Referata?

Thank you, --Bserge77 (talk) 10:10, 21 April 2015 (UTC)


 * It's "Wiki Garden" - an extension I wrote, that I haven't released yet, but I've been meaning to. Yaron Koren (talk) 14:10, 21 April 2015 (UTC)

Bug: "Edit with form" do not ask what to edit
In Special:SpecialPages under Semantic Forms, the link Edit with form goes directly to Special:FormEdit, it is not asking the user which form name and target page that should be edited so users are not redirected to Special:FormEdit?form= &target= ", or "Special:FormEdit/ / .

Even with forms created, users are not asked which form they want to edit with Special:FormEdit which says this twice:

No target page specified.

This is the page for editing with a form. You must specify both a form name and a target page in the URL; it should look like "Special:FormEdit?form= &target= ", or "Special:FormEdit/ / ".

No target page specified.

This is the page for editing with a form. You must specify both a form name and a target page in the URL; it should look like "Special:FormEdit?form= &target= ", or "Special:FormEdit/ / ".


 * You shouldn't click that link in Special:SpecialPages, and I should probably remove it from the page. Yaron Koren (talk) 14:50, 29 May 2015 (UTC)


 * Yes please, can you remove it and confirm?

A kitten for you!
A kitten for your family, from a member of your MediaWiki family. Thanks again.

WmBliss (talk) 15:41, 10 October 2015 (UTC) 

Is it possible to use the Page Schema and the Semantic Form for a very basic tiny dependent DB?
After learning some, and little experiencing the extensions, i try to figure out if i can use it for a just little complex database with dependencies

1-between fields within a template/form (a field X can be filled up only if field Y is already filled up or only if field Y="Accepted") and,

2-between fields in different forms (for instance i want a field to restrict entry to only a name of student which exist in another template/form either as a pagename or just a data record field there). Thanks!


 * #1 is not possible, but #2 is, using a dropdown and "values from property=" (or "cargo field=" and "cargo table=", if you're using Cargo). Yaron Koren (talk) 07:30, 29 October 2015 (UTC)


 * I tried the value from namespace= and it works. but the "cargo field=" and "cargo table=" is not. (entered: cargo field=City and cargo table=Popularity). in the Page Schema there is i Form field definition and a Cargo field definition per every field. I tried to dropdown in the Form field and the condition in the Form and alternatively in the Cargo field definition. none of those worked. when entered in the Cargo field definition it just gave me back the option itself "cargo field=City and cargo table=Popularity" in the dropdown box. thanks


 * Do you have both Cargo and SMW installed, or just Cargo? And what version of Cargo? Yaron Koren (talk) 13:35, 29 October 2015 (UTC)


 * I had the smw but deleted it. Now i have the cargo last version downloaded this week and the recent SF.
 * Cargo version 0.1
 * When i go to edit, is this the required result in the Form edit?: (this isnt working)



thanks


 * Replace the " and " with "|". Also, you should definitely upgrade your version of Cargo (and maybe SF too, if that one is also old). Yaron Koren (talk) 14:46, 30 October 2015 (UTC)