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

Unable to continue login. Your session most likely timed out.

1
2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talkcontribs)

This is a strange one.

Background: We have a Mediawiki instance for internal (engineering-related) documentation. It's behind a VPN and uses the LDAP Authentication plugin. Mediawiki version 1.28.0, PHP version 5.6.29, MariaDB version 10.1.20-MariaDB-1~jessie. I assume that PHP is using 100% default settings because I did not write a php.ini and indeed cannot even find one.

Problem: Most of the time, when I try to log in, it fails, and I get an error message stating, "Unable to continue login. Your session most likely timed out." Attempting to log in again does not work and simply yields the same error. What's weird is that once in a while it works and I can log in. Further, I am the one who set up and manages this wiki and out of hundreds of users, I appear to be the only one with this problem or I would have definitely heard about it by now.

This happens under Chromium 55.0.2883.87. I have tried disabling all extensions. I have tried removing all cookies and local data for the wiki domain multiple times. It even happens in incognito mode. No issues with Firefox but that is not my daily browser and don't need to have yet another browser window open all the time. I have verified that the both server time and local time are correct.

I highly appreciate any and all suggestions.

Reply to "Unable to continue login. Your session most likely timed out."

In our wiki, are emerging errors that are solved at time alone which generates mistrust in the tool, for example (required pages did not appear the pages not created nor when creating them disappeared from the list)

1
201.234.190.154 (talkcontribs)

No se porque sucede pero al tiempo se solucionan solos los errores, desearia que me apoyaran

Reply to "In our wiki, are emerging errors that are solved at time alone which generates mistrust in the tool, for example (required pages did not appear the pages not created nor when creating them disappeared from the list)"
Harry0725 (talkcontribs)

In MW 1.27, since I use this command "ChangePassword.php" and try to reset password for one of my user. The password changed, but I start to get following error when any of user is trying to modify password or e-mail by Wiki system page:

[2563eeb90d75b862e14660c8] /index.php?title=%E7%89%B9%E6%AE%8A:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest&returnto=%E7%89%B9%E6%AE%8A%3A%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A MWException from line 3795 of /var/lib/mediawiki/includes/user/User.php: CAS update failed on user_touched for user ID '55' (read from slave); the version of the user to be saved is older than the current version.
Backtrace:
#0 /var/lib/mediawiki/includes/session/SessionManager.php(306): User->saveSettings()
#1 /var/lib/mediawiki/includes/specials/SpecialChangeCredentials.php(219): MediaWiki\Session\SessionManager->invalidateSessionsForUser(User)
#2 /var/lib/mediawiki/includes/specials/SpecialChangeCredentials.php(107): SpecialChangeCredentials->success()
#3 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialChangeCredentials->execute(string)
#4 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(string)
#5 /var/lib/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#6 /var/lib/mediawiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#7 /var/lib/mediawiki/includes/MediaWiki.php(519): MediaWiki->main()
#8 /var/lib/mediawiki/index.php(43): MediaWiki->run()
#9 {main}

I cannot fix this after lots of study, pls kindly help...Thanks

AKlapper (WMF) (talkcontribs)

See https://phabricator.wikimedia.org/T95839 and https://phabricator.wikimedia.org/T150373 for potential technical background information on the software bug itself.

Harry0725 (talkcontribs)

Yes, I've seen these two pages for many times. But I still don't know how to fix it.

Reply to "CAS update failed?"
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

Owned67 (talkcontribs)

