princed.org (Wiki)

Prince of Persia related subjects that do not have their own boards.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

princed.org (Wiki)

Post by Norbert »

Guess what... I found a backup of the old Princed Wiki.

I already have it running properly on my own computer (see small image below).
I'll put the Wiki back on-line at princed.org soon.

Image
(mirror)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

Norbert wrote:Guess what... I found a backup of the old Princed Wiki.

I already have it running properly on my own computer (see small image below).
I'll put the Wiki back on-line at princed.org soon.
For now, the URL is: http://www.princed.org/w/
(poirot will make wiki.princed.org go there in a couple of days)
Feel free to help improve articles!

[Edit: I've worked on the wiki for hours and its main page looks a lot cleaner now. I've created lots of new pages.]
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (Wiki)

Post by David »

The go/search functions of the wiki doesn't work. They give me a database error.
Also, non-ascii characters don't appear correctly,
see here: http://www.princed.org/w/index.php?title=Pl:Main_Page (Polish letters),
and here: http://www.princed.org/w/index.php?titl ... ile_format (quotes),
and here: http://www.princed.org/w/index.php?title=Developers (Győr).
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

David wrote:The go/search functions of the wiki doesn't work. They give me a database error.
I'll look into it.
David wrote:Also, non-ascii characters don't appear correctly,
see here: http://www.princed.org/w/index.php?title=Pl:Main_Page (Polish letters),
and here: http://www.princed.org/w/index.php?titl ... ile_format (quotes),
and here: http://www.princed.org/w/index.php?title=Developers (Győr).
That's from the old import/export, which was in latin1/2.
Anything new that'll be added will be okay, so we'll just have to fix these old pages and the problem is solved. :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

I've enabled the ConfirmEdit extension (shows a math question) on the wiki's account creation page to keep more bots out.
(Reason: I just noticed that two bots already registered themselves recently.)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

Norbert wrote:I've enabled the ConfirmEdit extension (shows a math question) on the wiki's account creation page to keep more bots out.
(Reason: I just noticed that two bots already registered themselves recently.)
The bots don't care and still register themselves.
So, I have now enabled the Asirra extension that shows animals and the user has to pick all cats.
Pfff...
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

I've added a link to the Princed Wiki at the top of the forum.
Also, the Princed Wiki now uses the latest MediaWiki software and I've enabled uploading to allow the uploading of (primarily) images to the Princed Wiki.
Everyone, feel free to improve the Princed Wiki; feel free to create pages about your mod(s) and other PoP things.

I have also split all wiki-related posts from the "princed.org (phpBB forum + WordPress webpages)" thread into this wiki-thread.
So, if you want to write about wiki-specific stuff, there's now a - this - thread for that.
(Of course it's also okay to link to the wiki from other threads.)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

I can also add Wikipedia templates if they are required; just let me know.
For example, I've already added "Infobox software" (example) and "Cite web" (example).
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

Added a page that explains what a broken room link is:
http://www.princed.org/wiki/Broken_room_link
Might be useful to link to if we want someone (new) on the forum to know that it is.
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (Wiki)

Post by Falcury »

I updated the wiki software to MediaWiki 1.28.0. Everything seems to have gone well as far as I can tell, but if anything doesn't work correctly, please let me know.
Because the Asirra module of the ConfirmEdit extension was not included in the newest version (deprecated maybe?), I had to pick a new captcha mechanism. I went with ReCaptchaNoCaptcha.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (Wiki)

Post by David »

Falcury wrote:Because the Asirra module of the ConfirmEdit extension was not included in the newest version (deprecated maybe?), I had to pick a new captcha mechanism. I went with ReCaptchaNoCaptcha.
It works, I could finally add an external link: http://www.princed.org/w/index.php?titl ... oldid=1693
(Okay, it's not so external... :) )
The CAPTCHA wrote: Your edit includes new external links. To protect the wiki against automated spam, we kindly ask you to solve the following CAPTCHA:
Select all squares with fireworks.
Preparing for New Year, eh? :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

Three articles seem to be broken.
They print something along the lines of "[WGpZMEKT8J4AAHD8QRUAAADA] 2017-01-02 13:44:17: Fatal exception of type "MWException"".

The articles:
http://www.princed.org/wiki/Apoplexy
http://www.princed.org/wiki/Princed
http://www.princed.org/wiki/Chomper_v._chopper

From what I can find, you should be able to set "$wgShowExceptionDetails = true;" in LocalSettings.php to find the culprit.
And/or, try commenting out in that PHP file this line, if it exists: "require_once( "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php" );"
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (Wiki)

Post by Falcury »

Norbert wrote:Three articles seem to be broken.
They print something along the lines of "[WGpZMEKT8J4AAHD8QRUAAADA] 2017-01-02 13:44:17: Fatal exception of type "MWException"".

The articles:
http://www.princed.org/wiki/Apoplexy
http://www.princed.org/wiki/Princed
http://www.princed.org/wiki/Chomper_v._chopper

From what I can find, you should be able to set "$wgShowExceptionDetails = true;" in LocalSettings.php to find the culprit.
And/or, try commenting out in that PHP file this line, if it exists: "require_once( "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php" );"
This is output after setting $wgShowExceptionDetails to true:

Code: Select all

[WGpfFUKT8J4AAEB8TjcAAABZ] /wiki/Princed MWException from line 210 of /home6/cloodiec/public_html/princed-org/w/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/home6/cloodiec/public_html/princed-org/w/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

Backtrace:

[...]
So, I changed the permissions of the lua binary, so that it can execute. However, now these pages give HTTP 500 errors...
The error_log shows the following:

PHP Fatal error: Call to undefined function pcntl_wifsignaled() in /home6/cloodiec/public_html/princed-org/w/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 652

Edit:
Apparently, in May 2015 a dependency on the PHP function pcntl_wifsignaled() was introduced.
https://www.mediawiki.org/wiki/Topic:T33lj4njsf9311z0
https://gerrit.wikimedia.org/r/#/c/213586/
It seems the webserver does not supply this function, however.
Maybe if I copy the lua binary from the old MediaWiki installation to the new version, it might work again... Edit: nope.
(incidentally, what do we use this extension for, exactly?)

Edit:
Since Scribunto for MediaWiki 1.25, your PHP server also needs to have pcntl enabled (only works with Unix/Linux platforms) if you want to use "LuaStandAlone" (i.e. running in a separate child process). Under Windows, Scribunto will run Lua only as "LuaSandbox" (within the same PHP thread as the thread used by MediaWiki to run this Scribunto extension, but within the sandboxing PHP environment configured by Scribunto).
Source: https://www.mediawiki.org/wiki/Extensio ... #PHP_pcntl
Unfortunately, I only have FTP access so I can't do anything about this right now.

I disabled the Scribunto extension for now. At least, the wiki pages can be displayed again.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

Falcury wrote:(incidentally, what do we use this extension for, exactly?)
It appears to be used for templates.
Such as {{Official website}} and {{Infobox software}}.
These templates are used - and currently don't work, as you can see - in the apoplexy article.
The other two pages use the {{Hatnote}} template.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (Wiki)

Post by Norbert »

Hm, unfortunately, all the templates are still broken.
Post Reply