!buSEZBEvVNBUdwhvvn:matrix.org

Semantic MediaWiki

191 Members
SMW lets you store and query data with­in MediaWiki pages. Mirrored in the SMW Telegram, which you can join at https://t.me/joinchat/MCG84k3OMoaYZoFA9yhyMg10 Servers

Load older messages


SenderMessageTime
27 Dec 2023
@kimmybrewer:matrix.orgKimmy Brewer
In reply to @telegram_291383470:t2bot.io
Are the permissions for the extension directories right?
Could you clarify? How would I go about checking this? Would permissions change by themselves? Thank you
17:18:45
@kimmybrewer:matrix.orgKimmy Brewer I disabled SMW in LS.p, but wiki now displays the following error: [6660a4ff55b758c53c3602db] /wiki/Main_Page Error: Class 'SMW\Localizer' not found Backtrace: from /var/www/mediawiki/w/canasta-extensions/SemanticMediaWiki/src/PropertyRegistry.php(73) #0 /var/www/mediawiki/w/canasta-extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php(96): SMW\PropertyRegistry::getInstance() #1 /var/www/mediawiki/w/canasta-extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php(467): SMW\DIProperty->__construct(string, boolean) #2 /var/www/mediawiki/w/canasta-extensions/SemanticMediaWiki/includes/dataitems/SMW_DataItem.php(273): SMW\DIProperty::doUnserialize(string) #3 /var/www/mediawiki/w/canasta-extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php(586): SMWDataItem::newFromJsonArray(MediaWiki\Json\JsonCodec, array) #4 /var/www/mediawiki/w/includes/json/JsonCodec.php(74): SMW\DIProperty::newFromJsonArray(MediaWiki\Json\JsonCodec, array) #5 /var/www/mediawiki/w/includes/json/JsonCodec.php(81): MediaWiki\Json\JsonCodec->unserialize(array) #6 /var/www/mediawiki/w/canasta-extensions/SemanticMediaWiki/includes/SemanticData.php(943): MediaWiki\Json\JsonCodec->unserializeArray(array) #7 /var/www/mediawiki/w/includes/json/JsonCodec.php(74): SMW\SemanticData::newFromJsonArray(MediaWiki\Json\JsonCodec, array) 17:27:46
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Did you restart the Canasta container?22:36:20
@jeffreywang:matrix.orgJeffrey Wang (MyWikis) with the CLI, do canasta restart 22:36:46
28 Dec 2023
@freephile:matrix.orgfreephile*receipt for your tax-deductible contribution (language used in the US for such things)03:14:22
@telegram_291383470:t2bot.ioAlexander Mashin
In reply to @kimmybrewer:matrix.org
Could you clarify? How would I go about checking this? Would permissions change by themselves? Thank you
Oh, no, if it's a containerised setup, as I presumenfrom your later messages, file permission issues are not likely.
03:55:48
@telegram_291383470:t2bot.ioAlexander Mashin* Oh, no, if it's a containerised setup, as I assume from your later messages, file permission issues are not likely.03:56:16
@kimmybrewer:matrix.orgKimmy Brewer
In reply to @jeffreywang:matrix.org
with the CLI, do canasta restart
I am able to delete the staging pod on the pipeline and restart it, if that's similar. I'll have to ask the company that hosts our pipeline how I would restart the container. I added the CLI command to the args in the deployment.yaml file, which resulted in no joy.
14:45:21
@kimmybrewer:matrix.orgKimmy BrewerI am back on the upgradeKey error and am attempting to update SMW to version 4.1, maybe it's a compatibility issue as to why I cannot run update.php and setupStore.php? We have SMW 4.0 and MW 1.39 presently. 14:47:01
30 Dec 2023
@krabina:matrix.orgkrabinaI never understood why anyone would want to use DPL when they have SMW. (I personally never have used DPL)11:52:49
31 Dec 2023
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Which version of Canasta is this?17:30:16
1 Jan 2024
@tewuzij:tzchat.orgtewuzij joined the room.04:58:15
2 Jan 2024
@kimmybrewer:matrix.orgKimmy Brewer
In reply to @jeffreywang:matrix.org
Which version of Canasta is this?
We are using 1.3.0
13:45:51
@justinl:matrix.orgjustinlQuick, simple response: I know that DPL was in use before SMW on the GW2 English wiki (also only DPL is used on the GW1 wiki, no SMW there), and removing it would be a good deal of work for our editors.15:17:11
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)update.php runs every time the container is first booted. The developers are unable to speculate on what's going wrong in a bespoke Kubernetes setup, but the general advice I can give is to kill off the container/pod and spawn a new one.17:48:50
@jeffreywang:matrix.orgJeffrey Wang (MyWikis) If you need to run update.php while the pod is still running, you can do so by doing something like (where the following command syntax is not correct but I hope it gets the point across) kubectl exec -- php /var/www/mediawiki/w/maintenance/update.php --quick 17:49:58
3 Jan 2024
@wouter_egel:matrix.orgWouter Rademaker (egel.org)
In reply to @krabina:matrix.org
I never understood why anyone would want to use DPL when they have SMW. (I personally never have used DPL)
DPL is sometimes useful if you want to do certain things that go against the philosophy of SMW. For example, DPL allows you to select articles in a category, excluding articles in underlying categories, see for example: https://nl.scoutwiki.org/Portaal:Scoutingmethode
15:22:50
4 Jan 2024
@kimmybrewer:matrix.orgKimmy BrewerHello! Just an update. The author of the extension we brought in just got back to us and said it's not compatible with our current version of MW. As soon we can roll back hopefully the SMW upgrade key issue is resolved by itself. Thank you for your ideas and thoughts I appreciate it. 16:41:10
13 Jan 2024
@telegram_217433484:t2bot.ioMatthew Marchese Anyone know if there's technically a way to set $wgMaxArticleSize for a specific namespace? We have a namespace that's protected and therefore controlled from DDoS abuse. I'd like to allow larger than normal limits exclusively within this namespace. https://www.mediawiki.org/wiki/Manual:$wgMaxArticleSize 21:46:48
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Maybe there is a hook that can emulate the aborting of the save of the page if it can detect the max article size in KB. You could write the hook to exclude the check in that database. It would require you to write an extension to achieve that, or very unorthodoxically but still possible as of MediaWiki 1.39, add that hook function to your LocalSettings.php. You’d then stop using $wgMaxArticleSize22:16:02
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Idk if there is a hook that can somehow pass the page size in KB, though you could always use some sort of PHP function to calculate it using the length of the text trying to be saved.22:17:29
@telegram_217433484:t2bot.ioMatthew MarcheseThank you for the thoughts, Jeffery Wang. It'23:01:22
@telegram_217433484:t2bot.ioMatthew Marchese* Thank you for the thoughts, Jeffery Wang. It's a little out of the solution scope for me to write a custom extension for this. Was hoping for more of a off-the-shelf or existing solution. :) Appreciate any other feedback on this item!23:02:04
14 Jan 2024
@alex.mashin:matrix.orgAlexander Mashin
In reply to @telegram_217433484:t2bot.io
Anyone know if there's technically a way to set $wgMaxArticleSize for a specific namespace? We have a namespace that's protected and therefore controlled from DDoS abuse. I'd like to allow larger than normal limits exclusively within this namespace. https://www.mediawiki.org/wiki/Manual:$wgMaxArticleSize

