[Wikitech-l] [Train] 1.35.0-wmf.37 status update (currently at group0, blocked)

2020-06-16 Thread Brennen Bearnes
The 1.35.0-wmf.37 version of MediaWiki was briefly unblocked and on 
group1 (thanks to Demian, Jdlrobson, and James_F for that fix), but is 
blocked[0] and reverted to group0.


The new version can proceed no further until these issues are resolved:

* DBUnexpectedError when moving a page with a StructuredDiscussion talkpage
- https://phabricator.wikimedia.org/T255608

* PHP Notice: Object of class MediaWiki\Debug\DeprecatablePropertyArray 
could not be converted to int

- https://phabricator.wikimedia.org/T255614

The train is currently stalled for the remainder of the US-local 
workday, and can resume during the European morning at the earliest, 
pending fixes.


Please note that, as Friday is a holiday, the week is shorter, and 
Release Engineering would like to finish the train on Wednesday instead 
of Thursday. If the issues are resolved by tomorrow, we can resume the 
train. Otherwise, train can continue on Monday.


Thank you for your help resolving these issues!

-- Your humble train trundler

[0]. 
[1]. 

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] [Train] 1.35.0-wmf.37 status update

2020-06-16 Thread Lars Wirzenius
The 1.35.0-wmf.37 version of MediaWiki is blocked[0].

The new version is deployed to group0[1], but can proceed no
further until these issues are resolved:

* Watchlist star gone on Vector -
  https://phabricator.wikimedia.org/T255574

Once these issues are resolved train can resume. Normally, there would
be plenty of time, today being only the first day of the three-day
train week. However, as Friday is a holiday, the week is shorter, and
Release Engineering would like to finish the train on Wednesday
instead of Thursday. If the issue is resolved by tomorrow, we can
resume the train. Otherwise, train can continue on Monday.

Thank you for your help resolving these issues!

-- Your humble train toiler

[0]. 
[1]. 
-- 
WMF release engineering team | he/him or they/them
"Imagine a world in which every single human being can freely share in
the sum of all knowledge."

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Opinion Polling, Voting, Wiki Technology and Communities

2020-06-16 Thread Adam Sobieski
Wikitech-l,

Opinion polling and voting can be utilized in talk pages and throughout the 
various administrative and bureaucratic processes of wiki communities.

Opinion polling and voting are available for MediaWiki through a number of 
extensions. A popular one is SecurePoll which has been “used for Wikimedia 
Foundation Board elections and arbitration committee elections, and was used 
for the Wikimedia license transition vote among other things” 
(https://www.mediawiki.org/wiki/Extension:SecurePoll).

I recently read about an interesting software, Vocdoni (https://vocdoni.io/ , 
https://vocdoni.io/docs/#/), which utilizes peer-to-peer technology and 
blockchain to provide opinion polling and voting. Perhaps there will, one day, 
be MediaWiki extensions for interoperation with such systems.


Best regards,
Adam Sobieski

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Newby dev question: extension configuration variable

2020-06-16 Thread Gergo Tisza
It should be $services = $config->get( 'ShariffServices' );

The actual error is an unrelated configuration problem with your wiki (or
possibly a MediaWiki core bug where it tries to use a certain type of error
handling too early in the request lifecycle), that's triggered during
rendering the error about configuration not having a Services key.

On Tue, Jun 16, 2020 at 11:30 AM Krabina Bernhard  wrote:

> Hi,
>
> in my first attempt at jumping into improving a mediawiki extension, I am
> failing at a very basic step.
>
> I want to make the extension configurable and followed this advice:
> [ https://www.mediawiki.org/wiki/Manual:Configuration_for_developers |
> https://www.mediawiki.org/wiki/Manual:Configuration_for_developers ]
>
>
> this is my extension.json I added:
>
> "config": {
> "ShariffServices": {
> "value":
> "[twitter,facebook,pinterest]",
> "description": "configuration of available services"
> }
> },
> "ConfigRegistry": {
> "Shariff": "GlobalVarConfig::newInstance"
> },
>
> now in the baisc PHP file of the extension, I am trying
> use MediaWiki\MediaWikiServices;
> $config =
> MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'Shariff'
> );
> $services = $config->get ('Services');
>
> but the last line leads to
> [XtqcaewKU0Q3UCukKmZO9BM] /index.php?title=Main_Page Error from line
> 3061 of ../includes/parser/Parser.php: Call to a member function
> matchStartAndRemove() on null
>
> Backtrace:
>
> #0 ..includes/parser/Preprocessor_DOM.php(1277):
> Parser->braceSubstitution(array, PPFrame_DOM)
> #1 ../includes/parser/Parser.php(2942): PPFrame_DOM->expand(DOMElement,
> integer)
> #2 ../includes/parser/Parser.php(701): Parser->replaceVariables(string,
> PPFrame_DOM)
> #3 ../includes/parser/Parser.php(4717): Parser->preprocess(string, Title,
> ParserOptions)
> #4 ../includes/cache/MessageCache.php(1089): Parser->transformMsg(string,
> ParserOptions, Title)
> #5 ../includes/Message.php(1273): MessageCache->transform(string, boolean,
> LanguageEn, Title)
> #6 ../includes/Message.php(874): Message->transformText(string)
> #7 ../includes/Message.php(934): Message->toString(string)
> #8 ../includes/OutputPage.php(902): Message->text()
> #9 /../includes/OutputPage.php(949): OutputPage->setHTMLTitle(Message)
> #10 ../includes/OutputPage.php(2424): OutputPage->setPageTitle(string)
> #11 /../includes/exception/MWExceptionRenderer.php(128):
> OutputPage->prepareErrorPage(string)
> #12 ../includes/exception/MWExceptionRenderer.php(54):
> MWExceptionRenderer::reportHTML(ConfigException)
> #13 ../includes/exception/MWExceptionHandler.php(75):
> MWExceptionRenderer::output(ConfigException, integer)
> #14 ../includes/exception/MWExceptionHandler.php(149):
> MWExceptionHandler::report(ConfigException)
> #15 ../includes/MediaWiki.php(551):
> MWExceptionHandler::handleException(ConfigException)
> #16 ../index.php(42): MediaWiki->run()
> #17 {main}
>
>
> What am I doing wrong?
>
> As far is I understand it, using DefaultSettings.php is outdated, we
> should be using extension.json. But I can't get it to work.
>
> Can anybody point me to a simple extension that uses this mechanism
> correctly?
>
>
> so long,
> Bernhard
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Newby dev question: extension configuration variable

