28 Nov 2020 |
| richardheigl joined the room. | 00:38:48 |
cuppajoeman | I am currently trying to install SMW ontop of my existing wiki | 04:30:24 |
cuppajoeman | I am currenctly at this part of the installation, but it fails: | 04:31:50 |
cuppajoeman |  Download image.png | 04:31:51 |
cuppajoeman | I installed my media wiki as the root user, so when I try to run that command it says not to do so | 04:32:18 |
cuppajoeman | So I tried to make a normal user and run these commands but it didn't work out either: | 04:33:47 |
cuppajoeman | 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 | 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 | * 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 | * 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 | *
| 04:38:11 |
cuppajoeman | * 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 | the src folder seems to be owned by root so when I run that as the regular user it can't delete that file | 04:38:56 |
cuppajoeman | So I'm a little stuck with what I could do next | 04:39:18 |
cuppajoeman |  Download image.png | 06:33:58 |
cuppajoeman | I 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 | So I ran chown cjm -R . (on the mediawiki folder) which solved the issue. Is this alright to do? | 06:34:54 |
cuppajoeman | Anways, after that I managed to get it succesfully installed! I now have SMW! | 06:35:21 |
Bernhard Krabina | 👍 | 10:35:27 |
cuppajoeman | 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. | 19:28:03 |
1 Dec 2020 |
| Jared Olson joined the room. | 18:45:38 |
7 Dec 2020 |
thiloschroth | 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 |
| Gary Foster joined the room. | 19:43:42 |
Gary Foster | If 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 now | 19:43:42 |
8 Dec 2020 |
thiloschroth | HI 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 |
Bernhard 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 joined the room. | 17:22:33 |
witchit | movebatch is doing the job. first create a file with all your page names and then use a linux console | 17:23:28 |
witchit | php /path/to/moveBatch.php --u=user --r=reason --noredirects /path/to/listfile.txt | 17:23:30 |
witchit | you need console access for that and necessary rights to move the pages | 17:25:19 |