Project:Support desk

Jump to: navigation, search

About this board

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".
Language:Project:Language policy English  español

Template:English

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
Owned67 (talkcontribs)

Hello,

i have follow: Manual:Moving a wiki but images doesn't display and i don't have template loaded... Login impossible (error 500)) Special page not found

/var/www/wiki (www-data:www-data)


nginx -V nginx/1.10.3 built by gcc 4.9.2 (Debian 4.9.2-10) built with OpenSSL 1.0.1t 3 May 2016 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'

php -v PHP 5.6.30-0+deb8u1 (cli) (built: Feb 8 2017 08:50:21) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

   with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


nginx.conf: user www-data; worker_processes 2; pid /var/run/nginx.pid;

events {

   worker_connections 1024;
   use epoll;

}

http { limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m; limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=5r/s;

include /etc/nginx/mime.types;

   default_type  application/octet-stream;
   access_log /var/log/nginx/access.log combined;
   error_log /var/log/nginx/error.log error;
   server_names_hash_bucket_size 64;
   sendfile on;
   keepalive_timeout 15;
   keepalive_disable msie6;
   keepalive_requests 100;
   tcp_nopush on;
   tcp_nodelay on;
   server_tokens off;
   gzip on;
   gzip_comp_level 5;
   gzip_min_length 512;
   gzip_buffers 4 8k;
   gzip_proxied any;
   gzip_vary on;
   gzip_disable "msie6";
   gzip_types
       text/css
       text/javascript
       text/xml
       text/plain
       text/x-component
       application/javascript
       application/x-javascript
       application/json
       application/xml
       application/rss+xml
       application/vnd.ms-fontobject
       font/truetype
       font/opentype
       image/svg+xml;
   include /etc/nginx/sites-enabled/*.conf;

server { limit_conn conn_limit_per_ip 10; limit_req zone=req_limit_per_ip burst=10 nodelay; } }

wiki.conf: server {

   server_name wiki-tanki.changeip.net;
   root /var/www/wiki;
   client_max_body_size 10m;
   client_body_timeout 60;
   index  index.php index.html index.htm;

access_log /var/log/nginx/wiki-access.log combined; error_log /var/log/nginx/wiki-error.log error;

error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; }

location = /favicon.ico { access_log off; log_not_found off; }

location / {

       try_files $uri $uri/ @rewrite;
   }
   location @rewrite {
       rewrite ^/(.*)$ /index.php?title=$1&$args;
   }
   location ^~ /maintenance/ {
       return 403;
   }
   location ~ \.php$ {
   #location ~ \.php(/|$) {
           # Unmodified fastcgi_params from nginx distribution.
           include fastcgi_params;
           # Necessary for php.
           fastcgi_split_path_info ^(.+\.php)(/.*)$;
           fastcgi_param PATH_INFO $fastcgi_path_info;
           fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
           fastcgi_param DOCUMENT_ROOT $realpath_root;
           fastcgi_pass unix:/var/run/php5-fpm.sock;

}

   location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
       try_files $uri /index.php;
       expires max;
       log_not_found off;
   }
   location = /_.gif {
       expires max;
       empty_gif;
   }
   location ^~ /cache/ {
       deny all;
   }
   location /dumps {
       root /var/www/wiki/local;
       autoindex on;
   }
   # BEGIN W3TC Browser Cache
   gzip on;
   gzip_types text/css application/x-javascript text/x-component text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
   location ~ \.(css|js|htc)$ {
       expires 31536000s;
       add_header Pragma "public";
       add_header Cache-Control "public, must-revalidate, proxy-revalidate";
       add_header X-Powered-By "W3 Total Cache/0.9.2.4";
   }

   location ~ \.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$ {
       expires 3600s;
       add_header Pragma "public";
       add_header Cache-Control "public, must-revalidate, proxy-revalidate";
       add_header X-Powered-By "W3 Total Cache/0.9.2.4";
   }

   location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ {
       expires 31536000s;
       add_header Pragma "public";
       add_header Cache-Control "public, must-revalidate, proxy-revalidate";
       add_header X-Powered-By "W3 Total Cache/0.9.2.4";
       try_files $uri $uri/ @rewrite;
   }
   # END W3TC Browser Cache

}

MediaWiki 1.28.0
PHP PHP 5.6.30-0+deb8u1 (cli)
Nginx nginx/1.10.3

Thanks for help me

Reply to "Move wiki to another server problem"
Murbaut (talkcontribs)

[WKh3KCIHZHYk6Nd7FZdCPQAAAEI] /w/index.php?title=Istimewa:Gabungkan_akun Exception from line 516 of /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php: Invalid wiki: ckmpga_wiki-A_Backtrace:#0 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(495): SpecialMergeAccount->foreignUserLink(string)#1 [internal function]: SpecialMergeAccount->listWikiItem(string, string)#2 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(480): array_map(array, array, array)#3 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(460): SpecialMergeAccount->formatList(array, array, array)#4 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(442): SpecialMergeAccount->listWikis(array, array)#5 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(415): SpecialMergeAccount->listAttached(array)#6 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(382): SpecialMergeAccount->showStatus(array, array)#7 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(115): SpecialMergeAccount->showCleanupForm()#8 /home/ckmpga/public_html/w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(102): SpecialMergeAccount->showFormForExistingUsers(CentralAuthUser)#9 /home/ckmpga/public_html/w/includes/specialpage/SpecialPage.php(522): SpecialMergeAccount->execute(NULL)#10 /home/ckmpga/public_html/w/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)#11 /home/ckmpga/public_html/w/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)#12 /home/ckmpga/public_html/w/includes/MediaWiki.php(851): MediaWiki->performRequest()#13 /home/ckmpga/public_html/w/includes/MediaWiki.php(512): MediaWiki->main()#14 /home/ckmpga/public_html/w/index.php(43): MediaWiki->run()#15 {main}

Murbaut (talkcontribs)

mediawiki v 1.28 (stable), new issue

Reply to "Please helpme I can't merge account"

Single quotes in title seem to send Mediawiki in a redirect loop

2
Pchr8 (talkcontribs)

https://www.pchr8.net/f/index.php/Betteridge%27s_law_of_headlines_-_Wikipedia For example, here.

I see that multiple consecutive apostrophes are not allowed: https://en.wikipedia.org/wiki/MediaWiki:Titleblacklist-forbidden-apostrophes

This seems to happen in all browsers, even curl, and with single quotes too; a relevant bug is here: https://phabricator.wikimedia.org/T106793

MediaWiki 1.27.1
PHP 5.6.30-nfsn1 (NFGI)
MariaDB 5.3.12-MariaDB
ICU 57.1

Any ideas?

Ciencia Al Poder (talkcontribs)

Fixed in 1.27.2 but nobody knows when it will be released... see task T106793

Reply to "Single quotes in title seem to send Mediawiki in a redirect loop"
Summary by MichaelSinim

I figured it out.

115.176.222.158 (talkcontribs)

I am the current Junior Warden for Sinim Lodge and I would like to make a few changes to the Sinim page. How can I do this? I am unable to make an account.

MichaelSinim (talkcontribs)

Please delete this thread, I have figured things out.

MohammadtheEditor (talkcontribs)

I configured server to fetch pictures from commons, but when I edit and add a picture, it times out. How should I improve it ?

MohammadtheEditor (talkcontribs)

version is 1.28

MohammadtheEditor (talkcontribs)
Reply to "Server is slow loading Instant Commons"
Poonam2180 (talkcontribs)

how can i log out from wiki

Mainframe98 (talkcontribs)

Visit Special:Userlogout.

Reply to "log out"
186.188.144.132 (talkcontribs)

Hi. Where should I put all those variables (SharedDB, SharedPrefix, etc) if I want my wikis to be linked?

83.135.226.133 (talkcontribs)

$wgSharedDB, $wgSharedTables and $wgSharedPrefix are configuration variables. Those belong into your LocalSettings.php file!

Reply to "Manual:Shared database"

There were no results matching the query.

6
110.142.220.167 (talkcontribs)

Hi , I am working on my own wiki site. I installed it using MS SQL Server as DB.

The only problem is it failed to do content full-text searching, no matter what key words I typed in (I am pretty sure some pages contains the key words), it just gave 'There were no results matching the query.' No searching results shown.

What's wrong with it? Could somebody help me?

Best Regards,

Richard

Lk richard (talkcontribs)

Plus, I use

Nginx 1.10.2 + Microsoft Sql Server 10.50.2550.0 + PHP 7.0.15-nts-Win32-VC14-x86 + MediaWiki 1.27.1

The only extra modification I made is I cut the oi_name,oi_archive_name length from 255 to 225 because of the problem

Error: 1945 [SQLSTATE 01000][Error Code 1945][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Warning! The maximum key length is 900 bytes. The index 'oi_name_archive_name' has maximum length of 1020 bytes.

I am not sure if this is the cause for that.

Thanks in advance.

Best Regards

Richard

Lk richard (talkcontribs)

Can anyone help me?

Lk richard (talkcontribs)

Hi guys,

When I check the table 'searchindex' , I found all content is messy code.

Is it the problem of failing to make full text searching? How may I fix it?

Ciencia Al Poder (talkcontribs)

SQL Server has poor support in MediaWiki, that's probably a bug. Try to bugreport it

MarkAHershberger (talkcontribs)

@Lk richard: Did you file a bug?

Reply to "There were no results matching the query."

How to load alternative common.less in Vector skin

2
52.9.166.178 (talkcontribs)

I want to be able to load an alternative common.less file (common.less is part of Vector). However it's very unclear to me how the skins are loading the .less files listed in skin.json?

Is there any way to make it switch, based on the originating IP address, such that it will load common_test.less instead of common.less under certain circumstances?

83.135.226.133 (talkcontribs)

It depends on what you want to achieve:

You should not edit the files of the Vector skin as this will make updating MediaWiki harder than needed. Instead, you can use different wiki pages in your wiki to adjust the design of the wiki. These pages are named and described on Manual:Interface/Stylesheets.
You could create a wiki page named User:Example/Vector.css with "Example" replaced by your actual username. On that page you can then put styles and rules, e.g. rules for testing, which should be in effect for your account.

If the rules should during testing not only be in effect for one user, but for multiple users, I could also imagine that you create a new user group for the users, who should see the styles for testing. Let's say this group would be called "test". Then you add the according users, who should be in that group, to user group "test".
More information on how to work with user groups is on Manual:User rights!
And you create the wiki page MediaWiki:Group-test.css and put your rules there!

Reply to "How to load alternative common.less in Vector skin"

Exception encountered, of type "LocalFileLockError"

12
OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

Whenever I want upload new image I get this error.

Exception encountered, of type "LocalFileLockError"

Ubuntu Server (Apache2)

87.123.9.12 (talkcontribs)

In which wiki is this happening?

Which version of MediaWiki is this wiki using?

(Possibly T135485, T132921...)

OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

Newest one

87.123.9.12 (talkcontribs)

What is the "newest version"? Is that 1.27, which is the newest LTS version? Or 1.28wmf..., which is the newest point release? Or even something completely different, because you installed this from some strange repository, which only has outdated stuff anyways?

OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

1 2 7

84.72.156.189 (talkcontribs)

Had the same issue but it was only a permission problem. MediaWiki was not able to write to the images subdirectory. Could be the same issue on your system.

Nicolas NALLET (talkcontribs)

try to put www-data as owner recursively

chown -R  www-data images

90.145.64.130 (talkcontribs)

Same problem here. We don't have a www-data user or group

97.75.165.2 (talkcontribs)

How do I fix this? When I try to upload an image on 1.27 I get the same "Exception encountered, of type "LocalFileLockError":

Already had issues with caching which I was able to resolve.

66.194.25.11 (talkcontribs)

I am having the same issue on 1.27 for the error below and was unable to resolve it.

Exception encountered, of type "LocalFileLockError"

192.62.77.24 (talkcontribs)

I has a similar problem.

In my case SELinux was the problem.

To verify - you can temporarily disable SELinux (sudo setenforce 0) and try again.

If the upload works - then you can follow the instructions at the MediaWiki SELinux page:

SELinux

What worked for me was to change the PHP file upload location from /tmp to the mediawiki/image/temp directory and then sudo chcon -R -t httpd_user_rw_content_t images

When you are done - dont forget to re-enable SELInux!

Hope this helps

Reply to "Exception encountered, of type "LocalFileLockError""