Hi,
I'm trying to use Wikibase on my pool wiki and language wikis.
In my pool wiki, I can create properties and items, but I can't add site
links to them. ID: "Q1", site id: "cswiki", site link: "article name"
gives me the error "The specified article could not be found on the
corresponding site." even though that article exists on cswiki.
I also can't access data from the language wikis. If I use
{{#property:P1}} in an article on cswiki, nothing shows up.
I downloaded Wikidata-refs-heads-master.tar.gz and extracted it to the
extension folder of my pool wiki and language wikis.
My LocalSettings.php of the pool wiki looks like this:
# Wikibase
$wgEnableWikibaseRepo = true;
$wgEnableWikibaseClient = false;
$wmgUseWikibaseRepo = true;
$wmgUseWikibaseClient = false;
require_once __DIR__ . "/extensions/Wikidata/Wikidata.php";
require_once __DIR__ .
"/extensions/Wikidata/extensions/Wikibase/repo/ExampleSettings.php";
# SiteMatrix Extension
require_once "$IP/extensions/SiteMatrix/SiteMatrix.php";
$wgLocalDatabases = array( 'cswiki', 'dewiki', 'enwiki', 'eswiki',
'frwiki', 'huwiki', 'hywiki', 'itwiki', 'nlwiki', 'plwiki', 'poolwiki',
'ptwiki', 'ruwiki', 'srwiki', 'svwiki' );
My LocalSettings.php of the language wikis (cs for example) look like this:
# Wikibase Extension
$wgEnableWikibaseRepo = false;
$wgEnableWikibaseClient = true;
$wmgUseWikibaseRepo = false;
$wmgUseWikibaseClient = true;
require_once __DIR__ . "/extensions/Wikidata/Wikidata.php";
# Settings
$wgWBSettings['repoUrl'] = 'http://pool.mypedia.com';
$wgWBSettings['repoScriptPath'] = '/w';
$wgWBSettings['repoArticlePath'] = '/wiki/$1';
$wgWBSettings['siteGlobalID'] = 'cswiki';
$wgWBSettings['repoDatabase'] = 'poolwiki';
$wgWBSettings['changesDatabase'] = 'poolwiki';
# Optional
$wgWBSettings['siteGroup'] = 'mypedia';
$wgWBSettings['sort'] = 'code'; //optional
$wgWBSettings['sortPrepend'] = array(
'cs'
);
In populateSitesTable.php, I changed
"https://meta.wikimedia.org/w/api.php" to
"http://pool.mypedia.com/w/api.php" and "$validGroups = array(
'wikipedia', 'wikivoyage', 'wikiquote', 'wiktionary','wikibooks',
'wikisource', 'wikiversity', 'wikinews' );" to "$validGroups = array(
'mypedia' );"
Do I need to change "$wikiId = $this->getOption( 'wiki' );" too, since
it says "wiki" is expanded to "wikipedia"?
Table "sites" in the poolwiki database looks like this:
site_id | site_global_key | site_type | site_group | site_source |
site_language | site_protocol | site_domain | site_data | site_forward |
site_config
1 | cswiki | mediawiki | mypedia | local | cs | http:// |
com.mypedia.cs. |
a:1:{s:5:"paths";a:2:{s:9:"file_path";s:5:"/w/$1";s:9:"page_path";s:8:"/wiki/$1";}}
| 0 | a:0:{}
[...]
15 | poolwiki | mediawiki | pool | local | en | http:// |
com.mypedia.pool. |
a:1:{s:5:"paths";a:2:{s:9:"file_path";s:5:"/w/$1";s:9:"page_path";s:8:"/wiki/$1";}}
| 0 | a:0:{}
I changed site_group "wikipedia" to "mypedia" and added data for
site_protocol and site_domain by hand.
I noticed that the script path is "/w/$1" here, while $wgScriptPath in
LocalSettings.php is actually "/w", could that cause any problems?
And should I change site_group of the pool to mypedia like I did with
the language wikis or isn't that necessary?
Wikibase DataModel 0.8, Wikibase Repository 0.5 alpha, WikibaseLib 0.5
alpha and Wikidata show up in Special:Version of the pool wiki.
Wikibase Client 0.5 alpha, Wikibase DataModel 0.8, WikibaseLib 0.5 alpha
and Wikidata show up in Special:Version of the language wikis.
Any help would be really appreciated!
Thanks and cheers,
Till
Hi,
I'm running multiple language wikis and one pool wiki. The problem is
that no file descriptions are fetched in the language wikis although
$wgFetchCommonsDescriptions is set to true.
LocalSettings.php of the language wikis:
$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.example.com/w/images';
$wgSharedUploadDirectory = '/path/to/pool/w/images/';
$wgHashedSharedUploadDirectory = true;
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'poolwiki'; # DB-Name of PoolWiki
#$wgSharedUploadDBprefix = 'wiki_'; # Table name prefix for PoolWiki
$wgRepositoryBaseUrl = "http://pool.example.com/wiki/Image:";
ForeignAPIRepo used to work fine before, but since I switched from
Apache to Nginx, no images show up anymore in the language wikis. This
is how my LocalSettings.php used to look like:
$wgForeignFileRepos[] = array(
'class' => 'ForeignAPIRepo',
'name' => 'pool',
'apibase' => 'http://pool.example.com/w/api.php',
'fetchDescription' => true, // Optional
'descriptionCacheExpiry' => 43200, // 12 hours, optional (values are
seconds)
'apiThumbCacheExpiry' => 0, // required for local thumb caching
);
I also tried to set 'name' => 'poolwiki', (name of the pool database)
but that doesn't work either.
I also re-started Memcached and I even deleted a file description page
from the CloudFlare cache, but still no file description can be seen :/
My software: MediaWiki: 1.22.0
PHP: 5.3.27 (fpm-fcgi)
MySQL: 5.1.70-log
Any help would be über-cool.
Thanks and cheers,
Till
Unknown extension tag "indicator"
This just started popping up.
Anyone know what is this caused by?
I am guessing some extension that I need but, I have not been able to
find much on this error message.
Thanks.
--
John Foster
JW Foster & Associates
Good morning,
I would like to have a section on my main page that lists the last 10 pages
that have been created / updated. We use this as a knowledge base
internally and I would like to show the newest items on login.
Also, I would like to email this once a week to all accounts. Is this
possible?
Finally, since every page branches from a series of categories, is there a
way to create a sitemap that would show a hierarchy of all pages and
categories?
Thank you.
Kevin
I have MW 1.25.1 and the matching Flow extension and am attempting to make Flow convert the LQT pages to Flow counterparts (all pages in the Talk namespace), but the instructions on the Flow extension page on MW.org don't seem to be very helpful and WMF specific.
I could use some advice how to do this, I plan to deploy this on the Orain wikifarm as soon as is practicable, but I wanted to do some localhost testing first.
On Tuesday June 9th, join us to discuss lessons-learned, share open-source
software, and explore opportunities for collaborative development
agreements on expanding and improving knowledge management tools. This
includes but is not limited to extensions for MediaWiki and other wiki
platforms. We'd like to invite everyone ranging from software developers
and system administrators to end users and managers. NASA's Johnson Space
Center is teaming with the Technology Collaboration Center of Houston to
host this event.
Our preliminary agenda includes (but is not limited to):
- How a wiki can be more accountable than any other KM system
- How to organize data using templates and onboard new users
- What features and qualities make for the "perfect" KM system?
- How to complete the culture shift to using a wiki (getting the last
10% to use it)
- NASA's strategy for critical data visibility through KM
- Accelerating development of a knowledge sharing program
If you are interested in attending, please register so we can finalize the
logistics including room size. If you would like to present a relevant
topic, please contact us with the details.
Register at
http://www.tcc-houston.org/knowledge-management-technologies.html
We may offer the ability to remotely participate. If you are unable to
travel to Houston and would like more information, please contact us.
If you have any questions, feel free to email us at
enterprisemediawiki(a)gmail.com
Daren
--
EnterpriseMediawiki.org
I have upgraded from 1.24.2 to 1.25.1
PHP 5.4.39-0+deb7u2 (cgi-fcgi)
MariaDB 10.0.19-MariaDB-1~wheezy
I moved all the files, upacked the full tarball (not the core). I then
copied back the Localsettings.php and the /images/.
The images are not displayed. I ran update.php.
I tried to create a new Localsettings.php, so at least I can upload new
images now.
I see "Error creating thumbnail: File missing" on the old images.
And original files seem to be missing too.
/images/0/06/Three_Mill_Lane_b1.jpg
I assume the database does not match the data in /images/
Any ideas?
Gordo
Hello there,
For research purpose I would like to retrieve information, such as article text and all revisions (revision content, time stamps, usernames), for English articles under certain categories (including sub-categories) or probably a set of randomly selected articles, but not necessary for the whole English Wikipedia.
I tried Export page (https://en.wikipedia.org/w/index.php?title=Special:Export&action=submit) but it limits revisions to 1000. And it generates an XML document as output.
I have been reading some information online but still don't have a very clear picture. I know there are downloadable dumps compressed in XML format, and also it appears the same content can be downloaded in form of MySQL database as well.
I am familiar with java, and have some experience with MySQL, XML, PHP, and HTML.
My questions are:
What are the better ways for me to get the information I need? Please be specific.
For example, if I download the data in XML format, do I use MediaWiki (PHP) to retrieve the information from those XML documents or is there a good java XML parser for wikipedia to retrieve my desired results?
If the whole content can be downloaded to a MySQL database in my local computer, can I write a java program with SQL queries to get my desired results from the database, or MediaWiki is better to retrieve the results from the database?
Thank you,
Ming
Hi everyone,
I am using hhvm with following software version:
MediaWiki 1.24.2
HHVM 3.7.1 (srv)
MySQL 5.6.20
Elasticsearch 1.4.2
The current problem is that HHVM(fastCGI) only use one CPU to 100% in a 6
CPU & 8 GB RAM server. Anyone have same problem? Or know how to solve this
problem?
Thank you.
--
Bask Ice | 晒太阳的冰
E-mail ice(a)moegirl.org
Moegirlpedia
2290 3rd Avenue Basement, New York, United States
Upgrading work wikis from 1.19 to 1.23 with slight trepidation. It
went like this:
* Back up htdocs and database, unzip tarball into place
* php maintenance/update.php
* and you're done.
My goodness that was simple. Thank you for something that Just Works that well!
- d.