Extension talk:WikiSync

Support for HTTPS
Does WikiSyncSetup::$remote_wiki_root support HTTPS url? --Solitarius 03:03, 17 April 2011 (UTC)
 * Sorry for huge delay - this extension is still alpha and requires a lot of development. For example, I am planning to make most of API calls to be made via jQuery, maybe even remote ones. Currently it uses Snoopy PHP class for API fetches, looking at code it seems that Snoopy supports https via curl execution, however I do not run any https MediaWiki installation so I haven't checked it. You need to have curl installed and provide the path to it via $curl_path in Snoopy class. Unfortunately, I don't have enough time to develop the extension further (due to financial constrains), I hope someday I'll be able to contribute more. QuestPC 05:51, 6 May 2011 (UTC)

"Informational null revisions"
I was translating this extension in TranslateWiki and found this message:

"Only a special bot user $1 can perform wiki synchronizations. Please login as $1. Do not change $1 name in between the synchronizations, otherwise informational null revisions will not be properly skipped (see Extension:WikiSync for more info)."

It's a bit hard to understand how null revisions are informational. The message refers to Extension:WikiSync, but it doesn't help much either.

Can anyone please explain it?

Thank you. --Amir E. Aharoni 07:42, 6 July 2011 (UTC)


 * As far as I know, null revisions are made when importing a page for example. First the revision will be imported with the information which author did them original and then there will be a null revision with the information which author has imported the revision, if I remember it right. Both will refer to the same textid though. --Danwe 18:59, 10 August 2011 (UTC)

Newest revision only?
I think in many cases it wouldn't be necessary to sync all revisions but just the newest one. There could be a check-box for that, would fasten up things too. --Danwe 11:20, 7 July 2011 (UTC)

Problems Logging in to Localhost and Synchronizing from Global
Not sure what I'm doing wrong here, but when I attempt to login in wikisync from the global to local, the synchronize button never activates. And though I can login from local to global and the sync button activates, clicking it only deactivates it with no visible activity following. Here is my LocalSettings.php entries for local and global, correspondingly:

require_once( "$IP/extensions/WikiSync/WikiSync.php" ); WikiSyncSetup::$remote_wiki_root="http://xenanthropy.com/wiki/api.php"; WikiSyncSetup::$rtl_access_groups = array( 'user' );

require_once( "$IP/extensions/WikiSync/WikiSync.php" ); WikiSyncSetup::$remote_wiki_root="http://localhost/wiki/api.php"; WikiSyncSetup::$rtl_access_groups = array( 'user' );

I couldn't tell from the article whether the /api.php was necessary, but it seemed to be the only way it worked to any degree. One thing I noticed was that from either end, the local root (as opposed to remote) did not include /api.php, and I know of no option to amend this if necessary. I'm not sure if that could be the problem or not. Also, I'm using 1.16.5 at both ends, do I need to downgrade or upgrade to be able to use this extension?--173.18.46.251 18:31, 8 August 2011 (UTC)
 * The infobox says it's for MediaWiki version 1.15.5 and 1.17a, so I think it's incompatible with 1.16.5 (otherwise it'll say 1.15.5+)

TBloemink 18:34, 8 August 2011 (UTC)
 * Thanks! It works after an update, except that I'm not sure what the permission settings need to be for this, as none of the settings I've tried seem to work.  How and where do I need to change these permissions?

Cannot create temporary file in WikiSyncClient::tempnam_sfx Please make sure you have writing permissions in '/var/lib/mediawiki/images/tmp/'
 * --50.83.15.15 18:28, 9 August 2011 (UTC)

You cannot synchronize the wiki to itself
I installed the extension on my local system (is reachable by the host http://wiki) and on my server (reachable by http://wiki.mydomain.tld). If I click on login it says Successfully logged into remote wiki site. If I click on Synchronize it says: You cannot synchronize the wiki to itself This problem can be fixed with the following patch: --- WikiSync.js.old	2011-10-19 07:55:20.000000000 +0200 +++ WikiSync.js	2011-10-19 08:28:48.000000000 +0200 @@ -1030,8 +1030,7 @@ 	 * "Synchronize" button click handler */ 	process : function { -		if ( wgServer.indexOf( this.remoteContext.wikiroot ) !== -1 || -				this.remoteContext.wikiroot.indexOf( wgServer ) !== -1 ) { +		if ( wgServer == this.remoteContext.wikiroot ) { alert( this.formatMessage( 'sync_to_itself' ) ); return; }

Synchronization failed with Mediawiki 1.17
If I try to synchronize two wikis, both version 1.17 I get the following error back:

 Has anyone an idea how to fix this?