!buSEZBEvVNBUdwhvvn:matrix.org

Semantic MediaWiki

202 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
28 Nov 2020
@richardheigl:matrix.orgrichardheigl joined the room.00:38:48
@cuppajoeman:matrix.orgcuppajoemanI am currently trying to install SMW ontop of my existing wiki04:30:24
@cuppajoeman:matrix.orgcuppajoemanI am currenctly at this part of the installation, but it fails: 04:31:50
@cuppajoeman:matrix.orgcuppajoemanimage.png
Download image.png
04:31:51
@cuppajoeman:matrix.orgcuppajoemanI installed my media wiki as the root user, so when I try to run that command it says not to do so04:32:18
@cuppajoeman:matrix.orgcuppajoemanSo I tried to make a normal user and run these commands but it didn't work out either: 04:33:47
@cuppajoeman:matrix.orgcuppajoeman
cjm@vultr:/var/lib/mediawiki$ php composer.phar update --no-dev
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies
Package operations: 26 installs, 1 update, 0 removals
  - Updating guzzlehttp/psr7 (1.6.1 => 1.7.0):     Update failed (Could not delete /var/lib/mediawiki/vendor/guzzlehttp/psr7/src/PumpStream.php: )
    Would you like to try reinstalling the package instead [yes]? ^C
cjm@vultr:/var/lib/mediawiki$ 
04:33:56
@cuppajoeman:matrix.orgcuppajoeman

It seems to be a permissions problem: ```cjm@vultr:/var/lib/mediawiki/vendor/guzzlehttp/psr7$ ls -al
total 52
drwxr-xr-x 3 root root 4096 Nov 23 19:05 .
drwxr-xr-x 4 root root 4096 Nov 28 04:29 ..
-rw-rw-r-- 1 cjm cjm 7199 Sep 25 14:38 CHANGELOG.md
-rw-rw-r-- 1 cjm cjm 1111 Sep 25 14:38 LICENSE
-rw-rw-r-- 1 cjm cjm 23558 Sep 25 14:38 README.md
-rw-rw-r-- 1 cjm cjm 1323 Sep 25 14:38 composer.json
drwxr-xr-x 2 root root 4096 Nov 23 19:05 src

04:37:15
@cuppajoeman:matrix.orgcuppajoeman *
total 52
drwxr-xr-x 3 root root  4096 Nov 23 19:05 .
drwxr-xr-x 4 root root  4096 Nov 28 04:29 ..
-rw-rw-r-- 1 cjm  cjm   7199 Sep 25 14:38 CHANGELOG.md
-rw-rw-r-- 1 cjm  cjm   1111 Sep 25 14:38 LICENSE
-rw-rw-r-- 1 cjm  cjm  23558 Sep 25 14:38 README.md
-rw-rw-r-- 1 cjm  cjm   1323 Sep 25 14:38 composer.json
drwxr-xr-x 2 root root  4096 Nov 23 19:05 src
04:37:24
@cuppajoeman:matrix.orgcuppajoeman *
total 52
drwxr-xr-x 3 root root  4096 Nov 23 19:05 .
drwxr-xr-x 4 root root  4096 Nov 28 04:29 ..
-rw-rw-r-- 1 cjm  cjm   7199 Sep 25 14:38 CHANGELOG.md
-rw-rw-r-- 1 cjm  cjm   1111 Sep 25 14:38 LICENSE
-rw-rw-r-- 1 cjm  cjm  23558 Sep 25 14:38 README.md
-rw-rw-r-- 1 cjm  cjm   1323 Sep 25 14:38 composer.json
drwxr-xr-x 2 root root  4096 Nov 23 19:05 src
04:37:33
@cuppajoeman:matrix.orgcuppajoeman *
04:38:11
@cuppajoeman:matrix.orgcuppajoeman *
total 52
drwxr-xr-x 3 root root  4096 Nov 23 19:05 .
drwxr-xr-x 4 root root  4096 Nov 28 04:29 ..
-rw-rw-r-- 1 cjm  cjm   7199 Sep 25 14:38 CHANGELOG.md
-rw-rw-r-- 1 cjm  cjm   1111 Sep 25 14:38 LICENSE
-rw-rw-r-- 1 cjm  cjm  23558 Sep 25 14:38 README.md
-rw-rw-r-- 1 cjm  cjm   1323 Sep 25 14:38 composer.json
drwxr-xr-x 2 root root  4096 Nov 23 19:05 src
04:38:34
@cuppajoeman:matrix.orgcuppajoemanthe src folder seems to be owned by root so when I run that as the regular user it can't delete that file04:38:56
@cuppajoeman:matrix.orgcuppajoemanSo I'm a little stuck with what I could do next04:39:18
@cuppajoeman:matrix.orgcuppajoemanimage.png
Download image.png
06:33:58
@cuppajoeman:matrix.orgcuppajoemanI re-installed on a new machine and made sure zip and everything was installed correctly, when I got the composer part, I ended up getting this^06:34:03
@cuppajoeman:matrix.orgcuppajoeman So I ran chown cjm -R . (on the mediawiki folder) which solved the issue. Is this alright to do? 06:34:54
@cuppajoeman:matrix.orgcuppajoemanAnways, after that I managed to get it succesfully installed! I now have SMW!06:35:21
@telegram_917934053:t2bot.ioBernhard Krabina👍10:35:27
@cuppajoeman:matrix.orgcuppajoemanDoes anyone have recommendations for which editor works best with SMW? I have been using the visual editor, but it's showing the result of the queries rather than the query code itself.19:28:03
1 Dec 2020
@jarmicols:matrix.orgJared Olson joined the room.18:45:38
7 Dec 2020
@thiloschroth:matrix.orgthiloschroth
In reply to @cuppajoeman:matrix.org
Does anyone have recommendations for which editor works best with SMW? I have been using the visual editor, but it's showing the result of the queries rather than the query code itself.
I am quite happy with the bundled WikiEditor for editing wikitext
19:39:24
@telegram_970948921:t2bot.ioGary Foster joined the room.19:43:42
@telegram_970948921:t2bot.ioGary FosterIf you use visual editor you can see the code by selecting edit with code. I find using a WYSIWYG better for my user base, it’s only really me and a colleague who do SMW stuff. I’ve not tried it yet with visual editor, but is there something similar to TinyMCE where you can use wiki magic? I have had other issues with TinyMCE, but they may have been fixed by now19:43:42
8 Dec 2020
@thiloschroth:matrix.orgthiloschrothHI everyone I could use some quick advise on moving pages: I built a wiki for research findings in a project. Now we want to move the normal content to a separate namespace to distinguish it from community content which is hopefully coming towards us in the near future. Setting up Namespace is no problem. And I have read about the moveBatch.php. What I would like to do is to move around 70 pages, suppress the redirects and fix broken links with replaceText. Does that sound viable? And are there code snippets to do the replaceText for a list of strings? I don't speak php yet.. 07:28:21
@telegram_917934053:t2bot.ioBernhard Krabina I have never used this script, but for 70 pages, moving them manually is still doable. I don't know about code snippets for replace text, but it is definitely a good idea to start something like that on the extension page at mediawiki.org 08:52:53
@witchit:matrix.orgwitchit joined the room.17:22:33
@witchit:matrix.orgwitchitmovebatch is doing the job. first create a file with all your page names and then use a linux console 17:23:28
@witchit:matrix.orgwitchitphp /path/to/moveBatch.php --u=user --r=reason --noredirects /path/to/listfile.txt17:23:30
@witchit:matrix.orgwitchityou need console access for that and necessary rights to move the pages17:25:19

Show newer messages


Back to Room ListRoom Version: 5