Nobody can help me? :(

Ciencia Al Poder (talkcontribs)

Images not displayed may be a problem with URLs, either you changed the public access path of your wiki (from /w to /wiki or similar) and you haven't updated LocalSettings.php, or nginx is not properly configured.

You should compare LocalSettings.php and nginx configuration from both servers and check what has changed.

Owned67 (talkcontribs)

Path wiki is correctly set. LocalSettings => updated

Can't check form both server, i don't have access to old server. Nginx conf posted...

Reply to "Move wiki to another server problem"
Summary by Zoranzoki21

I got the answer to my question in a short time, and even easier solution than what I asked.

Zoranzoki21 (talkcontribs)

How to (on example) word test (on all pages) comes rename on Test2 (on example)? I do not think the rename page, but on changing the word in the text?

Ciencia Al Poder (talkcontribs)

Extension:Replace Text?

Zoranzoki21 (talkcontribs)

@Ciencia Al Poder Thank you! I close topic

There were no results matching the query.

8
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?

Lk richard (talkcontribs)

@Ciencia Al Poder Thanks very much. Have posted one.

@MarkAHershberger Yes, https://phabricator.wikimedia.org/T158530  :-)

AKlapper (WMF) (talkcontribs)

Sounds more like a configuration issue with charset or collation to me (see more info in the bug report)

Reply to "There were no results matching the query."
Chan15tw (talkcontribs)

I want to create another wiki on my own server, setting is almost the same, just need to connect to another database and a new website name, therefore I want to copy the PHP files to another folder, export the table to another database, but the artiblce content will be new, is there a way to reset the table or which table should I truncate.

Ciencia Al Poder (talkcontribs)

You want to create a new wiki on your server, maintaining the existing one, so both are accessible, or just delete the current one and start from scratch?

If both should coexist, what kind of data you want to share between them (because you say to "copy" content but not article pages)?

If you have 2 subdomains, it's easy to define both to have the same document root, pointing to the same installation, and in LocalSettings set specific wiki-specific settings based on the host, but in any case you can also duplicate the installation files, having one for each wiki (which is probably easier to do if you have few wikis). You can share things like the user table, or images. See Manual:Wiki family

Reply to "How to copy and start a new wiki"

Extension:pdfHandler - Restrict rendering of pdf

7
Carchaias (talkcontribs)

I have a Wiki wich contains a lot of pages wich list a larger amount of uploaded pdf-files (by semantic mediawiki). I tried to activate Extension:PDFHandler but it acquired so much system resource when calling that pages that errors come up. I think thats some timeout and the initial rendering is very slow. There is no problem with pages that contain only some pdf-files and / or even smaller ones. I'm not very interrested in having thumbnails for each pdf on everywhere but I like the preview on the File:-pages. Is it somehow possible to control where pdf-handler should render the pdf-s and where not. Maybe a magicword like __nopdfhandler__ on the pages which contain larger number of links to pdf files or the like would help. One could include this to templates.

AKlapper (WMF) (talkcontribs)

What is the exact error that comes up? That should be the first thing to investigate, not necessarily some ideas for random workarounds...

Carchaias (talkcontribs)

The message is

"This page is experiencing technical difficulties. "

Malyacko (talkcontribs)

You get a completely blank page and the only single thing that is displayed literally says "This page is experiencing technical difficulties" in English, and nothing else at all? I'm asking as I can imagine that's not an error created by MediaWiki.

Ciencia Al Poder (talkcontribs)

In Extension:PdfHandler there's a configuration variable called $wgPdfCreateThumbnailsInJobQueue. Have you tried that? It should queue the thumbnails so they're rendered one at a time. This should mitigate the issue when a page contains lots of embedded PDFs and all need to be rendered, speeding the load, but the thumbnails in this case may be delayed (not all PDFs would have thumbnails).

Carchaias (talkcontribs)

I doublechecked what happens when I turn pdfHandler on. On pages that contain a larger amount of links to uploaded pdf-files (by semantic mediawiki #ask) -> It take about 2 minutes with a white screen and the the following message appears (on the white screen)

"An internal server error occurred. Please try again later."

I found out that some of the pdf that have to be rendered cause errors. I checked this by calling the file:-pages one by one. One error is

"An internal server error occurred. Please try again later."

as above.

Another errror is the File:-Page loads but there is something like

"Fehler beim Erstellen des Vorschaubildes: convert: unable to acquire cache view `File too large' @ fatal/cache-view.c/AcquireAuthenticCacheView/121."

instead of the thumbnail.

Yes I think that message is not generated by mediawiki but at least it is related to pdfHandler (and it's environment), cause there are no problems when turning it of.

I tried $wgPdfCreateThumbnailsInJobQueue = true and = false but I can't see any difference .

This comment was hidden by Ciencia Al Poder (history)
Reply to "Extension:pdfHandler - Restrict rendering of pdf"

Any way to list out all images from Wikimedia Commons been used in current wiki now?

2
Zoglun (talkcontribs)

For wiki enabled InstantCommons, what is the best way to get a list of files' name that cite from Wikimedia Commons?

Zoranzoki21 (talkcontribs)

From Wikimedia Commons.

Reply to "Any way to list out all images from Wikimedia Commons been used in current wiki now?"

trying to use gimp but keep sending me to other programs

1
Summary by Zoranzoki21

Duplicate of Topic:Tle00ruvfuiwh4ah

47.203.49.96 (talkcontribs)

trying to use gimp but keeping sent to other sites like this one. pls help a granny