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
Greetings,
quick intro: I have been a mediawiki user for a long time (wikipedia and
within companies) but I only had a couple of stints at administering one. I
am in the process of setting one up for my neighborhood - or about 65
families.
It pretty much all works but as my neighbors includes anything from very
hightech people to very lowtech grandpas I have to put extra-care in making
sure there are no counter-intuitive things happening.
One of the counter-intuitive things that -is- happening is that when I
create a new page from a pre-existing redlink the link does not become blue
until I use the /purge action in the URL. I checked with showJobs.php and
the job to update the page's cache is there. Somehow however, the jobs do
not get triggered. I.e. as $wgJobRunRate is set to the default (1), every
http request should take one job off the queue, right? But I'm not seeing
this. It seems like the queue just gets longer.
I'm wondering, is this perhaps something that has to do with short urls?
(they are otherwise functional) Or anything else in my .htaccess? It just
seems like mediawiki doesn't see some page reloads or some newly created
pages as enough to trigger the jobs queue to move forward.
Thoughts?
Kind regards,
Manu
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
Hello,
This may be a repost, but it says on my other one that it was not accepted.
I have MediaWiki installed on a Windows Server 2012. For the most part, the
page works fine, however, randomly the page will not load and give me an
error stating 'Exception encountered, of type "Error"'. I have found no
documentation on this error online, and turning on backtracing does not seem
to help either, except for telling me that usually a class is not found. For
example, when attempting to login, it will usually work, but occassionally
will break and say "Class 'UserPasswordPolicy' not found".
I currently have a workaround, but that involves restarting the server
completely, which is obviously not ideal. Does anyone have any suggestions?
Thanks!
--
View this message in context: http://wikimedia.7.x6.nabble.com/MediaWiki-randomly-throwing-Exception-enco…
Sent from the WikiMedia General mailing list archive at Nabble.com.
Has anyone out there installed MW 1.27.0 on Microsoft Windows 2008 successfully ?
Here's my stack trace of failure.
I don't understand what to do with it, but if you do, please write back.
Exception encountered, of type "InvalidArgumentException"
[26551a8b219289e75be6de8a] /test1270/index.php?title=Main_Page InvalidArgumentException from line 194 of I:\wwwroot-basp\test1270\includes\session\SessionManager.php: Invalid session ID
Backtrace:
#0 I:\wwwroot-basp\test1270\includes\session\SessionManager.php(126): MediaWiki\Session\SessionManager->getSessionById(string, boolean, WebRequest)
#1 I:\wwwroot-basp\test1270\includes\Setup.php(745): MediaWiki\Session\SessionManager::getGlobalSession()
#2 I:\wwwroot-basp\test1270\includes\WebStart.php(137): require_once(string)
#3 I:\wwwroot-basp\test1270\index.php(40): require(string)
#4 {main
thx,
L
>From what I can see, the SolrStore extension has not been updated in three
years. How usable is it currently with the most recent versions of Solr and
SMW? This extension is tagged as "beta." Should it really be classified
perhaps as "unmaintained?"
--Gary
Yes, I have ImageMagick installed. Thumbnails work when I upload small pictures (say 500kb) but failed when uploading large and high resolution ones.
Thanks,
Jingyi
------------------------
Sent from my iPhone
> On Jul 29, 2016, at 8:00 AM, mediawiki-l-request(a)lists.wikimedia.org wrote:
>
> Send MediaWiki-l mailing list submissions to
> mediawiki-l(a)lists.wikimedia.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> or, via email, send a message with subject or body 'help' to
> mediawiki-l-request(a)lists.wikimedia.org
>
> You can reach the person managing the list at
> mediawiki-l-owner(a)lists.wikimedia.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MediaWiki-l digest..."
>
>
> Today's Topics:
>
> 1. no thumbnails after uploading an image (Jingyi C. Shi)
> 2. Re: no thumbnails after uploading an image (Jasmine Smith)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 28 Jul 2016 13:17:38 -0400
> From: "Jingyi C. Shi" <jshizhang(a)gmail.com>
> To: mediawiki-l(a)lists.wikimedia.org
> Subject: [MediaWiki-l] no thumbnails after uploading an image
> Message-ID:
> <CAJYrjeWzMi-qSedq1AAim3t5bKFXA5ccswExrrDsK3noizR4Jg(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> I uploaded a png image but no thumbnails created in the File page. As a
> result, I cannot use the image in my articles. Could someone help me with
> this issue?
>
> Thanks,
> Jingyi
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 28 Jul 2016 17:20:27 +0000
> From: Jasmine Smith <jassmith55(a)outlook.com>
> To: MediaWiki announcements and site admin list
> <mediawiki-l(a)lists.wikimedia.org>
> Subject: Re: [MediaWiki-l] no thumbnails after uploading an image
> Message-ID:
> <AM2PR02MB0690C2B119C8A818F5FDB836CF000(a)AM2PR02MB0690.eurprd02.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Do you have ImageMagic (or MagicImage, I can't remember the order) installed?
>
>> On 28 Jul 2016, at 06:18 pm, "Jingyi C. Shi" <jshizhang(a)gmail.com> wrote:
>>
>> Hi,
>>
>> I uploaded a png image but no thumbnails created in the File page. As a
>> result, I cannot use the image in my articles. Could someone help me with
>> this issue?
>>
>> Thanks,
>> Jingyi
>> _______________________________________________
>> MediaWiki-l mailing list
>> To unsubscribe, go to:
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
> ------------------------------
>
> End of MediaWiki-l Digest, Vol 154, Issue 13
> ********************************************
> From: "Jingyi C. Shi" <jshizhang(a)gmail.com>
>
> I uploaded a png image but no thumbnails created in the File page. As a
> result, I cannot use the image in my articles.
Just went through something similar, but I did see thumbs on the File page in my case — just not where I was using them!
In my case, I had uploaded a bunch of arbitrary files, keeping their file names. Then I typed in the names to use via <randomimage> and <gallery>.
It turns out that half the images were named with “.jpg” and the others were named with “.JPG”, and I use a case-sensitive file system! I had referred to them all as “.jpg”, which caused the upper-case ones to be invisible.
So this particular gotcha might not apply to you.
You could try appending “?action=purge” to the URL, which *should* cause the thumbs to be re-generated. I think.
You can also go to your thumbs directory via your file system, and see if the thumbs are indeed there. They will be in “YourWikiRoot/images/thumbs”. Check the permissions on this directory to make sure thumbs can be read by your web server.
:::: We don't have an energy crisis; we have a consumption crisis. -- Ozzie Zehner <http://www.lmgtfy.com/?q=Ozzie+Zehner>
:::: Jan Steinman, EcoReality Co-op <http://www.ecoreality.org/> ::::