[04:38:55] Hello everyone, can someone please help me with Nginx error? I installed MediaWiki on Nginx and so far it's working fine but, when I visit a page ending with either .css or .js e.g. /wiki/MediaWiki:Common.js I get "404 Not Found" error and even I can't see images which also return the same error.  I have pasted my conf and error log on [04:38:56] https://dpaste.org/Yj7Vg so can someone please take a look and suggest a solution? Thank [05:07:52] I notice that it's working fine without applying short URL settings in LocalSetting.php but if I set $wgArticlePath = "/wiki/$1"; I get 404 error. [05:29:26] Anyone familiar with this error please? [05:30:39] Guest97: try commenting out the "location ~* \.(jpg|jpeg|png|gif|ico|css|js)$" block in your nginx configuration file [05:37:14] Thank you taavi, I tried but no luck the error is the same "open() "/home/enwiki/public_html/wiki/MediaWiki:Common.js" failed (2: No such file or directory) request: "GET /wiki/MediaWiki:Common.js HTTP/1.1" [11:52:21] Hi. Is there a way to delete "log out" button on the top header? [12:30:33] Victor_Trevor, I'm not sure *why* you'd want that, given that users will still be able to access Special:UserLogout manually, but here's a snippet for your LocalSettings.php which'll do that: [12:30:35] $wgHooks['PersonalUrls'][] = function( &$personal_urls ) { [12:30:35] if ( isset( $personal_urls['logout'] ) && $personal_urls['logout'] ) { [12:30:36] unset( $personal_urls['logout'] ); [12:30:36] } [12:30:36] }; [12:54:25] Thank you for the script, ashley. In fact, I have logged out by mistake more than once in the last few days, and this means that my session on many projects has been closed. How can I adapt this to global.js? [12:59:30] you don't have access to the relevant LocalSettings.php file(s)? [13:01:47] well, here's a quick version for [[MediaWiki:Common.js]] (or if you want it just for one skin, [[MediaWiki:.js]], e.g. [[MediaWiki:Vector.js]], [[MediaWiki:Monobook.js]] ...): [13:01:49] $( function () { [13:01:49] if ( $( '#pt-logout' ).length > 0 ) { [13:01:49] $( '#pt-logout' ).hide(); [13:01:49] } [13:01:49] } ); [13:02:05] should hopefully work with *most* skins but as with all things skinning, I totally expect there to be some edge cases ;) [13:35:44] I added the code(s) you gave me lastly to global.js, and it's working now. I didn't think about adding this code to my own MediaWiki, but if I need it, I will add it. Thank you so much! ashley [13:36:53] you're welcome, Victor_Trevor; glad I could be of assistance :) [16:48:12] Hi, can someone tell me if it's possible to make Wikipedia like redirect on Nginx? e.g. wikipedia.org/Wikimedia redirect to en.wikipedia.org/wiki/Wikimedia ? Thanks [20:20:34] Hi, anyone is familiar with Cargo extension maybe? I'm using template to show the results of #cargo_query, ther is an option to get the row_number for each row in the results? this is in order to simulate something similar to 
    [23:45:16] https://mediawiki.org/wiki/Template:Extension The description for the 'rights' parameter should be updated with better examples than the two extensions that are archived/replaced by core functionality