Project:Support desk/Flow/2018/02
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
How to encourage people to contribute to my MW site?
My site is a futures' pedia site. I wonder how could I encourage the people to contribute to the site? It seems really hard. AndyPKU (talk) 02:05, 1 February 2018 (UTC)
- It is really hard. It requires dedication, advertising and most of all just a lot of grunt work.
- It's as hard as building any other type of community. So that's my advice, look into how you can build a community around your wiki. —TheDJ (Not WMF) (talk • contribs) 12:11, 1 February 2018 (UTC)
How to roll back the configuration?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Maybe I made some mistakes. After I try to install the extension of Scribunto, I made some configuration. And later on, my site becomes white now. I don't know how to go back. Is there any good idea? AndyPKU (talk) 13:12, 1 February 2018 (UTC)
- Depends on what the "configuration" is?
- If you installed an extension, by including its files in the "extensions" directory and its code line in LocalSettings.php, then to "roll back" you just have to remove the new lines of code from LocalSettings.php.
- For blank pages, see Manual:Errors and symptoms#You see a Blank Page. AhmadF.Cheema (talk) 13:19, 1 February 2018 (UTC)
- I did as it said, add the lines into the locasettings.php
- error_reporting( E_ALL );
- ini_set( 'display_errors', 1 );
- and I got the information:
- Fatal error: Uncaught Error: Call to a member function getCode() on null in /var/www/html/includes/user/User.php:1594 Stack trace: #0 /var/www/html/includes/user/User.php(5272): User::getDefaultOptions() #1 /var/www/html/includes/user/User.php(2884): User->loadOptions() #2 /var/www/html/includes/context/RequestContext.php(364): User->getOption('language') #3 /var/www/html/includes/Message.php(380): RequestContext->getLanguage() #4 /var/www/html/includes/Message.php(1275): Message->getLanguage() #5 /var/www/html/includes/Message.php(842): Message->fetchMessage() #6 /var/www/html/includes/Message.php(934): Message->toString('text') #7 /var/www/html/includes/exception/MWExceptionRenderer.php(200): Message->text() #8 /var/www/html/includes/exception/MWExceptionRenderer.php(304): MWExceptionRenderer::msg('dberr-again', 'Try waiting a f...') #9 /var/www/html/includes/exception/MWExceptionRenderer.php(51): MWExceptionRenderer::reportOutageHTML(Object(Wikimedia\Rdbms\DBConnectionError)) #10 /var/www/html/includes/exception/MWExce in /var/www/html/includes/user/User.php on line 1594
- I still couldn't figure out where is the problem. I have never changed any file in the includes directory... AndyPKU (talk) 14:17, 1 February 2018 (UTC)
- Probably a problem with some extension.
- Are you using the Scribunto extension version that corresponds to your version of MediaWiki core?
- Try disabling the extension by removing its lines of code from LocalSettings.php, and see if it fixes the site. AhmadF.Cheema (talk) 15:44, 1 February 2018 (UTC)
- I just did as follows:
- Download and place the file(s) in a directory called Scribunto in your extensions/ folder.
- Add the following code at the bottom of your LocalSettings.php:
- wfLoadExtension( 'Scribunto' );
- $wgScribuntoDefaultEngine = 'luastandalone';
- Set execute permissions for the Lua binaries bundled with this extension:
- chmod a+x /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua
- Set type to httpd_sys_script_exec_t if SELinux is enforced:
- chcon -t httpd_sys_script_exec_t /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua@AhmadF.Cheema AndyPKU (talk) 00:38, 2 February 2018 (UTC)
- yes, I delete the lines of code in Localsettings.php, but it didn't work.. AndyPKU (talk) 23:32, 1 February 2018 (UTC)
- How exactly did you set "execute permissions for the Lua binaries"?
- And do you know that SELinux is enforced for your server setup or not? AhmadF.Cheema (talk) 00:48, 2 February 2018 (UTC)
- I just cd into the directory:
- /var/www/html/Scribunto/engines/LuaStandaalone/binaries/Linux5_1_5(I forgetted the exact name) and use the command:
- chmod a+x lua
- I know nothing about SELinux... AndyPKU (talk) 01:05, 2 February 2018 (UTC)
- Try disabling all other extensions too, and see if the "Fatal error" persists. AhmadF.Cheema (talk) 01:14, 2 February 2018 (UTC)
- I have disabled all the other extensions. But it still didn't work.. AndyPKU (talk) 02:10, 2 February 2018 (UTC)
- The error is still the same? It complains about User->getOption('language'). Does it happen only when logging-in? (try opening the page using private browsing without logging in) Ciencia Al Poder (talk) 10:34, 2 February 2018 (UTC)
- thanks for everybody. After I rebooted the system, the problem is resolved. Although I don't know why, anyway I could see the page now.... AndyPKU (talk) 11:34, 2 February 2018 (UTC)
- I suggest you use git to manage the configuration file. 星耀晨曦 (talk) 12:17, 2 February 2018 (UTC)
Cannot get wiki pages sometimes after upgrade to 1.30.0
Hi, All
After I upgrade to 1.30.0. and I have run the update.php.
I sometimes get this error when I asscess my main page of mediawiki. Could anyone help what I missing?
[48909b725cfe7dd3a773e6ad] / Wikimedia\Rdbms\DBQueryError from line 1149 of /var/www/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: BEGIN
Function: Wikimedia\Rdbms\Database::query (MessageCache::loadFromDB(en)-big)
Error: 1 cannot start a transaction within a transaction
Backtrace:
#0 /var/www/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /var/www/includes/libs/rdbms/database/DatabaseSqlite.php(751): Wikimedia\Rdbms\Database->query(string, string)
#2 /var/www/includes/libs/rdbms/database/Database.php(2897): Wikimedia\Rdbms\DatabaseSqlite->doBegin(string)
#3 /var/www/includes/libs/rdbms/database/Database.php(918): Wikimedia\Rdbms\Database->begin(string, string)
#4 /var/www/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
#5 /var/www/includes/cache/MessageCache.php(513): Wikimedia\Rdbms\Database->select(string, array, array, string)
#6 /var/www/includes/cache/MessageCache.php(426): MessageCache->loadFromDB(string, NULL)
#7 /var/www/includes/cache/MessageCache.php(350): MessageCache->loadFromDBWithLock(string, array, NULL)
#8 /var/www/includes/cache/MessageCache.php(991): MessageCache->load(string)
#9 /var/www/includes/cache/MessageCache.php(921): MessageCache->getMsgFromNamespace(string, string)
#10 /var/www/includes/cache/MessageCache.php(888): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#11 /var/www/includes/cache/MessageCache.php(829): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#12 /var/www/includes/Message.php(1275): MessageCache->get(string, boolean, LanguageEn)
#13 /var/www/includes/Message.php(842): Message->fetchMessage()
#14 /var/www/includes/Message.php(934): Message->toString(string)
#15 /var/www/includes/Title.php(582): Message->text()
#16 /var/www/includes/MediaWiki.php(120): Title::newMainPage()
#17 /var/www/includes/MediaWiki.php(140): MediaWiki->parseTitle()
#18 /var/www/includes/MediaWiki.php(767): MediaWiki->getTitle()
#19 /var/www/includes/MediaWiki.php(523): MediaWiki->main()
#20 /var/www/index.php(43): MediaWiki->run()
#21 {main} Jimmysitu (talk) 13:40, 1 February 2018 (UTC)
- Did you run Update.php? AhmadF.Cheema (talk) 13:47, 1 February 2018 (UTC)
- Yes, I cd to maintaince and run
- php update.php
- Everything seems OK Jimmysitu (talk) 16:06, 1 February 2018 (UTC)
- There are a couple of errors reported similar to this: T166113 and T171025 Ciencia Al Poder (talk) 10:33, 5 February 2018 (UTC)
A suggestion
I have a small suggestion to the page Special:Statistics of mediawiki. My suggestion is to add a link for registered users(a link for users is given but i think it must b extended to the word "registered"also) Adithyak1997 (talk) 14:24, 1 February 2018 (UTC)
- Hello,
- I need access to WIKI website: Manoach lab, I keep getting a message that the log in is incorrect 132.183.13.81 (talk) 14:36, 1 February 2018 (UTC)
- You need to register in this website first. Adithyak1997 (talk) 14:45, 1 February 2018 (UTC)
Creating multiple pages
Is there a way to create more than one page at a time, with extensions or otherwise?
For example, if I create a page for a person John Smith, I would like to create the main page, and sub pages for John as well.
Right now I create the page, paste the basic outline I want to use with links to each new sub page and it takes a while. The1gofer (talk) 15:57, 1 February 2018 (UTC)
- You may be looking for Extension:MassEditRegex. 星耀晨曦 (talk) 16:54, 2 February 2018 (UTC)
- I’m looking more for a way to have a firm that creates a page a, page a/b a/c with one click. The1gofer (talk) 18:58, 2 February 2018 (UTC)
- Do you like to create pages with form? 星耀晨曦 (talk) 17:39, 3 February 2018 (UTC)
What's the situation now with Active Directory / LDAP authentication?
Hi,
I just the latest MediaWiki version (1.30), and tried to install the LdapAuthentication extension.
Can't get the site to even start since the extension.json is missing from the LdapAuthentication directory. I understand that this extension is no longer supported...
Is there any other way get MediaWiki to authenticate to Active Directory? Gilad (talk) 17:47, 1 February 2018 (UTC)
- Hi there!
- The extension is working just fine. You need to do the inclusion in LocalSettings.php with require_once();! This information is somewhat hidden on Extension:LDAP Authentication/Examples...
- For the status of this extension I know that there is going to be a replacement for it. However, I don't know of any code, that has already been written... See LDAP hub for information I found on this topic! T165270 contains a list of steps dated May 2017, which someone might want to do somewhen - however it does not seem like anything of this has already been done. 2001:16B8:1034:A600:10E3:915B:B3F2:80D5 (talk) 21:04, 1 February 2018 (UTC)
- There is active development going on for a new LDAP authentication stack by the MediaWiki Stakeholders' Group. But there is no officially announced release date yet.
- If you just need "authentication" and not stuff like "group-restrictions" and "group-sync", you could try setting up your webserver for Kerberos or NTLM authentication and use Extension:Auth remoteuser for logging into the wiki. Osnard (talk) 06:55, 2 February 2018 (UTC)
- Thanks for the reply.
- Still getting the following error:
- PHP Fatal error: Uncaught Exception: /var/www/html/extensions/LdapAuthentication/extension.json does not exist! in /var/www/html/includes/registration/ExtensionRegistry.php:99
- Any ideas? Gilad (talk) 10:12, 6 February 2018 (UTC)
- Thanks for that, But I'm now getting the following error in the LDAP log file:
- 2018-02-06 11:38:28 192.168.8.149 mediawiki: 2.1.0 It looks like you are missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message.
- But I did install the PHP LDAP extension...
- I've install php70w-ldap (I have PHP version 7.0.27), and according to the output from php -m the extension is loaded. Also, I'm checking with tcpdump, and it seems like the server is not even trying to connect to the AD with TCP/389.
- Any ideas? Gilad (talk) 11:46, 6 February 2018 (UTC)
- Ok, I managed to get it working. Thanks a lot :) Gilad (talk) 12:27, 6 February 2018 (UTC)
- Can you share your solution? Osnard (talk) 14:30, 6 February 2018 (UTC)
- Can you share your solution? +1 190.45.71.89 (talk) 19:23, 10 April 2018 (UTC)
- Please share what you did @GiladH Namtr0 (talk) 21:32, 18 April 2018 (UTC)
- @Osnard
- @Namtr0
- I only use require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
- Which works I think. 193.190.253.145 (talk) 20:33, 22 June 2018 (UTC)
- Bump… any news on this ? 81.241.235.183 (talk) 07:26, 16 April 2019 (UTC)
- The solution is already standing there for more than one year now:
- > You need to do the inclusion in LocalSettings.php with require_once();!
- This information is somewhat hidden on Extension:LDAP Authentication/Examples. 2001:16B8:109E:8F00:D5A8:B258:56DC:66C2 (talk) 16:55, 16 April 2019 (UTC)
CMS features of Mediawiki?
I want to set up a wiki for a bunch of teachers to share our teaching materials, curricula and teaching guidelines and organize it all neatly using tags and category. The choice of wiki softwares is overwhelming and I find it hard to determine which solutions would work for me. On wikimatrix, I tried to compare features and Mediawiki came out pretty good, but the comparison isn't very specific and I need mor details.
So before I go ahead and set it up, my question is this: Does Mediawiki offer the following possibilities of CMS (not web, but file-content):
1. Teaching materials I want to host may be documents or media files, these should be organized by tags and categories, and part of the wiki would serve simply as a file sharing space. However, it's very important that we can have direct download links in wiki pages, and files can be commented on in the wiki.
2. Also I need a search engine that can search wiki text, file tags and categories, so for instance, if I enter a search string that is also a tag, the output lists not only wiki pages containing that text, but also all stored files with that tag. Can Mediawiki do that?
3. Is the Wysiwyg extension well-maintained and working ok? Bennypr0fane (talk) 21:39, 1 February 2018 (UTC)
- Hi!
- You can use "categories" on wikipages as well as file description pages There are no "tags" in MediaWiki, but "categories" are more or less the same. Be aware that there is only one common file repository on MediaWiki, which means that you can not have two files with the same name. Also MediaWiki does not have CMS features like an Access Control List. One can use, Extension:FlaggedRevs, Extension:Lockdown and Extension:NSFileRepo to fill some of the gaps, but still MediaWiki is not a full fledged CMS.
- If you go with Extension:CirrusSearch and Extension:AdvancedSearch you should have a powerful search environment.
- Extension:VisualEditor is well maintained and in a good shape. Yet it is not quite easy to set it up.
- You can also have a look at the BlueSpice MediaWiki distribution which also features a VisualEditor and a faceted search interface Osnard (talk) 07:18, 2 February 2018 (UTC)
- Hi,
- Thank you so much for this answer!
- What I mean by tags vs. categories is that Categories are usually organized in a hierarchy, like a folder structure, and one file typically can't be in more than one category, unless it's physically present in each (analogous to folders). My use of the word "tag" means is that you can put multiple tags on the same file, and while the tags themselves may or may not be organized in a hierarchy, that doesn't require multiple instances of that file.
- Is that basically what the categories in Mediawiki do?
- Revisions are important to me, but access control really isn't - it's just a small group of peoplem, they should get full access, and everyone else doesn't get access at all.
- One other thing:
- Do I need to have root access to the server in order to run any this, e.g. for installing extensions, modifying permissions? Bennypr0fane (talk) 15:59, 2 February 2018 (UTC)
- Yes, from what I understand, this is basically how categories work on MediaWiki. You can have multiple categories for the same file.
- Regarding revisions, when a file is replaced by another file with the same name on MediaWiki, the previous revisions also remain available.
- You will not need root access to the server, for most of these tasks.
- However, extensions such as Extension:VisualEditor and Extension:CirrusSearch require access to additional services which require root access. These services will likely be needed to be setup only once, with rare maintenance requirements, so a very good hosting provider might set them up for you but I don't think any shared hosting provider provides the features and resources to make them work flawlessly.
- Although, if VisulaEditor is going to be used infrequently and your Wiki pages are not going to have too much content, VisualEditor/Installation on a shared host setup might work for you. AhmadF.Cheema (talk) 16:50, 2 February 2018 (UTC)
Could the notification be noticed on firefox?
If there is notification on MW, could it be delivered to firefox and noticed to me ? AndyPKU (talk) 01:08, 2 February 2018 (UTC)
- This feature is not yet available. —TheDJ (Not WMF) (talk • contribs) 08:44, 5 February 2018 (UTC)
toptextcells ignored
Dear All,
Our wiki seems to ignore class="toptextcells".
How can I find out the reason?
Thank you in advance!
Yours, Ciciban (talk) 10:41, 2 February 2018 (UTC)
- Try to set id instead of class Fokebox (talk) 11:06, 2 February 2018 (UTC)
- User:Fokebox,
Thank you for your answer.
Do you mean it like this?{| id="toptextcells"That didn't change anything.
Yours, Ciciban (talk) 11:26, 2 February 2018 (UTC) - Ok! What do you mean by "ignore"? Fokebox (talk) 14:44, 2 February 2018 (UTC)
- @user:fokebox: The content stays vertically centered. Thanks — Ciciban (talk) 15:36, 2 February 2018 (UTC)
- According to this, "toptextcells" needs to be defined in MediaWiki:Common.css first before it can be used. Have you already defined it? AhmadF.Cheema (talk) 16:59, 2 February 2018 (UTC)
Adding 7z uploads
Version info: MediaWiki 1.28, PHP 5.6.33, MySQL 5.6.39, ICU 50.1.2.
I'm trying to add upload support for 7-zip archives (*.7z). I can get 7z to show up in the permitted file types for upload, but when I try to upload a 7z file, I get the error: "The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security." I have made the following changes:
1.) I've added "$wgFileExtensions[] = '7z';" to LocalSettings.php
2.) I've added "application/x-7z-compressed [ARCHIVE]" to includes\mime.info
3.) I've added "application/x-7z-compressed 7z vgm7z" to includes\mime.types
Any idea what else I can try?Thanks! TheAlmightyGuru (talk) 19:52, 2 February 2018 (UTC)
- Try to disable Manual:$wgAllowJavaUploads or Manual:$wgVerifyMimeType. Also have a look at Manual:MIME type detection. Osnard (talk) 07:58, 5 February 2018 (UTC)
- Thank you for the suggestions Osnard.
- Setting $wgAllowJavaUploads to true did not help (this makes sense, because 7z isn't related to JAR). Turning off $wgVerifyMimeType gives the error message, "File extension ".7z" does not match the detected MIME type of the file (unable)." I'd rather not have this setting off anyway, for security reasons. After reading through the MIME type detection manual, I tried adding 7z to the application/zip extension list in mime.types (no help) and excluding 7z and zip files from the $wgMimeTypeBlacklist (no help). I've also tried upgrading my 7-Zip program to the latest version and recreating my archive (no help).
- Here are the relevant lines from the debug log if it helps:
- UploadBase::createFromRequest: class name: UploadFromFile
- [Mime] MimeAnalyzer::loadFiles: loading mime types from /var/www/myurl.com/www/html/Wiki/includes/libs/mime/mime.types
- [Mime] MimeAnalyzer::loadFiles: loading mime info from /var/www/myurl.com/www/html/Wiki/includes/libs/mime/mime.info
- [Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of /var/www/myurl.com/tmp/phpvYc8gZ for magic numbers.
- DjVuImage::getInfo: not a DjVu file
- [Mime] MimeAnalyzer::guessMimeType: internal type detection failed for /var/www/myurl.com/tmp/phpvYc8gZ (.)...
- proc_open() is disabled
- [Mime] MimeAnalyzer::detectMimeType: magic mime type of /var/www/myurl.com/tmp/phpvYc8gZ: unable
- [Mime] MimeAnalyzer::guessMimeType: guessed mime type of /var/www/myurl.com/tmp/phpvYc8gZ: unable
- [Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .7z: unable
- MediaHandlerFactory::getHandler: no handler found for unable.
- mime: <unable> extension: <7z>
- UploadBase::detectScript: checking for embedded scripts and HTML stuff
- UploadBase::detectScript: no scripts found
- ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
- UploadBase::detectVirus: virus scanner disabled
- [Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of /var/www/myurl.com/tmp/phpvYc8gZ for magic numbers.
- DjVuImage::getInfo: not a DjVu file
- [Mime] MimeAnalyzer::guessMimeType: internal type detection failed for /var/www/myurl.com/tmp/phpvYc8gZ (.)...
- [Mime] MimeAnalyzer::detectMimeType: magic mime type of /var/www/myurl.com/tmp/phpvYc8gZ: unable
- [Mime] MimeAnalyzer::guessMimeType: guessed mime type of /var/www/myurl.com/tmp/phpvYc8gZ: unable
- [Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .7z: unable
- UploadBase::verifyExtension: No extension known for unable, but we know a mime for 7z TheAlmightyGuru (talk) 16:07, 5 February 2018 (UTC)
- My test wiki can upload 7z files. I only set
$wgFileExtensions[] = '7z';in the LocalSettings.php, I did not even set the MIME configuration of my web server. - Probably because of the problem (maybe is file corrupt) with the 7z file you uploaded. 星耀晨曦 (talk) 17:22, 5 February 2018 (UTC)
- Thank you for your suggestion 星耀晨曦. May I ask, what version of MediaWiki are you running in your test Wiki? Perhaps 7-Zip support has been added to the more recent version. Also, could you check your ./include/mime.info and ./include/mime.types and let me know if they already contain the lines "application/x-7z-compressed [ARCHIVE]" and "application/x-7z-compressed 7z" respectively? Thank you.
- I'm pretty confident the 7z file is properly formatted because I used the latest version of 7-Zip to create it, and I can extract files from it without error. TheAlmightyGuru (talk) 19:21, 5 February 2018 (UTC)
- My version info:
| 产品 | 版本 |
|---|---|
| MediaWiki | 1.30.0 |
| PHP | 7.2.1 (cgi-fcgi) |
| MariaDB | 10.2.12-MariaDB-log |
| ICU | 52.1 |
- My apache config about MIME:
<IfModule mime_module> TypesConfig /etc/httpd/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz </IfModule></nowiki>- And my
/etc/httpd/mime.typesfile includeapplication/x-7z-compressed 7z. - Compared with your config, I did not includes
[ARCHIVE]andvgm7zconfiguration statement in my web-server config. 星耀晨曦 (talk) 20:08, 5 February 2018 (UTC)
Wiki family vs Extension:Translate
I'm extending an existing wiki to support multiple languages. The goal is not to provide 1-to-1 translations, but instead articles may have slightly different content between languages, but articles would contain links to other language versions (similar to Wikipedia). Images and media should be shared between the wikis.
I see two alternatives: Using Extension:Translate to provide localization, or creating a Wiki family (the wiki family page even provides an example of en.yourwiki.org - English, fr.yourwiki.org - French).
What are the differences and pros and cons between the two approaches? Based on what should I choose? 88.112.105.159 (talk) 12:57, 3 February 2018 (UTC)
- I'd recommend using a wiki family. I think it's better to have different language content be placed in physically different data stores (databases). That way you won't end up with wikipage title colisions (e.g having the page "New York" in english and french language in the same wiki would mean you'd have to rename one of them) The downside is that for some things (like language independent templates and images) you will either have to build a provisioning concept (e.g. copying something like
{{Generic hint}}to each instance), or have a central repo (e.g. for images, similar to Wikimedia Commons). - Extension:Translate is more a tool to build a translation workflow (e.g. for interface messages or manuals) than to have actual multi lingual content.
- Also, have a look at Content translation. Osnard (talk) 07:54, 5 February 2018 (UTC)
Custom skin JavaScript only loads once after being modified
I am designing a new skin for a wiki I use, and this skin requires some custom JavaScript. I specified everything as instructed in Manual:Skinning Part 2, but the JavaScript only loads the first time I load the page after modifying the JS file.
As a step sequence, I:
- Changed the JavaScript file for the skin (for reference, it is in
SkinName/resources/skin.js) - Loaded up a page on the wiki, the JavaScript works as expected
- Reloaded the page (or loaded another page), the JavaScript is not present and the browser does not even fetch the file; clearing cache has no effect
Anyone have any idea how I can fix this issue? Many thanks. AbyxDev (talk) 07:01, 4 February 2018 (UTC)
- The browser does not load the file directly. It is delivered (and minified) by the
load.phpentrypoint. The issue you are describing is probably related to the resourceloader caching mechanism. Have a look at "ResourceLoader/Developing with ResourceLoader". Osnard (talk) 07:42, 5 February 2018 (UTC) - After reading through that page, I found that setting
$wgResourceLoaderDebug = true;made the JS load every time! Thank you for directing me to that link. AbyxDev (talk) 08:14, 5 February 2018 (UTC) - That should not be necessary however and should come with a hefty performance penalty.. It means that your script is doing something wrong. Often causes are usage of global variables, or it not being async loading compatible. —TheDJ (Not WMF) (talk • contribs) 08:42, 5 February 2018 (UTC)
- As TheDJ pointed out, this may be a timing problem, where it loads the first time because it's not cached by the browser, and once cached it's executed before other prerequisites causing an exception or access a DOM element still not present on the page.
- Making debug the default may solve the issue but it causes performance problems and may not always work if it depends on the load order of the scripts. Ciencia Al Poder (talk) 10:20, 5 February 2018 (UTC)
Language selector
Is it possible to display allways all interwiki links on bar.wikipedia.org like on en.wp?
If yes, how? Joe Watzmo (talk) 16:38, 4 February 2018 (UTC)
Upload function problem.
After configuration of some extensions, I encountered a problem of uploading. At present I couldn't upload any file into my site.(I used to be able to do so) When I tried to upload some files, it would say that it couldn't create the directory "“mwstore://local-backend/local-public/8/87”。"
I don't know how to solve this problem. I believed that the uploading directory must have permission of creating directory before. AndyPKU (talk) 01:10, 5 February 2018 (UTC)
- Please make sure the
images/directory in your mediawiki installation path (or whatever is configured in your $wgUploadDirectory) is writeable for the webserver-user. Osnard (talk) 07:35, 5 February 2018 (UTC) - I will try to check that. AndyPKU (talk) 13:53, 5 February 2018 (UTC)
Ugly jagged scaling
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Not entirely sure this is the right place to ask, but take take a look at C:File:Iraqi_Dinar_2014_25000_banknote.jpg. The original file looks fine, but on the 800 x 507 scaled version some of the black lines that are almost vertical look jagged. Why? If I load the original image in a drawing program and scale it to 800 x 507 it doesn't look ugly. Alexis Jazz (talk) 03:56, 5 February 2018 (UTC)
- The file is resized using a program, maybe there's something in the image scaler program that can be improved, but this should be brought up on commons:Commons:Help desk or directly open a BUGREPORT Ciencia Al Poder (talk) 10:25, 5 February 2018 (UTC)
- Admin deleted image for no reason, I won't make a bugreport for a deleted image. Thank you for your kind reply. Alexis Jazz (talk) 20:05, 8 February 2018 (UTC)
Discussion on data licences for Wikidata maps for Commons
Can someone please move the following conversation to the correct place or suggest other pointers.
[[Help talk:Map Data#Non-CC0 (but open) licenses for map data?]] Thanks! Robin Owain (WMUK) (talk) 10:39, 5 February 2018 (UTC)
Download file with IIS - Show local file path
After installing mediawiki con IIS 7.2 (Windows 2012 R2) I´m able to upload files succesfully, but I CAN´T DOWNLOAD THEM.
It´s shows me a local path, example:
file://c:\inetpub\wwwroot\wiki\images\a\a2\myfile.doc
Can anyone point me in the right direction to configure IIS (or mediawiki) correctly so I can download a file???
Thsks. 200.69.232.193 (talk) 14:08, 5 February 2018 (UTC)
- Do image files (
.jpeg/.png etc.) have similar problems? 星耀晨曦 (talk) 17:28, 5 February 2018 (UTC) - wgUploadPath set incorrectly maybe. Please post all your upload related config in LocalSettings.php Bawolff (talk) 11:14, 18 February 2018 (UTC)
Password recovery issue!
Hi, I couldn't recovery my account, would you please help me how can I do it if I forget that by which email address open it? A vafadar (talk) 19:28, 5 February 2018 (UTC)
Creating a history of our sporting group
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I've been asked to come up with something to record the history of our particular sport. So, there would be people, clubs, results, awards etc. But potentially, there could also be photos and scanned records (maybe PDFs).
Do you think MediaWiki would be a good fit for something like this? I'm thinking it would but I've never undertaken something of this scale before ;)
It would need to make the information easily accessible to visitors (as we have a lot of elderly ex-players).
I'm concerned mostly about the media sizes getting out of hand (although I don't really know this would be the case).
Any suggestions appreciated.
S Skb55 (talk) 21:37, 5 February 2018 (UTC)
- Hi S!
- Yes, you can easily create pages and e.g. put them into categories to group them, e.g. to have a page showing all "Award" pages or all "New England Patriot player" pages. From the MediaWIki point of view this works with millions of pages - you only need a server, which can serve enough pages. With a few hundred pages any small web hosting should basically do.
- Also it is possible to upload files like images or PDFs. MediaWiki can use GraphicsMagick or ImageMagick to scale images, this e.g. is useful for creating thumbnails. Note that all uploaded files, thethumbnails and so on will need space to store them on the server. MediaWiki is able to handle thousands of files - Wikimedia Commons does exactly that. So the system can scale pretty well I would say. You however need to pay for the resources you need, e.g. for the amount of disc space, but that is true for any system, which also stores files.
- What MediaWiki is not made for is access control. If you want to be able to hide certain pages from certain users, then you should not use MediaWiki as MediaWiki just is not made for this use case. 2001:16B8:10CB:FD00:A0C1:DC3D:496B:DA54 (talk) 23:36, 5 February 2018 (UTC)
- That's awesome advice. Many thanks. Skb55 (talk) 00:25, 6 February 2018 (UTC)
Prevent Wide Tables From Breaking Vector Skin
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I use the vector skin for my wiki, but I have some wide tables. Currently, if the table is wider than the allotted space they extend beyond the skin's boundaries. I'd like to make the table no wider than the full width of the skin's alloted article boundary area, with any overflow cropped but accessible through the scrollbar.
I edited MediaWiki:Commons.css to add: table{max-width:100%;overflow:scroll}
Unfortunately it didn't make my desired changes, even after purging the cache. Jer Hughes (talk) 23:46, 5 February 2018 (UTC)
- Fixed it:
- table{display:block;overflow-x:auto;white-space:nowrap} Jer Hughes (talk) 00:48, 6 February 2018 (UTC)
MW 1.30.0 upgrade freezes
I'm using the web updater, and get through "Language", "Existing wiki", "Welcome to MediaWiki!" and "Connect to database" Ok
The next stage is "Upgrade existing installation", and it recognises that there is an existing db, so I say yes to upgrade.
Then it shows a box with the following:
Turning off Content Handler DB fields for this part of upgrade. ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards. ...have rc_type field in recentchanges table. ...index new_name_timestamp already set on recentchanges table. ...have user_real_name field in user table. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists.
- above this box, there is the circle of lines graphic showing it is 'working' but it just stays on that page and never moves on....
I've tried restarting the installation but get the same thing.
I installed 1.30.0 to a new directory, copied LocalSettings.php and the contents of images to the new directory. The old version (1.28.0) is in a different directory, so I can still use that at the moment....
Any ideas about why it is freezing?
Thanks -- PhantomSteve/talk|contribs\ 00:03, 6 February 2018 (UTC)
- If poosible use update.php from the commandline. sometimes the web updater is a bit flaky on larger wikis Bawolff (talk) 11:12, 18 February 2018 (UTC)
Thumbnails don’t work when uploads directory is in alternative location
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello all, at the moment the Interent Archive is not saving images from my wiki because despite having this syntax in robots.txt:
Allow: /w/images/
Disallow: /w/The Interent Archive continues to ignore the entirety of /w/. For this reasons, I plan to move the uploads directory from /w/images/ to /uploads/ so that the Web Archive can archive images. I have been doing a test with a local wiki, setting the following values:
$wgUploadDirectory = "{$wgServer}/uploads";
$wgUploadPath = "{$wgServer}/uploads";
The uploads directory was moved for the test, obviously.
The existing images appear as expected, but I get a "Error creating thumbnail: File missing" despite having rsvg and ImageMagick configured correctly. Also, when test an upload a (SVG) file, I get an error that says "Action failed: Could not open lock file for "mwstore://local-backend/local-public/7/78/example.svg"."
I need help on how to move the upload directory properly. I am hoping that it isn't hard-coded to /w/images.
- MediaWiki 1.30
- PHP 5.6.30
- Database MySQL 5.5.55 Minoa (talk) 17:20, 6 February 2018 (UTC)
- I am getting really exasperated, because an anonymous IP user attempted to hide my request so I don't get any help. This is not acceptable. Minoa (talk) 21:25, 6 February 2018 (UTC)
- Please make sure your upload directory is readable and writable for your webserver-user. 星耀晨曦 (talk) 08:27, 7 February 2018 (UTC)
- For the record, it was set to 777 recursive (I know it should be 755, but it was a local test server). Apologies for the exasperation, though. Minoa (talk) 12:55, 7 February 2018 (UTC)
- MediaWiki 1.30
- PHP 5.6.30
- Database MySQL 5.5.55 Bvvv-123 (talk) 07:31, 7 February 2018 (UTC)
- Manual:$wgUploadDirectory - This is an absolute filesystem path, you can't use $wgServer here!
- Manual:$wgUploadPath is an absolute or relative URL path. It's probably fine as you have it configured. Ciencia Al Poder (talk) 11:00, 7 February 2018 (UTC)
- Yes, setting $wgUploadDirectory to a filesystem path (e.g. /users/User/Sites/example.tld/uploads/) does work. I don't know why I thought of that before since I had to treat it as if it was live, and thus I thought using $wgServer would work. Marking as solved. Minoa (talk) 13:00, 7 February 2018 (UTC)
Notepad to Writer
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi- Due to Firefox's recent upgrade, I am a recent convert to Libre. I believe I am just an average computer user, using and benefiting from computer programs for some 45 plus tears. Because of my unfamiliarity with Libre, I have lost many, many, many hours of work. Try as I may, for me, Notepad is a disaster. For some unexplained reason, work that is put into notepad, does not completely transfer to Writer. Totally confounding and frustrating, because once work is inputted and notepad is shutdown, it can not be modified. Idiocy. I don't like Notepad, and can not fathom its usefulness. For me, it is a waste of time. With a word processor, I would like to work directly into Writer, able to use other Libre office programs as needed, not get a message that when converting Notepad to writer, some items may be lost due to Notepads shortcomings. What could be simpler than working directly into a word processor? Also, what gives with this poorly implemented Save button, which becomes a Save loop, and, it can not be saved? Surely, someone has duly noted this problem, or is that because of my limited knowledge of Libre? Also, ODT documents written in other office programs are not wholly transferable to Writer. Libre is obviously a superior program, providing one has started with Libre from day one. For my simple mind, its wealth of features and endless links is overwhelming. especially when trying to navigate help issues, resulting in wasting huge amounts of time with no results. I, for one, do not need Notepad; how can I remove Notepad without causing problems to existing features? Your help is urgently requested. 67.243.0.83 (talk) 17:39, 6 February 2018 (UTC)
- Sorry to hear about your frustrations, but you are on the wrong support forum. For queries regarding LibreOffice, ask at Ask LibreOffice: Questions or Community Support | LibreOffice. AhmadF.Cheema (talk) 18:48, 6 February 2018 (UTC)
How to report a tendencious editor/article owner?
I'd like to know how I can go about this? An article owner keeps deleting citations without offering explanations other than his opinion that the information I am posting isn't relevant. When I use the same reference in the article, with a focus on the key messages of those articles, he still removes them and sends me a message that my editing access has been restricted. Please advise. 2602:306:3A29:9800:511C:1BB6:F66:6B10 (talk) 22:38, 6 February 2018 (UTC)
- Hi there!
- In which wiki is this happening? In Wikimdia Foundation wikis like Wikipedia reverting articles without a valid reason is vandalism. In contrast it might however be that the source you used in fact does not meet the criteria for reputable sources. Information which is not sourced properly can be removed according to the rules of many wikis. 2001:16B8:10AE:5600:24B7:BF27:679F:67F9 (talk) 22:42, 6 February 2018 (UTC)
- article owner? Bvvv-123 (talk) 07:29, 7 February 2018 (UTC)
- This is not the correct forum for this question. This forum deals with installation, maintenance and development for the MediaWiki software stack, not with editor questions. Please turn to the community support desks of the individual wiki in question. —TheDJ (Not WMF) (talk • contribs) 10:20, 7 February 2018 (UTC)
Problem searching
Hello
With MediaWiki I have a basic problem and I did not find anything I went through
I installed Mediawiki 1.30 Persian language on the Wampserver server
If the search word has a page, it will open the page in search time
But if the text in the search is in the text of the page or it is not at all available, the CSS page will not load and will be displayed as HTML
But it's not in English
Please advise
thank you Majid.ghavi (talk) 06:40, 7 February 2018 (UTC)
- See Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 11:01, 7 February 2018 (UTC)
SQL Query on "posts" Table.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've inherited a mediawiki backup (database and files). I've been told (and tried) to restore the database - and update the LocalSettings.php accordingly. Sadly, that doesn't seem to work. The original owner says that that a restore of the db won't work as they customised it so heavily their backup won't restore the usual way. Apparently, this is to do how they setup authentication to a system that is now defunct.
I understand that wiki stores the wiki text in the db table called database_text. And that it maybe possible to construct an SQL query that exports the raw text to an output. My theory is if I have the raw wiki mark-up I can copy and paste into the new mediawiki and upload the images and get the content back.
There's a long and shaggy story to how I got into this position - but basically the content is many months of work I donated to a NFP who have since abandoned the project, and aren't prepared or able to stand-up the old system to allow access in another way...
Finally, I'm by no means a wiki or MySQL guru so please be gentle. I found a sample SQL query online but try as I may - I can't get it to work.
SELECT `old_text`
FROM `mw_text`
WHERE `old_id`
IN (
SELECT `rev_text_id`
FROM `mw_revision`
LEFT JOIN `mw_page` ON `page_latest` = `rev_id`
WHERE `page_title` LIKE (
'%title_of_the_page%'
)
)
Anyway help greatly appreciated...
Best Wishes
Michelle Michelle la (talk) 08:37, 7 February 2018 (UTC)
- I think you will want to read this:
- Help:Export —TheDJ (Not WMF) (talk • contribs) 10:18, 7 February 2018 (UTC)
- Sadly, I don't have functional MediaWiki system from which to do the export.... Michelle la (talk) 13:20, 7 February 2018 (UTC)
- Even if heavily customized, you should be able to install MediaWiki (better if you have the original installation files and LocalSettings.php) and be able to export the contents or even upgrade to a newer MediaWiki version. If your tables start with "mw_" then you should set "mw_" as the table prefix. Ciencia Al Poder (talk) 11:04, 7 February 2018 (UTC)
- I've tried restoring the DB. Changing the permissions and updating the LocalSettings file - and all get back is
- MediaWiki internal error.
- Original exception: [02948211dab68ebdb37f7be5] 2018-02-07 13:55:28: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
- Exception caught inside exception handler.
- Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information. Michelle la (talk) 13:56, 7 February 2018 (UTC)
- So have you inserted the following "at the bottom of LocalSettings.php to show detailed debugging information"?AhmadF.Cheema (talk) 14:11, 7 February 2018 (UTC)
$wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true;
- I did. But it wasn't clear to me where this debugging info would be found - and it didn't seem to have any effect. Where would I find this debugging info? Michelle la (talk) 18:59, 7 February 2018 (UTC)
- After you have added the two lines to the bottom of LocalSettings.php, you should do the same again, which you have already done before. Now, at the place where it said "MediaWiki internal error" you should now find more information, e.g. an exact error message or maybe even a stacktrace. That is what we are interested in! 2001:16B8:101D:FC00:5496:F47A:A881:74F (talk) 20:09, 7 February 2018 (UTC)
- Okay will give that another try and report back :) Michelle la (talk) 20:49, 7 February 2018 (UTC)
- So I tried a couple approaches after enabling Exception Detail and Backtrace
- Attempt One:
- Create user and grant privileges
- Update LocalSettings.php to point to restore DB, and username/password
- That failed - all get is:
- MediaWiki internal error.
- Original exception: [a7b80677ac84e6a3abfb34ed] /Main_Page Wikimedia\Rdbms\DBQueryError from line 1149 of /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
- Function: WikiPage::pageData
- Error: 1146 Table 'vmug-wiki.page' doesn't exist (localhost:3306)
- Backtrace:
- #0 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #1 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
- #2 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(1411): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
- #3 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(331): Wikimedia\Rdbms\Database->selectRow(string, array, array, string, array)
- #4 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(350): WikiPage->pageData(Wikimedia\Rdbms\DatabaseMysqli, array, array)
- #5 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(386): WikiPage->pageDataFromTitle(Wikimedia\Rdbms\DatabaseMysqli, Title, array)
- #6 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(470): WikiPage->loadPageData()
- #7 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(511): WikiPage->exists()
- #8 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(232): WikiPage->getContentModel()
- #9 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(219): WikiPage->getContentHandler()
- #10 /opt/bitnami/apps/mediawiki/htdocs/includes/actions/Action.php(96): WikiPage->getActionOverrides()
- #11 /opt/bitnami/apps/mediawiki/htdocs/includes/actions/Action.php(154): Action::factory(string, WikiPage, RequestContext)
- #12 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(155): Action::getActionName(RequestContext)
- #13 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(768): MediaWiki->getAction()
- #14 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(523): MediaWiki->main()
- #15 /opt/bitnami/apps/mediawiki/htdocs/index.php(43): MediaWiki->run()
- #16 {main}
- Exception caught inside exception handler: [a7b80677ac84e6a3abfb34ed] /Main_Page Wikimedia\Rdbms\DBQueryError from line 1149 of /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: SELECT page_title,page_latest FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
- Function: MessageCache::loadFromDB(en)-big
- Error: 1146 Table 'vmug-wiki.page' doesn't exist (localhost:3306)
- Backtrace:
- #0 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #1 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
- #2 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(512): Wikimedia\Rdbms\Database->select(string, array, array, string)
- #3 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(426): MessageCache->loadFromDB(string, NULL)
- #4 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(350): MessageCache->loadFromDBWithLock(string, array, NULL)
- #5 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(991): MessageCache->load(string)
- #6 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(920): MessageCache->getMsgFromNamespace(string, string)
- #7 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(888): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
- #8 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/MessageCache.php(828): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
- #9 /opt/bitnami/apps/mediawiki/htdocs/includes/Message.php(1275): MessageCache->get(string, boolean, LanguageEn)
- #10 /opt/bitnami/apps/mediawiki/htdocs/includes/Message.php(842): Message->fetchMessage()
- #11 /opt/bitnami/apps/mediawiki/htdocs/includes/Message.php(934): Message->toString(string)
- #12 /opt/bitnami/apps/mediawiki/htdocs/includes/OutputPage.php(950): Message->text()
- #13 /opt/bitnami/apps/mediawiki/htdocs/includes/OutputPage.php(997): OutputPage->setHTMLTitle(Message)
- #14 /opt/bitnami/apps/mediawiki/htdocs/includes/OutputPage.php(2478): OutputPage->setPageTitle(string)
- #15 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionRenderer.php(124): OutputPage->prepareErrorPage(string)
- #16 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
- #17 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
- #18 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionHandler.php(130): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
- #19 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(550): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
- #20 /opt/bitnami/apps/mediawiki/htdocs/index.php(43): MediaWiki->run()
- #21 {main} Michelle la (talk) 23:31, 7 February 2018 (UTC)
- So I decide to run the php update.php - as it suggest there was a problem with the schema...
- That produced this output...
- bitnami@debian:~/apps/mediawiki/htdocs/maintenance$ php update.php
- MediaWiki 1.30.0 Updater
- Your composer.lock file is up to date with current dependencies!
- Going to run database updates for vmug-wiki
- Depending on the size of your database this may take a while!
- Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
- Turning off Content Handler DB fields for this part of upgrade.
- ...ipblocks table does not exist, skipping new field patch.
- ...ipblocks table does not exist, skipping new field patch.
- Creating interwiki table ...done.
- Adding default interwiki definitions ...[ce881387246825dfc7e40a28] [no req] Wikimedia\Rdbms\DBQueryError from line 1149 of /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: REPLACE INTO `interwiki` (iw_prefix,iw_url,iw_local,iw_api) VALUES
- ('acronym','http://www.acronymfinder.com/~/search/af.aspx?string=exact&Acronym=$1',0,''),
- ('advogato','http://www.advogato.org/$1',0,''),
- ('arxiv','http://www.arxiv.org/abs/$1',0,''),
- ('c2find','http://c2.com/cgi/wiki?FindPage&value=$1',0,''),
- ('cache','http://www.google.com/search?q=cache:$1',0,''),
- ('commons','https://commons.wikimedia.org/wiki/$1',0,'https://commons.wikimedia.org/w/api.php'),
- ('dictionary','http://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1',0,''),
- ('doi','http://dx.doi.org/$1',0,''),
- ('drumcorpswiki','http://www.drumcorpswiki.com/$1',0,'http://drumcorpswiki.com/api.php'),
- ('dwjwiki','http://www.suberic.net/cgi-bin/dwj/wiki.cgi?$1',0,''),
- ('elibre','http://enciclopedia.us.es/index.php/$1',0,'http://enciclopedia.us.es/api.php'),
- ('emacswiki','http://www.emacswiki.org/cgi-bin/wiki.pl?$1',0,''),
- ('foldoc','http://foldoc.org/?$1',0,''),
- ('foxwiki','http://fox.wikis.com/wc.dll?Wiki~$1',0,''),
- ('freebsdman','http://www.FreeBSD.org/cgi/man.cgi?apropos=1&query=$1',0,''),
- ('gentoo-wiki','http://gentoo-wiki.com/$1',0,''),
- ('google','http://www.google.com/search?q=$1',0,''),
- ('googlegroups','http://groups.google.com/groups?q=$1',0,''),
- ('hammondwiki','http://www.dairiki.org/HammondWiki/$1',0,''),
- ('hrwiki','http://www.hrwiki.org/wiki/$1',0,'http://www.hrwiki.org/w/api.php'),
- ('imdb','http://www.imdb.com/find?q=$1&tt=on',0,''),
- ('kmwiki','http://kmwiki.wikispaces.com/$1',0,''),
- ('linuxwiki','http://linuxwiki.de/$1',0,''),
- ('lojban','http://www.lojban.org/tiki/tiki-index.php?page=$1',0,''),
- ('lqwiki','http://wiki.linuxquestions.org/wiki/$1',0,''),
- ('meatball','http://www.usemod.com/cgi-bin/mb.pl?$1',0,''),
- ('mediawikiwiki','https://www.mediawiki.org/wiki/$1',0,'https://www.mediawiki.org/w/api.php'),
- ('memoryalpha','http://en.memory-alpha.org/wiki/$1',0,'http://en.memory-alpha.org/api.php'),
- ('metawiki','http://sunir.org/apps/meta.pl?$1',0,''),
- ('metawikimedia','https://meta.wikimedia.org/wiki/$1',0,'https://meta.wikimedia.org/w/api.php'),
- ('mozillawiki','http://wiki.mozilla.org/$1',0,'https://wiki.mozilla.org/api.php'),
- ('mw','https://www.mediawiki.org/wiki/$1',0,'https://www.mediawiki.org/w/api.php'),
- ('oeis','http://oeis.org/$1',0,''),
- ('openwiki','http://openwiki.com/ow.asp?$1',0,''),
- ('pmid', 'https://www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract',0,''),
- ('pythoninfo','http://wiki.python.org/moin/$1',0,''),
- ('rfc','https://tools.ietf.org/html/rfc$1',0,''),
- ('s23wiki','http://s23.org/wiki/$1',0,'http://s23.org/w/api.php'),
- ('seattlewireless','http://seattlewireless.net/$1',0,''),
- ('senseislibrary','http://senseis.xmp.net/?$1',0,''),
- ('shoutwiki','http://www.shoutwiki.com/wiki/$1',0,'http://www.shoutwiki.com/w/api.php'),
- ('squeak','http://wiki.squeak.org/squeak/$1',0,''),
- ('tmbw','http://www.tmbw.net/wiki/$1',0,'http://tmbw.net/wiki/api.php'),
- ('tmnet','http://www.technomanifestos.net/?$1',0,''),
- ('theopedia','http://www.theopedia.com/$1',0,''),
- ('twiki','http://twiki.org/cgi-bin/view/$1',0,''),
- ('uncyclopedia','http://en.uncyclopedia.co/wiki/$1',0,'http://en.uncyclopedia.co/w/api.php'),
- ('unreal','http://wiki.beyondunreal.com/$1',0,'http://wiki.beyondunreal.com/w/api.php'),
- ('usemod','http://www.usemod.com/cgi-bin/wiki.pl?$1',0,''),
- ('wiki','http://c2.com/cgi/wiki?$1',0,''),
- ('wikia','http://www.wikia.com/wiki/$1',0,''),
- ('wikibooks','https://en.wikibooks.org/wiki/$1',0,'https://en.wikibooks.org/w/api.php'),
- ('wikidata','https://www.wikidata.org/wiki/$1',0,'https://www.wikidata.org/w/api.php'),
- ('wikif1','http://www.wikif1.org/$1',0,''),
- ('wikihow','http://www.wikihow.com/$1',0,'http://www.wikihow.com/api.php'),
- ('wikinfo','http://wikinfo.co/English/index.php/$1',0,''),
- ('wikimedia','https://wikimediafoundation.org/wiki/$1',0,'https://wikimediafoundation.org/w/api.php'),
- ('wikinews','https://en.wikinews.org/wiki/$1',0,'https://en.wikinews.org/w/api.php'),
- ('wikipedia','https://en.wikipedia.org/wiki/$1',0,'https://en.wikipedia.org/w/api.php'),
- ('wikiquote','https://en.wikiquote.org/wiki/$1',0,'https://en.wikiquote.org/w/api.php'),
- ('wikisource','https://wikisource.org/wiki/$1',0,'https://wikisource.org/w/api.php'),
- ('wikispecies','https://species.wikimedia.org/wiki/$1',0,'https://species.wikimedia.org/w/api.php'),
- ('wikiversity','https://en.wikiversity.org/wiki/$1',0,'https://en.wikiversity.org/w/api.php'),
- ('wikivoyage','https://en.wikivoyage.org/wiki/$1',0,'https://en.wikivoyage.org/w/api.php'),
- ('wikt','https://en.wiktionary.org/wiki/$1',0,'https://en.wiktionary.org/w/api.php'),
- ('wiktionary','https://en.wiktionary.org/wiki/$1',0,'https://en.wiktionary.org/w/api.php')
- Function: Wikimedia\Rdbms\Database::sourceFile( /opt/bitnami/apps/mediawiki/htdocs/maintenance/interwiki.sql )
- Error: 1054 Unknown column 'iw_api' in 'field list' (localhost:3306)
- Backtrace:
- #0 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #1 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(3325): Wikimedia\Rdbms\Database->query(string, string)
- #2 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(3274): Wikimedia\Rdbms\Database->sourceStream(unknown type, NULL, NULL, string, NULL)
- #3 /opt/bitnami/apps/mediawiki/htdocs/includes/installer/DatabaseUpdater.php(673): Wikimedia\Rdbms\Database->sourceFile(string)
- #4 /opt/bitnami/apps/mediawiki/htdocs/includes/installer/MysqlUpdater.php(406): DatabaseUpdater->applyPatch(string, boolean, string)
- #5 /opt/bitnami/apps/mediawiki/htdocs/includes/installer/DatabaseUpdater.php(472): MysqlUpdater->doInterwikiUpdate()
- #6 /opt/bitnami/apps/mediawiki/htdocs/includes/installer/DatabaseUpdater.php(436): DatabaseUpdater->runUpdates(array, boolean)
- #7 /opt/bitnami/apps/mediawiki/htdocs/maintenance/update.php(204): DatabaseUpdater->doUpdates(array)
- #8 /opt/bitnami/apps/mediawiki/htdocs/maintenance/doMaintenance.php(92): UpdateMediaWiki->execute()
- #9 /opt/bitnami/apps/mediawiki/htdocs/maintenance/update.php(249): require_once(string)
- #10 {main} Michelle la (talk) 23:36, 7 February 2018 (UTC)
- In the first attempt, it tries to access the table "vmug-wiki.page". If the page table is missing, running update.php will just make things worse. Please restore the backup again.
- You should query your database directly and see what's the name of the database, and what's the name of the tables (if they have any common prefix). Then, set the configuration settings appropriately to allow MediaWiki select the right table names. Ciencia Al Poder (talk) 10:19, 8 February 2018 (UTC)
- I have this running in a virtualbox VM so I restore the DB again using:
- mysql -u root -pYvovd7jsHmkJ bitnami_mediawiki < DATABASE-vmug-wiki.sql
- I'm not really sure I understand the restore process which doesn't help me. When I first did this I expected the restore to overwrite the contents of bitnami_mediawiki. However, looking at PhpAdmin it seems to create a new database called vmug-wiki...
- It's shame you can't upload a screen grab to these pages... Anyway I've uploaded a screengrab of PhpAdmin to my blog:
- http://www.michellelaverick.com/db.png
- I'm wondering if I am doing the db restore correctly in the first place?
- Best Wishes
- Michelle 2A02:C7F:9C0A:5A00:1554:239:1E7D:A5BE (talk) 10:12, 9 February 2018 (UTC)
- You can upload temporary images to http://snag.gy/
- The restore is correct. The tables have a common prefix "wiki_". You should set in LocalSettings:
$wgDBprefix = 'wiki_';Ciencia Al Poder (talk) 10:56, 9 February 2018 (UTC)- I granted privileges to a user called someuser/somepass
- Okay, so updated the LocalSetting.php with the following settings:
- $wgDBtype = "mysql";
- $wgDBserver = "localhost:3306";
- $wgDBname = "vmug-wiki";
- $wgDBuser = "someuser";
- $wgDBpassword = "somepass";
- # MySQL specific settings
- $wgDBprefix = "wiki_";
- That produced this trace:
- MediaWiki internal error.
- Original exception: [c21f8d75abb7a1837794a9da] /Main_Page Wikimedia\Rdbms\DBQueryError from line 1149 of /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `wiki_page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
- Function: WikiPage::pageData
- Error: 1054 Unknown column 'page_links_updated' in 'field list' (localhost:3306)
- Backtrace:
- #0 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #1 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
- #2 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(1411): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
- #3 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(331): Wikimedia\Rdbms\Database->selectRow(string, array, array, string, array)
- #4 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(350): WikiPage->pageData(Wikimedia\Rdbms\DatabaseMysqli, array, array)
- #5 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(386): WikiPage->pageDataFromTitle(Wikimedia\Rdbms\DatabaseMysqli, Title, array)
- #6 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(470): WikiPage->loadPageData()
- #7 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(511): WikiPage->exists()
- #8 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(232): WikiPage->getContentModel()
- #9 /opt/bitnami/apps/mediawiki/htdocs/includes/page/WikiPage.php(219): WikiPage->getContentHandler()
- #10 /opt/bitnami/apps/mediawiki/htdocs/includes/actions/Action.php(96): WikiPage->getActionOverrides()
- #11 /opt/bitnami/apps/mediawiki/htdocs/includes/actions/Action.php(154): Action::factory(string, WikiPage, RequestContext)
- #12 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(155): Action::getActionName(RequestContext)
- #13 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(768): MediaWiki->getAction()
- #14 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(523): MediaWiki->main()
- #15 /opt/bitnami/apps/mediawiki/htdocs/index.php(43): MediaWiki->run()
- #16 {main}
- Exception caught inside exception handler: [c21f8d75abb7a1837794a9da] /Main_Page Wikimedia\Rdbms\DBQueryError from line 1149 of /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_content_model,page_namespace,page_title FROM `wiki_page` WHERE (page_namespace = '1' AND page_title = 'Main_Page') OR (page_namespace = '4' AND page_title IN ('Privacy_policy','About','General_disclaimer') )
- Function: LinkBatch::doQuery (for Skin::preloadExistence)
- Error: 1054 Unknown column 'page_content_model' in 'field list' (localhost:3306)
- Backtrace:
- #0 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #1 /opt/bitnami/apps/mediawiki/htdocs/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
- #2 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/LinkBatch.php(210): Wikimedia\Rdbms\Database->select(string, array, string, string)
- #3 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/LinkBatch.php(138): LinkBatch->doQuery()
- #4 /opt/bitnami/apps/mediawiki/htdocs/includes/cache/LinkBatch.php(127): LinkBatch->executeInto(LinkCache)
- #5 /opt/bitnami/apps/mediawiki/htdocs/includes/skins/Skin.php(267): LinkBatch->execute()
- #6 /opt/bitnami/apps/mediawiki/htdocs/includes/skins/Skin.php(147): Skin->preloadExistence()
- #7 /opt/bitnami/apps/mediawiki/htdocs/skins/Vector/SkinVector.php(70): Skin->initPage(OutputPage)
- #8 /opt/bitnami/apps/mediawiki/htdocs/includes/skins/SkinTemplate.php(248): SkinVector->initPage(OutputPage)
- #9 /opt/bitnami/apps/mediawiki/htdocs/includes/OutputPage.php(2442): SkinTemplate->outputPage()
- #10 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionRenderer.php(135): OutputPage->output()
- #11 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
- #12 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
- #13 /opt/bitnami/apps/mediawiki/htdocs/includes/exception/MWExceptionHandler.php(130): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
- #14 /opt/bitnami/apps/mediawiki/htdocs/includes/MediaWiki.php(550): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
- #15 /opt/bitnami/apps/mediawiki/htdocs/index.php(43): MediaWiki->run()
- #16 {main}
- Any thoughts? Michelle la (talk) 17:31, 9 February 2018 (UTC)
- Ok, it now finds the tables correctly, but some columns are missing. You now need to run update.php to upgrade your database schema to your current MediaWiki version Ciencia Al Poder (talk) 18:05, 9 February 2018 (UTC)
- Whoop!
- I can the update.php and it lives!
- Copied my images directory over and they are all in place...
- I cannot put into word how very grateful I am for all your help. You've saved me hours and hours of work. And brought back from the brink a project and work, I was beginning to feel was going to be lost for ever. At a stroke you've restored my faith in "community" projects and support!
- Before I go off and enjoy a well-earn cocktail. I was expect to have problem editing the pages and log on problems. The previous org rigged the wiki to a SSO or SAML style authentication system. I was surprised to find I could just hit "edit" and start making changes. Is there a setting that accounts for this access?
- Best Wishes
- Michelle...
- ps. thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! Michelle la (talk) 18:43, 9 February 2018 (UTC)
- Glad to see it worked :)
- Next step would be reading Manual:Preventing access.
- For authentication, there are several extensions that can help you with that, you can find them in Category:User identity extensions Ciencia Al Poder (talk) 10:04, 10 February 2018 (UTC)
Cannot access page powered by MediaWiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there! I can not access this page https://trv.jbv.no/ts/Kontaktledning/Man%C3%B8vermaskin_for_230V_AC which is powered by MediaWiki. I created an account here on MediaWiki, but can not log in myself there on that page. It says that I have to log in to see the page, but when I am trying to do this, it says that MediaWiki username and password do not exist there. EPCSKI (talk) 09:44, 7 February 2018 (UTC)
- I didn't see this wiki with a public registration button. This wiki is private. 星耀晨曦 (talk) 10:04, 7 February 2018 (UTC)
How do I use this program to type on an Avery 5160/8160 label? This label size is not in your list of options. All the steps to follow, I will need.
How do I use an Avery 5160/8160 label on your program. The label size is not in your list of options. All the steps to follow, I will nedd. Janice Klaus (talk) 20:53, 7 February 2018 (UTC)
- Please explain what "an Avery 5160/8160 label" is and what is the name of "our program" and which exact version of our program you use. Thanks. Malyacko (talk) 10:24, 8 February 2018 (UTC)
DB_REPLICA to DB_MASTER?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello. This relates to cleanupSpam.php (Manual:cleanupSpam.php). Am I right assuming that if we replace DB_REPLICA with DB_MASTER the sysadmin using the extension will get more actual results? [1] I asked because trying to run this script I tried to get some spam deleted but the script said that "no pages found using <domain>" while those pages existed. Thanks. —MarcoAurelio (talk) 21:57, 7 February 2018 (UTC)
- This would only be needed if the slaves are very lagged and didn't get the updated links. Otherwise, the script may be broken.
- Assuming it uses the externallinks table, if it doesn't work, may be because the links haven't been populated on the table (the job queue is broken or has a long delay), or something has changed and the script no longer works. Ciencia Al Poder (talk) 10:38, 8 February 2018 (UTC)
- Thanks @Ciencia Al Poder - I was trying to do that on the Beta Cluster. I've been running the script regularly without issues until yesterday. Any hints where I should be looking to see if it is a JobQueue/DB issue? Beta has been a bit rough these days IIRC. Thanks. —MarcoAurelio (talk) 11:07, 8 February 2018 (UTC)
- You can query the API:Extlinks to see if one of the pages you know it shoud target, has the link registered in the externallinks table. If not, it's a problem with the job queue or the parser.
- If the link is present, then something must be wrong with the cleanupSpam script. Ciencia Al Poder (talk) 13:31, 8 February 2018 (UTC)
- Further investigation showed that it was an issue with the script not recognizing all URL protocols but only http://. A patch has been submitted to fix this. Thanks. —MarcoAurelio (talk) 10:55, 13 February 2018 (UTC)
Nagging problem is the delay to modified page updates.
- upgraded from 2008 version to the latest version. I have created a bunch of new pages. When I make changes there is a large delay as if those pages are cached some place and the updates are not reflect for sometime at least 10min. This makes editing difficult because there is not feedback on changes. I really need some help to sort this out. b 104.129.194.128 (talk) 04:37, 8 February 2018 (UTC)
- Which software and which software version is this about? Malyacko (talk) 10:24, 8 February 2018 (UTC)
- Do these pages include normal content pages, or .CSS pages?
- Are you using a CDN, FileCache, or other cache features for MediaWiki? AhmadF.Cheema (talk) 07:33, 8 February 2018 (UTC)
- here is the mediawiki revision info
- it online.
- == Installed software ==
| Product | Version |
| MediaWiki | 1.27.1 |
| PHP | 5.6.30 (apache2handler) |
| MySQL | 5.5.52 |
- usage
- Just updating a document that has a Photo in it. when created the update is immediate. when changed it can take 10minutes to update the page. browser refresh does not update. Viewing from another instance of the browser does not show the updates
- Using the File:photo,jpg|right structure I the wiki page.
104.129.194.128 (talk) 13:23, 8 February 2018 (UTC)
How to enable web-notifications by default for Echo
I'm making a new MW extension which heavily uses Echo, but I can't figure out how to enable the checkbox for notifications on the web by default. I noticed that extensions such as Thanks do have their notifications enabled by default, so I'm wondering how I could implement that in my extension. I've followed Extension:Echo/Creating a new notification type to create my new echo event so far, so it seems to be set up properly already, except for that one missing part.
PS: if this is not too much of a hassle, could you also add a short description on how to do it to that walkthrough page? I'm sure I won't be the only one who'd need this. Joeytje50 (talk) 09:20, 8 February 2018 (UTC)
PHP Error in 1.30 Update
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello Community!
When trying to update from MW 1.25 to MW 1.30, I get an error message reading:
Fatal error: Call to undefined function MediaWiki\suppressWarnings() in /path_to_wiki/includes/Setup.php on line 455
when calling /path_to_wiki/mw-config in browser.
Just unzipped the 1.30 tarball into my wiki folder. I also updated PHP from 5.5 to 7.2.
Does anyone have an idea on why I get this error message? Thanks a lot! 213.61.180.190 (talk) 11:57, 8 February 2018 (UTC)
- Did you unzip the MW 1.30 tarball over your previous MW 1.25 files? AhmadF.Cheema (talk) 12:30, 8 February 2018 (UTC)
- Yes I did. I replaced all old files 213.61.180.190 (talk) 13:11, 8 February 2018 (UTC)
- "You should put the decompressed tarball in a new and empty folder on your server."
- Please read, Manual:Upgrading#Using a tarball package. AhmadF.Cheema (talk) 15:03, 8 February 2018 (UTC)
CONTENTLANGUAGE and PAGELANGUAGE is always equal to $wgLanguageCode
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I create a page with language code at the end, e.g. "Test/fr" or "Test/it", the en always returns value from $wgLanguageCode from LocalSettings.php.
Where could be an issue ? Czech.Fox (talk) 12:45, 8 February 2018 (UTC)
- This is normal. {{CONTENTLANGUAGE}} equals to the wiki's default interface language ($wgLanguageCode). See also Help:Magic_words. 星耀晨曦 (talk) 13:14, 8 February 2018 (UTC)
- I tried PAGELANGUAGE magic word but it behaves the same, it returns the same value as CONTENTLANGUAGE Czech.Fox (talk) 14:47, 15 February 2018 (UTC)
- You may want to ask how to modify the page content language? See Manual:Language#Page content language. 星耀晨曦 (talk) 15:10, 15 February 2018 (UTC)
- It says that "For MediaWiki namespace pages, the language depends on the subpage. For example, MediaWiki:Message/ar will be set to Arabic (ar), and MediaWiki:Message will be $wgContLang." For some reason it does not work in my case. When I create a page "Test/fr" it says "en", even that I set $wgNamespacesWithSubpages=true to all namespaces.... If I use my own written hook Manual:Hooks/PageContentLanguage it works. Czech.Fox (talk) 16:47, 15 February 2018 (UTC)
- "The language depends on the subpage", this premise is that the page is under MediaWiki namespace. Example/zh this type does not work. 星耀晨曦 (talk) 16:59, 15 February 2018 (UTC)
- If you want to manually modify the page content language, you can set
$wgPageLanguageUseDB = truein LocalSettings.php and the 'pagelang' right should be assigned to a user group. Then visit Special:PageLanguage. 星耀晨曦 (talk) 17:07, 15 February 2018 (UTC) - Aha, so it's necessary a custom hook anyway. I made the following one:
public static function onPageContentLanguage( $title, &$pageLang ){if (isset($_GET['title'])){$titleParts = explode('/', $_GET['title']);if (count($titleParts) > 1 && preg_match("/^[a-z]{2}$/", end($titleParts)))$pageLang = end($titleParts);}return true;}- It expects last subpage to be two lowercase characters. Czech.Fox (talk) 17:10, 15 February 2018 (UTC)
- Ok, I take a look at $wgPageLanguageUseDB more closely too. Czech.Fox (talk) 17:11, 15 February 2018 (UTC)
Special:MostLinkedPages and Special:ListRedirects
Is there a way to parse Special:MostLinkedPages so that it generates only redirects? Scarecroe (talk) 12:50, 8 February 2018 (UTC)
MediaWiki : Internal Error
I am trying to get MediaWiki set up locally but I am getting the title error, followed by:
---------------------------------------------------------
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- fileinfo
---------------------------------------------------------
- I have PHP v7.0 installed and verified the next 2 points in both the x86 and x64 directory.
- the 'php_fileinfo.dll' file is located in the ext/ directory
- I have added the line: ' extension=php_fileinfo.dll ' into the php.ini file and it is not commented out.
Just wondering if I'm missing something basic? :P Or if anyone has any idea...
MediaWiki: 1.3
PHP: 7.0
MySQL: 5.7 SteveGAU (talk) 01:20, 9 February 2018 (UTC)
- What does the output of phpinfo(); say? It will print out a huge amount of details about your PHP installation and among those details you will also find a list of those PHP extensions, which are actually loaded.
- I guess that fielinfo actually is not in that list. 2001:16B8:1098:B200:98DA:AD2B:2E3B:9E59 (talk) 05:35, 9 February 2018 (UTC)
- Note also that after installing/enabling a PHP extension, you usually must restart the server. Ciencia Al Poder (talk) 11:01, 9 February 2018 (UTC)
How to add "this page has been accessed ... times"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- HI Tech Support team,
- Could you please help how to add "this page has been accessed ... times " at the bottom of each WIKI article page?
- We used to see this while we use the MediaWiki 1.21.2 with Google Analytics Integration (Version 2.0.2)
- Currently we are having MediaWiki 1.25.3 with Google Analytics Integration 3.0.1
- Please help with a resolution for the requirement.
- Thanks in Adv,
- Sanjay Sanjay (talk) 07:10, 9 February 2018 (UTC)
- 1.25 is an ancient version with many security vulnerabilities. Please upgrade to a supported version. Malyacko (talk) 11:12, 9 February 2018 (UTC)
- Have a look at Extension:HitCounters Osnard (talk) 09:49, 9 February 2018 (UTC)
- thank you !
- Extension:HitCounters is working as expected for MediaWiki 1.25.3 Sanjay (talk) 18:25, 16 February 2018 (UTC)
formatting internal vs. external wikilinks
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a way to use automatic formatting (e.g. with CSS) to differentiate between external and internal wikilinks? E.g., I would like internal wikilinks to be underlined, as opposed to external wikilinks showing as they normally do (without underlining), or to display them with different colors perhaps. Nicole Sharp (talk) 12:44, 9 February 2018 (UTC)
- You can try the following in your MediaWiki:Common.css:However, "internal links" apparently come up in many other places too, such as WikiEditor buttons, page revision links etc., so this way, those will also get underlined.
.mw-body-content a { text-decoration: underline; } .mw-body-content a:visited { text-decoration: underline; } - An easier alternative would be to leave internal links as default and underline the external links.AhmadF.Cheema (talk) 13:59, 9 February 2018 (UTC)
.mw-body-content a.external { text-decoration: underline; } .mw-body-content a.external:visited { text-decoration: underline; } - That doesn't appear to affect wikilinks (
[[]]); just hyperlinks ([]). I would specifically like to be able to differentiate between a wikilink to a page on the same wiki, versus a page on another wiki (such as Wikipedia, via interwiki). And different colors might be more effective than underlining maybe, to visually differentiate the target domains of links. Nicole Sharp (talk) 14:07, 9 February 2018 (UTC) - I am guessing this is something that might need a new MediaWiki extension to do perhaps. Otherwise I suppose I could manually add (e.g.)
<span class="local">[[Wikipedia]]</span>in front of links to modify them based on where they are linking to, but that is a lot of extra work. It would be nice if there was a way for the software to recognize the interwiki table, and then add CSS to interwiki links, or non-interwiki links. Nicole Sharp (talk) 14:15, 9 February 2018 (UTC) - For external interwiki links, instead of
a, usea.extiwand instead ofa:visited, usea.extiw:visited. AhmadF.Cheema (talk) 15:29, 9 February 2018 (UTC) .mw-body-content a.extiw { text-decoration: underline; color: fuchsia; } .mw-body-content a.extiw:visited { text-decoration: underline; color: purple; }</nowiki>- Awesome!! Yes, that worked. Thank you very much! And I see your point that if I tried that on internal wikilinks, all of the links on the lefthand menu would be underlined, and not just the ones inside the wikipages. Is there a way to specify just the internal wikilinks inside wikipages though? Otherwise I think I will just use different colors probably. Nicole Sharp (talk) 00:38, 10 February 2018 (UTC)
- I got it!
.mw-body-contentalready restricts to just within wikipages, so that menu links are not affected. - Nicole Sharp (talk) 00:51, 10 February 2018 (UTC)
.mw-body-content a { text-decoration: underline; } .mw-body-content a:visited { text-decoration: underline; } .mw-body-content a.external { text-decoration: none; } .mw-body-content a.external:visited { text-decoration: none; } .mw-body-content a.extiw { text-decoration: none; } .mw-body-content a.extiw:visited { text-decoration: none; }
Azure MediaWiki 1.28.2 installation error
Hi, I've tried using Azure's marketplace to create the wiki. "MediaWiki Hallo Welt! - Medienwerkstatt GmbH"
It all looks good until I get to the install part. It tries to create table and I get this error
<code>[93f4d5eb4a2c88217ccfc717] /mw-config/index.php?page=Install DBQueryError from line 1054 of D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: CREATE TABLE `searchindex` (
si_page int unsigned NOT NULL,
si_title varchar(255) NOT NULL default '',
si_text mediumtext NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8
Function: Database::sourceFile( D:\home\site\wwwroot/maintenance/tables.sql )
Error: 1030 Got error 1 from storage engine (wiki001-mysqldbserver.mysql.database.azure.com)
Backtrace:
#0 D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php(912): Database->reportQueryError(string, integer, string, string, boolean)
#1 D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php(3150): Database->query(string, string)
#2 D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php(3099): Database->sourceStream(unknown type, NULL, NULL, string, NULL)
#3 D:\home\site\wwwroot\includes\installer\DatabaseInstaller.php(195): Database->sourceFile(string)
#4 D:\home\site\wwwroot\includes\installer\DatabaseInstaller.php(218): DatabaseInstaller->stepApplySourceFile(string, string, boolean)
#5 D:\home\site\wwwroot\includes\installer\Installer.php(1515): DatabaseInstaller->createTables(MysqlInstaller)
#6 D:\home\site\wwwroot\includes\installer\WebInstallerInstall.php(44): Installer->performInstallation(array, array)
#7 D:\home\site\wwwroot\includes\installer\WebInstaller.php(279): WebInstallerInstall->execute()
#8 D:\home\site\wwwroot\mw-config\index.php(81): WebInstaller->execute(array)
#9 D:\home\site\wwwroot\mw-config\index.php(39): wfInstallerMain()
#10 {main}</code> 104.129.196.162 (talk) 15:42, 9 February 2018 (UTC)
- "Got error 1 from storage engine". Try use Innodb storage engine. 星耀晨曦 (talk) 18:22, 9 February 2018 (UTC)
- The searchindex table is special as it has a FULLTEXT index. Older versions of InnoDB do not support fulltext indeces - that is why MediaWiki is still using MyISAM for this table. 2001:16B8:10D4:2400:704D:DAB3:5F02:608D (talk) 21:57, 9 February 2018 (UTC)
- Go to D:\home\site\wwwroot\maintenance\tables.sql and leave this table creation this way:
- CREATE TABLE /*_*/searchindex (
- -- Key to page_id
- si_page int unsigned NOT NULL,
- -- Munged version of title
- si_title varchar(255) NOT NULL default '',
- -- Munged version of body text
- si_text mediumtext NOT NULL
- ) /*$wgDBTableOptions*/;
- -- former line was: ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- IMPORTANT! When you install mediawiki use UTF-8 as collation (binary wont't work) 217.22.96.143 (talk) 06:00, 28 March 2018 (UTC)
"No suitable backend was found" message
I have GnuCash version 2.6.5. While entering data Windows crashed and automatically rebooted. Now i can't start Gnucash as i get the message "No suitable backend was found". How do i recover 2 years worth of entries? 73.158.191.199 (talk) 21:18, 10 February 2018 (UTC)
- Wrong support forum, this website is for MediaWiki support. AhmadF.Cheema (talk) 11:36, 11 February 2018 (UTC)
Css extension error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am installing Css extension, and there is an error like this:
Warning: require_once(/host/home1/firewiki/html/firewiki/extensions/CSS/CSS.php): failed to open stream: No such file or directory in /host/home1/firewiki/html/firewiki/LocalSettings.php on line 174
Fatal error: require_once(): Failed opening required '/host/home1/firewiki/html/firewiki/extensions/CSS/CSS.php' (include_path='/host/home1/firewiki/html/firewiki/vendor/pear/pear_exception:/host/home1/firewiki/html/firewiki/vendor/pear/console_getopt:/host/home1/firewiki/html/firewiki/vendor/pear/mail_mime-decode:/host/home1/firewiki/html/firewiki/vendor/pear/net_smtp:/host/home1/firewiki/html/firewiki/vendor/pear/pear-core-minimal/src:/host/home1/firewiki/html/firewiki/vendor/pear/mail:/host/home1/firewiki/html/firewiki/vendor/pear/mail_mime:/host/home1/firewiki/html/firewiki/vendor/pear/net_socket:.:/usr/share/pear:/usr/share/php') in /host/home1/firewiki/html/firewiki/LocalSettings.php on line 174
I found that there is no file called css.php in the /extension/css directory.
What should I do? 79brue (talk) 12:11, 11 February 2018 (UTC)
- I've edited the installation instructions at Extension:CSS to reflect how it should be installed now Ciencia Al Poder (talk) 12:18, 11 February 2018 (UTC)
- Thank you! 79brue (talk) 12:20, 11 February 2018 (UTC)
Upgraded to MediaWiki 1.29.2 and still same problems as before... AGAIN!
MediaWiki 1.29.2 (on NameCheap)
PHP 5.6.33 (litespeed)
MariaDB 10.1.24-MariaDB-cll-lve
wiki-beta.avazinn.com
Had Upgraded from MediaWiki 1.25 (was on GoDaddy) a few months ago (as well as changing web hosting providers from GoDaddy to NameCheap) and apparently keep getting the dreaded 403 Forbidden Errors when editing and not able to save.
It took me nearly three months to get MediaWiki finally back up and running (even with the same data I had before) until I ran into the 403 Errors. Nsgaeverine (talk) 18:53, 11 February 2018 (UTC)
- See Manual:Errors and symptoms#Attempting to save an edit gives you a 403 Forbidden error, or you get redirected to the main page. Ciencia Al Poder (talk) 10:21, 12 February 2018 (UTC)
- As of 2/15/2024, I did run into a major problem when I tried to log in:
- "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."
- I tried everything to resolve this and nothing.
- I am also moving the current wiki to a new domain at avazinnwiki.com Nsgaeverine (talk) 14:31, 15 February 2024 (UTC)
Payment
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi everyone! I'm a newbie here. I just want to ask if there's a payment in every edit that I will do? Genefe (talk) 09:48, 12 February 2018 (UTC)
- Not on this website. If you came here from another wiki you should ask them Ciencia Al Poder (talk) 10:22, 12 February 2018 (UTC)
Problems after migrating 1.28 to 1.30
Hi everyone,
After migrating my wiki 1.28 in 1.30, my pictures are no longer displayed in my pages. Instead I have a link to the image. "www-data" is the owner of my images folder with this icon (https://rlv.zcache.be/icone_cassee_dimage_dinternet_photo_sur_toile-r69551bbb568344f6868770d9048c8cf2_a0ib_8byvr_324.jpg).
Any ideas?
Thx Vledru (talk) 10:12, 12 February 2018 (UTC)
- If your wiki is public, please share a link so we can take a look at the problem.
- Open a file description page (a page of the File: namespace) and click on the "view full size". If it displays an error instead of the file itself, something is misconfigured. If the error is a 404 not found, either MediaWiki is pointing to the wrong URL or your webserver has problematic rewrite rules. If error is a "forbidden" or "unauthorized", there may be problems with permissions of those files.
- If it works fine, then problem may be for thumbnails. Ciencia Al Poder (talk) 10:27, 12 February 2018 (UTC)
- Thank you Ciencia Al Poder
- My wiki is not public ... However, I did your tests and everything works normally.
- When I remove the size of my thumbnail in my wikicode [[File: example.jpg | 400px | legend]] -> [[File: example.jpg | legend]] it works perfectly ...
- Really strange ^^ Vledru (talk) 13:01, 12 February 2018 (UTC)
- Problem is on thumbnails, then. Use the thumb.php script (from your browser) to request a file on your wiki (with the "f" parameter) and provide a width for the thumbnail (the "w" parameter), and see what happens, if it's displayed correctly or it displays an error. Ciencia Al Poder (talk) 20:45, 12 February 2018 (UTC)
- Hi,
- I have the same problem. This doesn't work in my wiki:
[[File:image.png|thumb|My Image]]
- this works:
[[File:image.png|frame|My Image]]
- thumb.php works just fine:
thumb.php?f=image.png&w=200&h=200
- My wiki is also a private wiki. Robert.hanke (talk) 10:28, 13 February 2018 (UTC)
- Maybe you turned off Manual:$wgGenerateThumbnailOnParse? Ciencia Al Poder (talk) 10:31, 14 February 2018 (UTC)
- We face the same problem after upgrading to 1.30: Thumbnails are shown as broken images though they are correctly rendered on server side. The developer console of chrome reveals the following error messages:
- Failed parsing 'srcset' attribute value since it has an unknown descriptor.
- Dropped srcset candidate "/uploads/thumb/xxx.png/450px-xxx.png"
- Failed parsing 'srcset' attribute value since it has an unknown descriptor.
- Dropped srcset candidate "/uploads/thumb/xxx.png/450px-xxx.png"
- GET https://aaa.bbb.ccc/5x 404 (Not Found)
- Turning off Manual:$wgGenerateThumbnailOnParse and running maintenance script Manual:FAQ#…are some of my images not showing up after an upgrade does not fix the issue.
- thumb.php works perfectly.
- Maybe this thread deals with the same issue: Project:Support desk/Flow/2018/02#h-No_Thumbnails_(in_gallery)-2018-02-14T15:54:00.000Z ?
- Is this a known bug, can anybody confirm this behaviour or is there any solution? 62.96.230.167 (talk) 10:00, 23 February 2018 (UTC)
- Inspect the image with the developer tools of your browser (right-click and inspect this element, or hit F12 and manually select the image). If the srcset property contains commas instead of dots, the problem is the server locale and you should change it on LocalSettings.php by adding:
setlocale(LC_NUMERIC, "C");- See T181987 Ciencia Al Poder (talk) 10:19, 23 February 2018 (UTC)
- This fixed our problem, thank you! 62.96.230.166 (talk) 10:54, 23 February 2018 (UTC)
- Sorry for the delay, I had to let go of my investigation ...
- Thank you all for solution! It's resolved! Vledru (talk) 13:57, 6 March 2018 (UTC)
- Hello, thanks for the trick but for me setlocale(LC_NUMERIC,"C"); has no effect..
- dots are still replaced by comma in my html
- Do you have an idea please ?
- Many thanks (I'm from France, I upgraded PHP form 5.6 to 7.0 and mediawiki from 1.27 to 1.31) Rastaferraille (talk) 18:36, 20 July 2018 (UTC)
- Have you tried editing the page and doing a preview, to be sure you're not seeing a cached version of the page generated before the change in setlocale? Ciencia Al Poder (talk) 09:49, 22 July 2018 (UTC)
- Hello Ciencia Al Poder, Rastaferraille
- I have the same problem. I did update from 1.21.? to 1.30.0. I stayed on PHP 5.6.
- I set setlocale(LC_NUMERIC,"C")
- I can still see the "," here:
- srcset="/thumb.php?f=Hertha-Trikot.png&width=375 1,5x, /thumb.php?f=Hertha-Trikot.png&width=500 2x"
- If I change that line manually to:
- srcset="/thumb.php?f=Hertha-Trikot.png&width=375 1.5x, /thumb.php?f=Hertha-Trikot.png&width=500 2x"
- it works. But setlocale(LC_NUMERIC,"C") didnt do the trick for me.
- The site is herthawiki.de. 2003:C3:FF06:EE45:208A:E623:86ED:4F98 (talk) 22:01, 23 July 2018 (UTC)
- The second i wrote this, i clicked "See task T181987" from @Ciencia Al Poder and now i feel dumb. because
- #$wgShellLocale = "de_DE.utf8";
- was overriding
- setlocale(LC_NUMERIC, "C");
- All runs fine now. 5 years worth of updates on one evening. nice product u got there. 2003:C3:FF06:EE45:208A:E623:86ED:4F98 (talk) 22:06, 23 July 2018 (UTC)
- Do you mean having both
$wgShellLocale = "de_DE.utf8";setlocale(LC_NUMERIC, "C");- didn't fix the problem?, and you had to remove $wgShellLocale altogether? Ciencia Al Poder (talk) 22:21, 23 July 2018 (UTC)
- yes that fixed the problem 2003:C3:FF06:EE45:208A:E623:86ED:4F98 (talk) 22:24, 23 July 2018 (UTC)
- To be more precise yes having both
- $wgShellLocale = "de_DE.utf8";
- setlocale(LC_NUMERIC, "C");
- set in LocalSettings.php. Did not fix the problem.
- When comment $wgShellLocale = "de_DE.utf8"; out. The comma in srcset is gone. And the image is shown. I can reproduce that. 2003:C3:FF06:EE45:208A:E623:86ED:4F98 (talk) 22:27, 23 July 2018 (UTC)
- Almost the same effect here: Upgraded from 1.29.2 -> 1.31.0 (PHP 7.0.30). Using "setlocale(LC_NUMERIC, "C");" INSTEAD of "wgShellLocale = "de_AT.utf8";" fixed it. Using both doesn't work, the effect can be reproduced. 195.202.154.250 (talk) 11:41, 20 September 2018 (UTC)
- Works for me. Thank you! 195.50.143.146 (talk) 11:40, 29 November 2019 (UTC)
Reactivating a disabled page
Hello,
just wanted to know what the steps are to getting a page reactivated after being disabled for being "Promotion-only"
I'd like to edit the content so all advertising/promotional inclined text is removed. Thank you. Oopsy Daisy Art (talk) 16:27, 12 February 2018 (UTC)
- Please explain what a "disabled" page is. You may want to contact the admins of the website that you refer to. Is it a public website? If so, feel free to link to the page in question. Malyacko (talk) 19:28, 12 February 2018 (UTC)
- This is the page I'm referring to:
- https://www.wikidata.org/wiki/User:Oopsy_Daisy_Art
- It was blocked and disabled by Matěj Suchánek b/c it has promotional content as opposed to informational content and I attempted to post a question on his direct page but b/c I am blocked and disabled, I could not submit an inquiry. Please advice as we'd like to alter the content of our Oopsy Daisy Art page to fit the WikiData requirements and reactivate it asap. Oopsy Daisy Art (talk) 20:12, 12 February 2018 (UTC)
- Where exactly (full link) can someone else see "the content of your Oopsy Daisy Art page"? (If I interpret your words correctly, the page already exists?) Malyacko (talk) 23:28, 13 February 2018 (UTC)
Error code -1 when uploading images
Hello.
A few days ago I've set Mediawiki 1.30 under my domain on OVH server (the cheapest option). Not sure which system is used for hosting (I suppose that it is Linux).
I found yesterday when writing first article, that uploaded images cannot create thumbnails, and thus I'm unable to paste them. Here is an example - http://wiki.mrowki.ovh/index.php?title=Plik:IMGP13522323a.png
I tried different file formats - no change. The error is "Błąd przy generowaniu miniatury: Error code: -1" (Error creating thumbnail: Error code: -1). I tried with images with ~90kB - no change. I know that there is something called ImageMagix or something like that - not sure if relevant.
I found that I have to switch permissions to 775 for/images file and I did it (after few tries since FileZilla didn't save that - not sure if relevant), no change.
I also checked the LocalSetting.php and found that uploading is set to true.
Then I found that maybe I should go to php.ini (as said in Manual:Configuring_file_uploads, but there is none of it (I also checked the wiki files on my computer, and there is none php.ini file too).
I've turned Debug data on, but the log is so long that I cannot catch it on screenshot, so here it is - https://drive.google.com/open?id=11e1pXH9mQL3rzFArq0ck3arvIG5cRcGR
I'm as green as a fresh grass in all of this hosting/phping/webdeveloping thing, so please take that in mind. Danaien (talk) 19:05, 12 February 2018 (UTC)
- This error appears repeatedly for users of OVH hosting. As a starting point see Project:Support desk/Flow/2016/07#h-Error_creating_thumbnail-2016-07-31T20:02:00.000Z.
- (Also by-the-way, if you can be OK with Shared Hosting, then OVH isn't "the cheapest option", there are other less expensive options, and with an actual support staff too.) AhmadF.Cheema (talk) 19:19, 12 February 2018 (UTC)
- Disabling ImageMagic method worked - see Project:Support desk/Flow/2015/04#c-Dlwnsgud0819-2015-04-25T12:15:00.000Z-Error_creating_thumbnail_Error_code:_-1 Strangely, the wiki created miniatures for already existing files.
- Setting $wgGenerateThumbnailOnParse = true; menitoned at the end of the thread shared by Ahmad didn't work for me.
- I've send also a question to OVH, let's see what they will write. Also, I didn't told that it is the cheapest and best hosting - I just wrote that I bought the cheapest plan there (perso2014 or something like that) :) Danaien (talk) 19:56, 12 February 2018 (UTC)
- I have my hosting on OVH but with an VPS, so I have full control of permissions and software. However, don't expect a reply to support tickets (cheap hosts always have a tradeoff).
- Note that the log you posted states that it's using ImageMagick for thumbnail generation. You should turn ImageMagick off and use GD instead, because ImageMagick most likely is not available in shared hosting. Ciencia Al Poder (talk) 10:34, 13 February 2018 (UTC)
imperfection of the search engine
when i searching for (Cryptography): Криптография
if i try to find : риптография
or: *риптография
or: "риптография"
or: "*риптография"
no any result, i can find needed article(Криптография) by ask: Криптогра*
"*" sign working properly only (if) on the end of searchinng request
surprisingly when i ask: тография
or (gives the same result): *тография
there is 15 results(in both this cases) with cutted in two pieces word "photography" : фо тография
and also in results(the same result, notwithstanding "*" exist or not in ask): фо-тография
and some crap like: 87 тография
or: ljwrtgwrj тография
but right results with "Криптотграфия"("Cryptography") are in list, if i can't remember start of term - no way to find result still found by me. IamJiva (talk) 19:40, 12 February 2018 (UTC)
- Which MediaWiki version is this about? Which search extension do you use? Malyacko (talk) 23:26, 13 February 2018 (UTC)
- I am not pretty sure - there screenshots with problem illustration
- where i need/could to see version?
- https://i.imgur.com/g793TQf.png
- https://i.imgur.com/gVhbyqh.png IamJiva (talk) 12:59, 21 June 2020 (UTC)
- Go to your Wiki's Special:Version page - there you would find the MediaWiki version and the names of installed extensions. AhmadF.Cheema (talk) 15:25, 21 June 2020 (UTC)
Case-insensitive search and pages
I'm working on our wiki and I was tasked with not allowing there to be a difference between page names with different casing. I searched and I have seen different ways to do it by changing the database table definition. I don't want to touch the database if at all possible. Is there a setting with LocalSettings.php that will all page names and searches to be case insensitive? PSIDWiki (talk) 20:13, 12 February 2018 (UTC)
- Extension:TitleKey should be able to meet your needs, but it still has to run update.php to update the database schema. 星耀晨曦 (talk) 11:36, 13 February 2018 (UTC)
- Thank you so much that worked. I really appreciate all of your help 141.211.32.5 (talk) 16:47, 14 February 2018 (UTC)
Importing Custom Fonts
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I sincerely apologize if this is something that's already brought up; but is there a way I can import fonts directly from my computer to the wiki made with MediaWiki? I haven't made it yet; but I plan on making a wiki dedicated to a future project of mine, once I purchase a new desktop computer after filing my income taxes. Once I make the wiki, I'll upload fonts that are essential to both the wiki itself, and the project it's based on.
The reason why I'm asking this question is because I want to make my custom fonts be available on the wiki, but for all users to see, without having them go through the trouble of downloading those fonts themselves. Is there a way I can upload my custom-made fonts directly from my computer to the Wiki? The-Psychid (talk) 22:06, 13 February 2018 (UTC)
- You need to turn your fonts into webfonts. Similar to https://stackoverflow.com/questions/6516119/how-to-add-google-webfonts-to-mediawiki#6551163 Malyacko (talk) 23:21, 13 February 2018 (UTC)
- In case you want to use your custom-made webfonts, you can try to upload them to the wiki like any other file (but you'll need to configure uploads to accept that kind of file type). Ciencia Al Poder (talk) 10:30, 14 February 2018 (UTC)
- I'm hoping that uploading them will be easier. But if I do, I'll have to make sure that the "file_uploads = On" code is set (through PHP), in order to upload the .ttf files from my computer; is that correct? The-Psychid (talk) 03:58, 15 February 2018 (UTC)
- Yes, you need that to upload any file to MediaWiki (also images). If you don't want to allow uploads on your wiki, you can also place the fonts file directly on the server in a folder that's accessible from the web. At the end, you need the font file to be available from a public URL, so it can be downloaded when used from a CSS file. Ciencia Al Poder (talk) 10:15, 15 February 2018 (UTC)
- So I was looking at the "configuring file types" section of the link you've provided, and I want to make sure I'm reading this correctly. Obviously, I'll allow more file types than the given example; but if I wanted to upload my fonts, would I have to put in the following code:
- $wgFileExtensions = array( 'ttf' );
- Something like that? The-Psychid (talk) 17:04, 15 February 2018 (UTC)
- Actually, you'll have to put
$wgFileExtensions[] = 'ttf';- Otherwise ttf will be the only file type allowed to upload. Ciencia Al Poder (talk) 21:07, 15 February 2018 (UTC)
- Well, I do intend to have more file types than just ttf be allowed to be uploaded; I was just giving an example. Still, I'm glad to know that I'm on the right track. Thank you ever so much for your assistance. The-Psychid (talk) 01:23, 16 February 2018 (UTC)
Need ResourceLoader to ignore user language and use content language for page directionality
MediaWiki 1.29.2
PHP 5.6.31-6+ubuntu16.04.1+deb.sury.org+1 (apache2handler)
MySQL 5.1.73-log
How do I get ResourceLoader to flip CSS based on the site content language and ignore the user language?
I have a custom skin that supports ltr and rtl languages that I am currently using in Mediawiki 1.17. I have updated this skin to work in 1.29 and it is working correctly with both ltr and rtl languages with one exception:
I have wikis with rtl content in Arabic and Urdu that render correctly when no user is logged in. This is how our end users access our site. I need to be able to have our content editors log in with their language preference set to English(EN) and have ResourceLoader leave the directionality of the page as it was before the user logged in. This is how things worked in 1.17.
In 1.29 when the user logs in the page content flips because the user language is now English. If the user changes their language to a rtl language the page is now correct but now all of the navigation text is in a language that our content editors do not know.
URL of a correctly rendered page (MW 1.17):
http://ar.hesperian.org/hhg/New_Where_There_Is_No_Doctor:%D9%86%D9%81%D8%AD%D8%B5_%D8%A7%D9%84%D8%B7%D9%81%D9%84_%D9%85%D8%B1%D8%A7%D8%B1%D8%A7%D9%8B_%D9%81%D9%8A_%D8%A7%D9%84%D8%B4%D9%87%D8%B1%D9%8A%D9%86_%D8%A7%D9%84%D8%A3%D9%88%D9%91%D9%84%D9%8A%D9%86 Rickathesperian (talk) 23:48, 13 February 2018 (UTC)
- Since MediaWiki 1.18, the user interface language (the language of the logged in user), is reflected through the rtl/ltr settings on root <html>-element.
- The content language's directionality is enforced through the mw-content-ltr and mw-content-rtl classes. You probably want to take a good look at the current Vector php implementation and it's CSS statements, to make sure your skin is properly implementing these aspects.
- And an example article from a rtl content wiki with ltr user interface language, for you to compare with:
- https://ar.wikipedia.org/wiki/بريت?uselang=en
- You will also want to play close attention to @noflip annotations used in RL processed CSS and LESS. These are used to create exceptions to the automatic flipping of CSS directionality statements. —TheDJ (Not WMF) (talk • contribs) 14:54, 14 February 2018 (UTC)
- So my question is: At the point where the <html> element is being created, is there a way to use the setting of the content language instead of the user interface language?
- This must be what is done when no user is logged on. In our case we would like this to be done even if a user is logged on. Rickathesperian (talk) 16:31, 14 February 2018 (UTC)
- i don't understand.. how can it be correct that the content language is supposed to be applied to the user interface ? —TheDJ (Not WMF) (talk • contribs) 09:36, 15 February 2018 (UTC)
- BTW. thank god you are updating, because support for 1.17 ended in June 2012.... —TheDJ (Not WMF) (talk • contribs) 15:02, 14 February 2018 (UTC)
No Thumbnails (in gallery)
Updated to 1.30 today - galleries (all modes) are not showing images anymore. Thumbnails are shown as "broken image", called directly they are good to go.
Page shows a 404 error on Page "X5" on every request.
Don't know, what to do to get them to work again. 92.50.104.154 (talk) 15:54, 14 February 2018 (UTC)
- https://www.mediawiki.org/wiki/Manual:FAQ#%E2%80%A6are_some_of_my_images_not_showing_up_after_an_upgrade? Malyacko (talk) 11:15, 15 February 2018 (UTC)
- Running the maintenance script (Manual:FAQ#…are some of my images not showing up after an upgrade) does not fix the issue.
- We face the same problem after upgrading to 1.30: Thumbnails are shown as broken images though they are correctly rendered on server side. The developer console of chrome reveals the following error messages:
- Failed parsing 'srcset' attribute value since it has an unknown descriptor.
- Dropped srcset candidate "/uploads/thumb/xxx.png/450px-xxx.png"
- Failed parsing 'srcset' attribute value since it has an unknown descriptor.
- Dropped srcset candidate "/uploads/thumb/xxx.png/450px-xxx.png"
- GET https://aaa.bbb.ccc/5x 404 (Not Found)
- Is this a known bug, can anybody confirm this behaviour or is there any solution? 62.96.230.167 (talk) 09:45, 23 February 2018 (UTC)
- Maybe this topic deals with the same issue? Project:Support desk/Flow/2018/02#h-Problems_after_migrating_1.28_to_1.30-2018-02-12T10:12:00.000Z 62.96.230.167 (talk) 10:02, 23 February 2018 (UTC)
- The solution for our environment is described here: Project:Support desk/Flow/2018/02#h-Problems_after_migrating_1.28_to_1.30-2018-02-12T10:12:00.000Z 62.96.230.166 (talk) 10:54, 23 February 2018 (UTC)
extend user accounts
is it possible to extend user class and the special page "create account"? 88.69.183.141 (talk) 15:54, 14 February 2018 (UTC)
Fresh install won't run startup config, redirects to my site's homepage
- Way cool how you deleted my text for "spam links" when they were there for you to see how my problem works, Eurodyne. Not like the rules specifically request a link or anything or that links clearly directed at a MediaWiki sub-directory but that redirect to my site's homepage demonstrate any kind of problem here.
- As I said the first time, my problem is that I previously had MediaWiki 1.26 installed on a hosted domain and I decided upgrade it to 1.30. The upgrade, however, broke my site in such a way that when you go the the wiki's Main Page, you get redirected to the homepage of my website. Since I had not really done anything needed on the old wiki, I deleted it and installed 1.30 fresh, thinking that this would correct the problem, but it did not. It still redirects to the site's homepage when you navigate to the sub-directory itself, the url for the index of the wiki, or the index of mw-config.
- I have another website with the same specifications that is, as far as I know, configured the same exact way from the serverside, and I installed MediaWiki 1.30 on there and it works just fine. So that leads me to believe that it does not work on my other domain because of some change I made at some point.
- Is there any known configuration changes I can make to correct this issue?
- Demonstrable links upon request since following the rules is against the rules apparently. 70.125.149.138 (talk) 01:17, 15 February 2018 (UTC)
- It may be due to your web server configuration, maybe URL rewrite. 星耀晨曦 (talk) 09:25, 15 February 2018 (UTC)
Edit, upload but not publish
Greetings, I would like to know if it is possible to create a group where permits are assigned that allow you to edit a page or upload a file but this is not ok until it is verified by another user that approves it and establishes it correctly in production. Jadhielv (talk) 22:22, 14 February 2018 (UTC)
- Extension:FlaggedRevs wargo (talk) 23:37, 14 February 2018 (UTC)
- when I establish
- require_once ("$ IP / extensions / FlaggedRevs / FlaggedRevs.php");
- in LocalSettings.php file my wiki does not work. Sample page with white background
- I did all these previous steps of installation: Extension:FlaggedRevs
- NOTE: Complete my installation as follows
- cd extensions /
- git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/FlaggedRevs.git Jadhielv (talk) 14:25, 15 February 2018 (UTC)
- I have the wiki installation
- mediawiki-1.29.1 Jadhielv (talk) 14:26, 15 February 2018 (UTC)
- There may be an HTTP 500 occur when installing the extension. Please check the error log to get detailed error message and debug this problem. 星耀晨曦 (talk) 15:01, 15 February 2018 (UTC)
- i debug the problem, this is the result:
- Notice: Use of undefined constant DB_REPLICA - assumed 'DB_REPLICA' in /var/www/html/mediawiki-1.27.1/extensions/FlaggedRevs/backend/FlaggableWikiPage.php on line 391
- Fatal error: Call to undefined method WikiPage::getQueryInfo() in /var/www/html/mediawiki-1.27.1/extensions/FlaggedRevs/backend/FlaggableWikiPage.php on line 361 Jadhielv (talk) 15:28, 15 February 2018 (UTC)
- Looks like the problem of FlaggedRevs extension itself or the extension version does not correspond to your MediaWiki version. You can try execute
git checkout REL1_29in the extension directory . 星耀晨曦 (talk) 16:12, 15 February 2018 (UTC) - Version 114.125.220.145 (talk) 19:11, 17 February 2018 (UTC)
Error creating thumbnail: Unable to save thumbnail to destination
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Updated to MediaWiki 1.30 and now I get this error with new images uploaded. Thumbnails don't display and all I see is this error:
Error creating thumbnail: Unable to save thumbnail to destination
Looking at the debug logs, I see this:
- [Mime] MimeAnalyzer::loadFiles: loading mime types from D:\Apps\FEWS\Wiki\includes/libs/mime/mime.types
- [Mime] MimeAnalyzer::loadFiles: loading mime info from D:\Apps\FEWS\Wiki\includes/libs/mime/mime.info
- File::transform: Doing stat for mwstore://local-backend/local-thumb/b/bf/Bokeh_plot_(2).png/400px-Bokeh_plot_(2).png
- [FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/b/bf/Bokeh_plot_(2).png/400px-Bokeh_plot_(2).png does not exist.
Can someone help me with this? Tried a few things, but not sure what else to do.
Thanks. 152.87.3.5 (talk) 13:22, 15 February 2018 (UTC)
- I'm using MediaWiki 1.30.0, PHP 5.6.15, MySQL 5.7.10. Installed on Windows Server 2013 152.87.3.5 (talk) 13:25, 15 February 2018 (UTC)
- Can you post here your upload related configuration? 星耀晨曦 (talk) 15:04, 15 February 2018 (UTC)
- Sure. What should I upload? Also, where should I put it, doesn't look I can attach items here. 152.87.3.5 (talk) 15:43, 15 February 2018 (UTC)
- Oh, no no. I mean, you can post your upload-related config. (like: $wgUploadDirectory). 星耀晨曦 (talk) 15:53, 15 February 2018 (UTC)
- In other words, have you modified the configuration related to uploading? 星耀晨曦 (talk) 15:54, 15 February 2018 (UTC)
- I don;t think I have modified it. Here is the configuration I have:
- ## To enable image uploads, make sure the 'images' directory
- ## is writable, then set this to true:
- $wgEnableUploads = true;
- #MSUpload extension for uploading multiple files at once
- require_once "$IP/extensions/MsUpload/MsUpload.php";
- $wgEnableWriteAPI = true; // Enable the API
- $wgAllowJavaUploads = true; //Solves problem with MS files
- $wgMSU_showAutoCat = true; // Files uploaded while editing a category will be added to that category
- $wgMSU_checkAutoCat = true; // Whether the checkbox for the above mentioned case is checked by default
- $wgMSU_imgParams = '400px'; // The default parameters for inserted images
- $wgMSU_useDragDrop = true; // Should the drag & drop area be shown?
- $wgMSU_useMsLinks = false; // Should we allow to insert links in the style of the Extension:MsLinks? 152.87.3.5 (talk) 16:18, 15 February 2018 (UTC)
- Please make sure your thumb directory (
mediawiki/images/thumb) can be read-write by the web-server user. (Manual:Errors and symptoms#Unable to save thumbnail to destination) 星耀晨曦 (talk) 16:34, 15 February 2018 (UTC) - The web-server user (localhost) has access to that folder. I can upload fine to the images directory and those settings are the same as the thumb directory. Any other ideas? 152.87.3.5 (talk) 16:42, 15 February 2018 (UTC)
- Figured it out. I was missing $wgTmpDirectory after updating to the new version. The link you attached had mention of that. Thanks for you help!!! 152.87.3.5 (talk) 16:48, 15 February 2018 (UTC)
- I check my debug log, it looks:
File::transform: Doing stat for mwstore://local-backend/local-thumb/d/d7/Rough_diamond.jpg/360px-Rough_diamond.jpg [FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/d/d7/Rough_diamond.jpg/360px-Rough_diamond.jpg does not exist. TransformationalImageHandler::doTransform: creating 360x271 thumbnail at /tmp/transform_9c3cfd5dbfc1.jpg using scaler gd TransformationalImageHandler::doTransform: returning unscaled image
- Please check that $wgTmpDirectory actually exists and webserver-user can read-write it. 星耀晨曦 (talk) 16:54, 15 February 2018 (UTC)
Export wiki tables into CSV or other formats
This is my first created topic here, so apologies if it is not well formulated!
I am wondering if there is a tool to simply extract data tables from Wikipedia articles (or other wiki projects) to other formats such as CSV.
Thanks! Abdeaitali (talk) 18:24, 15 February 2018 (UTC)
- By "data tables" do you mean normal tables?
- Maybe try Wiki Table to CSV online converter. AhmadF.Cheema (talk) 19:44, 15 February 2018 (UTC)
- Thanks @AhmadF.Cheema for your comment!
- Yeah, this is exactly the tool I use now but I was wondering if there is some tool integrated in the wiki or if there is a plan to integrate it.
- A right click on a wiki table giving export options would be a great integration.
- Cheers! Abdeaitali (talk) 10:01, 16 February 2018 (UTC)
- I guess you can install some jQuery plugin for that, like https://www.jqueryscript.net/table/jQuery-Plugin-To-Export-Table-Data-To-CSV-File-table2csv.html Ciencia Al Poder (talk) 10:48, 20 February 2020 (UTC)
- Hello. I've tried using the wikitable2csv.ggor.de software but I found a problem. The wikitable uses commas in its cells "for example, one cell is "sculptor, scientist") and the software adds commas as the separators between cells. So this means I can't open the CSV file on R or Excel properly, because there are more columns than column names. Is there any way to change the cell separator in the wikitalbe2csv software? Thanks! Mateussf (talk) 22:02, 18 October 2020 (UTC)
NUMBEROFACTIVEUSERS does not update automatically.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm sorry, but I have run into an annoying problem where the number of active users ({{NUMBEROFACTIVEUSERS}}) fail to update automatically and I have to run initSiteStats.php --active to get it to update.
Compare this (40 users) with this (currently 38 users).
What can I do to get it to automatically update itself again? I am sure it used to update itself automatically before, and I didn't have to use crontab.
Currently using:
- MediaWiki 1.30
- PHP 5.6.30
- Database MySQL 5.5.55 Minoa (talk) 18:31, 15 February 2018 (UTC)
- Bug task still open on Phabricator (T140079). Maybe note your experience there too. AhmadF.Cheema (talk) 19:37, 15 February 2018 (UTC)
Extension:Simple Farm
Hi,
I think i'm confused about how this extension works. Should I install the wikis and then install the extension into the main wiki? If not, please tell me how to do it correctly. Thanks. 190.102.58.36 (talk) 03:28, 16 February 2018 (UTC)
you have so much data what should i read?
you have so much data i dont know what wher to start my name is brian kienzle-kienzle1231 Kienzle1231 (talk) 03:30, 16 February 2018 (UTC)
- Can you please elaborate? Ciencia Al Poder (talk) 10:26, 16 February 2018 (UTC)
- You can start with Special:MyLanguage/Help:Contents Kizule (talk) 19:53, 17 February 2018 (UTC)
How can i delete my uploaded files from wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://sekalx142.epk.ericsson.se/wiki/index.php/File:Personal_Data_Form-2014-_V_1.1_(1).docx
Kindly help if some one knows about this. 122.15.11.155 (talk) 03:47, 16 February 2018 (UTC)
- As that particular Wiki has no formal links with the Wikimedia Foundation, you'll have to ask the administrators at that Wiki for file deletion. AhmadF.Cheema (talk) 07:30, 16 February 2018 (UTC)
Text search in edit window (intermitting error)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello there, I have a mysterious problem with the browser's text search. When editing a page or a section of a wiki article, the search (Ctrl+F) sometimes does not find text that is beyond the viewport (but does exist within that section). It only finds text that is visible within the viewport. There are situations that I can reproduce, i.e. editing the same section and searching the same text does not find it. In most cases however, the search works well.
As far as I can see the problem only exists with Firefox (58.0.2), not with Chrome.
When I detected the problem, I first thought it was caused by the CodeMirror extension, because they have had a similar problem with an older version, but now I have removed the extension and it still happens.
(It is a bit annoying as one usually does rely on the result of text search. It tells you "not found", then one saves the edit, and detects the text is still there and needs to be edited again.)
- MediaWiki 1.27.4
- PHP 5.5.9 (with Apache 2.4.7)
- Database MySQL 5.5.59
- Firefox 58.0.2
Kindly asking if someone has a clue ... AnonymusGdpr (talk) 08:12, 16 February 2018 (UTC)
- What kind of editor are you using? The plain wikitext editor, visual editor, "new" wikitext editor provided by visual editor...? It would also be great if you can reproduce this behavior here at mediawiki.org Ciencia Al Poder (talk) 10:25, 16 February 2018 (UTC)
- Yes, it is the plain wikitext editor. In addition, I have reduced the number of edit lines to 13. (25 is default, I guess.)
- I'd like to help you reproduce the context here but I am not allowed to edit articles. And the talk pages are totally different here, so I cannot demonstrate it with non-articles. AnonymusGdpr (talk) 10:55, 16 February 2018 (UTC)
- Oops, my fault. I can do edits on the english pages. Let me see if i can reproduce it ... AnonymusGdpr (talk) 10:57, 16 February 2018 (UTC)
- So far, everything works fine in this wiki. The size of the editor viewport is somewhat unhandy, how can I adjust it? AnonymusGdpr (talk) 11:19, 16 February 2018 (UTC)
- You may have a look here:
- https://test.perrypedia.proc.org
- login as guest, pwd guest2018
- load article "Farben"
- edit section "Braun", search for "gar" -> not found (wrong, it is there)
- edit section "Grau", search for "gar" -> found (correct) AnonymusGdpr (talk) 12:26, 16 February 2018 (UTC)
- Can reproduce it in Chrome v64.0.3282.167 too.
- Although for my case, it was the Grau section that was showing the problem, instead of Braun.
- The issue comes up when CodeMirror highlighting is already On when the user loads up the WikiEditor. Disabling Extension:CodeMirror from its button on the WikiEditor toolbar resolved the issue. Turning highlighting back On, brings back the issue.
- Browser (Ctrl + F) also doesn't work with other editors such as cPanel's code editor.
- Apparently an issue with CodeMirror, see: Browser's Find command doesn't properly work with CodeMirror editor.
- And a more recent issue: Browser search (Ctrl+F) doesn’t work with new code editor. AhmadF.Cheema (talk) 13:09, 16 February 2018 (UTC)
- I have uninstalled CodeMirror and the problem still exists. AnonymusGdpr (talk) 13:19, 16 February 2018 (UTC)
- Ehm, you're right. In the Testwiki the extension is still active. I have installed it via composer and now I cannot uninstall it... AnonymusGdpr (talk) 13:53, 16 February 2018 (UTC)
- Finally, I managed to uninstall the CodeMirror extension in our testwiki.
- The search problem still exists, so it has nothing to do with the extension. AnonymusGdpr (talk) 22:01, 16 February 2018 (UTC)
- This is a bug with Firefox 58. I reproduced it with Firefox 58 but it works correctly with Firefox 57.
- I've filed a bug against Firefox at https://bugzilla.mozilla.org/show_bug.cgi?id=1439111 Ciencia Al Poder (talk) 14:24, 17 February 2018 (UTC)
- Cool. Thanks a lot!!! AnonymusGdpr (talk) 13:20, 22 February 2018 (UTC)
- Late feedback (I've been in hospital for a while): Bug has been fixed with Firefox 59. Works correctly now. Thanks again!!! AnonymusGdpr (talk) 12:19, 31 March 2018 (UTC)
Change message required in Visual Editor
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a parameter for VisualEditor to force users fill in the change message when saving? Czech.Fox (talk) 09:01, 16 February 2018 (UTC)
- You can try using a hook to cancel the edit if the summary is blank. However, if you don't want to mess with PHP you can install Extension:AbuseFilter and code a rule that prevents saving the edit when the summary is blank, with a custom message. Ciencia Al Poder (talk) 10:30, 16 February 2018 (UTC)
how can i add links to press artikels about documenta FOUNDATION:
dpa - https://www.monopol-magazin.de/documenta-sucht-neue-leitung
deutschlandfunk - http://www.deutschlandfunkkultur.de/debatte-um-documenta-der-aufsichtsrat-hat-die-documenta.1013.de.html?dram:article_id=407350
How can i change the name Documenta FOUNDATION to documenta FOUNDATION Roman Soukup (talk) 11:46, 16 February 2018 (UTC)
- Not sure I understand the question. Where exactly do you want to add links? You can change a name by editing the text where the name is shown... Malyacko (talk) 12:57, 16 February 2018 (UTC)
Is there a minimum name length for categories?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The Issue
Hi there,
I created a category "KB" and assigned three pages to it, but no matter what I do to try and refresh it (short of clearing cache because I don't want to have to re-log-in to all my open online accounts and then wait for images to download and cache again), the category consistently says:
This category currently contains no pages or media.
But, other categories work perfectly fine. I'm wondering if the reason it is not showing the associated pages might be because there is a minimum category name length of "three characters" -- but, I can't find anywhere where it says that, to confirm my suspicion. Neither this page Help:Categories, nor a Google search answered my questions.
My Questions
- Is the minimum category name length greater than one, and if so, what is it AND where is it documented?
- Is minimum name length something that would cause the error message above?
Any help is appreciated. Ehtech2000 (talk) 15:25, 16 February 2018 (UTC)
- Are other categories working correctly? If not, this is probably a jobs related issue. See Project:Support desk/Flow/2016/06#h-Categories_not_working-MediaWiki_1.27_internal_error-2016-06-30T16:44:00.000Z. AhmadF.Cheema (talk) 15:40, 16 February 2018 (UTC)
- That was the answer! I figured out what caused the issue with the categories not refreshing. I'm trying to mimick infoboxes on my local personal wiki and so I've had to import many XML templates exported from Wikipedia just to get the wikipedia:Brian May infobox (musical artist) to work. Based on what I'm reading, all the imports must have moved pointers and messed up references in the MySQL tables. Anyway, I ran the RunJobs.php script, refreshed my page and now all the categories work like a charm. Ehtech2000 (talk) 23:30, 20 February 2018 (UTC)
Ehtech2000 (talk) 16:34, 16 February 2018 (UTC):Thanks AhmadF.Cheema. Most categories are working, however I've had this 'no pages' issue on other categories during the past three weeks since I installed my brand-new wiki on localhost in Windows. I will need to review the link you pr, but the RunJobs.phpbshpp' script looks promising. I'll report back.
Remove content pages from search results
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is it possible to remove the content pages section of my search results? It has links to Multimedia, everything and Advanced. I just want the search results PSIDWiki (talk) 16:58, 16 February 2018 (UTC)
- In your MediaWiki:Common.css, try:AhmadF.Cheema (talk) 17:05, 16 February 2018 (UTC)
#search > div.mw-search-profile-tabs { display: none; } - That did it. Thank you so much Ahmad. PSIDWiki (talk) 18:42, 16 February 2018 (UTC)
Most recent pageviews
Hello,
I'm using the Wikipedia API to return information about an article. I've followed the documentation and am using the sandbox.
My request URL is:
/w/api.php?action=query&format=json&prop=revisions%7Cinfo%7Cpageviews&meta=&pageids=94081&rvprop=ids%7Ctimestamp%7Cflags%7Ccomment%7Cuser%7Cuserid&inprop=url%7Cdisplaytitle%7Ctalkid&pvipmetric=pageviews&pvipdays=30
As you can see I am after basic info about the article, details of its last revision, and 30 days of page views.
My issue is that the last entry in the pageviews is always two days ago, the previous day isn't included. So using that request today (2/16) the last entry is for Wednesday 2/14.
In contrast to this, if I use the Wikimedia Rest API with (using today's date as the 'end' parameter)
I get the pageviews for 2/15 that I'm seeking in the Wikipedia API sandbox.
Can you let me know if I'm overlooking something with my original request as I'd prefer to get the info alongside the other info I desire in one API call rather than having to split pageviews off to another call.
Thanks in advance
Adam Wiggall Adamwiggall (talk) 19:15, 16 February 2018 (UTC)
Can links be hidden and show depending on user rights?
I have the special pages currently hidden for everyone. I want the link to be visible just for Admins. What is the best way to do this? thank you PSIDWiki (talk) 21:03, 16 February 2018 (UTC)
- Where is this link? On the sidebar? AhmadF.Cheema (talk) 11:01, 17 February 2018 (UTC)
- No It is completely hidden right now. It was on the sidebar. I guess I can have it any place as long as it is visible only for admins.
- Thank you 141.211.32.5 (talk) 13:44, 22 February 2018 (UTC)
- This can be done add a javascript to your
User:<username>/common.js, but I do not really understand JS. You can refer to my global js. 星耀晨曦 (talk) 16:06, 22 February 2018 (UTC)
Test coverage page 404
https://doc.wikimedia.org/cover/mediawiki-core/master/php/ is 404. This link appears in Manual:PHP unit testing. Maybe the manual is outdated? 星耀晨曦 (talk) 13:21, 17 February 2018 (UTC)
- https://doc.wikimedia.org/cover/mediawiki-core showing me 403 Forbidden. Before 30 minutes it worked without problems. Kizule (talk) 13:25, 17 February 2018 (UTC)
- Maybe someone doing something in the server. 星耀晨曦 (talk) 13:59, 17 February 2018 (UTC)
- I same think it. Kizule (talk) 14:02, 17 February 2018 (UTC)
- Well, you're missing the last slash: https://doc.wikimedia.org/cover/mediawiki-core/ Ciencia Al Poder (talk) 14:49, 17 February 2018 (UTC)
- Interesting. But https://doc.wikimedia.org/cover/mediawiki-core/master/php/ still 404. 星耀晨曦 (talk) 17:38, 17 February 2018 (UTC)
- Maybe they changed the software that displays that page, and now the URL structure is different Ciencia Al Poder (talk) 10:21, 18 February 2018 (UTC)
Multiple mediawiki sites connect to the same memcached server, is it conflict?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
As stated in the title. 星耀晨曦 (talk) 14:31, 17 February 2018 (UTC)
- No, as long as they have different wiki-ids (db name) its fine.
- Certain cache keys are intentionally shared in such a scenario, such as rate limitting stuff.
- As an aside, this is how memcached works on wikipedia (all languages share memcached servers) Bawolff (talk) 11:01, 18 February 2018 (UTC)
Math formulae in a wiki
In the ancient past, I used TeX, and later used LaTeX to compose math tutorials. These days, I would rather make all new documents be on a wiki. I prefer the having the formulae being generated as images as that is browser-independent.
I find the documentation on:
to be very confused, jumbled and over-crept with features that seem to accommodate older versions and specific web browsers. This documentation lacks a clear, robust explanation of how this plugin is installed and enabled.
Is this just a temporary phase that I can just wait 6 months and have documentation that is more mature as the software comes of age, or is this more characteristic of the plugin team itself and unlikely to change? 107.77.241.4 (talk) 21:37, 17 February 2018 (UTC)
- Hi there!
- I personally would not rely on the docs improving in the next time. Instead, I would more rely on adjusting the docs myself, if I found them to be unclear.
- The installation instructions are here: Extension:Math#Manual_installation. Actually, this section pretty much sums up, what you have to do in order to get the extension installed.
- After that the extension is installed. You can verify this by checking that it is listed on your Special:Version page in your wiki.
- The installation of texvc as described at Extension:Math/advancedSettings surely is a bit more complicated.
- Is there a specific question you are having? 2001:16B8:106C:FA00:3C4E:2C2C:51D4:FB75 (talk) 07:12, 18 February 2018 (UTC)
Which information can the CheckUser tool find?
Is the CheckUser extension able to find someone's information apart from their external IP address? I.e., can it find the internal IP, the physical MAC address or the computer name of an editor? 43.230.99.105 (talk) 01:08, 18 February 2018 (UTC)
- No. Such information is not transmitted over the internet so there would be no way for checkuser or any similar type of thing to know it.
- checkuser records the folliwing info:
- user-agent (web browser, OS and sometimes language)
- ip
- x-forward-for (if the user is using a proxy, what is the ip address before the proxy. Whether or not this is supported depends on the proxy) Bawolff (talk) 10:59, 18 February 2018 (UTC)
- Hello @Bawolff, thanks for your answer! I wonder, if such information is not transmitted over the internet, then how come some websites such as this one are able to detect my internal/local IP?
- And regarding the proxy, just to make sure I understand well: If a user connects to a wiki and edits pages throughout a proxy server or a VPN, can the CheckUser tool tell what is the "real" IP address used by this user (i.e. not the IP of the proxy/VPN)? 43.230.99.108 (talk) 18:49, 19 February 2018 (UTC)
- It may or may not be able to tell you the real ip address of the user - some proxies are configured to send that information along, other's are not. It depends on the proxy.
- As for the site you linked. That's using WebRTC to find your local IP address, which is a relatively new API. The local IP address is not transmitted in general, but javascript is able to find it on browsers supporting WebRTC. CheckUser does not have support for obtaining this information. Collecting it would be a bit more invasive, as you would have to actively collect it instead of just recording what the browser sends by default.
- Normally local IP is not that interesting, as most of the time its either a private IP address (starting with 10. or 192.168) which is kind of meaningless as they are often dynamically assigned and a great many people use the same one, or its simply the same as the person's public address. Bawolff (talk) 23:28, 20 February 2018 (UTC)
- This information (the local IP revealed on the website you linked) is not sent through HTTP headers, it's available only on the browser currently running the page (this information is not transmitted over Internet), so no, it's not available to CheckUser. Ciencia Al Poder (talk) 10:37, 20 February 2018 (UTC)
- OK, thanks ! 43.230.99.104 (talk) 17:01, 20 February 2018 (UTC)
Page titles of HTML files imported via Html2Wiki
By default, file names are the page titles. How can I extract a text from within the HTML file and make this text as the Wiki page title instead
MediaWiki v.1.30. Thanks! Bisherbas (talk) 14:26, 18 February 2018 (UTC)
- Currently the extension does not seem to have such option.
- It uses pandoc to convert html to wiki markup. Possibly the page title is simply discarded then.
- https://github.com/wikimedia/mediawiki-extensions-Html2Wiki/blob/master/specials/SpecialHtml2Wiki.php#L237 suggests that mArticleTitle will be "the full value of mCollectionName (if any) plus mArticleSavePath plus the file name MINUS any extension."
- I don't think the extension even bothers to parse the HTML contents. This may be possible to add to the program.
- I would suggest to ask at https://www.mediawiki.org/wiki/Extension_talk:Html2Wiki instead, the extension developers and users may have this page on their watch list. Gryllida 23:02, 19 February 2018 (UTC)
- The project also has a phabricator page https://phabricator.wikimedia.org/project/profile/1094/ so if you add a new task there with title 'use html title for the article title' and tag it with the project name then it may be more likely to be received by the relevant people. Gryllida 23:03, 19 February 2018 (UTC)
- @Gryllida Thank you! Bisherbas (talk) 00:24, 24 February 2018 (UTC)
PHP warning while uploading html files via Html2Wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
[Sun Feb 18 09:36:53.647910 2018] [php7:warn] [pid 31670] [client ::1:58474] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wiki/includes/api/ApiEditPage.php on line 337, referer: <nowiki>http://localhost/html/wiki/Special:Html2Wiki
MediaWiki v1.30
Apache2 v2.4.18
PHP v7.2.2
Ubuntu 16.04
Mysql v15.1 Bisherbas (talk) 14:38, 18 February 2018 (UTC)
- This is a PHP 7.2 compatibility issue, mediawiki 1.30 is not fully compatible with PHP 7.2. See T182004. This issue has been solved and mediaiwiki 1.31 will fully compatible with PHP 7.2. 星耀晨曦 (talk) 15:19, 18 February 2018 (UTC)
- Thank you! Know when 1.31 will be released? Bisherbas (talk) 20:21, 18 February 2018 (UTC)
- We plan release 1.31 in June 2018. A major release will be made every six months. 星耀晨曦 (talk) 20:31, 18 February 2018 (UTC)
moderator El-chupanebrej not correct in minoxidin topic
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
please help find true with minoxidin description moderator some how directly connect fda and usa with minoxidin developed in india and putting info in negative way. 77.47.130.18 (talk) 17:42, 18 February 2018 (UTC)
- We are sorry, but we cannot help you with a question on page content. This support desk is for questions concerning the technical side of MediaWiki only. 2001:16B8:106C:FA00:6DF4:35A1:A09F:E8C0 (talk) 17:47, 18 February 2018 (UTC)
Installation problems: 1.30.0
When I reach the environmental checks page, I get this:
PHP 7.0.27 is installed.
Warning: Could not find APCu, XCache or WinCache.
Object caching is not enabled.
GNU diff3 not found.
Could not find GD library or ImageMagick.
Image thumbnailing will be disabled.
Git version control software not found.
The only true statement there is that PHP 7.0.27 is indeed installed. However, it is correctly configured with APCu, Zend OpCache, diff3, and ImageMagick. I run separate software that utilizes all these extensions just fine; somehow, MediaWiki can't find them.
The only setting in LocalSettings.php that seems to reference an extension is:
$wgImageMagickConvertCommand = '/usr/bin/convert';
... and that indeed is the path to imagick.
Any ideas what I'm doing wrong here?
Scott FoulFoot (talk) 19:54, 18 February 2018 (UTC)
- Please use
phpinfo();to check you really installed these things. These warnings shouldn't affect normal installation. 星耀晨曦 (talk) 20:24, 18 February 2018 (UTC) - Yep, phpinfo confirms they are installed, and as I mentioned, they're working with other software.
- I'm actually upgrading this MediaWiki (from 1.28.0), and these things didn't work then either. I've just decided to try and figure out what's wrong. As you said, MediaWiki will install okay, it's just slow because of no caching and no imagemagick.
- Scott FoulFoot (talk) 21:00, 18 February 2018 (UTC)
- Without ImageMagick, MediaWiki will not be able to create thumbnails. Actually, I believe that MediaWiki is only searching some default paths for ImageMagick; it will not find the installation, if it in fact is at another place.
- See Manual:$wgImageMagickConvertCommand for more information. You might be able to figure the correct path to ImageMagick using which -a convert on the shell. 2001:16B8:106C:FA00:65D2:7044:189B:5A70 (talk) 21:45, 18 February 2018 (UTC)
- ...and note that $wgUseImageMagick needs to be set to true! 2001:16B8:106C:FA00:65D2:7044:189B:5A70 (talk) 21:49, 18 February 2018 (UTC)
- Yeah, I've already checked all that. Imagemagick is in the standard place, and the path is correctly set in LocalSettings.php : $wgImageMagickConvertCommand = '/usr/bin/convert'
- There's something bigger going on, because MediaWiki can't see any of those other extensions (APCu, diff, etc) that are built-in to the PHP install. It's as if MediaWiki is unable to access directories above the public_html directory. Does MediaWiki need to be uploaded using the root user? (I wouldn't think so, but I'm running out of ideas here).
- Scott FoulFoot (talk) 22:00, 18 February 2018 (UTC)
- > Does MediaWiki need to be uploaded using the root user?
- No, normally it is working if uploaded as any normal user as well.
- I would now check the debug log. See Manual:How to debug for information on how to enable it!
- Afterwards, I would again visit a page inside the Image namespace, where MediaWiki would normally try to create a thumbnail, if using ImageMagick in fact is activated.
- I expect the debug log to afterwards contain the ImageMagick command used - and also the return code in case of an error... 2001:16B8:106C:FA00:65D2:7044:189B:5A70 (talk) 22:07, 18 February 2018 (UTC)
- OK, I fixed this. What a mess.
- As recommended in the documentation, I had turned on FastCGI PHP handler (PHP-FPM). When you do this, certain PHP functions are automatically disabled: proc_open(), exec(), and shell_exec(). Without these, MediaWiki won't use ImageMagick or diff. Editing php.ini has no effect; the functions are disabled elsewhere.
- The instructions here will show you how to get those functions enabled: https://forums.cpanel.net/threads/enabling-php-fpm-forces-disable_functions.590799/
- Now, all these functions are a security risk, and are recommended to be disabled. Why MediaWiki feels the need to use shell_exec() to access ImageMagick, I don't know; it doesn't need to do that. /rant off
- Thank you for your assistance and attention!
- Scott FoulFoot (talk) 23:09, 18 February 2018 (UTC)
- Because ImageMagick is an external program. 星耀晨曦 (talk) 07:56, 19 February 2018 (UTC)
- Yes MediaWiki might have to use lots of external programs to do all the things it can do. This is because some of those tools are sometimes simply better than what PHP can deliver. Within the Wikipedia/Wikimedia world, this isn't such a problem, because we have lots of seasoned system administrators, who know what they are doing.
- Having these things off in default PHP installations is however not a bad default, I have to agree. It just makes it a little bit more difficult to setup MediaWiki unfortunately. Maybe we should have some sort of detection logic for such disable_functions, to make it easier to complete the MediaWiki installation. —TheDJ (Not WMF) (talk • contribs) 10:15, 19 February 2018 (UTC)
- Hello there,
- i am trying to install Mediawiki , but I have this problem at creating databases name and users name and the along password:
- Cannot access the database: :real_connect(): (HY000/1045):
- could anyone please help me how to deal with this error ?
- thanks in advanced 77.191.87.141 (talk) 23:42, 24 April 2019 (UTC)
- Make sure your database is already started. 星耀晨曦 (talk) 00:30, 25 April 2019 (UTC)
Skipping Font Size
Hi there!
Since updating to 1.30 I have the issue that after loading a wiki page the font size seems to readjust.
Try this page (http://www.huskywiki.de/HuskyWiki//index.php?title=James_Wisniewski) and reload it again and again. You'll see what I mean...
Any help is appreciated! TexasR87 (talk) 09:32, 19 February 2018 (UTC)
- Yes, it does seem that you have multiple font definitions, from multiple systems. MediaWiki, Bootstrap and it seems something loaded by Javascript.. You also have lots of JS errors (mostly by daily motion stuff, that attempts to use jquery before MediaWiki has loaded jquery ???)
- And your skin refers to a domain that you don't control: http://www.mediawikibootstrapskin.co.uk/images/BootStrapSkin_mediawiki_88x31.png
- Please be careful when adding all these components. You really need to check their security and implementation, there's a lot of (outdated) stuff out there.. —TheDJ (Not WMF) (talk • contribs) 10:21, 19 February 2018 (UTC)
Maybe no provider was configured?
Mediawiki gives me this "no provider configured" response when I try certain actions like resetting a password. What exactly does this message mean, and how should I go about correcting it? I've been trying to unravel it for weeks but have hit a wall, so I'd be extremely grateful for any guidance!
(I previously raised this question in topics here and here without resolution.) Thanks~ Huwmanbeing (talk) 14:20, 19 February 2018 (UTC)
- What, Wikimedia? Can you provide a specific link here? 星耀晨曦 (talk) 14:28, 19 February 2018 (UTC)
- Sorry, yes -- I meant to say "Mediawiki", not "Wikimedia". My installation is 1.30.0. Huwmanbeing (talk) 14:29, 19 February 2018 (UTC)
- What extensions do you have installed?
- What is your value for $wgAuthManagerConfig?
- What is your value for $wgAuth? Gryllida 22:53, 19 February 2018 (UTC)
- The LocalSettings.php doesn't show $wgAuthManagerConfig or $wgAuth being set. The currently-installed extensions are:
- Special pages: CheckUser, CiteThisPage, Editcount, HeadScript, Interwiki, Newest Pages, Nuke, Random in category, Renameuser
- Parser hooks: Cite, ImageMap, InputBox, Math, MobileDetect, NumberFormat, ParserFunctions, Poem, Regex Fun, Scribunto, SyntaxHighlight, TemplateData
- Media handlers: PDF Handler, TimedMediaHandler
- Spam prevention: Abuse Filter, AntiSpoof, ConfirmEdit, SpamBlacklist, TitleBlacklist
- Other: CodeEditor, Gadgets, GeoData, Kartographer, LocalisationUpdate, MobileFrontend, MwEmbedSupport, NewUserMessage, Upload Wizard, WikiEditor Huwmanbeing (talk) 15:20, 20 February 2018 (UTC)
How where do I make payments for 2 x 2 Region?
How and where do I make payments for my 2 x 2 Region purchased in the last 6 weeks? Maaxum Braendle (talk) 21:22, 19 February 2018 (UTC)
- Wrong support forum. AhmadF.Cheema (talk) 21:52, 19 February 2018 (UTC)
Validating wiki markup input
Do we have any wiki markup editors that validate the input for matching {}s, missing required template parameters, and the like? I see some such error checking when editing javascripts but not when editing wiki markup. Gryllida 22:32, 19 February 2018 (UTC)
Installing Extension:JsonConfig/Tabular
I'm reading the Extension:JsonConfig/Tabular page and can't figure out what I'm doing wrong.
I added JsonConfig to my Extension folder. My http://worldwideboxoffice.com/wiki/index.php/Special:Version page says that it is installed. But how do install the Tabular function?
I added this code block:
$wgJsonConfigModels['Tabular.JsonConfig'] = 'JsonConfig\JCTabularContent'; $wgJsonConfigs['Tabular.JsonConfig'] = array( 'namespace' => 486, // === NS_DATA, but the constant is not defined yet 'nsName' => 'Data', 'isLocal' => false, 'pattern' => '/.\.tab$/' );
and then this code block:
$wgJsonConfigs['Tabular.JsonConfig']['remote'] = 'https://commons.wikimedia.org/w/api.php';
To the end of my LocalSettings.php file, but the example.tab doesn't display as a table:
http://worldwideboxoffice.com/wiki/index.php/Data_test
Using the example data source:
http://worldwideboxoffice.com/wiki/index.php/Data:Sandbox/Name/Example.tab
Help? Chuck.Kahn (talk) 22:56, 19 February 2018 (UTC)
- Placing
mw.ext.data.get("Example.tab")on the page won't work. This is Lua code and should be placed in a Module (modules are provided by Extension:Scribunto). Ciencia Al Poder (talk) 10:27, 20 February 2018 (UTC) - Thanks. Added the Scribunto module and it shows up here:
- http://worldwideboxoffice.com/wiki/index.php/Special:Version
- But the test page doesn't seem to be working upon reload:
- http://worldwideboxoffice.com/wiki/index.php/Data_test Chuck.Kahn (talk) 20:28, 24 February 2018 (UTC)
- "Module" here means in the Module namespace, for example:
- http://worldwideboxoffice.com/wiki/index.php/Module:Data_test AhmadF.Cheema (talk) 12:10, 25 February 2018 (UTC)
- Thanks. When I save it there I get this error:
- [WpL9LMVSr8Am0HcZljq6KQAAABc] 2018-02-25 18:15:09: Fatal exception of type Scribunto_LuaInterpreterNotFoundError
- Does it need the full path where the Example.tab exists?
- mw.ext.data.get("Sandbox/Name/Example.tab") Chuck.Kahn (talk) 18:17, 25 February 2018 (UTC)
Hide tab Discussion in MW 1.30
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm new to Mediawiki (MediaWiki 1.30.0, PHP 7.0.22, MySQL 5.7.21)
How can I remove talk tab in Vector skin for users how are not logged in?
- This seems to be old:
Manual:FAQ#How do I add.2Fremove tabs throughout my wiki.3F
- DynamicTabs is archived
- And, I saw this this post
but I do not know how to manage hooks, to apply it. I have to register the hook in LocalSettings.php,
$wgHooks['BeforePageDisplay'][] = 'wfHideVariousTabsFromAnonymous';
but where may a put the event handler?
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
global $wgUser;
if ( !$wgUser->isLoggedIn() ) {
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMen$
}
return true;
}
Any help please? 46.222.246.30 (talk) 18:18, 20 February 2018 (UTC)
- User:Subfader/Hide page tabs maybe Malyacko (talk) 10:28, 21 February 2018 (UTC)
- I tried this, but Vector.php seems different, there's no
globalWrapperdiv. <?php global $wgUser; if( $wgUser->isAnon() ) { ?><style type="text/css">#ca-talk { display: none !important; }</style><?php } ?>46.222.246.30 (talk) 13:47, 21 February 2018 (UTC)
- I tried this, but Vector.php seems different, there's no
- This hook is no longer available: Manual:Hooks/SkinTemplateSetupPageCss. It won't work.
- You can hide it for all in MediaWiki:Common.css and then unhide it for the group "user" using Manual:User group CSS and Javascript Ciencia Al Poder (talk) 10:31, 21 February 2018 (UTC)
- Seems to be the solution
- In MediaWiki:Common.css I put:
- #ca-talk { display:none!important; }
- In MediaWiki:Group-user.css I put:
- #ca-talk { display:block!important;}
- Thanks a lot!! 46.222.246.30 (talk) 14:13, 21 February 2018 (UTC)
WikiEditor is not showing up
We implement MediaWiki in our company as an Enterprise Wiki, we are using it very well as Quick Reliable Knowledge base. But, recently we face a disturbing problem, which is the default WikiEditor is missing. We thought the problem is with the Default WikiEditor, then we installed the WikiEditor extension, unfortunately the problem is still persists.
When I check the browser's "developer tools", F12, the JavaScript is not loading.
Unfortunately, I can not send you the URL address of our wiki. because it is deployed as intranet in the company. Here is Version of our Wiki...
MediaWiki 1.26.0
PHP 5.6.19 (cgi-fcgi)
MySQL 5.7.11-log
Thank you, 213.55.103.174 (talk) 11:42, 21 February 2018 (UTC)
- If you're still running ancient unsupported insecure version 1.26 then the bigger problem to solve first is upgrading.
- What does "not loading" exactly mean and what *do* you see? Which "JavaScript" exactly? All and any js files? What do the server logs of your webserver software show? Malyacko (talk) 12:58, 21 February 2018 (UTC)
- This is what I got when I tried to debug using the browser's "developer tools", F12.
- "Loading failed for the <script> with source “http://cbepedia.internal/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector”.
- Main_Page:14"
- I did not check the Server logs on my web server. I would really love to know how I can check that?
- We deployed MediaWiki on a Windows Server 2008 r2 data center (IIS 7.5).
- Let me know, if you would like to know more. 213.55.103.174 (talk) 13:27, 21 February 2018 (UTC)
- Loading failed for the <script> with source. That likely means that the resource loader could not succeed. There can be many reasons for this, but i'd start by running that request with curl or wget from a terminal, to figure out if content is properly being returned (any error message might show up in that content as well). —TheDJ (Not WMF) (talk • contribs) 14:59, 21 February 2018 (UTC)
- @TheDJ@Malyacko
- I am trying so hard in order to solve the problem, I did everything which I found on MediaWiki FAQ,
- Manual:How to debug and so on. Here is what I did to the LocalSettings.php file in my root directory,
- 1. I enable the ResourceLoaderDebug as follows, $wgResourceLoaderDebug = true;
- 2. I set the PHP error, as follows
- error_reporting( -1 );
- ini_set( 'display_errors', 1);
- 3. I enable the Debug Toolbar,
- $wgDebugToolbar = true;
- $wgShowDebug = true;
- $wgDevelopmentWarnings = true;
- But, The I can not solve the problem. When I check the developer tools, F12, the same error message displays.
- "http://cbepedia.internal/load.php?debug=true&lang=en&modules=startup&only=scripts&skin=vector"
- This is what the showdebug variable displays below the home page of my Wiki.
- Which error messages I should look for and fix to solve the problem (WikiEditor is not showing up).
- Debug data:
[error-json] {"id":"c6b37c7e","type":"ErrorException","file":"C:\\inetpub\\wwwroot\\w\\includes\\Setup.php","line":587,"message":"PHP Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.","code":0,"url":null,"suppressed":true,"backtrace":[{"function":"handleError","class":"MWExceptionHandler","type":"::","args":["integer","string","string","integer","array"]},{"file":"C:\\inetpub\\wwwroot\\w\\includes\\Setup.php","line":587,"function":"date_default_timezone_get","args":[]},{"file":"C:\\inetpub\\wwwroot\\w\\includes\\WebStart.php","line":137,"args":["string"],"function":"require_once"},{"file":"C:\\inetpub\\wwwroot\\w\\index.php","line":44,"args":["string"],"function":"require"}]}Start request GET /wiki/Main_PageHTTP HEADERS:CONTENT-TYPE:CONTENT-LENGTH: 0X-ORIGINAL-URL: /wiki/Main_PageX-IMFORWARDS: 20UPGRADE-INSECURE-REQUESTS: 1DNT: 1USER-AGENT: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0HOST: cbepedia.internalCOOKIE: mycbepediaUserName=AdminACCEPT-LANGUAGE: en-US,en;q=0.5ACCEPT-ENCODING: gzip, deflateACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8VIA: 1.1 proxy02.cbe.com.et:80 (Cisco-WSA/5.0.0)CONNECTION: keep-alive[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff[caches] LocalisationCache: using store LCStoreCDBFully initialisedConnected to database 0 at localhostTitle::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move}[ContentHandler] Created handler for wikitext: WikitextContentHandlerIP: 10.1.11.8Connected to database 0 at localhost[DBPerformance] [GET] Expectation (masterConns <= 0) by MediaWiki::main not met:[connect to localhost (mycbepedia)]TransactionProfiler.php line 307 calls wfBacktrace()TransactionProfiler.php line 146 calls TransactionProfiler->reportExpectationViolated()LoadBalancer.php line 545 calls TransactionProfiler->recordConnection()SqlBagOStuff.php line 170 calls LoadBalancer->getConnection()SqlBagOStuff.php line 246 calls SqlBagOStuff->getDB()SqlBagOStuff.php line 224 calls SqlBagOStuff->getMulti()MessageCache.php line 287 calls SqlBagOStuff->get()MessageCache.php line 909 calls MessageCache->load()MessageCache.php line 828 calls MessageCache->getMsgFromNamespace()MessageCache.php line 766 calls MessageCache->getMessageFromFallbackChain()Message.php line 1146 calls MessageCache->get()Message.php line 769 calls Message->fetchMessage()Message.php line 860 calls Message->toString()OutputPage.php line 956 calls Message->text()OutputPage.php line 1004 calls OutputPage->setHTMLTitle()Article.php line 514 calls OutputPage->setPageTitle()ViewAction.php line 44 calls Article->view()MediaWiki.php line 458 calls ViewAction->show()MediaWiki.php line 255 calls MediaWiki->performAction()MediaWiki.php line 682 calls MediaWiki->performRequest()MediaWiki.php line 476 calls MediaWiki->main()index.php line 47 calls MediaWiki->run()DatabaseBase::query: Writes done: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')[DBPerformance] [GET] Expectation (writes <= 0) by MediaWiki::main not met:query: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X')TransactionProfiler.php line 307 calls wfBacktrace()TransactionProfiler.php line 200 calls TransactionProfiler->reportExpectationViolated()Database.php line 1035 calls TransactionProfiler->recordQueryCompletion()Database.php line 2786 calls DatabaseBase->query()DatabaseMysqlBase.php line 442 calls DatabaseBase->nativeReplace()SqlBagOStuff.php line 344 calls DatabaseMysqlBase->replace()SqlBagOStuff.php line 364 calls SqlBagOStuff->setMulti()BagOStuff.php line 393 calls SqlBagOStuff->set()BagOStuff.php line 250 calls BagOStuff->add()BagOStuff.php line 317 calls BagOStuff->lock()MessageCache.php line 690 calls BagOStuff->getScopedLock()MessageCache.php line 386 calls MessageCache->getReentrantScopedLock()MessageCache.php line 315 calls MessageCache->loadFromDBWithLock()MessageCache.php line 909 calls MessageCache->load()MessageCache.php line 828 calls MessageCache->getMsgFromNamespace()MessageCache.php line 766 calls MessageCache->getMessageFromFallbackChain()Message.php line 1146 calls MessageCache->get()Message.php line 769 calls Message->fetchMessage()Message.php line 860 calls Message->toString()OutputPage.php line 956 calls Message->text()OutputPage.php line 1004 calls OutputPage->setHTMLTitle()Article.php line 514 calls OutputPage->setPageTitle()ViewAction.php line 44 calls Article->view()MediaWiki.php line 458 calls ViewAction->show()MediaWiki.php line 255 calls MediaWiki->performAction()MediaWiki.php line 682 calls MediaWiki->performRequest()MediaWiki.php line 476 calls MediaWiki->main()index.php line 47 calls MediaWiki->run()[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from databaseUnstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParserParser: using preprocessor: Preprocessor_DOMUnstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__constructArticle::view using parser cache: yesArticle::view: doing uncached parse[Preprocessor] Saved preprocessor XML to memcached (key mycbepedia:preprocess-xml:fa395754b6d6d274124dd4bdc1dd2c7b:0)SiteStats::loadAndLazyInit: reading site_stats from slaveMimeMagic::__construct: loading mime types from C:\inetpub\wwwroot\w/includes/mime.typesMimeMagic::__construct: loading mime info from C:\inetpub\wwwroot\w/includes/mime.infoFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/3d/Wikipedia-logo-v2.png/200px-Wikipedia-logo-v2.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/3/3d/Wikipedia-logo-v2.png/200px-Wikipedia-logo-v2.png does not exist.TransformationalImageHandler::doTransform: creating 200x183 thumbnail at C:\Windows\TEMP/transform_37e10c374357-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/3d/Wikipedia-logo-v2.png/200px-Wikipedia-logo-v2.pngTransformationalImageHandler::doTransform: creating 200x183 thumbnail at C:\Windows\TEMP/transform_43456bc1e413-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/3d/Wikipedia-logo-v2.png/200px-Wikipedia-logo-v2.pngTransformationalImageHandler::doTransform: creating 200x183 thumbnail at C:\Windows\TEMP/transform_02ec0626ff9e-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/1/1d/Statistic-book.png/100px-Statistic-book.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/1/1d/Statistic-book.png/100px-Statistic-book.png does not exist.TransformationalImageHandler::doTransform: creating 100x100 thumbnail at C:\Windows\TEMP/transform_444fbe3f7676-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/1/1d/Statistic-book.png/150px-Statistic-book.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/1/1d/Statistic-book.png/150px-Statistic-book.png does not exist.TransformationalImageHandler::doTransform: creating 150x150 thumbnail at C:\Windows\TEMP/transform_3d82782dd067-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/1/1d/Statistic-book.png/200px-Statistic-book.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/1/1d/Statistic-book.png/200px-Statistic-book.png does not exist.TransformationalImageHandler::doTransform: creating 200x200 thumbnail at C:\Windows\TEMP/transform_66b324c8a3ff-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.png does not exist.TransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_03b4af623757-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_247496a9f07f-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_c2e160e3a7db-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/Announcement.png/60px-Announcement.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/0/05/Announcement.png/60px-Announcement.png does not exist.TransformationalImageHandler::doTransform: creating 60x53 thumbnail at C:\Windows\TEMP/transform_e44c16d3a2b8-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/Announcement.png/90px-Announcement.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/0/05/Announcement.png/90px-Announcement.png does not exist.TransformationalImageHandler::doTransform: creating 90x79 thumbnail at C:\Windows\TEMP/transform_afa7a2317126-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/Announcement.png/120px-Announcement.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/0/05/Announcement.png/120px-Announcement.png does not exist.TransformationalImageHandler::doTransform: creating 120x105 thumbnail at C:\Windows\TEMP/transform_013fa7b55c56-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_ee2c4d39c2b6-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_d630d393c21d-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_a61239a5d325-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/2/22/Category-button.png/60px-Category-button.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/2/22/Category-button.png/60px-Category-button.png does not exist.TransformationalImageHandler::doTransform: creating 60x83 thumbnail at C:\Windows\TEMP/transform_d95dd849fc47-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/2/22/Category-button.png/90px-Category-button.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/2/22/Category-button.png/90px-Category-button.png does not exist.TransformationalImageHandler::doTransform: creating 90x125 thumbnail at C:\Windows\TEMP/transform_2153018bcdb9-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/2/22/Category-button.png/120px-Category-button.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/2/22/Category-button.png/120px-Category-button.png does not exist.TransformationalImageHandler::doTransform: creating 120x167 thumbnail at C:\Windows\TEMP/transform_6513d5691ea9-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_91cab9f52533-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_cb4ca3e37af4-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_9f97a7bff728-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/5/5c/Email.png/60px-Email.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/5/5c/Email.png/60px-Email.png does not exist.TransformationalImageHandler::doTransform: creating 60x73 thumbnail at C:\Windows\TEMP/transform_9a0e13cede59-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/5/5c/Email.png/90px-Email.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/5/5c/Email.png/90px-Email.png does not exist.TransformationalImageHandler::doTransform: creating 90x109 thumbnail at C:\Windows\TEMP/transform_6beea1c7084f-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/5/5c/Email.png/120px-Email.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/5/5c/Email.png/120px-Email.png does not exist.TransformationalImageHandler::doTransform: creating 120x146 thumbnail at C:\Windows\TEMP/transform_8d9de2e7ad29-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_399799bfe4b6-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_7337c142c6e8-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_4022fc867095-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/f/f4/Pushpin.png/60px-Pushpin.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/f4/Pushpin.png/60px-Pushpin.png does not exist.TransformationalImageHandler::doTransform: creating 60x60 thumbnail at C:\Windows\TEMP/transform_8c358c93a160-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/f/f4/Pushpin.png/90px-Pushpin.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/f4/Pushpin.png/90px-Pushpin.png does not exist.TransformationalImageHandler::doTransform: creating 90x90 thumbnail at C:\Windows\TEMP/transform_2ddd488630b1-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/f/f4/Pushpin.png/120px-Pushpin.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/f4/Pushpin.png/120px-Pushpin.png does not exist.TransformationalImageHandler::doTransform: creating 120x120 thumbnail at C:\Windows\TEMP/transform_83b15a234f18-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/9/9f/IFB.jpg/130px-IFB.jpgFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/9/9f/IFB.jpg/130px-IFB.jpg does not exist.TransformationalImageHandler::doTransform: creating 130x91 thumbnail at C:\Windows\TEMP/transform_7010a80223c1-1.jpg using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/9/9f/IFB.jpg/195px-IFB.jpgFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/9/9f/IFB.jpg/195px-IFB.jpg does not exist.TransformationalImageHandler::doTransform: creating 195x137 thumbnail at C:\Windows\TEMP/transform_5932590d61ac-1.jpg using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/9/9f/IFB.jpg/260px-IFB.jpgFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/9/9f/IFB.jpg/260px-IFB.jpg does not exist.TransformationalImageHandler::doTransform: creating 260x182 thumbnail at C:\Windows\TEMP/transform_6c2082a436b1-1.jpg using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_f4595979ff42-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_c68b51a0dd66-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/3/33/Wikibar.png/63px-Wikibar.pngTransformationalImageHandler::doTransform: creating 63x22 thumbnail at C:\Windows\TEMP/transform_d0550d0cb04a-1.png using scaler clientTransformationalImageHandler::doTransform: returning unscaled imageFile::transform: Doing stat for mwstore://local-backend/local-thumb/f/fc/Quick_links.png/60px-Quick_links.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/fc/Quick_links.png/60px-Quick_links.png does not exist.TransformationalImageHandler::doTransform: creating 60x60 thumbnail at C:\Windows\TEMP/transform_ba6ddc1f0600-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/f/fc/Quick_links.png/90px-Quick_links.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/fc/Quick_links.png/90px-Quick_links.png does not exist.TransformationalImageHandler::doTransform: creating 90x90 thumbnail at C:\Windows\TEMP/transform_d0a111077655-1.png using scaler clientFile::transform: Doing stat for mwstore://local-backend/local-thumb/f/fc/Quick_links.png/120px-Quick_links.pngFileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/fc/Quick_links.png/120px-Quick_links.png does not exist.TransformationalImageHandler::doTransform: creating 120x120 thumbnail at C:\Windows\TEMP/transform_201f158c9927-1.png using scaler client[Preprocessor] Saved preprocessor XML to memcached (key mycbepedia:preprocess-xml:fa395754b6d6d274124dd4bdc1dd2c7b:0)Saved in parser cache with key mycbepedia:pcache:idhash:1-0!*!0!*!*!5!* and timestamp 20180223073021 and revision id 1616MediaWiki::doPreOutputCommit completed; all transactions committedTitle::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move}@MarkAHershberger AddisuMekonene (talk) 07:46, 23 February 2018 (UTC)
- Sorry for taking so long to answer. You should first address the warning in the first line:
- PHP Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings.
- Edit your php.ini file and look for the line with date.timezone.
- Set it as follows:
date.timezone=Africa/Addis_Ababa
- After you do that, restart your webserver.
- What problems are you having now? ☠MarkAHershberger☢(talk)☣ 01:26, 28 February 2018 (UTC)
Logo only showing up on "Create account" page...
Recently, the main logo at the top of any wiki page disappeared, except for the one at the top of the "Special: Create Account" page. Unfortunately, this is hosted on a company intranet and I cannot share the site URL with you. Can anyone suggest why this may be happening (could the Create Account page and the other pages be using a different template, or something like that...)? 184.150.236.43 (talk) 15:18, 21 February 2018 (UTC)
- Try using browser developer tools (F12), maybe its Console tab logs an error on attempting to access the logo. AhmadF.Cheema (talk) 08:50, 22 February 2018 (UTC)
- Custom styles (see Manual:Interface/Stylesheets) are not loaded by default on some restricted pages like the login or create account page (see Manual:$wgAllowSiteCSSOnRestrictedPages to disable that behavior).
- Maybe you have something in MediaWiki:Common.css or similar which hides the logo, and because that style is not being loaded in the Create Account page that's why it's working there. Ciencia Al Poder (talk) 10:31, 22 February 2018 (UTC)
editing of talkpages only
I would like to set up a single-user private wiki but still allow public comments on talkpages. So anonymous editors cannot create accounts or new pages or upload any files, but are allowed to edit talkpages (and only talkpages) to post comments or feedback. Is there a way to set this up to restrict editing to only a single namespace? Nicole Sharp (talk) 17:21, 21 February 2018 (UTC)
- Okay, found this:
Manual:Preventing access#Restrict editing of an entire namespace. But can I do the opposite, i.e. restrict editing to all namespaces except for one? Or do I have to list each namespace individually, and then the namespaces not listed are allowed for edits? Nicole Sharp (talk) 20:36, 21 February 2018 (UTC)
I think I got it (LocalSettings.php below). But I would still like to find a way to set this up so that I can specify that only talk pages are editable, as opposed to protecting non-talk pages from edits. Not sure if that is equivalent or not, or if setting the wiki up as it is listed below introduces any risk of someone being able to edit a non-talk page. Nicole Sharp (talk) 20:37, 21 February 2018 (UTC)
$wgGroupPermissions['*']['createaccount'] = false; # $wgGroupPermissions['*']['edit'] = false; $wgNamespaceProtection[NS_MAIN] = $wgNamespaceProtection[NS_USER] = $wgNamespaceProtection[NS_PROJECT] = $wgNamespaceProtection[NS_FILE] = $wgNamespaceProtection[NS_IMAGE] = $wgNamespaceProtection[NS_MEDIAWIKI] = $wgNamespaceProtection[NS_TEMPLATE] = $wgNamespaceProtection[NS_HELP] = $wgNamespaceProtection[NS_CATEGORY] = $wgNamespaceProtection[NS_SPECIAL] = $wgNamespaceProtection[NS_MEDIA] = $wgNamespaceProtection[NS_GADGET] = array( 'emailconfirmed' );
(Nonworking syntax striked. Nicole Sharp (talk) 16:13, 23 February 2018 (UTC))
- Actually, the above syntax allows anyone to edit talk pages, but also blocks any edits by the admin on non-talk pages. So that doesn't work and back to square one. "
Manual:Preventing access#Restrict editing of all but a few pages" mentions what I am trying to do (restrict anonymous editing to talkpages only), but I need it by namespace instead of from a manual file list which the EditSubpages Extension seems to require (which is very impractical). Nicole Sharp (talk) 23:30, 22 February 2018 (UTC) - It should work if $wgGroupPermissions['*']['edit'] = false; is really commented out, and if the admin is "emailconfirmed" :)
- Otherwise use "sysop" instead of "emailconfirmed". Ciencia Al Poder (talk) 10:35, 23 February 2018 (UTC)
No, that has the same result (sysop can only edit talkpages). If I read "Manual:$wgNamespaceProtection" correctly, then that is protecting the namespace from the sysop (or the emailconfirmed user), as opposed to allowing edits by the sysop on those namespaces. I need something like:
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgNamespaceUnprotection[NS_TALK] = $wgNamespaceUnprotection[NS_USER_TALK] = $wgNamespaceUnprotection[NS_PROJECT_TALK] = $wgNamespaceUnprotection[NS_FILE_TALK] = $wgNamespaceUnprotection[NS_IMAGE_TALK] = $wgNamespaceUnprotection[NS_MEDIAWIKI_TALK] = $wgNamespaceUnprotection[NS_TEMPLATE_TALK] = $wgNamespaceUnprotection[NS_HELP_TALK] = $wgNamespaceUnprotection[NS_CATEGORY_TALK] = $wgNamespaceUnprotection[NS_SPECIAL_TALK] = $wgNamespaceUnprotection[NS_MEDIA_TALK] = $wgNamespaceUnprotection[NS_GADGET_TALK] = array( 'everyone' );
That would disable editing by anyone other than the sysop by default, but then unprotect just the talkpages for anonymous edits. Nicole Sharp (talk) 14:24, 23 February 2018 (UTC)
(Nonworking syntax striked. Nicole Sharp (talk) 16:14, 23 February 2018 (UTC))
- Ah, true. The manual page says it clearly, though. The values you pass to $wgNamespaceUnprotection must be a right, not a user group. You should edit a new right to sysops and use it for the namespace protection. Ciencia Al Poder (talk) 15:39, 23 February 2018 (UTC)
- I got it working with the syntax below:
$wgGroupPermissions['*']['createaccount'] = false; # $wgGroupPermissions['*']['edit'] = false; $wgNamespaceProtection[NS_MAIN] = $wgNamespaceProtection[NS_USER] = $wgNamespaceProtection[NS_PROJECT] = $wgNamespaceProtection[NS_FILE] = $wgNamespaceProtection[NS_IMAGE] = $wgNamespaceProtection[NS_MEDIAWIKI] = $wgNamespaceProtection[NS_TEMPLATE] = $wgNamespaceProtection[NS_HELP] = $wgNamespaceProtection[NS_CATEGORY] = $wgNamespaceProtection[NS_SPECIAL] = $wgNamespaceProtection[NS_MEDIA] = $wgNamespaceProtection[NS_GADGET] = array( 'editinterface' );
- However, I noticed that an anonymous spammer could still create new spam talkpages such as "
talk:Buy Buy Buy Now Now Now!," instead of only being able to create talkpages for pre-existing mainspace pages. Is there a way to restrict this? I actually see this type of spam often here on MediaWiki.org (creating new discussions for nonexistent pages). Nicole Sharp (talk) 16:08, 23 February 2018 (UTC) - There's no way to do this AFAIK. You'll probably need to do some custom code with a hook. But still they can create spam talk pages of legitimate pages. You should try to identify some common patterns and use Extension:AbuseFilter to prevent them. Ciencia Al Poder (talk) 16:15, 23 February 2018 (UTC)
cannot access pages from RESTBase server
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've just installed RESTBase server with this config.yaml
...
paths:
/{domain:127.0.0.1:8081}:
...
apiUriTemplate: http://127.0.0.1:8081/mediawiki/api.php
baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}"
parsoid:
host: http://localhost:8142
table:
backend: sqlite
dbname: db.sqlite3
...
I'm using
Mediawiki 1.30 , PHP 7.0.22, MySQL 5.7.21, ubuntu0.16.04.1
When I make
curl http://127.0.0.1:7231/127.0.0.1:8081/v1/
I get
{"items":["page","transform"]}
And with
http://127.0.0.1:7231/127.0.0.1%3A8081/v1/page/
I get
{"items":["data-parsoid","html","title","wikitext"]}
And in browser I get to "Wikimedia REST API".
But if I try to get some wiki page using the API wiki I get 404
For example:
curl -X GET --header 'Accept: application/problem+json' 'http://127.0.0.1:7231/127.0.0.1%3A8081/v1/page/html/P%C3%A1gina_principal'
{
"type": "https://mediawiki.org/wiki/HyperSwitch/errors/not_found",
"title": "Not found.",
"method": "get",
"uri": "/127.0.0.1%3A8081/v1/page/html/P%C3%A1gina_principal"
}
I have short URLs enabled, so main page is:
http://127.0.0.1:8081/wane/P%C3%A1gina_principal
Any help please? Scejja (talk) 17:59, 21 February 2018 (UTC)
- A path of /{domain:127.0.0.1:8081}: is probably not going to work.
- Your wiki should be published somewhere with a domain name. Or at least try to use a wiki identifier for that and use it as the "domain" configuration
- Ciencia Al Poder (talk) 10:38, 22 February 2018 (UTC)
$wgVirtualRestConfig['modules']['restbase'] = [ 'url' => "http://127.0.0.1:7231", 'domain' => 'yourdomain', 'parsoidCompat' => false ];
- That was the problem, for the moment, if I put 'localhost' for domain property in config.yaml (the same as in parsoid and VisualEditor configuration) it works.
- Thanks a lot for your help! Scejja (talk) 10:59, 22 February 2018 (UTC)
2812 neo pixel board for arduino
I have purchased this, and am having a problem with getting all 40 pixels to light up.
only 19 of them come on. two complete rows, and 3 pixels on the left are all that illuminate. Is this a defective board, and what can I do about it. My E-mail is ----@aol.com.
thank you, jim alexander 75.161.26.128 (talk) 01:22, 22 February 2018 (UTC)
- Wrong support forum. AhmadF.Cheema (talk) 01:46, 22 February 2018 (UTC)
Counter Function
Hi, I noticed that the Homestar Runner Wiki has a parser function called <nowiki>{{#count:}}</nowiki>. Each time this function is called, it returns the number of times it has been called. (See the example in the link.) I was wondering if there was anything like that in MediaWiki. Thanks! 96.48.153.32 04:57, 22 February 2018 (UTC)
- Extension:NumerAlpha is similar. AhmadF.Cheema (talk) 05:57, 22 February 2018 (UTC)
How to use function toggleToc
By reading documentation at the page Manual talk:Table of contents#Improved Solution it appears that MediaWiki standard installation provides for a function called toggleToc.
I tried to implement the code in the above mentioned page, but it keeps failing with the error ReferenceError: toggleToc is not defined, so it seems to me this function is not available for some reason.
I looked for further documentation and I found page ResourceLoader/Migration guide (users)#MediaWiki 1.29 : there function toggleToc is mentioned in the How to migrate table, but it is not explained if and how this function actually needs to be migrated.
Apart from this two pages, it seems I can't find any additional information about this function. Can you please help me sort this out?
Thanks in advance for any help you might provide. Luca Mauri (talk) 17:34, 22 February 2018 (UTC)
- ResourceLoader/Migration guide (users) states that the toggleToc function got removed in MediaWiki 1.29.
- Sadly I do not know of a replacement for it. 2001:16B8:105D:4700:8146:EB2D:A7F1:C323 (talk) 19:11, 22 February 2018 (UTC)
Hi Any help with a RTL-SDR Please?
Hi from Christchurch After a bit of help with the RTL.
Thanks Chris 2406:5A00:4801:6100:61CA:80BD:F908:FB0E (talk) 04:54, 23 February 2018 (UTC)
- Can you please elaborate? Ciencia Al Poder (talk) 10:32, 23 February 2018 (UTC)
Templates and Scripts
Hi everyone, I'm sure (reasonably) that this topic has probably come up before, but I can't seem to find it in the forum menus. I'm a writer and I've been using MediaWiki to create a custom Wiki for my book series.
I've successfully installed the latest version on my server, and I've built a basic site from it.
I've been reading up on how Wikipedia does it (which is what I've been modeling my version after since it's so well-known). They use templates (particularly of interest are the "infobox" templates) to maintain consistency.
I've managed to re-create that look by forcing a table to display there, but it's wildly inefficient. I've been trying to set it up on my server to work the same, but I'm not have any luck. I tried just going to Wikipedia and exporting their infobox templates and importing them into my Wiki so that I could modify the code to fit what I need, but that was a disaster.
Does anyone have any tips on this? Or a good resources that walks through the process? I'm pretty technically proficient, but I don't know very much about MediaWiki. Any help would be appreciated.
Thanks! Jjclayborn (talk) 05:09, 23 February 2018 (UTC)
- See Manual:Importing Wikipedia infoboxes tutorial Ciencia Al Poder (talk) 10:24, 23 February 2018 (UTC)
Not seeing interlanguage links in the sidebar
Here again with more doubts. I have a mediawiki installation (1.30 , PHP 7.0.22, MySQL 5.7.21, ubuntu0.16.04.1) and I want to enable it for two languages spanish (the one used for installation) and english. I have installed ContentTranslation extension and I can get to translation page through Contributions link, for example.
I have some pages in spanish which I want to translate into english, but I can not see interlanguage links in the sidebar. The manual says "find the page that you want to translate in the wiki in the source language, and click the target language name in the interlanguage links list in the sidebar. (This will only work if the tool is installed in the wiki in the source language, and you enabled the beta feature there.)".
I don't know if I have all the required software installed, these are the extensions and software I've installed in relation with ContentTranslation: CX server, UniversalLanguageSelector, CLDR, EventLogging, BetaFeatures, VisualEditor.
Do I need to install Wikibase? Both, Repository and Client?
Thanks in advance Scejja (talk) 09:38, 23 February 2018 (UTC)
Moving a wiki
Hey guys, I want to move a wiki from one server to another. I can start wiki in the new server, but how can i put all the pages with pictures to the new one? The function with special pages is not helping. 37.9.184.216 (talk) 12:14, 23 February 2018 (UTC)
Anon group CSS
Hello. Regarding Manual:User group CSS and Javascript, can I create CSS for anonymous users? I have tried using "user-show" as in en:w:MediaWiki:Group-user.css but it does not look like IPs are affected by it, as IPs will still see both "anonymous-show" and "user-show", while users see only "user-show." Thanks. Horus (talk) 17:33, 23 February 2018 (UTC)
- Use MediaWiki:Common.css for all (anons included) then override it (if needed) in the MediaWiki:Group-user.css.
- There's no CSS exclusive for anons. Ciencia Al Poder (talk) 20:32, 25 February 2018 (UTC)
Citations and References
I am struggling noting my references and creating citations. Jthester (talk) 18:39, 23 February 2018 (UTC)
- See Wikipedia:Tutorial/Citing sources and Help:Referencing for beginners. AhmadF.Cheema (talk) 09:14, 24 February 2018 (UTC)
Default template for new pages?
Hi- I am a new wiki user and "determined but zero experience" to the tech world.
I am trying to change the default for a new general page such that a simple template appears.
I have read all I can find about templates- I understand how to create a template and manually insert it into a new page, which is fine when I am using the wiki, but for my contributors, manually inserting is too much to ask and I know it won't happen. Is there a way to change the default so that a template appears for new pages?
I assumed I would look for a page with code for new pages and change the code, but I can't find any pages where I can manually change the code. And I suspect that doing that would get me in trouble in that with my first update that code would be eliminated.
Thank you for your help- and very spelled out instructions would be appreciated! Being new, I don't have the intuitiveness to skip steps.
Thank you!
-Carey Careylewise (talk) 18:41, 23 February 2018 (UTC)
- You can the "preload" url-argument to specify the created page is filled in with the content of some other page. Suppose you have a template page "Template:Somepage", and you want to create page "foo" with it prefilled-in with that, you need to present a create page link:
- [{{fullurle:foo|action=edit&preload=Template:Somepage}} create foo]
- If you can figure out which system message is used however users normally get to a create page link (perhaps searchmenu-new) you could create that kind of link automatically for whatever name they searched for. Clump (talk) 22:39, 23 February 2018 (UTC)
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki V1.30.0
PHP version 5.6.33-0+deb8u1 (apache2handler)
MySQL version 5.5.59-0+deb8u1-log
URL: https://wiki.iceh.eu/index.php/Main_Page
Hey, I have a wiki for own purposes running on a raspberry pi. It used to work without a problem, but now I'm having trouble opening my
Ansible - Configuration page https://wiki.iceh.eu/index.php/Configuration All other pages work. I tried to run php update.php just in case.
It seems like my MySQL crashes (restarts) when I try to access Configuration. I get the following error:
MediaWiki internal error.
Original exception: [e8c603824f627c5fc7fbdf09] /index.php/Configuration Wikimedia\Rdbms\DBQueryError from line 1149 of /usr/share/mediawiki-1.30.0/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT old_text,old_flags FROM `text` WHERE old_id = '41' LIMIT 1
Function: Revision::fetchText
Error: 2002 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)
Backtrace:
#0 /usr/share/mediawiki-1.30.0/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /usr/share/mediawiki-1.30.0/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
#2 /usr/share/mediawiki-1.30.0/includes/libs/rdbms/database/Database.php(1411): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
#3 /usr/share/mediawiki-1.30.0/includes/Revision.php(1672): Wikimedia\Rdbms\Database->selectRow(string, array, array, string, array)
#4 /usr/share/mediawiki-1.30.0/includes/Revision.php(1637): Revision->fetchText()
#5 [internal function]: Revision->{closure}(boolean, integer, array, NULL)
#6 /usr/share/mediawiki-1.30.0/includes/libs/objectcache/WANObjectCache.php(1012): call_user_func_array(Closure, array)
#7 /usr/share/mediawiki-1.30.0/includes/libs/objectcache/WANObjectCache.php(914): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
#8 /usr/share/mediawiki-1.30.0/includes/Revision.php(1640): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#9 /usr/share/mediawiki-1.30.0/includes/Revision.php(1084): Revision->loadText()
#10 /usr/share/mediawiki-1.30.0/includes/Revision.php(1101): Revision->getSerializedData()
#11 /usr/share/mediawiki-1.30.0/includes/Revision.php(1071): Revision->getContentInternal()
#12 /usr/share/mediawiki-1.30.0/includes/page/Article.php(362): Revision->getContent(integer, User)
#13 /usr/share/mediawiki-1.30.0/includes/page/Article.php(552): Article->fetchContentObject()
#14 /usr/share/mediawiki-1.30.0/includes/actions/ViewAction.php(68): Article->view()
#15 /usr/share/mediawiki-1.30.0/includes/MediaWiki.php(499): ViewAction->show()
#16 /usr/share/mediawiki-1.30.0/includes/MediaWiki.php(293): MediaWiki->performAction(Article, Title)
#17 /usr/share/mediawiki-1.30.0/includes/MediaWiki.php(851): MediaWiki->performRequest()
#18 /usr/share/mediawiki-1.30.0/includes/MediaWiki.php(523): MediaWiki->main()
#19 /usr/share/mediawiki-1.30.0/index.php(43): MediaWiki->run()
#20 {main}
Exception caught inside exception handler: [e8c603824f627c5fc7fbdf09] /index.php/Configuration Wikimedia\Rdbms\DBConnectionError from line 800 of /usr/share/mediawiki-1.30.0/includes/libs/rdbms/database/Database.php: Cannot access the database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (localhost)
Backtrace:
#0 /usr/share/mediawiki-1.30.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1028): Wikimedia\Rdbms\Database->reportConnectionError(string)
#1 /usr/share/mediawiki-1.30.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(670): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#2 /usr/share/mediawiki-1.30.0/includes/GlobalFunctions.php(2858): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /usr/share/mediawiki-1.30.0/includes/cache/localisation/LCStoreDB.php(45): wfGetDB(integer)
#4 /usr/share/mediawiki-1.30.0/includes/cache/localisation/LocalisationCache.php(392): LCStoreDB->get(string, string)
#5 /usr/share/mediawiki-1.30.0/includes/cache/localisation/LocalisationCache.php(291): LocalisationCache->loadSubitem(string, string, string)
#6 /usr/share/mediawiki-1.30.0/languages/Language.php(2587): LocalisationCache->getSubitem(string, string, string)
#7 /usr/share/mediawiki-1.30.0/includes/cache/MessageCache.php(933): Language->getMessage(string)
#8 /usr/share/mediawiki-1.30.0/includes/cache/MessageCache.php(888): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#9 /usr/share/mediawiki-1.30.0/includes/cache/MessageCache.php(829): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#10 /usr/share/mediawiki-1.30.0/includes/Message.php(1275): MessageCache->get(string, boolean, LanguageEn)
#11 /usr/share/mediawiki-1.30.0/includes/Message.php(842): Message->fetchMessage()
#12 /usr/share/mediawiki-1.30.0/includes/Message.php(971): Message->toString(string)
#13 /usr/share/mediawiki-1.30.0/includes/exception/MWExceptionRenderer.php(131): Message->escaped()
#14 /usr/share/mediawiki-1.30.0/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#15 /usr/share/mediawiki-1.30.0/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#16 /usr/share/mediawiki-1.30.0/includes/exception/MWExceptionHandler.php(130): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#17 /usr/share/mediawiki-1.30.0/includes/MediaWiki.php(550): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
#18 /usr/share/mediawiki-1.30.0/index.php(43): MediaWiki->run()
#19 {main} Strela9K (talk) 11:50, 24 February 2018 (UTC)
- Look at the mysql error logs in case it contains hints about what can be happening and to confirm if mysql is crashing on that page. Ciencia Al Poder (talk) 20:28, 25 February 2018 (UTC)
- Thank you for the reply. I've checked mysql.log already. It seems like something is wrong with the table "text". Every time a query tries to read anything from it. Mysql service restarts.
- I've also tried doing mysqlcheck... which again crashes the process when it tries to read from that table. Not sure what I should do... or if I can actually do anything about it. Strela9K (talk) 16:11, 26 February 2018 (UTC)
- You should ask on a forum specific to mysql, there would be probably more expert people able to help in this situation.
- A quick search gave me this result: https://www.percona.com/forums/questions-discussions/mysql-and-percona-server/11217-corrupted-innodb-table-crashing-mysql-instance-how-to-recover-table
- I think the easier option is recover from a backup (if it's really recent) Ciencia Al Poder (talk) 16:34, 26 February 2018 (UTC)
- Thank you for you time and finding! Much appreciated. Strela9K (talk) 21:31, 26 February 2018 (UTC)
Deprecated code in /includes/MagicWord.php
MediaWiki V1.30.0
PHP version 7.2.2 (apache2handler)
MySQL 5.7.21
There seems to be deprecated code in /includes/MagicWord.php line 206:
while ( list( $key, $value ) = each( $m ) ) { ...
Maybe replace with:
foreach ($m as $key=>$value) { רועי (talk) 13:39, 24 February 2018 (UTC)
- The each() function of PHP is deprecated. Maybe you can check https://github.com/wikimedia/mediawiki to see, if this has already been fixed in the latest version! 2001:16B8:10F2:3400:8CCF:3FDD:68E3:7673 (talk) 15:07, 24 February 2018 (UTC)
- I cannot find this issue in master and also not in the 1.30 branch.
- Also version 1.29 does '''not''' have an each() in that file. Are you sure you have updated your installation properly? Are you maybe still using an old version of that file? 2001:16B8:10F2:3400:A150:F8BA:2A8F:73AD (talk) 21:51, 24 February 2018 (UTC)
- Sorry, it's in /includes/MagicWordArray.php line 206.
- I just downloaded the 1.30 again (https://releases.wikimedia.org/mediawiki/1.30/mediawiki-1.30.0.tar.gz) and confirmed it's in the source.
- Also, confirmed it's fixed in the master on github. רועי (talk) 22:33, 24 February 2018 (UTC)
- MediaWiki 1.30 is not fully compatible with PHP 7.2. Note however that we a re not speaking about a broken functionality, but only about a deprecation warning.
- MediaWiki 1.31, which will be created from latest master, will be compatible with PHP 7.2 in that regard. 2001:16B8:10F2:3400:F47B:A496:EC8F:C566 (talk) 23:20, 24 February 2018 (UTC)
- Here is a patch for this issue - which only is part of MediaWiki 1.31: https://phabricator.wikimedia.org/T174354
- MediaWiki 1.30 officially is not compatible with PHP 7.2, but you can apply the patch manually to get MW 1.30 working with PHP 7.2 as well. 2001:16B8:10ED:5800:4417:8535:D972:3EF8 (talk) 14:09, 4 June 2018 (UTC)
Generate LocalSettings.php from an existing MW database (without removing it)
- Hello, I'm checking install.php maintenance script, and I'm wondering if there is any parameter/option/additional maintenance script via command-line for generating a LocalSettings.php file from an existing DB installation.
- Thanks! Toniher (talk) 15:25, 24 February 2018 (UTC)
- In general, the configuration is not stored in the database. So, you can't generate a LocalSettings.php from an existing DB installation. Of course, you can also develop the corresponding extension to meet your needs. 星耀晨曦 (talk) 18:33, 24 February 2018 (UTC)
- I am not sure I understand: An existing installation will already have a LocalSettings.php file. So there is no need to recreate one - you can just copy it!
- What do you want to achieve? 2001:16B8:10F2:3400:8CCF:3FDD:68E3:7673 (talk) 15:35, 24 February 2018 (UTC)
- In my case I'm working with Docker containers and LocalSettings.php is kept in the image/container and not mounted. If rebuilt a new image / run a new container, I want to generate a new LocalSettings.php mapping a DB that I'm not creating from scratch. I would dare to say what I am asking is actually possible via web interface. I'm wondering whether could be possible via CLI... Toniher (talk) 16:21, 24 February 2018 (UTC)
- I don't know docker enough: What are the differences between all the different images/containers, which you later can create?
- Are they all completely separate in a way that they could e.g. always use the same DB name for example?
- And apart from the database credentials: Should they be identically configured?
- (Reading what you want to achieve, I think this must be kind of a standard usecase for docker...) 2001:16B8:10F2:3400:A150:F8BA:2A8F:73AD (talk) 21:34, 24 February 2018 (UTC)
why has my edit been removed?
Hi there, I posted an edit yesterday, citing many references (newspaper / BBC sources) but it was removed by another editor. I'm not quite sure how to amend the page I am trying to. I need to put a musicians's work in timeline order - but it seems not to be allowing me. I'd love to hear any thoughts on what the problem may be. Maybejulesishome (talk) 15:28, 24 February 2018 (UTC)
- You are speaking about en:John Grant (musician). The page history shows you the edit history. The user who reverted your changes wrote: "unsourced addition".
- He obviously missed sources for what you added. 2001:16B8:10F2:3400:8CCF:3FDD:68E3:7673 (talk) 15:32, 24 February 2018 (UTC)
WM Api, Can't create CSRF Token... Returns Blank
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am having a difficult time figuring out how to correctly implement this api. Any help would be super appreciated!!
I am using CURL in PHP., Getting this Result(N0 CSRF token)
EDIT:
I never found a way around this, but I only needed to add a user account, so I found a workaround that allowed me to include the createAndPromote.php file without using shell_exec.
The maintenance.php file has a function called setup. This function checks to see if the request is from the command line, or if it's from the server. If it's from the server, typically it will give you an error and exit stating you can only run this script from the command line.
In my case, my hosting provider does not allow me access to the command line version of PHP.exe through the shell_exec function, so I am forced to include the file instead.
That being said, normally I would have gotten an error for having the $_SERVER array populated. So instead of un-setting the array, I defined a constant that specifies to skip the check that sees if the $_SERVER variable is set, that way it only skips when the __SKIP_CHECK__ constant is set.
Next, I had to simulate command line arguments. This was simple, I did this by setting the following array variables(in the script that was including createandpromote.php):
In all, I placed this code in my "calling file":
define('__SKIP_CHECK__', true);
$_GET = $_POST;
$path = realpath('../wiki/maintenance/createAndPromote.php');
$argv[0] = $path;
$argv[1] = $username;
$argv[2] = $password;
include($path);
$wikiSuccess = false;
if(defined('__ADD_RESULT__'))
{
$wikiSuccess = true;
}
$result = ["success"=>true, "message"=>"User Created", "title"=>"Success", "wikiSuccess"=>$wikiSuccess];
In the maintenance file, I added the bolded code below:
/**
* Do some sanity checking and basic setup
*/
public function setup() {
global $IP, $wgCommandLineMode, $wgRequestTime;
if(!defined('__SKIP_CHECK__'))
{
# Abort if called from a web server
if ( isset( $_SERVER ) && isset( $_SERVER['REQUEST_METHOD'] ) ) {
$this->error( 'This script must be run from the command line', true );
}
}
Near the end of the file in the createandpromote.php file, I added the below bolded code:
if(defined('__SKIP_CHECK__'))
{
define('__ADD_RESULT__', true);
}
else
{
$this->output( "done.\n" );
}
In conclusion, this works for me because I wanted to automate the process of adding wiki users when I added users to my site and the api was not working for me for some reason. I hope this is helpful to someone who is tearing their hair out for hours trying to find something useful, like I was. Additionally, this could probably be expounded on a bit, in order to include groups, which may be something I look deeper into later, but for now, this solves my problem. Good Luck! Pai1976 (talk) 03:23, 25 February 2018 (UTC)
- Wikimedia Developer Support may be more suitable to ask you this question. 星耀晨曦 (talk) 11:47, 25 February 2018 (UTC)
Brand new installation - can't edit pages
I would like to use MediaWiki for a knowledge-base for my class.
I installed vanilla 1.30 (no extensions) and am running PHP 5.6 and MySQL . Everything went smoothly during install. I can see the main page, I can log in and can get into edit mode on the main and talk pages, and I can even successfully upload files. But whenever I try to save a page, the response times out (ERR_TIMED_OUT) after about 10 seconds. I have tried searching for the issue, but without success. I enabled all the debugging from the manual, including the log file. Tail of the log file looks fine. Any suggestions would be appreciated.
website is at: http://raspberry.rochester.k12.mn.us/w
should also mention - have tried multiple browsers on multiple computers, so not a browser or extension issue.
[DBQuery] wikidb COMMIT /* MWCallableUpdate::doUpdate */
[DBQuery] wikidb SELECT /* JobQueueDB::doGetSiblingQueuesWithJobs */ DISTINCT job_cmd FROM `job` WHERE job_cmd IN ('refreshLinks','deleteLinks','htmlCacheUpdate','sendMail','enotifNotify','fixDoubleRedirect','AssembleUploadChunks','PublishStashedFile','ThumbnailRender','recentChangesUpdate','refreshLinksPrioritized','refreshLinksDynamic','activityUpdateJob','categoryMembershipChange','cdnPurge','enqueue','null')
Request ended normally
[session] Saving all sessions on shutdown
[DBConnection] Closing connection to database 'localhost'.
[DBConnection] Closing connection to database 'localhost'. Rpsjab (talk) 15:12, 25 February 2018 (UTC)
- Have you checked your web-server error log? 星耀晨曦 (talk) 17:09, 25 February 2018 (UTC)
- yes, nothing unusual in the apache log. Rpsjab (talk) 17:33, 25 February 2018 (UTC)
- Are you sure you've carefully checked your debug log? The debug log for mediawiki is very complicated, since load page action or save edit action there will be several requests. Debug information about saving edits is probably not placed at tail of the debug log. You should search
StashEditfrom tail to head and check its context. The context should be similar: - 星耀晨曦 (talk) 21:09, 25 February 2018 (UTC)
[ContentHandler] Created handler for wikitext: WikitextContentHandler User: loading options for user 1 from override cache. EditPage::edit: enter EditPage::importFormData: Passed token check. [DBConnection] Connected to database 0 at '0.0.0.0'. [MessageCache] MessageCache::load: Loading zh... local cache is empty, got from global cache [TitleBlacklist-cache] Updated DB:title_blacklist_entries with 0 entries.User::getBlockedStatus: checking... [SpamBlacklist] Spam blacklist validator: [[User:星耀晨曦/沙盒]] not a local blacklist timestamp: 20180217143541, edittime: 20180217143541 EditPage::internalAttemptSave: getting section '' ConfirmEdit: user group allows skipping captcha ConfirmEdit: no need to show captcha. [StashEdit] Timestamp-based cache hit for key 'DB:prepared-edit:' (age: 2 sec). [StashEdit] AbuseFilter::filterAction: cache hit for 'User:星耀晨曦/沙盒' (key gakuencityDB:abusefilter:check-stash:default:a3bd6483e34e8924bfca427dc299e6c0:v1). [cookie] setcookie: "DBPostEditRevision5181", "saved", "59iwks9e5", "/", "", "1", "1" MediaWiki::preOutputCommit: primary transaction round committed WikiPage::doEditUpdates: Using prepared edit... [caches] parser: MemcachedPhpBagOStuff
- I will check and report back. Thank you. Rpsjab (talk) 22:48, 25 February 2018 (UTC)
External link opening in a new tab in the browser
How can I have an external link open a new tab in the browser? Indrik2 (talk) 18:28, 25 February 2018 (UTC)
Define localization translation for namspace via mediawiki namespace
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I define a new customized namespace in my wiki. Can I define a localization translation for namspace via mediawiki namespace? 星耀晨曦 (talk) 21:15, 25 February 2018 (UTC)
- Unless the customized namespace is in an extension, I think most you can do is create aliases for it, but the namespace will always be displayed in it's canonical form. Since one wiki has only one default language it wouldn't make sense otherwise. Ciencia Al Poder (talk) 10:24, 27 February 2018 (UTC)
- zh:Wikipedia:互助客栈/条目探讨 this kind title of pages, how to define it? The real namespace looks like still Wikipedia, but prefix of the title display "维基百科" and the drop-down meun contain "维基百科" in zh:Special:前缀索引 and other special page. Define namespace alias can not do this. 星耀晨曦 (talk) 10:54, 27 February 2018 (UTC)
- Set the chinese name as the namespace name, and the english as a namespace alias. The english name would redirect to the chinese one. Ciencia Al Poder (talk) 21:09, 28 February 2018 (UTC)
- But in this way, URL will shows a Chinese prefix not a English prefix, it may not be good for users who use some browsers that URL transcoding is not supported. May not be achieved by modifying LocalSettings.php: 1.custom namespace 2. and can define different name on all pages 3. and URL prefix still English. 星耀晨曦 (talk) 12:16, 1 March 2018 (UTC)
- Do the other way round? English for namespace name, chinese for alias. Still, if browser doesn't support chinese characters, and page titles also have chinese characters, the namespace would probably be not the great problem...
- Still, if you want to change only the name displayed in the page tab (subject and talk), try editing MediaWiki:Nstab-<namespace name>, like MediaWiki:Nstab-help Ciencia Al Poder (talk) 21:25, 1 March 2018 (UTC)
- This is a good idea. I also find the way that I want, editing MediaWiki:Conversion-nsX (where X is a namespace code) can customize the page title prefix of a namespace. 星耀晨曦 (talk) 13:53, 2 March 2018 (UTC)
Do not send notification email
Hello,
I have a wikimedia 1.30 installed on a server with PHP 7.0
I've done several tests sending email notifications and not everything works:
When I ask you to send me an email to retrieve the password, it works correctly, but when I ask to send me emails when there are changes in the pages of the wiki, don't send me anything.
I have configured the localsettings.php with
$ wgEnotifUserTalk = true;
$ wgEnotifWatchlist = true;
$ wgEmailAuthentication = true;
I do not understand why the wiki does not send notifications to users who have the page in the tracking list, if everything is configured. Any ideas?
Thank you 88.19.242.96 (talk) 13:59, 26 February 2018 (UTC)
- Hi, is it:
- $wgEnotifUserTalk = true;
- $wgEnotifWatchlist = true;
- $wgEmailAuthentication = true;
- You have not spaces between $ and w? Kizule (talk) 14:13, 26 February 2018 (UTC)
- Yes, that's correct.
- I copied it wrong when doing copy / paste
- $wgEnotifUserTalk = true;
- $wgEnotifWatchlist = true;
- $wgEmailAuthentication = true; 88.19.242.96 (talk) 14:28, 26 February 2018 (UTC)
- Any idea why we don't receive emails to notify page changes? 88.19.242.96 (talk) 17:16, 26 February 2018 (UTC)
- Email notifications are handled in the Job queue. Check on that page to see if you have some problems with it. Ciencia Al Poder (talk) 10:21, 27 February 2018 (UTC)
Migrating 1.21.2 trusty to xenial VM
Hi! I'm migrating 1.21.2 to a newer one on a xenial VM. Since I don't wanna install php < 5.6 I will install mediawiki 1.23 with php 5.6 and mysql 5.5.41 (same version as in the VM running 1.21.2) .
Do you know if it will work? or should I migrate with same version (using php 5.3) and after everything works okay, upgrading php/mediawiki?
I think that it will be better mediawiki 1.23 with php 5.6 (I'm using nginx) It's the first time I'm doing this. I'm familiar with the process of migrating mediawiki from one VM to another but I used latest versions for this.
Thanks! 201.216.192.73 (talk) 20:17, 26 February 2018 (UTC)
- First, I would not use MediaWiki 1.23, because it already is really old. It has known security issues, which will not be fixed. Instead, you should pick MediaWiki 1.27 or MediaWiki 1.30. See Version_lifecycle#Versions_and_their_end-of-life for more information on the best version choice.
- Basically, you can change all in one go. E.g. MediaWiki 1.21 will most likely not work correctly on PHP 5.6. But together with the move to PHP 5.6, you can also upgrade MediaWiki to e.g. MediaWiki 1.27. That is the latest LTS version, which will still be supported for some time. Do not forget to update the database and to also update the extensions, if you are using any. But then, your new version of MediaWiki should be working fine.
- We have Upgrade for more information concerning upgrades! 2001:16B8:1070:1200:2CD2:5EE1:398A:49CB (talk) 20:36, 26 February 2018 (UTC)
- Thanks! I will give it a try with the latest version 1.30, mysql 5.7 and php 7, since I will have to do it anyways in a few months, maybe it works. It's an internal wiki. Will post the results.
- Regards! 201.216.192.73 (talk) 13:53, 27 February 2018 (UTC)
- Hi, I dumped the DB today but I can't access my homepage/index anymore. There was a slightly change in the hostname/vhost but the wiki files are the same.
- What could be possibly going on?
- Thanks! 201.216.192.73 (talk) 18:13, 14 March 2018 (UTC)
- Have you followed Upgrade?
- Have you replaced the files of the old MediaWiki version with the ones of the new version? And have you run update.php?
- What does "cannot access the homepage" look like? If this is a server error, then it should be in the server log. If it is a PHP error, it should be in the error log of PHP... 2001:16B8:1075:A700:1141:C0FD:CECF:8EA9 (talk) 21:29, 14 March 2018 (UTC)
After updating from 1.25 to 1.3 I can't connect
Hi,
I've just updated MediaWiki 1.25 to 1.3, and PHP 5.3 to 7.0. After I copied LocalSettings.php from the old directory, ran the update.php in maintenance directory (came back with "Your composer.lock file is up to date with current dependencies!"), and linked MediaWiki-1.3... as mediawiki I cannot see the wiki page, instead all I see is "unable to connect. Firefox can’t establish a connection to the server"
It does not seem to be a problem with connection or firewall, so I'm assuming I messed up somewhere with the update. Any help appreciated 130.166.51.156 (talk) 21:02, 26 February 2018 (UTC)
- In your LocalSettings.php, what's your $wgServer set to? AhmadF.Cheema (talk) 05:34, 27 February 2018 (UTC)
- $wgServer is set to the url through which I used to access the mediawiki online. I dind't change it after updating from 1.25 to 1.3 130.166.51.156 (talk) 00:20, 28 February 2018 (UTC)
- Does the Console tab in your F12 browser developer tools or your server logs show any error? AhmadF.Cheema (talk) 00:41, 28 February 2018 (UTC)
- The F12 console points to class="illustrated connectionFailure neterror" in <body> of the page. The error_log on the Apache server hosting the wiki shows that the server shut down on 2/22, but there are no errors later and the server is currently up and running 130.166.51.156 (talk) 01:12, 28 February 2018 (UTC)
- "connectionFailure neterror" - by-the-way, have you tried opening your site from a browser other than Firefox? AhmadF.Cheema (talk) 02:04, 28 February 2018 (UTC)
- Chrome and Edge are saying that the site can't be reached 130.166.51.156 (talk) 17:40, 28 February 2018 (UTC)
- At this point I suspect a broken SSL certificate, as I see no other explanation 130.166.51.156 (talk) 20:49, 28 February 2018 (UTC)
Global preferences available for testing
Please help translate to your language.
Greetings,
Global preferences, a highly request feature in the 2016 Community Wishlist, is available for testing.
- Read over the help page, it is brief and has screenshots
- Login or register an account on Beta English Wikipedia
- Visit Global Preferences and try enabling and disabling some settings
- Visit some other language and project test wikis such as English Wikivoyage, the Hebrew Wikipedia and test the settings
- Report your findings, experience, bugs, and other observations
Once the team has feedback on design issues, bugs, and other things that might need worked out, the problems will be addressed and global preferences will be sent to the wikis.
Please let me know if you have any questions. Thanks! --Keegan (WMF) (talk) 00:24, 27 February 2018 (UTC)
MediaWiki message delivery (talk) 00:24, 27 February 2018 (UTC)
- Könnten Sie mir bitte weiterhelfen habe alles ausprobiert aber irgendwie komme ich da nicht weiter Nickel1977 (talk) 12:56, 7 March 2018 (UTC)
Edit/Topic Control ?
Hi Is it possible to control a topic before Somebody create it? If Somebody edit a topic in mediawiki, First an Admin Must confirm it and after that it is editet? 141.91.210.194 (talk) 08:59, 27 February 2018 (UTC)
- I don't know what a "topic" is. If you refer to MediaWiki pages, maybe see Extension:FlaggedRevs? Malyacko (talk) 11:21, 27 February 2018 (UTC)
DNA Kit not recognized [MH] and email swap
Hi GED match does not find my kit , i had to change my mail adres in januar and i also received the test in end jan.
nr is MH-N4K33D , what can i do to get it fixed? 86.95.14.107 (talk) 11:39, 27 February 2018 (UTC)
- Wrong support forum. AhmadF.Cheema (talk) 17:01, 27 February 2018 (UTC)
Upload warning
Is there a way to disable upload warning, especially when trying to upload a file that's already been deleted, so that you can straight away upload that file without having to confirm your choice? 2001:16B8:2B91:4100:30DA:30C1:6652:E685 (talk) 16:57, 27 February 2018 (UTC)
- There is an "Ignore any warnings" checkbox near the bottom of Special:Upload. Maybe that's enough? AhmadF.Cheema (talk) 00:53, 28 February 2018 (UTC)
When I have tried to add links to the page on Additional links and references, but when I do it turns the page into a case study Category
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
when i add an external link to the page, but when i do it turns the page into a case study.
i am using
PHP = 5.3.9
MYSQL = 5.5
Media wiki = 1.27.1 Civicasunil (talk) 06:40, 28 February 2018 (UTC)
- Couldn't understand what you mean by "case study". In case you were using a translation service for your question here, try posting the question in your native language, maybe someone here will understand it. AhmadF.Cheema (talk) 07:30, 28 February 2018 (UTC)
- Actually when i add an external link in a page then save it the page turns into a case study.
- Like This case study is pending approval by administrator.
- do you have any idea for that why turns into a case study.
- Or Any of the page in Media wiki is a simple page or a case study? Civicasunil (talk) 07:44, 28 February 2018 (UTC)
- Means When i add an external link to any of the page then save it the page returns into a case study rather then a normal page..
- Like This case study is pending approval by administrator.
- do you have any idea for that why turns into a case study. Civicasunil (talk) 07:34, 28 February 2018 (UTC)
- Or Any of the page in Media wiki is a simple page or a case study? Civicasunil (talk) 07:43, 28 February 2018 (UTC)
- These are probably Pending changes. Are you the administrator of this particular Wiki? AhmadF.Cheema (talk) 09:14, 28 February 2018 (UTC)
- Yes this is a Pending Changes and i am the administrator of the page..
- but why the page is turned to the "case study"? Civicasunil (talk) 09:18, 5 March 2018 (UTC)
- Yes this is a Pending Changes and i am the administrator of the page..
- but why the page is turned to the "case study"? Civicasunil (talk) 09:30, 28 February 2018 (UTC)
- The Page is Automatically change it's Category depends on it's category.. Civicasunil (talk) 12:50, 28 February 2018 (UTC)
- As Write in Help:Categories/en
- that Categories, a software feature of MediaWiki, provide automatic indexes that are useful as tables of contents.
- So Every page should transfer it's category depends on the contents.. Civicasunil (talk) 13:19, 28 February 2018 (UTC)
- when "Additional links and references" Form Posted or updated there is some changes in Edit section some contents are missing or some are added in that section... Civicasunil (talk) 09:32, 1 March 2018 (UTC)
- I still don't really understand what you mean "case study" is? In case this is a translated word, try providing the actual word.
- Also, can you provide a link to your Wiki? AhmadF.Cheema (talk) 10:52, 5 March 2018 (UTC)
- "Case study" is a category Civicasunil (talk) 11:16, 5 March 2018 (UTC)
- In the code of that page, are there present the words,
[[Category:Case study]]? - Remove these words to remove the page from the category "Case study".
- What appears to have happened is that the category words were already present in the page you edited, but sometimes it takes some time before the category links get updated. One of the actions that can be taken to immediately update the category links is to edit a page. So when you updated the page the link for category "Case study" updated for the page too. AhmadF.Cheema (talk) 14:09, 5 March 2018 (UTC)
- words present under the ask {{#ask: [[Category:Case study]] |?Location |?Case study|format=map }} in location in map of case study.
- Basically when Update additional link and references form then some blanks contents are automatically added in that page and then page transfer to the case study so that's the error in that page..
- So what's the solution for that.
- Thanks For Replying @AhmadF.Cheema Civicasunil (talk) 07:03, 6 March 2018 (UTC)
index.php is loaded like usual static file.
I want to try mediawiki on a local machine first. I use ubuntu 16, php 7.0, nginx, php-fpm and MySQL. When I navigate to http://localhost:8000/index, I get this:
MediaWiki 1.30.0
LocalSettings.php not found.
Please set up the wiki first.
When I click 'set up the wiki', MediaWiki suggests to load index.php file. I decided to test fastCGI settings and added file 'test.php' with one line '<?php var_export($_SERVER)?>' in MediaWiki root directory.
When I navigate to http://localhost:8000/test.php, I get correct output. Thank u for attention. This is nginx server section:
server {
listen 8000;
root /home/andrey/mediawiki/mediawiki-1.30.0;
client_max_body_size 5m;
client_body_timeout 60;
location / {
# try_files $uri;
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?title=$1&$args;
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.0-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/mediawiki/local;
autoindex on;
}
} Apaokin (talk) 13:26, 28 February 2018 (UTC)
Issue installing.
I'm getting the following during a fresh install.
- [6f48d7efafff5d37da9de323] /mw-config/index.php?page=Install DBQueryError from line 1054 of D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: CREATE TABLE `ral1_searchindex` ( si_page int unsigned NOT NULL, si_title varchar(255) NOT NULL default '', si_text mediumtext NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 Function: Database::sourceFile( D:\home\site\wwwroot/maintenance/tables.sql ) Error: 1030 Got error 1 from storage engine (redarrowwikipoc-mysqldbserver.mysql.database.azure.com) Backtrace: #0 D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php(912): Database->reportQueryError(string, integer, string, string, boolean) #1 D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php(3150): Database->query(string, string) #2 D:\home\site\wwwroot\includes\libs\rdbms\database\Database.php(3099): Database->sourceStream(unknown type, NULL, NULL, string, NULL) #3 D:\home\site\wwwroot\includes\installer\DatabaseInstaller.php(195): Database->sourceFile(string) #4 D:\home\site\wwwroot\includes\installer\DatabaseInstaller.php(218): DatabaseInstaller->stepApplySourceFile(string, string, boolean) #5 D:\home\site\wwwroot\includes\installer\Installer.php(1515): DatabaseInstaller->createTables(MysqlInstaller) #6 D:\home\site\wwwroot\includes\installer\WebInstallerInstall.php(44): Installer->performInstallation(array, array) #7 D:\home\site\wwwroot\includes\installer\WebInstaller.php(279): WebInstallerInstall->execute() #8 D:\home\site\wwwroot\mw-config\index.php(81): WebInstaller->execute(array) #9 D:\home\site\wwwroot\mw-config\index.php(39): wfInstallerMain() #10 {main} 64.125.134.5 (talk) 15:36, 28 February 2018 (UTC)
- Did you run Update.php? AhmadF.Cheema (talk) 17:18, 28 February 2018 (UTC)
- The OP is using the web installer, which fails, because it cannot create the searchindex table.
- Maybe running update.php in fact helps.
- Should it not help, the error you have to solve is this one:
- > Error: 1030 Got error 1 from storage engine 2001:16B8:1014:A00:B189:BA35:5499:A15D (talk) 19:00, 28 February 2018 (UTC)
- Well, if it's a fresh install, update.php won't help because the database hasn't been setup and there's no LocalSettings.php yet :)
- The error happens because the MyISAM storage engine is not supported on your MySQL installation. You should enable MyISAM in your mysql database or, if that's not possible, you may try to patch the tables.sql script to change MyISAM with InnoDB (see phab:T107875#3334868) Ciencia Al Poder (talk) 21:23, 28 February 2018 (UTC)
- > (...) update.php won't help (...)
- Thinking about it: Yes, that is obvious. The problem with the missing storage engine will not go away by trying to execute the same MySQL statement trough a different way.
- Enabling MyISAM is the easiest solution, I think.
- And we should btw update MediaWiki to work without the searchindex table. In current versions of MySQL we don't need it anymore. 2001:16B8:1014:A00:456B:9342:222C:C09 (talk) 21:42, 28 February 2018 (UTC)
Image
I want to post a image in an article that I'm writing. How do I do that? Also, the photo was not taken by my self although, I have bought the image from the photographer and I'm free too use it. Do I need to write this somewhere when i upload it and in that case how? One other question too. The metadata that comes up on the pictures site, it says the original photographers name. How do I get rid of that? Nimbo.lo (talk) 18:52, 28 February 2018 (UTC)
- See Help:Images for how to embed an image.
- If you need to write this somewhere when you upload it depends on the rules of the website (that runs a MediaWiki installation) which you refer to.
- To edit metadata in image files, you'll need to to use an image manipulation application. Malyacko (talk) 13:25, 1 March 2018 (UTC)
- Regarding metadata removal, if you are on Windows, then you can remove the information using the "Remove Properties and Personal Information" option. The option is available under the "Details" tab inside the image's properties. AhmadF.Cheema (talk) 15:10, 1 March 2018 (UTC)
- Ok, thank you! Nimbo.lo (talk) 15:12, 1 March 2018 (UTC)
User password change are not working
When users are trying to change their passwords using Special:ChangeCredentials, it doesn't make any changes. This is the case for all users. When you click on the Change Credentials button on the form, it doesn't do anything. Is there some setup or user right that I am missing?
Mediawiki 1.28.0
PHP 5.5.21
MySQL 5.1.73 Rlb77c (talk) 19:01, 28 February 2018 (UTC)
- Not sure if Manual:How to debug will help here... Also, does the problem still appear in a supported version of MediaWiki? 1.28.0 is an insecure old version. Malyacko (talk) 13:23, 1 March 2018 (UTC)
Customize or Remove "Page Information" Box
Ideally, I'd like to be able to customize the Page Information box at the bottom of the page. I'd like to be able to customize the button text and have it link to something other than the page owner. I've seen many pages on mediawiki that don't show the box at all, but I can't figure out the code that's removing it.
Any help would be appreciated. SamWestover (talk) 19:03, 28 February 2018 (UTC)
- Could you please link to a page that contains that "page information box", and what button are you referring to? Ciencia Al Poder (talk) 21:16, 28 February 2018 (UTC)
Incorrect display for Edit & Not publishing changes
Hi I added 7 paragraphs to this title:
https://en.wikipedia.org/w/index.php?title=West_Orange,_New_Jersey&action=edit§ion=1
I only changed one or two words from the original, but added a significant amount.
First it would not Publish the changes. Then I went to Review Changes, and it had crossed out all of the original post (Red) and the red portions were not located in the right places amidst the added writing. However, most of that should just remain as it was and simply be moved down. Psmankikar (talk) 19:31, 28 February 2018 (UTC)