Open main menu

MediaWiki β

Project:Support desk

About this board

Edit description
vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
NitaiDas (talkcontribs)

My problem is 3 fold

First, I can not figure out how to make the images available to all separete wikis. Technically it works fine, all images go to the same folder, and when entered in the source code they are viewable. But they show in Special:ListFiles only on the site that uploaded them.

Second, and similar, files uploaded on another wiki, or in the pool wiki, are not available in Visual Editor. Files uploaded on a particular site are available for that site only.

Third is explained below

Here is my settings

(Inside of require_once "......SharedWikiFamilySettings.php"; from LocalSettings.php)

$wgUploadNavigationUrl = 'http://pool.domain.org/index.php/Special:Upload';

$wgUseSharedUploads = true;

$wgSharedUploadPath = 'http://pool.domain.org/images';

$wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';

$wgHashedSharedUploadDirectory = true;

$wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images";

Now the 3rd problem is when i remove $wgUploadDirectory none of the sites are able to display the images.

I think everything is related and would appreciate any direction.

I am using Manual:Wiki family#Drupal-style sites on Ubuntu 16, Mediawiki 1.28.

Ciencia Al Poder (talkcontribs)

Apparently you need to set $wgSharedUploadDBname so the wikis can access the database where the shared uploads are uploaded.

The idea of using $wgSharedUpload* variables is that a central wiki is used for "shared uploads", but other wikis have independent upload directories, so particular uploads are listed only on each respective wiki (not in all of them at once).

NitaiDas (talkcontribs)

Ah ok, so there is no way to have images uploaded on one wiki be available on the other, or be automatically published on the central pool wiki (thereby available for all). Do I understand correctly?

Ciencia Al Poder (talkcontribs)

Apparently, you should disable uploads on the local wiki, comment out all config variables about uploads, and set up Manual:$wgForeignFileRepos#Using files from a database that you can access : ForeignDBRepo, ForeignDBViaLBRepo. You can set $wgUploadNavigationUrl to point to the central pool wiki. This way all uploads must be done in the central pool.

Reply to "Inter wiki images"

can't change user preferences on Special:Preferences

1
Summary by JaNeIEEE

I solved this problem, it was Semantic Glossary extension, that was causing trouble.

JaNeIEEE (talkcontribs)

MediaWiki 1.27.3

PHP 5.6.30 (apache2handler)

MySQL 5.6.36

Hello, I have a problem and no idea how to solve it, so I hope someone can help me here.

I have updated my MediaWiki from 1.24.0 to 1.27.3 and ran update.php script and after that all user preferences were set to default in MediaWiki, but in the database I can see custom preferences saved (in column up_property in user_properties table ).

If I go to Special:Preferences and change values, I get "Your preferences have been saved" message, but after the page loads, all values are set back to default.

In the database I can see new records, but in Mediawiki all values are set back to default.

Does anyone have an idea what is going wrong?

Thanks!

87.198.212.130 (talkcontribs)

Hi,

I'm seeing an error when I'm not logged into a wiki

Notice: Uncommitted DB writes (transaction from DatabaseBase::query (JobQueueDB::doGetSiblingQueuesWithJobs)). in C:\inetpub\wwwroot\WIKI\includes\db\Database.php on line 3306

I have recently upgraded from 1.23 to 1.27. This error started appearing after the upgrade.

Product Version
MediaWiki 1.27.2
PHP 5.6.22 (cgi-fcgi)
SQLite 3.8.10.2 with full-text search support
Lua 5.1.4

This error message appears only when I'm logged out of the wiki. out of the wiki.

Ciencia Al Poder (talkcontribs)

This is problematic to diagnose, see task T85762.

Apparently there are pending jobs on your wiki, try to run them through runJobs.php to discard the error is being caused by one of them.

Reply to "Notice: Uncommitted DB writes"

Mediawiki Issues in Namespaces and Extension

3
183.182.86.185 (talkcontribs)

Hello team,

We have Installed Mediawiki on the Linux system .But now we have facing some issues related to the Namespaces and Extension.

First of all , I want To create the Department wise Folder in the Mediawiki , but I am not able to do it and Secondly I am Not able to install the Extensions .

I am using Mediawiki 1.28.2

Can you please help me with this

Wargo (talkcontribs)

How do you do it? What do you mean by "folder"?

Osnard (talkcontribs)

Hi,

