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
I am attempting to install cldr. In previous installations, I have not had any issues with this extension and is currently live at wiki.seg.org. When working on updating the Mediawiki software from 1.23.2 to 1.26.2, after installing several other extensions, I get this message in the command prompt when attempting to update the database after installing cldr.
PHP Notice: Use of undefined constant MW_MATH_MATHML - assumed 'MW_MATH_MATHML' in /var/www/html/mediawiki/LocalSettings.php on line 166
PHP Fatal error: Uncaught exception 'Exception' with message '/var/www/html/mediawiki/extensions/cldr/extension.json does not exist!' in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php:106
Stack trace:
#0 /var/www/html/mediawiki/includes/GlobalFunctions.php(181): ExtensionRegistry->queue('/var/www/html/m...')
#1 /var/www/html/mediawiki/LocalSettings.php(202): wfLoadExtension('cldr')
#2 /var/www/html/mediawiki/maintenance/doMaintenance.php(83): require('/var/www/html/m...')
#3 /var/www/html/mediawiki/maintenance/update.php(214): require_once('/var/www/html/m...')
#4 {main}
thrown in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php on line 106
I have enabled the Math extension and set MathML as the rendering option. This is how it appears in LocalSettings.php:
require_once "$IP/extensions/Math/Math.php";
// Set MathML as default rendering option;
$wgDefaultUserOptions['math'] = MW_MATH_MATHML;
$wgMathFullRestbaseURL= 'https://api.formulasearchengine.com/';
Can someone please provide guidance in troubleshooting this issue? Thank you.
Andrew Geary
ageary(a)seg.org
Andrew Geary
SEG Publications outreach editor
Society of Exploration Geophysicists (SEG)
8801 South Yale, Suite 500 / Tulsa, OK 74137 USA
504-407-1303
ageary(a)seg.org
www.seg.org
Heiya,
this is painful for me.
There is a wiki accessible with the following logic:
"http://example.com/wiki/Main_Page"
When I edit I have:
"http://example.com/w/index.php?title=Main_Page&action=edit"
To get this magic running I have the following RewriteRules:
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
And in "LocalSettings.php":
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true; // true or false does not make a difference
Everything is cool until I dare to try accessing a page containing a
special character, e.g. "http://example.com/wiki/So_ein_Ärger" and end
up in an indefinite redirect loop.
This wiki is a MW 1.26.2.
Any hint out there? Never encountered anything similar. Admittedly not
my first wiki.
Thanks and cheers
Karsten
Dear Teammates,
In MW 1.22.x family, we could edit a page and insert an image link like [[File:myImage.png]],
save the page, upload the image from it's link on the saved page, and voila it was there !!
With MW 1.26.2, after the upload, the image is not showing unless we edit and save the page
again. Is this a bug ? Or are we missing a setting ?
thanks for any help or suggestions,
Lori
Hello, I recently moved our wiki to a new Debian-based server and took
the time to upgrade it to the newest version as well. But after
upgrading it the WikiEditor extension stopped working, the BetaFeatures
section of user preferences is empty, HoverCards don't work, Reference
Tooltip doesn't work.
I suspect this has something to do with javascript. Reloading the page
and looking for errors in the console displays this:
exception 'LogicException' with message 'getDefinitionSummary must call
parent method' in
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderModule.php:626
Stack trace:
#0
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule->getVersionHash(Object(DerivativeResourceLoaderContext))
#1 [internal function]: ResourceLoader->{closure}('ext.geshi.langu...')
#2
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(644): array_map(Object(Closure),
Array)
#3
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderStartUpModule.php(415):
ResourceLoader->getCombinedVersion(Object(DerivativeResourceLoaderContext),
Array)
#4
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderStartUpModule.php(388):
ResourceLoaderStartUpModule->getAllModuleHashes(Object(DerivativeResourceLoaderContext))
#5
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderModule.php(624):
ResourceLoaderStartUpModule->getDefinitionSummary(Object(DerivativeResourceLoaderContext))
#6
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule->getVersionHash(Object(ResourceLoaderContext))
#7 [internal function]: ResourceLoader->{closure}('startup')
#8
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(644): array_map(Object(Closure),
Array)
#9
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(696): ResourceLoader->getCombinedVersion(Object(ResourceLoaderContext),
Array)
#10 /var/www/mediawiki1.26.2/load.php(47):
ResourceLoader->respond(Object(ResourceLoaderContext))
#11 {main}
exception 'LogicException' with message 'getDefinitionSummary must call
parent method' in
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderModule.php:626
Stack trace:
#0
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderStartUpModule.php(216):
ResourceLoaderModule->getVersionHash(Object(ResourceLoaderContext))
#1
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderStartUpModule.php(361):
ResourceLoaderStartUpModule->getModuleRegistrations(Object(ResourceLoaderContext))
#2
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderModule.php(501):
ResourceLoaderStartUpModule->getScript(Object(ResourceLoaderContext))
#3
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoaderModule.php(469):
ResourceLoaderModule->buildContent(Object(ResourceLoaderContext))
#4
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(998): ResourceLoaderModule->getModuleContent(Object(ResourceLoaderContext))
#5
/var/www/mediawiki1.26.2/includes/resourceloader/ResourceLoader.php(723): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext),
Array, Array)
#6 /var/www/mediawiki1.26.2/load.php(47):
ResourceLoader->respond(Object(ResourceLoaderContext))
#7 {main}
Problematic modules: {"startup":"error"}1 load.php:30:39
I really am out of ideas on this one and would be glad if someone helps me.
Dusan
Instead of 'edit', just click 'refresh' in the action menu. (Other visitors
to the page would see the image without refreshing)
On Apr 25, 2016 11:55 AM, "John" <phoenixoverride(a)gmail.com> wrote:
Have you tried purging the article after uploading?
On Monday, April 25, 2016, Rowe, Dolores A <dolores.a.rowe(a)boeing.com>
wrote:
> Dear Teammates,
>
> In MW 1.22.x family, we could edit a page and insert an image link like
> [[File:myImage.png]],
> save the page, upload the image from it's link on the saved page, and
> voila it was there !!
>
> With MW 1.26.2, after the upload, the image is not showing unless we edit
> and save the page
> again. Is this a bug ? Or are we missing a setting ?
>
> thanks for any help or suggestions,
> Lori
>
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
After changing my provider,
I get a warning, choosing the prieview-option:
Warning: Cannoot set max_execution_time above master value of 30 (tried
to set 120) in .../wiki/includes/GlobalFunctions.php on line 3903
The wiki works correctly, anyway.
I am only able to set the max-execution-time from 30 to 60. Is there a
way to set the wiki script to 60, maybe in Local-Settings? Has anyone an
idea?
Greetings,
C.
Thanks a ton guys, that worked for me for the edit pages.
But when accessing the Query Form pages or Solr Search pages (these
generally use the Special Pages for working which is embedded in the link,
again I am unable to do away with the index.php and title.
Any insight on this.
Thanks Again.
Palash