# Project:Support desk

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

Archives

There are also other places where to ask: IRC, mailing lists, Q&A etc.

## Post a new question

• 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".

## Inter wiki images

4

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. 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). 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? 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. 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! ## Notice: Uncommitted DB writes 2 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. 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 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 How do you do it? What do you mean by "folder"? 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/([^/]+/?[^/]*)/?$.

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

## VisualEditor RESTBase

3

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.

I have the same problem; I have followed instructions in

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!!!

## How do I add code for system messages?

1

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.

## Template spoiler does not work

5

No ability to expand/hide, no button

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

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 ː((

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

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

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. ## LocalSettings.php Issue 2 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 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 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! Your PHP version is too old. Update it. 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! /mw-config 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! You visit it in the web browser. I.E. yourdomain.com/mw-config 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!

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

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

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/index.php

Any ideas ?

thank you.

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.

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

thanks.

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)

this does not exist:

yum search all libapache2*

* base: mirror.compevo.com

* extras: mirror.lax.hugeserver.com

Warning: No matches found for: libapache2*

No matches found

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

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.

Go to the root of the mw-config folder.

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

mydomain.com/mw-config

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)

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

same results: with mw-config/index.php

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

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.

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

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

thanks!

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

@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"