2020-06-16 Thread Krabina Bernhard
Hi, 

in my first attempt at jumping into improving a mediawiki extension, I am 
failing at a very basic step. 

I want to make the extension configurable and followed this advice: 
[ https://www.mediawiki.org/wiki/Manual:Configuration_for_developers | 
https://www.mediawiki.org/wiki/Manual:Configuration_for_developers ] 


this is my extension.json I added: 

"config": { 
"ShariffServices": { 
"value": "[twitter,facebook,pinterest]", 
"description": "configuration of available services" 
} 
}, 
"ConfigRegistry": { 
"Shariff": "GlobalVarConfig::newInstance" 
}, 

now in the baisc PHP file of the extension, I am trying 
use MediaWiki\MediaWikiServices; 
$config = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 
'Shariff' ); 
$services = $config->get ('Services'); 

but the last line leads to 
[XtqcaewKU0Q3UCukKmZO9BM] /index.php?title=Main_Page Error from line 3061 
of ../includes/parser/Parser.php: Call to a member function 
matchStartAndRemove() on null 

Backtrace: 

#0 ..includes/parser/Preprocessor_DOM.php(1277): 
Parser->braceSubstitution(array, PPFrame_DOM) 
#1 ../includes/parser/Parser.php(2942): PPFrame_DOM->expand(DOMElement, 
integer) 
#2 ../includes/parser/Parser.php(701): Parser->replaceVariables(string, 
PPFrame_DOM) 
#3 ../includes/parser/Parser.php(4717): Parser->preprocess(string, Title, 
ParserOptions) 
#4 ../includes/cache/MessageCache.php(1089): Parser->transformMsg(string, 
ParserOptions, Title) 
#5 ../includes/Message.php(1273): MessageCache->transform(string, boolean, 
LanguageEn, Title) 
#6 ../includes/Message.php(874): Message->transformText(string) 
#7 ../includes/Message.php(934): Message->toString(string) 
#8 ../includes/OutputPage.php(902): Message->text() 
#9 /../includes/OutputPage.php(949): OutputPage->setHTMLTitle(Message) 
#10 ../includes/OutputPage.php(2424): OutputPage->setPageTitle(string) 
#11 /../includes/exception/MWExceptionRenderer.php(128): 
OutputPage->prepareErrorPage(string) 
#12 ../includes/exception/MWExceptionRenderer.php(54): 
MWExceptionRenderer::reportHTML(ConfigException) 
#13 ../includes/exception/MWExceptionHandler.php(75): 
MWExceptionRenderer::output(ConfigException, integer) 
#14 ../includes/exception/MWExceptionHandler.php(149): 
MWExceptionHandler::report(ConfigException) 
#15 ../includes/MediaWiki.php(551): 
MWExceptionHandler::handleException(ConfigException) 
#16 ../index.php(42): MediaWiki->run() 
#17 {main} 


What am I doing wrong? 

As far is I understand it, using DefaultSettings.php is outdated, we should be 
using extension.json. But I can't get it to work. 

Can anybody point me to a simple extension that uses this mechanism correctly? 


so long,
Bernhard

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l