which extensions are you talking about exactly?

Regarding namespaces please have a look at Manual:Using_custom_namespaces. You can create a MediaWiki namespace for each department. if you want to have some simple access control, try Extension:Lockdown

--

Robert

Reply to "Mediawiki Issues in Namespaces and Extension"

How to fix slash (/) problem of the url rewrite in IIS8?

1
Summary by 星耀晨曦

The problem has been solved. I changed the rewrite rule into ^wiki/([^/]+/?[^/]*)/?$.

星耀晨曦 (talkcontribs)

I know this problem..But I don't know how to fix this problem in IIS.

211.32.133.242 (talkcontribs)

I have a problem.

I set up the VisualEditor on my Mediawiki.

And it work but, I can not save it.

I downloaded the restbase and start it but, It do not working.

I don't know how to use cxserver and restbase.

Please help me

24.54.34.28 (talkcontribs)

I have the same problem; I have followed instructions in

Extension:VisualEditor and

Content translation/cxserver/Setup#Starting cxserver automatically

and I have access to the VisualEditor for creation for new article but I can't save the content. If I try to access VisualEditor in existing article it gives me a server access error. I try to go back in the installation process and I'm asking in what directory we should install the Restbase (giving the instructions:

"git clone https://github.com/wikimedia/restbase.git" and

"npm install".

Can someday answer my question and after I can make some progress in the problem!!!

Thanks in advance

211.32.133.242 (talkcontribs)

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/localhost/v1"}

Reply to "VisualEditor RESTBase"

How do I add code for system messages?

1
+ r3df0x +x (talkcontribs)

I installed Extension:GlobalUserGroups and it includes system messages for the Global Administrator group but it doesn't have any system messages for other global groups that I want.

Existing pages on creating system messages are highly technical and useless.

Reply to "How do I add code for system messages?"
EvangelionI (talkcontribs)

No ability to expand/hide, no button

http://skrinshoter.ru/s/220517/sLJBX9eV

EvangelionI (talkcontribs)

The template was taken here https://ru.wikipedia.org/wiki/Шаблон:Сокрытие

I installed myself here http://wiki-evan.zzz.com.ua/index.php?title=Шаблон:Сокрытие

Tell me, please, why it does not work ː((

TheDJ (talkcontribs)

You also need the CSS and JS that enables collapsible div system that this depends on. It is in their https://ru.wikipedia.org/wiki/MediaWiki:Common.js and https://ru.wikipedia.org/wiki/MediaWiki:Common.css files

EvangelionI (talkcontribs)

I copied completely earlier already these css and js does not work

Ciencia Al Poder (talkcontribs)

There are JavaScript errors. If you open the developer console (hit F12 in your browser) you'll see the error on the console: ReferenceError: importScript is not defined

For an easy workaround, you should enable $wgIncludeLegacyJavaScript. However I recommend to adapt your JavaScript to not depend on this legacy code.

Joekerr3447 (talkcontribs)

I was able to get our site up and running, but when I add the line below to my localsettings.php file, save it, then to to my wiki, I get an error. I have added it to the bottom of my localsettings.php file and followed the install procedures via the site. Has anyone run across this before?

wfLoadExtension('EmbedVideo');

PHP Warning: Parameter 1 to EmbedVideoHooks::onParserFirstCallInit() expected to be a reference, value given in C:\inetpub\wwwroot\kb\includes\Hooks.php on line 195

Ciencia Al Poder (talkcontribs)

Apparently Extension:EmbedVideo isn't compatible with your MediaWiki version. This has been reported already on the project page on github

Reply to "LocalSettings.php Issue"

Installation problem w mediawiki-1.28.2

27
Aa2018 (talkcontribs)

when accessing the index.php file: http://www.myserver.com/w/mediawiki-1.28.2/index.php

Getting the following error: although i have upgraded php to version 5.5.9

MediaWiki 1.28.2

Database: 5.7.18 MySQL Community Server (GPL)

I see the installation guide reference to the configuration script and Local_settings.php files and don't see

these under the installed mediawiki folder:w/mediawiki-1.28.2/

MediaWiki 1.28 internal error

MediaWiki 1.28 requires at least PHP version 5.5.9, you are using PHP 5.4.16.

Thanks in Advance!

2002:43F4:3186:1234:BD8B:6C1:649E:6DD4 (talkcontribs)

Your PHP version is too old. Update it.

Aa2018 (talkcontribs)

i have already upgraded php to 5.5.9 but it is still giving the error.

where is the location of the config script mentioned in the install document ?

thanks!

67.244.49.134 (talkcontribs)

/mw-config

Aa2018 (talkcontribs)

i see 3 config files:

[root@client7-227 mw-config]# pwd

/root/mediawiki-1.28.2/mw-config

[root@client7-227 mw-config]# ls

config-cc.css  config.css  config.js  images  index.php  overrides

[root@client7-227 mw-config]#

are we supposed to run the script manually: ./config.js ?

thanks!

2002:43F4:3186:1234:BD8B:6C1:649E:6DD4 (talkcontribs)

You visit it in the web browser. I.E. yourdomain.com/mw-config

Aa2018 (talkcontribs)

Tried that from firefox it seems like it displays content of config.js:

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/config.js

( function ( $ ) { $( function () { var $label, labelText;

function syncText() { var value = $( this ).val() .replace( /[\[\]\{\}|#<>%+? ]/g, '_' ) .replace( /&/, '&amp;' ) .replace( /__+/g, '_' )

i guess something is not quite right!

Thanks!

MacFan4000 (talkcontribs)

Try http://mydomain-name.com<nowiki/>/w/mediawiki-1.28.2/mw-config/index.php

Aa2018 (talkcontribs)

tried that and it prompts me with a dialog box to open index.php

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/index.php

Aa2018 (talkcontribs)

Not sure what the problem is, tried index.php and config.js and all i get is the content of these file

from firefox/chrome browsers:

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/config.js or

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/index.php

Any ideas ?

thank you.

83.135.231.155 (talkcontribs)

PHP files currently obviously are not linked to the PHP executable. And when your domain is accessed using the web browser, PHP files should be linked to PHP 5.5 or newer. They were linked to PHP 5.4 when you created this thread.

Aa2018 (talkcontribs)

how do i link the php files to php5.5.9 executable ?

thanks.

Ciencia Al Poder (talkcontribs)

you may have installed php-cli, but not enabled php on the webserver. Try installing libapache2-mod-php5 (or whatever is called in your distribution)

Aa2018 (talkcontribs)

this does not exist:

 yum search all libapache2*

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.compevo.com

 * extras: mirror.lax.hugeserver.com

 * updates: repos-lax.psychz.net

Warning: No matches found for: libapache2*

No matches found

Ciencia Al Poder (talkcontribs)

Search in google "how to enable PHP in apache in (distro)", replacing (distro) by your linux distribution.

Aa2018 (talkcontribs)

went through this document here: php installation on tutrorialpoint .com

now, we are getting permission errors, although /w/mediawiki-1.28.2 permission is wide open.

You don't have permission to access /w/mediawiki-1.28.2/mw-config/config.js on this server.

MacFan4000 (talkcontribs)

Go to the root of the mw-config folder.

Aa2018 (talkcontribs)

not sure what you mean by go to the root of mw-config folder????

MacFan4000 (talkcontribs)

mydomain.com/mw-config

Aa2018 (talkcontribs)

we are getting the same result: mydomain.com/mw-config/config.js

Forbidden

You don't have permission to access /mw-config/config.js on this server.

thanks/

This comment was hidden by Ciencia Al Poder (history)
MacFan4000 (talkcontribs)

Don't go to config.js, go to index.php

Aa2018 (talkcontribs)

same results: with mw-config/index.php

You don't have permission to access /mw-config/index.php on this server.

Ciencia Al Poder (talkcontribs)

This looks like a misconfiguration on the apache itself (if you can discard that permissions on the filesystem are not the issue). You may try an apache forum, where you can post the entire configuration files so someone can take a look. Or try to understand how it works by reading the manual, something I'd recommend if you plan to maintain that server and the wiki is public.

Aa2018 (talkcontribs)

We follow the steps in the media-wiki installation guide .

Is this php install & configuration not covered in the media-wiki installation guide ?

thanks!

Ciencia Al Poder (talkcontribs)

webserver (apache, nginx...) and php are general software that have their own installation/configuration guides that are not covered here.

Aa2018 (talkcontribs)

@Ciencia Al Poder, have you done this install ?

can you share the urls for this apache, ngnix and php install and configuration which have worked for you ?

thanks.

Reply to "Installation problem w mediawiki-1.28.2"