You might try this:

define( 'NS_LARGE', NS_TEXT );
define( 'LARGE_ARTICLE', 10 * 1024 * 1024 ); // 10MB.
$wgHooks['ParserClearState'][] = function( Parser $parser ) {
	$title = $parser->getTitle();
	if ( $title ) {
		$ns = $title->getNamespace();
		if ( $ns === NS_LARGE ) {
			$options = $parser->getOptions();
			$options['maxIncludeSize'] = LARGE_ARTICLE;
			$parser->setOptions( $options );
		}
	}
};
09:12:02
@alex.mashin:matrix.orgAlexander Mashin *

You might try this:

define( 'NS_LARGE', NS_… ); // The protected namespace.
define( 'LARGE_ARTICLE', 10 * 1024 * 1024 ); // 10MB.
$wgHooks['ParserClearState'][] = function( Parser $parser ) {
	$title = $parser->getTitle();
	if ( $title ) {
		$ns = $title->getNamespace();
		if ( $ns === NS_LARGE ) {
			$options = $parser->getOptions();
			$options['maxIncludeSize'] = LARGE_ARTICLE;
			$parser->setOptions( $options );
		}
	}
};

But this hook will be called once per MW message as well.

09:13:13
@alex.mashin:matrix.orgAlexander Mashin *

You might try this in LocalSettings.php:

define( 'NS_LARGE', NS_… ); // The protected namespace.
define( 'LARGE_ARTICLE', 10 * 1024 * 1024 ); // 10MB.
$wgHooks['ParserClearState'][] = function( Parser $parser ) {
	$title = $parser->getTitle();
	if ( $title ) {
		$ns = $title->getNamespace();
		if ( $ns === NS_LARGE ) {
			$options = $parser->getOptions();
			$options['maxIncludeSize'] = LARGE_ARTICLE;
			$parser->setOptions( $options );
		}
	}
};

But this hook will be called once per MW message as well.

09:13:56
@wouter_egel:matrix.orgWouter Rademaker (egel.org)
In reply to @telegram_217433484:t2bot.io
Anyone know if there's technically a way to set $wgMaxArticleSize for a specific namespace? We have a namespace that's protected and therefore controlled from DDoS abuse. I'd like to allow larger than normal limits exclusively within this namespace. https://www.mediawiki.org/wiki/Manual:$wgMaxArticleSize
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
22:26:51
@telegram_217433484:t2bot.ioMatthew Marchese
In reply to @wouter_egel:matrix.org
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
This is a great tip. We do have AbuseFilter already in place
22:27:42
15 Jan 2024
@telegram_291383470:t2bot.ioAlexander Mashin
In reply to @wouter_egel:matrix.org
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
Yes, that would be simpler. Set a sufficiently big $wgMaxArticleSize and limit the article size with AbuseFilter.
02:06:34
23 Jan 2024
@krabina:matrix.orgkrabinaHow about someone knowledgeable about SMW would be a mentor in Google Summer of Code 2024? https://www.mediawiki.org/wiki/Google_Summer_of_Code/Mentors21:30:02

Show newer messages


Back to Room ListRoom Version: 5