Extension talk:Farmer

From MediaWiki.org

Jump to: navigation, search

Hello, I installed Farmer but now I cannot see anything when I go to my wiki. I installed farmer extension thru SVN.

There is something wrong with the $wgFarmerSettings. I used ais_ as the defaultwiki. the prefix separator is "_". Should I use ais or ais_.

I am at dead end. Please help.

Contents

[edit] Error with $wgFarmerSettings

  • I prefer Localsettings.php with
$wgFarmerSettings['wikiIdentifierFunction'] = array('MediaWikiFarmer', '_matchByURLHostname');

This delivers on startup of default wiki

Warning: Missing argument 1 for MediaWikiFarmer::_matchByURLHostname() in \extensions\Farmer\MediaWikiFarmer.php on line 281


  • I tested Localsettings.php with
$wgFarmerSettings['wikiIdentifierFunction'] = array('MediaWikiFarmer', '_matchByServerName');

This delivers on creating new wiki

Warning: Invalid argument supplied for foreach() in \extensions\Farmer\MediaWikiFarmer.php on line 434


  • Can you help me to get one of both to work?

[edit] Environment and Setting

  1. OS: Win 2000
  2. MediaWiki: 1.11alpha (r22753)
  3. PHP: 5.1.1 (apache2handler)
  4. MySQL: 5.0.18

--Wissenslogistiker 14:18, 7 June 2007 (UTC)

[edit] Non-shared user and user_groups

does Farmer support non-shared user and user_groups databases yet ?

Seems not for now.--FR6 20:20, 14 May 2007 (UTC)

[edit] Updating wiki source

What happens when you update the wiki source code? Will all necessary configurations of all the wiki installs be updated? Or will this still have to be done manually? --Denise 11:41, 3 April 2007 (UTC)

[edit] I don't understand What they mean

I am a Chinese. I don't understand what the followed mean:

  1. "MediaWiki trunk", which mentioned in the section "mysql_errno.28.29_fix" is what? Can I find the explain(s) of it in somewhere?
  2. The section tall me "You need to change this to read: if ( $this->lastErrno() ) {", I'v checked the Database.php but I still don't know how do I follow the instruction ?

Please tall me, Thanks!

[edit] Environment and Setting

  1. OS: Win XP
  2. Mediawiki Version 1.9.2
  3. Apache Web Server Version 2.2.3
  4. PHP Script Language Version 5.1.6
  5. MySQL Database Version 5.0.24a

--Roc michael 04:32, 13 May 2007 (UTC)


[edit] How to use the patch?

What is the description "Farmer currently requires my patch to work correctly" mean in the section "Shared_Tables"? I've check the link my patch. In the other end of the link is a file which I don't know what the type of the file is. It isn't a ".php" file. Does it can be executive on Win XP or by firefox? How do I use it?

Please tall me, Thanks!

[edit] Environment and Setting

  1. OS: Win XP
  2. Mediawiki Version 1.9.2
  3. Apache Web Server Version 2.2.3
  4. PHP Script Language Version 5.1.6
  5. MySQL Database Version 5.0.24a

--Roc michael 04:32, 13 May 2007 (UTC)

See Subversion. I suggest that you use TortoiseSVN for aplying a patch from Windows. --FR6 20:26, 14 May 2007 (UTC)

[edit] Error on creating new wiki

I get the following error when I try to create a new wiki under farmer.

Database error A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

from within function "Revision::insertOn". MySQL returned error "1054: Unknown column 'rev_len' in 'field list' (localhost)".

Anyone have any ideas on how to fix this problem?


Also once I try to create the wiki again it says that it already exists. Where is is getting that information. I tried looking in to the config directory but did not see it.

[edit] Update

Looking at the sql code and error messages it looks like the error is in the daughterwiki.sql file. The column that is requested in here is not actually created by the sql file.

To fix this I added

 rev_len int(10) unsigned default NULL,

When I fixed this I tried to create another wiki it showed that two more table were not even created. The two tables that were not created where redirect and page_restrictions

Once I added these two tables to the sql code I was able to create a working wiki. Not sure if I am going to run in to other problems later. If I find anything else I will post it here

[edit] Additional Information:

This note is from somebody who had similar problems updating his Wiki:


I found I had the exact same errors. Mine occurred when I upgraded to MySQL 5.0.45 AFTER I had already (successfully) upgraded from MediaWiki 1.9 to 1.11. However by re-executing the php update.php in the maintenance directory I found it added a whole bunch of stuff that it did not add the first time I ran it under MySQL4. When I re-executed it under MySQL5 it fixed all the problems that I was having.

Hope that helps anyone else who happened on this page by searching for the rev_len issue. ~ Mark

Personal tools