Project:Support desk/Flow/2016/11
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. |
LDAP authentication on 1.28
RESOLVED | |
Workaround ( $wgDisableAuthManager = "true"; ) for new auth scheme applied rather than a proper fix. |
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 have been using Extension:LDAP Authentication for quite a while but have had to stop upgrading at around 1.27-wmf.16 because the auth mechanism has changed a lot. Every now and then I poke Google and the mediawiki sites directly but it looks like that plugin is unlikely to move on for quite a while and I can't seem to find a replacement.
My real motivation is to get this lot working for my own corporate wiki and then documented here as an enterprise friendly way of getting the latest stuff safely. I have a scheme that is languishing here: User:Gerdesj/GIT Install that I was nearly ready to finally clean up and move into the generally available docs. It was working fine for around 18 months and so I considered it ready to go and then the new auth scheme appeared and I was reverting VM snapshots.
Could someone please point me in the direction of how to get LDAP (OK AD *hiss*) authentication working again under the new scheme. Any pointers are welcome. Gerdesj (talk) 01:34, 1 November 2016 (UTC)
- Could someone point me and this: Project:Support desk/Flow/2016/11#h-How_to_write_login_function-2016-11-01T08:31:00.000Z in the direction of some howtos that goes a bit beyond what is in the MW wiki with regards the new auth/auth mechanism. Chan15tw is capable of writing PHP code but I am not - I'm just a simple sysadmin 8)
- I'd like to use REMOTE_USER from the web server to create or maintain accounts, Chan15tw could do with a hand with their plugin.
- Cheers
- Jon Gerdesj (talk) 23:32, 3 November 2016 (UTC)
- I found 2 extensions for handling this:
- https://github.com/tentwentyfour/remoteauth-ng
- https://github.com/noris-network/mediawiki-extensions-sessionprovider-remoteuser
- Both of them worked for me. The second one show how to set the email for a new user that is auto-created.
- I read over the docs for the new auth mechanism:
- Manual:SessionManager and AuthManager/Updating tips
- a few times, and still couldn't figure out how to roll my own. Berbo (talk) 16:26, 4 November 2016 (UTC)
- Neither of those Github projects worked for me properly and lacking PHP skills I couldn't fix it. Both would authenticate a user but left them as not logged in.
- However, after a fair amount of effort (I have the luxury of a VM clone to play with) I discovered $wgDisableAuthManager = "true"; which enables AutoAuthSetup(); to work again.
- This is not a real fix but papers over the problem nicely, so I can continue updating our internal wiki software - tested on 1.29.0-wmf.4 Gerdesj (talk) 10:10, 2 December 2016 (UTC)
How to write login function
version 1.26
I have my own oauth2 server, so I want to write a plugin myself, everything is done except login, this is my code
private function loginProcess(array $user = []) { $username = $user['user_name']; $email = $user['user_email']; $user = User::newFromName($username, 'creatable'); $user->setRealName($username); $user->setEmail($email); $user->load(); if (!($user instanceof User && $user->getId())) { $user->addToDatabase(); } $user->setToken(); $user->setCookies(); $this->getContext()->setUser($user); $user->saveSettings(); global $wgUser; $wgUser = $user; $sessionUser = User::newFromSession($this->getRequest()); $sessionUser->load(); global $wgServer; global $wgOut; $wgOut->redirect($wgServer); }
And I set the reading permission in LocalSetting.php
$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['user']['read'] = true;
But It logout very fast, my server session lifetime is 24 hours, how to keep it login. Chan15tw (talk) 08:31, 1 November 2016 (UTC)
Scribunto: where do I place modules?
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 building a Wiki on my computer and I would like to use Template:Infobox person. I have uploaded the template and also all dependencies it wants. Now it says the module "Check for unknown parameters" does not exist. I found the module on www.wikipedia.org and tried to export/import it but I still get the same error. Where should I place the module and how?
If this question doesn't belong here or there is a better forum for it I would be pleased to hear it. Also if there is documentation explaining these things I would be thankful for the information. I have been wrestling with this for a couple of weeks and feel really stuck. Akhbar zeb (talk) 12:52, 1 November 2016 (UTC)
- Have you already seen this? Manual:Importing Wikipedia infoboxes tutorial
- Sometimes the automatic import/export happens to incorrectly import one or two templates while most other templates get imported successfully. You can try copying and pasting the source code for W:Module:Check for unknown parameters, if your Wiki's instance of this module is empty. AhmadF.Cheema (talk) 18:09, 1 November 2016 (UTC)
- Thank you very much for your help. Through it i found the solution. Akhbar zeb (talk) 13:18, 2 November 2016 (UTC)
Documentation string: Translations:API:Main page/43
Hi, there seems to be an issue in the documentation, relating to string Translations:API:Main page/43/en.
It contains a parameter, $query, used in the form [[$query]] (exactly like this, without any text), but displays as a link with the text: "extensive documentation of its own". This text is not in the translatable string itself, I cannot find it available for translation anywhere. Using [[$query|foreign text]] doesn't solve the issue, since the text in English still appears before the foreign text. Hamilton Abreu (talk) 16:01, 1 November 2016 (UTC)
- I've updated it so the link text is translatable. A translation admin needs to approve my edit, though Ciencia Al Poder (talk) 18:27, 1 November 2016 (UTC)
Wikipedia for Blackberry 10
Hi., I am a Blackberry 10 user and its the only Platform I love to hold and would end up using. I was using WIKIPEDIA FOR BLACKBERRY 10 app and it was very useful to me. But I now after a wipe I lost the app and couldn't find in the Blackberry World. Please Support Blackberry Platform or give a link to Download the .bar file. Hoping for a favour. Thank you. 49.207.191.223 (talk) 18:39, 1 November 2016 (UTC)
- This app obviously used to be here: https://appworld.blackberry.com/webstore/content/47596888
- However, the website now says the page would no longer be found. According to this thread the developers stopped supporting Blackberry.
- If you still have an old backup you obviously can restore the app from there. Or you ask one of the forum members - some of them obviously can provide you the bar file. 87.123.27.18 (talk) 19:59, 1 November 2016 (UTC)
Hiding ads in skin for certain user groups
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, everyone. Logged-in users on Bulbapedia (http://bulbapedia.bulbagarden.net/wiki/Main_Page) do not see ads, only anonymous do. I am assuming this is a modification to the skin, so I would like to know what edits to I need to do the skins (or maybe in some other places) to display ads only for certain user groups? I tried contacting the Editor in Chief there, but I got no response and it's been well over some time since I sent the e-mail. Would anyone please help me? 5.2.193.201 (talk) 08:04, 2 November 2016 (UTC)
- Well, skins in general do not have embedded ads. Maybe you have modified a skin to show ads? Or are you using an extension? Ciencia Al Poder (talk) 11:50, 2 November 2016 (UTC)
- Yes. My skins are modified to show ads (basically they have the ad code from google adsense inserted into them). I am sorry for overlooking this detail. And I am thinking they (Bulbapedia) did the same to display ads. So, my question is, what do I need to insert in order to have the ads hidden for certain user groups? Or to have them displayed for certain groups? 5.2.193.201 (talk) 13:42, 2 November 2016 (UTC)
- You can add CSS on the pages mentioned on Manual:Interface/Stylesheets. That way you can e.g. hide elements for certain user groups and/or display them for others. 87.123.27.18 (talk) 14:01, 2 November 2016 (UTC)
- All the ads (in the skin) are marked with <div class="ad">. Thus, I would need to use
.page-title {
display: none;
}- Right? What other elements do I need to insert to hide it for a specific user group (i.e. how do I mark user groups)? Are there other elements that I need to use? 5.2.193.201 (talk) 15:32, 2 November 2016 (UTC)
- Sorry, I meant to say .ad, not .page-title. 5.2.193.201 (talk) 15:33, 2 November 2016 (UTC)
- Just hiding them with CSS may not be acceptable for the ad provider, since if it uses JavaScript for displaying ads, the ad may be counted as delivered for the provider, but hidden, and it may be a violation of their conditions.
- It would help to know how are they embedded in the skin, because if you're using one of the available hooks, chances are there's a way to get the current user to see if it's a registered user and if it's inside any group. Ciencia Al Poder (talk) 18:33, 2 November 2016 (UTC)
- I don't think it uses any of those hooks. It uses <div class>, <div id>, <script async src>, <ins class>, though I don't think those are hooks (I didn't add the ads myself). I would only like to hide the ads for admins and there's 3 of them. I don't think it can be such a problem for the provider, if 3 users aren't displayed ads. 79.119.116.118 (talk) 18:53, 2 November 2016 (UTC)
- Then add the CSS code to hide them in MediaWiki:Group-sysop.css Ciencia Al Poder (talk) 19:53, 2 November 2016 (UTC)
- Would you please tell me the exact code? 79.119.116.118 (talk) 21:45, 2 November 2016 (UTC)
- You posted it yourself in the fifth message, and corrected in the sixth. Of course, nobody else except you know the exact CSS classes, ID or whatever code is being output in your site surrounding the ads, since you haven't provided code. Ciencia Al Poder (talk) 00:41, 3 November 2016 (UTC)
- Ah, I see, I thought it was more complex. Well, it seems to be working, so thank you a lot! 79.119.116.118 (talk) 07:34, 3 November 2016 (UTC)
Cannot remember, cannot find help
Have a wiki at http://wiki.sst-ltd.co.uk/
How can I add pages that appear in my "content section"
Thank you
PB PByers (talk) 10:12, 2 November 2016 (UTC)
- Edit http://wiki.sst-ltd.co.uk/index.php?title=MediaWiki:Sidebar —Mainframe98 talk 10:27, 2 November 2016 (UTC)
Rebuilding database: more detail? SOLVED
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.
On my wiki, which is only locally accessible, I've been getting this error message:
- A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
- from within function "
SearchMySQL::searchInternal
". Database returned error "145: Table '.\wikidb\searchindex' is marked as crashed and should be repaired (localhost)
". - Manual:Rebuildtextindex.php
1. Could the cause of that be an improper computer shutdown? (There was a power outage recently.)
2. My research here suggests that I need to follow the instructions at https://www.mediawiki.org/wiki/Manual:Rebuildtextindex.php to fix the problem. Is this right?
3. I find the page linked in #2 hard to follow, because it says to do things I don't know how to do. (It's like saying "Rent a car and drive to London" when someone doesn't know how to rent a car or drive.) To learn how to follow its instructions, I've followed its link to https://www.mediawiki.org/wiki/Manual:Maintenance_scripts and looked in the "Running the scripts" section. I have PuTTY and would gladly follow the instructions there—but what do I do about Step 2 ("In PuTTy, under the Host Name (or IP address) enter the IP Address of your web hosting site (Contact your website provider if necessary) and click Open.") when my wiki is just local, on my desktop computer, not hosted on the Web somewhere?
4. If there is an easier way—such as maybe deleting a database from somewhere in the directory of my wiki's files on my computer, which perhaps would force a rebuild of the database—will you tell me what to do?
Thanks for any help. Sorry if I'm too much of a newbie in this area.
Preslethe (talk) 17:22, 2 November 2016 (UTC)
- By the way, I have gone to http://localhost/phpmyadmin/ and clicked the "Databases" tab. There, one of the three items in the table is "wikidb". If I click this, it takes me to a long table, where one item is "searchindex", and for that item the details are as follows: records, ~0<sup>2</sup>; type, View; collation, ---; size, -; overhead, -. Is there something useful I could do here? Preslethe (talk) 17:29, 2 November 2016 (UTC)
- A table crash can have many reasons. One of them is that the computer has been shut down while MySQL had not had the time to shut down itself prior to the PC killing it.
- For the searchindex table, this is not a big problem: Use the usual tools to repair the table, e.g. a REPAIR query in MySQL or in phpmyadmin. In case that does not work or it makes you lose data, this is not a problem: You can TRUNCATE or even delete and recreate the searchindex table.
- Afterwards, use the rebuildtextindex.php maintenance script to rebuild the contents inside that table! 87.123.59.205 (talk) 19:22, 2 November 2016 (UTC)
- Thank you for the reply, 87.123.59.205. I'm sorry to seem obtuse, but this is the kind of information I have already found (use "the usual tools", a query in MySQL, use the script I mentioned in #2 of my original post)—and, for a user like me, it amounts to telling someone that the way to bake a cake is to "Procure the usual ingredients and use the usual methods." Preslethe (talk) 19:37, 2 November 2016 (UTC)
- In phpmyadmin, inside the database view where you are seeing all the tables, mark the table "searchindex" and from the menu choose "Repair table".
- It will display a result of the repair action. If the result is that the table is ok again, then this is fine.
- Afterwards I would still run the rebuildtextindex.php script just to be sure. When your wiki is local, you should just open a command prompt. E.g. if the wiki is on linux, then open a window with a shell, e.g. with bash, in it. If it is on Windows, open the commandline. There, navigate to the maintenance folder (using commands like cd ../mywiki-folder/maintenance). And then run the rebuildtextindex.php script with PHP, e.g. with php rebuildtextindex.php. 87.123.59.205 (talk) 20:00, 2 November 2016 (UTC)
- Thanks for the extra detail, 87.123.59.205.
- Unfortunately, in the database view in phpmyadmin, although I can check the box next to the "searchindex" table, I find no menu and nothing called "Repair table". I've looked on every tab, in every box, etc.
- Navigating Windows Explorer to "rebuildtextindex.php" is easy; opening it just opens it in an editor. If I do it through the command prompt in Windows, the final instruction being "C:\wamp\www\mywikipedia\maintenance> php rebuiltextindex.php", I get an error message; the box is titled "php.exe - Entry Point Not Found", with content "The procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll.", and then four more error messages each time I click "OK". Preslethe (talk) 00:18, 3 November 2016 (UTC)
- A friend revealed the solution:
- Go to http://localhost/phpmyadmin/
- Click on the "Databases" tab.
- In the resulting page's list, click "wikidb".
- On the resulting page, click on the "Query" tab.
- On the resulting page, in the box headed "QL query on database wikidb:", enter the following, without quotation marks: "REPAIR TABLE searchindex;".
- Click the "Submit Query" button.
- Wait for it to do its thing. When it's finished, there should be a message of success.
- I now can search my wiki, move (rename) pages, and upload pictures to it. Preslethe (talk) 15:34, 4 November 2016 (UTC)
Bilder werden nicht angezeigt
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.
Nach dem update auf die aktuelle version werden meine Bilder nicht mehr angezeigt.
Der Images Ordner hat die Rechte 755
Woran kann das liegen? Dachkraxler (talk) 20:03, 2 November 2016 (UTC)
- When you visit a page inside the File: namespace, is the image then displayed there?
- The pages inside the File: namespace are having a link to the original image. Can this original be viewed?
- If it is not displayed, what do you then see when you try viewing such a page? 87.123.59.205 (talk) 20:35, 2 November 2016 (UTC)
- Here is a link:
http://www.wiki.cbf-1000.de/wiki/index.php?title=Mini_Nummernschildbeleuchtung_selbst_gebaut
When I click on a picture I will go back to the homepage.
With mediawiki 1.24 before the update had still everything worked.
Dachkraxler (talk) 04:05, 3 November 2016 (UTC)- See the "Developer Tools" of your web browser: Your images have the content type "text/html", and the SyntaxError. AKlapper (WMF) (talk) 08:53, 3 November 2016 (UTC)
- In your wiki, not only the images are not displayed. The stylesheets are not loading as well. My guess is that you somehow lost the RewriteRules, which used to give access to the load.php file and also to the images/ folder. Most likely these rules were inside your .htaccess file.
- Please make sure to move the .htaccess file into place again! 87.123.59.205 (talk) 11:44, 3 November 2016 (UTC)
- The .htaccess I have no more. How does it look? Dachkraxler (talk) 17:02, 3 November 2016 (UTC)
- I have re-created the localsettings.php and now everything works again!
Thank you for the help
Dachkraxler (talk) 18:07, 3 November 2016 (UTC)- That is a remarkable solution. 87.123.59.205 (talk) 18:46, 3 November 2016 (UTC)
- No, editing the LocalSettings.php file is not everything you did. You also have moved the wiki out of the folder wiki/ and you have adjusted the configuration in LocalSettings.php so that the path element "wiki/" no longer is part of the actual path. 87.123.59.205 (talk) 18:48, 3 November 2016 (UTC)
Announcement Bar
Hi all... I'm looking for an extension that gives the ability to show an announcement bar/scrolling news feed, that administrators could customize. Of course, it could be dismissable.
This would act the same way that MediaWiki has announcements for summits, etc.
Thank you for your help. PaleoIsh (talk) 20:44, 2 November 2016 (UTC)
- Two options: See Manual:Interface/Sitenotice or Extension:DismissableSiteNotice! 87.123.59.205 (talk) 20:50, 2 November 2016 (UTC)
- Thank you... I had a hard time finding these. Would you suggest https://www.mediawiki.org/wiki/Extension:CentralNotice? PaleoIsh (talk) 21:06, 2 November 2016 (UTC)
- I have never used the CentralNotice extension myself, but it is used by Wikimedia Foundation.That means that it likely is pretty stable. It is made to distribute notices to multiple wikis. So if you "only" have one wiki, then maybe this extension is overkill - except it has any other options, which you want to use. 87.123.59.205 (talk) 21:29, 2 November 2016 (UTC)
Can I add a link to individual CSS files?
I want to use individual CSS files for some pages. How do I link to them so that they're only used in those specific files? I.e. how do I add a <link rel="stylesheet"... tag? Or, is it possible to have a stylesheet only trigger on pages in a specific category? (If Category X then use CSS Y...)? Banaticus (talk) 06:01, 3 November 2016 (UTC)
- Manual:Interface/Stylesheets says that you can create user css, but it doesn't say the same for articles. I am thinking it might be possible, but I am not certain. Maybe adding a /common.css after the name of the article will work. │Star-Warden│ 07:49, 3 November 2016 (UTC)
- You can do this by using JavaScript, and coding the logic in JavaScript to detect what page the user is viewing (usually with
mw.config.get('wgPageName')
) and then load the required JavaScript. - If the set of CSS rules to apply on specific pages are small, you can put them in the MediaWiki:Common.css page and prefix them with the current page class. Each page has a specific CSS class applied to the body tag, so you can use that to limit the scope of those rules to specific pages. Ciencia Al Poder (talk) 20:08, 4 November 2016 (UTC)
Shorten the url to wiki.dtv instead of wiki.dtv/mediawiki
I am a beginner with apache or mediawiki and i cannot figure out how to make opening wiki.dtv point to the mediawiki page instead of default apache one. I tried changing the "directory root" in apache but that had issues with links in mediawiki. What is the common practice, as mediawiki is the only webpage on this server? Dacrade (talk) 07:18, 3 November 2016 (UTC)
- I am not sure if they help, but there's some settings related to this in LocalSettings.php:
- # The URL base path to the directory containing the wiki; defaults for all runtime URL paths are based off of this.
- # For more information on customizing the URLs (like /w/index.php/Page_title to /wiki/Page_title) please see: https://www.mediawiki.org/wiki/Manual:Short_URL
- $wgScriptPath = "";
- $wgArticlePath = "/$1";
- $wgUsePathInfo = true;
- $wgScriptExtension = ".php"; │Star-Warden│ 07:46, 3 November 2016 (UTC)
- I would seriously recommend keeping your wiki at /wiki or whatever and then putting a redirect from / to /wiki.
- Have a look at https://en.wikipedia.org/wiki/Special:Version and find the entry points section (they know what they are doing!) Make your wiki the same and then add a redirection from / to /wiki for convenience.
- (I've had to amend these somewhat because I use HAProxy as a front end but should work OK when you've translated for your hostname and paths)
- # doc Virtual host - Apache
- ServerName doc.example.co.uk:80
- <VirtualHost _default_:80>
- ServerAdmin webmaster@example.co.uk
- ServerName doc.example.co.uk
- DocumentRoot /var/www/html
- Alias /wiki /var/www/wiki/index.php
- Alias /w /var/www/wiki
- </VirtualHost>
- In LocalSettings.php:
- $wgServer = "http://doc.example.co.uk";
- $wgScriptPath = "/w";
- $wgArticlePath = '/wiki/$1';
- Get that working first and then put a redirect in the Vhost config - there are loads of howtos around.
- Cheers
- Jon Gerdesj (talk) 23:15, 3 November 2016 (UTC)
- Configuring it so page names start directly at the root directory can cause several issues, since those URLs will clash with normal files (path to images, scripts like index.php, api.php, etc), thus is not recommended. Ciencia Al Poder (talk) 19:56, 4 November 2016 (UTC)
- Not entirely true, as you could keep the files in a sub-directory which is not a valid page name (such as _wiki), then you'd just have to worry about collisions from non-MW files, such as robots.txt. 120.144.32.44 (talk) 02:22, 5 November 2016 (UTC)
Captcha Fails, spam suceeds
Hi. Our captcha trigger seems to be malfunctioning since this morning and there have already appeared some spammy accounts. I am getting these errors while on the login page (http://dragon-mania-legends-wiki.mobga.me/Special:UserLogin): Notice: Undefined index: badlogin /srv/dml-wiki/extensions/ConfirmEdit/SimpleCaptcha/Captcha.php on line 348 Notice: Undefined index: badloginperuser in /srv/dml-wiki/extensions/ConfirmEdit/SimpleCaptcha/Captcha.php on line 365
and on the create account page (http://dragon-mania-legends-wiki.mobga.me/Special:CreateAccount): Notice: Undefined index: createaccount in /srv/dml-wiki/extensions/ConfirmEdit/SimpleCaptcha/Captcha.php on line 924
I don't understand why it does that since we're using QuestyCaptcha and not SimpleCaptcha. Deleting the folder brings the wiki down. I tried disabling SimpleCaptcha in /ConfirmEdit/extension.json under AutoloadClasses (line 51), but no luck.
We're using the REL1_27 version of ConfirmEdit. I disabled create accounts, for now, so the error on the createaccount page cannot be seen, but the ones on the login page can be seen. The console doesn't display any related java errors, so I am not sure what's causing it.... │Star-Warden│ 07:20, 3 November 2016 (UTC)
- Update: the exact same issue happens on the wiki, used for testing purposes, installed on my PC (through xampp). │Star-Warden│ 09:55, 3 November 2016 (UTC)
- While I was waiting/trying to find a solution for this issue, I tried using ConfirmAccount to, at least, permit the creation of user accounts, but in a controlled manner. Apparently, there's an issue with this extension, as well. On the 'request account' page (http://dragon-mania-legends-wiki.mobga.me/Special:RequestAccount), I am getting this issue
- Notice: Undefined index: createaccount in /srv/dml-wiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php on line 245
- As I wrote above, the 'createaccount' index seems to be undefined in the issue related to ConfirmEdit. And even if I add a user name and email and hit 'request account', I get this: "Error sending mail:
- Unknown error in PHP's mail() function." Why? I used php update.php to create the necessary tables and what I added in LocalSettings was:
require_once "$IP/extensions/ConfirmAccount/ConfirmAccount.php";
$wgMakeUserPageFromBio = false;
$wgAutoWelcomeNewUsers = false;
$wgConfirmAccountRequestFormItems = array(
'UserName' => array( 'enabled' => true ),
'RealName' => array( 'enabled' => false ),
'Biography' => array( 'enabled' => false, 'minWords' => 50 ),
'AreasOfInterest' => array( 'enabled' => false ),
'CV' => array( 'enabled' => false ),
'Notes' => array( 'enabled' => false ),
'Links' => array( 'enabled' => false ),
'TermsOfService' => array( 'enabled' => false )
);
- How do I define those indexes? │Star-Warden│ 13:55, 3 November 2016 (UTC)
- Okay, now that's very strange. The issue fixed itself after I moved the entire code at the bottom of localsettings.php... But why? Why was the position important? │Star-Warden│ 18:13, 4 November 2016 (UTC)
- Okay, for anyone who's interested, I ran some tests and I found the culprit. The issue occured when the Captcha code was placed before the call for Wikiforum:
wfLoadExtension( 'WikiForum' );
. - Initially, I thought it was because of this value
$wgCaptchaTriggers['wikiforum'] = true;
, but disabling it or placing it after the call, even if the captcha call was before the wikiforum call, still caused the same undefined indexes issue. Then I navigated to the forum and tried opening a thread and I got this error: Fatal error: Call to undefined method QuestyCaptcha::getFormInformation() in /srv/dml-wiki/extensions/WikiForum/WikiForumClass.php on line 359 - Line 359 in that .php file is
$formInformation = $captcha->getFormInformation();
- Someone else pointed out this issue, on another thread of mine, where I showed some extracts from the server error log: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2016/10#h-Visual_Editor_500_error-Book_rendering_failed-2016-10-30T19%3A03%3A00.000Z
- If I disable
$wgCaptchaTriggers['wikiforum'] = true;
, then the forum is working again, but it won't be able to prevent spammy comments since it won't run captchas. Is there any way around it or it's an unsolvable issue since the author doesn't maintain the REL branches? It can prevent spam from anonymous by setting$wgWikiForumAllowAnonymous
to false, but then anonymous aren't able to comment. │Star-Warden│ 18:43, 4 November 2016 (UTC) - Update: The part about the position is my fault, as I completely forgot the instructions here. I tidied up localsettings a bit the other day and I wasn't aware the position was important. Still, even if
$wgCaptchaTriggers['wikiforum'] = true;
is set below the call for ConfirmEdit, I will still get the fatal error from my previous reply. It seems that by setting$wgWikiForumAllowAnonymous
to false, the error won't show up anymore for those who aren't forced to enter the captcha, but then the captchatrigger is pretty useless since my intention is to allow anonymous to comment, but to prevent spammers. Plus, the error will still show up for non-autoconfirmed users (but it won't show up for those who aren't forced to go through the captcha). │Star-Warden│ 19:06, 4 November 2016 (UTC)
Can't find search tab in preference page
I installed a new MW 1.27 to the server, but I can't find search tab in the preference page, how to bring it out? Chan15tw (talk) 08:24, 3 November 2016 (UTC)
- Did you install Extension:CirrusSearch ? AKlapper (WMF) (talk) 08:46, 3 November 2016 (UTC)
How to remove certain type of job from job list?
There are 11175 queued cirrusSearchLinksUpdate in job list and I got them indexed by forceSearchIndex.php, already. I want to remove these redundant job, but don't know how.
/wiki/maintenance/showJobs.php --group
replaceText: 0 queued; 3 claimed (0 active, 3 abandoned); 0 delayed
refreshLinks: 2194 queued; 40 claimed (2 active, 38 abandoned); 0 delayed
htmlCacheUpdate: 43 queued; 0 claimed (0 active, 0 abandoned); 0 delayed
recentChangesUpdate: 1 queued; 0 claimed (0 active, 0 abandoned); 0 delayed
refreshLinksPrioritized: 15 queued; 4 claimed (2 active, 2 abandoned); 0 delayedrefreshLinksDynamic: 303 queued; 49 claimed (49 active, 0 abandoned); 0 delayed
cirrusSearchLinksUpdate: 11175 queued; 41 claimed (40 active, 1 abandoned); 0 delayed
cirrusSearchElasticaWrite: 0 queued; 4 claimed (0 active, 4 abandoned); 0 delayed Deletedaccount4567435 (talk) 08:59, 3 November 2016 (UTC)
Categories and pages don't update
For the life of me I can't figure out what's going on with this MW installation. This category here: http://www.paijat-hamewiki.fi/wiki/Luokka:Muusikot is supposed to show under the 'Henkilöitä Päijät-Hämeestä' category. I also tried creating a new Demo Luokka (category) and adding a page to it. The problem is that none of the categories or pages are being updated and they still say they're joined to other categories when they shouldn't be. Also the page in my demo category has a red link even though when you click on the link, it goes to the page.
I have run refreshlinks.php, rebuildall.php and runJobs.php in case it was stuck there. Could anyone give any insight as to what's happening? It's running version 1.27.0. Any help you can give me would be much appreciated.
Thanks! Craftycoding (talk) 14:04, 3 November 2016 (UTC)
- See Manual:$wgRunJobsAsync! 87.123.59.205 (talk) 14:31, 3 November 2016 (UTC)
- Maybe it is a cache problem at your end, the categories appear to be fine. The page you linked to is showing under categories: "Henkilöitä Päijät-Hämeestä" and "Demo Luokka". AhmadF.Cheema (talk) 14:32, 3 November 2016 (UTC)
- Further to that insight - do you (Craftycoding) use a web proxy for your browsers? Gerdesj (talk) 22:55, 3 November 2016 (UTC)
- Thanks everyone. It must be a really huge cache problem then as it's lasted over a month. If you can see that info in the right place then there's not many options other than the cache. Also no I don't use a web proxy, and this has also been reported by other users, so is it possible that a server side cache is causing the problem?
- Thanks for your help so far, I'm stumped. Craftycoding (talk) 08:42, 4 November 2016 (UTC)
- Another update. The job queue was huge so following the instructions here: Manual:$wgRunJobsAsync I emptied it and rebuilt the links. Still no joy. Then I did rebuildall.php and it still hasn't helped. I emptied the cache folder on the server and it's still not updating. The class pages just aren't updating no matter what I do. This page http://www.paijat-hamewiki.fi/wiki/Luokka:Muusikot should show under this categories: http://www.paijat-hamewiki.fi/wiki/Luokka:Henkil%C3%B6it%C3%A4_P%C3%A4ij%C3%A4t-H%C3%A4meest%C3%A4 Do all of you see it that way or is it missing? :/ Craftycoding (talk) 09:16, 4 November 2016 (UTC)
- From my end, Luokka:Muusikot is showing the category: "Henkilöitä Päijät-Hämeestä", but the category page for "Henkilöitä Päijät-Hämeestä" is not showing the "Luokka:Muusikot" page. AhmadF.Cheema (talk) 10:06, 4 November 2016 (UTC)
- Ok so it's not a (just a cache thing) it's actually not updating anything :/ I really don't know what more to try. Anyone got any advice?
- Thanks for your time. Craftycoding (talk) 10:43, 4 November 2016 (UTC)
- Can you reconfirm that the jobs queue is at 0, through your Wiki's API (<Wiki-URL>/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm)?
- Maybe try performing null edits on the category pages to force them to update. AhmadF.Cheema (talk) 12:32, 4 November 2016 (UTC)
- Hi there,
- Yes the jobs queue is at 6 at the moment but it was a lot bigger yesterday. It was around 1970 when I cleared it. After clearing it I ran the rebuild scripts but still no update unfortunately. It seems to just be stuck somehow without updating the categories. Craftycoding (talk) 13:43, 5 November 2016 (UTC)
How to suppress certain errors to deal with runaway log files.
I recently inherited ownership of a website set up with mediawiki, it seems like the previous administrator set up some logging functionality to log errors and other info to files. These files are owned by a faceless account and the logs have gotten so big that occasionally they cause our wiki to go down and we have to contact our IT guys who delete the file as root, but eventually the file grows to a big size again.
We have searched through the code and have tried to suppress the error but to no avail, here is a sample of what's in the logs, does anyone have an idea of which file/class/function they could be coming from so we can stop the logging? Thanks.
One log is titled access, and has the following lines:
$IPADDRESS - - [15/Sep/2016:11:34:03 -0700] "GET / HTTP/1.1" 401 381 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.3
6 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
It seems to be logging a bunch of GET requests.
The other file logs errors.
[Thu Sep 15 11:32:43.243205 2016] [:error] [pid XXX:tid XXX] [client XXXXX] PHP Strict Standards: Dec
laration of Auth_remoteuser::initUser() should be compatible with AuthPlugin::initUser(&$user, $autocreate = false) in /Auth_remoteuser.php on line 202
These files grow to huge sizes and we don't know how to delete them without contacting root, any ideas? 134.134.139.74 (talk) 17:37, 3 November 2016 (UTC)
- The first line, the GET request which you are quoting, is part of an Apache server log. It is not an error, all it shows is a normal page request.
- The strict standards error points to an issue in the Auth_remoteuser, which you are using.
- The keyword for growing log files is: logrotate! Use this tool to rotate the log files, e.g. daily, so that they do not become that large anymore. 87.123.59.205 (talk) 18:45, 3 November 2016 (UTC)
- Just to expand on what Mr 87..205 said: Those logs are part of the infrastructure logging and your IT guys should be on top of it. They are from the web server and nothing to do with Mediawiki itself, which is just the content. I suspect that you find them under /var/log/apache or /var/log/http or similar on a Unix like system or somewhere else on something else.
- There are a few options and given that you don't specify OS or distro or anything usefull:
- Cause less logging - Apache has a LogLevel parameter - turn it "down"
- Rotate the logs and as 87..205 mentioned, they ("root") should install the logrotate package to do this for Unix like systems
- On Unix like systems, Apache can be made to send logs through a system logger like syslog, syslog-ng or rsyslog - those systems can be made to drop entries or filter them in some way
- Whilst "they" are at it, if this wiki is an important resource to your organisation then there really ought to be some sort of monitoring being performed for things like disc space usage etc.
- Basically, as end users this problem really isn't yours (although the effect is). Your IT mob need to step up. Gerdesj (talk) 22:54, 3 November 2016 (UTC)
Watchlist not sending email notifications.
We recently migrated our wiki to a new server, and upgraded to MW 1.27. It appears the 'watchlist' is no longer sending email notifications. There are 2 issues,
- the automatic Job queue fails with the error "[null [runJobs] Failed to start cron API: received 'HTTP/1.1 401 Unauthorized]"
- I've run the job queue manually from the maintenance directory, and it appears to run successfully, but no emails are sent.
I'm less concerned about item (1). I'd be happy if I could run it manually (e.g. cron).
Its entirely possible this is some system configuration on our end, but I do I track it down? I've confirmed that the the php 'mail' command works correctly. Berbo (talk) 19:53, 3 November 2016 (UTC)
- Does the new server run exactly the same OS/distro and packages as the old one? If not, then bad move - one change at a time, always, when you are moving things around. Anyway, please give us a hint at what is running here. cron implies a Unix like system so that's a minimal start.
- We don't need your inside leg measurement to have a bash at making suggestions but please don't expect us to read your mind.
- Cheers
- Jon Gerdesj (talk) 23:46, 3 November 2016 (UTC)
- Sorry for the terse description. I was hoping there are some obvious things to look for when debugging this problem.
- We moved from SUSE (SLES 11) running Apache 2.2/PHP 5.3 to RedHat SE Linux running Apache 2.4 / PHP 5.6 ( I didn't have the option of staging the changes). Then upgraded from MW 1.19 to MW 1.27.
- Possibly its an issue with the SE Linux, which seems to break stuff. But as indicated I was able to run a simple PHP page to send mail, so I don't think its that. Berbo (talk) 16:21, 4 November 2016 (UTC)
- PHP usually have different configurations for web and command line, maybe that's your case and the mail configuration of the command line php.ini is not complete. You can also try setting $wgSMTP if you have PEAR mail.
- Jobs run in web requests are very buggy in 1.27.1, there have been attempts to fix it for 1.27.2 which hasn't been released yet. You may try to set $wgRunJobsAsync = false; to fall-back to a more resilient way. Ciencia Al Poder (talk) 12:13, 5 November 2016 (UTC)
Errors installing semantic mediawiki and sematic forms
RESOLVED | |
SMW doesn't support MS SQL 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 am trying to do some research on sematic wikis, because I need a wiki based framework for software documentation. Therefore it is essential that the wiki supports form based pages. It seems that the extensions "sematic mediawiki" and "sematic forms" will do the trick together.
Unfortunatly I can't get the extensions up and running! I am running Windows 7, IIS 7, MS SQL 2012, mediawiki 1.27.1, PHP 7.0.12, sematic mediawiki 2.3.1 and sematic forms 3.7.
The Mediawiki installation worked allright, just had to change definition of oi_name and oi_archive_name in tables.sql (form nvarchar(255) to nvarchar(225)).
But when I download the extensions mentioned above, and add references in localSettings.php, I ran into problems!
Execution of the update.php (in folder maintenece) fails! I get a lot of sql errors. I have tried to solved those (editing the sql scripts) and manage to get a bit further. But the errors keeps popping up. The errors are like: implicit conversion for nvarchar to nvarbinary not alloved, constraint xxx dos not exist etc, etc.
Look like the ms sql scripts in mediawiki is not up to date!
Does any one has suggestions? JESSOE (talk) 07:58, 4 November 2016 (UTC)
- Don't use SQL Server, it's not completely supported (or extremely buggy) in MediaWiki core, and utterly broken in extensions. Ciencia Al Poder (talk) 19:51, 4 November 2016 (UTC)
- Thanks, and in the mean time I can see in a readme.md that MS SQL is not supported by Semantic Mediawiki - would be nice if that was clearly stated in the installation guide... JESSOE (talk) 07:51, 8 November 2016 (UTC)
- By the way: switched to postgre - Works fine! JESSOE (talk) 07:52, 8 November 2016 (UTC)
Search for text containing question mark
I would like to search for text that contains a question mark character. How do I do this without the search function treating the question mark as a wildcard and instead search for it as plaintext? The same goes for all special search characters such as the *asterisk* and "double quote" marks. 2607:FCC8:62C5:700:31CA:59AC:AC88:E3E2 (talk) 10:33, 4 November 2016 (UTC)
Collapsible columns within a table - Possible?
Hi there,
I've been playing around a bit now, and cannot create a table where only a few columns collapse. e.g. a very wide table 20 columns long where I would to have Captions for columns 1-5, 6-10. 11-15 and 16-20. And (here's the tricky part) be able to collapse columns 16-20.
Is this even possible?
Thanks,
Ken 88.217.142.229 (talk) 12:21, 4 November 2016 (UTC)
- Forgot:
- 1.27.1
- 5.6.27-1~dotdeb+7.1 (apache2handler)
- 5.6.33-1~dotdeb+7.1
- /Ken 88.217.142.229 (talk) 12:33, 4 November 2016 (UTC)
- It's possible by using JavaScript, sure, but MediaWiki doesn't provide such mechanism. You may find somewhere on the Internet a script that allows to do that, and maybe integrate it in one of the pages where you can load JavaScript for all the site. Ciencia Al Poder (talk) 19:35, 4 November 2016 (UTC)
HiddenPrefs
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.
How do I add more options to $wgHiddenPrefs without having to repeat that hook? So far, the only value is <code>$wgHiddenPrefs[] = 'realname';</code> and I tried hidding the WikiEditor publish button (because it overrides ForcePreview) using <code>$wgHiddenPrefs[] = 'realname', 'wikieditor-publish';</code>, but it keeps giving http errors. I even tried with another option (minordefault), but no luck. It seems it's only working if I add multiple instances of HiddenPrefs, but I would like to add all the values that I need on the same line. 79.119.116.118 (talk) 21:00, 4 November 2016 (UTC)
- The syntax is like so:
$wgHiddenPrefs[] = 'realname'; $wgHiddenPrefs[] = 'wikieditor-publish';
- The rest is playing with PHP syntax. I guess the above is the same as
- 87.123.20.12 (talk) 22:33, 4 November 2016 (UTC)
$wgHiddenPrefs = array(0 => 'realname', 1 => 'wikieditor-publish');
- That did the trick, thanks! Though, I assumed by using 1, the option would be enabled by default, but it wasn't. The 'publish' button didn't appear. Of course, my intention is to make it disappear, but maybe I didn't understand the function of 1 there. 79.119.116.118 (talk) 23:47, 4 November 2016 (UTC)
- The 1 and also the 0 just are the indices inside the array. The first element always is number 0, the second is number 1, the third is number 2 and so on. Apart from that, meaning for the function of that variable, they are irrelevant.
- So following two lines do the same thing:
$wgHiddenPrefs = array(0 => 'realname', 1 => 'wikieditor-publish', 2 => 'rememberpassword'); $wgHiddenPrefs = array(0 => 'rememberpassword', 1 => 'wikieditor-publish', 2 => 'realname');
- Each of these lines hides the three preference options. For me personally this way of writing this option is more confusing than helpful. I would write it as
- 87.123.20.12 (talk) 02:00, 5 November 2016 (UTC)
$wgHiddenPrefs[] = 'realname'; $wgHiddenPrefs[] = 'wikieditor-publish'; $wgHiddenPrefs[] = 'rememberpassword';
- Hiding a preference just prevents the user from changing it in Special:Preferences, it doesn't change the default. You would rarely need to actually do this. If you simply want to change the default, then use $wgDefaultUserOptions. 120.144.32.44 (talk) 02:16, 5 November 2016 (UTC)
- The thing is, I removed the indices and it worked without them, that's why I thought it changes the default, too. 79.119.116.118 (talk) 08:13, 5 November 2016 (UTC)
- You don't need to specify indices in an array, unless you don't want consecutive numbers. Regardless the indices have nothing to do with preferences, the variable is just an array containing the names of preferences to be hidden.
[ 'realname', 'wikieditor-publish', 'rememberpassword' ]
=[ 0 => 'realname', 1 => 'wikieditor-publish', 2 => 'rememberpassword' ]
120.144.32.44 (talk) 10:00, 5 November 2016 (UTC)- I see. But what exact purpose do the indices server? I am not quite sure I understand. 79.119.116.118 (talk) 12:33, 5 November 2016 (UTC)
- They are irrelevant. 87.123.20.12 (talk) 12:39, 5 November 2016 (UTC)
- In theory it would also have been possible to allow defining the variable as a string:
$wgHiddenPrefs = 'realname,wikieditor-publish';
- You would then not have an array, but a string, which consists of a comma seperated list of values. However, this is not how this variable is actually working. 87.123.20.12 (talk) 13:48, 5 November 2016 (UTC)
- I understand. Thank you for your help. 79.119.116.118 (talk) 13:49, 5 November 2016 (UTC)
Request for a script
Hello, I hope this is the right place to request a JS script for my own wiki.
I need a script that automatically adds a system message at the bottom of protected pages.
Is this complicated to create such a script? Guycn2 (talk) 21:29, 4 November 2016 (UTC)
I can't view the page. View source, shows all the codes there.
The title is correct and the source codes or content are all there when I click on view source.
But when I click on page, the page comes out blank. 24.205.217.0 (talk) 05:19, 5 November 2016 (UTC)
- where? which page? ~ — Ineuw talk 06:13, 5 November 2016 (UTC)
- See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there! 87.123.20.12 (talk) 11:31, 5 November 2016 (UTC)
How do I use tags like <math> inside a parser
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 writing a parser, and wish to use other parser tags such as <math> from within my parser. Is this something that's possible? 52.53.190.135 (talk) 06:02, 5 November 2016 (UTC)
- Maybe this is what you are looking for: Help:Magic words#Miscellaneous
- The forth row examples seem relevant. AhmadF.Cheema (talk) 15:08, 5 November 2016 (UTC)
- Wow, this is awesome. Thankyou! 52.53.190.135 (talk) 17:55, 5 November 2016 (UTC)
Help is asked to find the error in this Mariadb SQL statement
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.
Can someone please help me find the error in the following statement. Spent hours on the MariaDB manuals, but can't figure out what is wrong.
use enwikisource
SELECT DISTINCT rc_user FROM recentchanges
WHERE recentchanges.rc_timestamp BETWEEN DATE('2016-11-1') AND DATE('2016-11-30')
AND recentchanges.rc_namespace='104' AND recentchanges.rc_title='Tom_Swift_and_His_Airship%';
GROUP BY recentchanges.rc_user; — Ineuw talk 06:12, 5 November 2016 (UTC)
- At least the % sign in "Tom_Swift_and_His_Airship%" looks wrong to me. Maybe you forgot to remove that from trying a LIKE "...%" statement before?
- I think the GROUP BY part of your query, at least the way you are having it right now, is irrelevant and can be left out: The SELECT DISTINCT on the same field already makes sure that there will be nothing to group as for each different value from rc_user there will only be exactly one row in the result set already anyway.
- For the DATE part I am not sure. Note however that MediaWiki does not store dates in the usual MySQL date format. Instead, what it is using are concatenated strings. This may be the reason why your DATE portion fails. 87.123.20.12 (talk) 11:41, 5 November 2016 (UTC)
- 87.123.20.12 Thanks for your help, will correct all above mentioned errors. — Ineuw talk 23:24, 5 November 2016 (UTC)
How to set $wgSharedDB to share only certain type of tables on different database?
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.
Now I have a commonswiki for file sharing and a wikidata for user login&data share.
I'd like the wiki to get $wgSharedTables[] = 'globalimagelinks'; only from commonswiki, and $wgSharedTables[] = 'user'; $wgSharedTables[] = 'user_properties'; only from wikidata . Is this possible? How should I set it? Deletedaccount4567435 (talk) 09:21, 5 November 2016 (UTC)
- shared login should use shared tables. For file sharing you should use $wgForeignFileRepos instead, since you can't have 2 different databases for shared tables. ForeignDBRepo should probably be the best option here. Ciencia Al Poder (talk) 12:02, 5 November 2016 (UTC)
- So far mediawiki does not support using 2 sharing database. So my solution is to move the globalimagelinks table into wikidata, and only use one shared database wikidata. Deletedaccount4567435 (talk) 11:55, 6 November 2016 (UTC)
How to back up wiki without hosting it?
I am currently working on a project but i need to back up it??
Please help me 45.116.233.31 (talk) 10:53, 5 November 2016 (UTC)
- See Manual:Backing up a wiki! 87.123.20.12 (talk) 11:30, 5 November 2016 (UTC)
wgCrossSiteAJAXdomains not taking effect?
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 have set $wgCrossSiteAJAXdomains[] = '*.wiki2.org'; in wiki1's localsettings, but can't load image on wiki2 from wiki1.
- Error message: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://en.wiki1.org' is therefore not allowed access.
- Is it possible that nginx/varnish removed the ajax header? Can I add this header though nginx? Deletedaccount4567435 (talk) 14:36, 5 November 2016 (UTC)
- It turns out that thumb.php does not support Access-Control-Allow-Origin A work around in apache/nginx is needed. Hope Mediawiki could add support for Access-Control-Allow-Origin to thumb.php. Deletedaccount4567435 (talk) 06:24, 6 November 2016 (UTC)
- Is this a Mediawiki bug?
- I tried https://commons.wikimedia.org/w/api.php?action=query, and it return normal result, But
- https://commons.wikimedia.org/w/api.php?action=query&origin=en.wikipedia.org will give a error message: "'origin' parameter does not match Origin header"
- Where I am very sure that commons.wikimedia set the origin header to $wgCrossSiteAJAXdomains[] = '*'; Deletedaccount4567435 (talk) 00:51, 6 November 2016 (UTC)
Cannot delete a user
I cannot merge and delete an account using the UserMerge extension. It always gives me the following error no matter which account I want to merge it to:
An error has occurred. Return to Main Page. [4b86909d932b3b2ee4ccedce] /Special:UserMerge Flow\Exception\FlowException from line 76 of /var/www/html/extensions/Flow/includes/BoardMover.php: Could not locate workflow for 8440 Backtrace: #0 /var/www/html/extensions/Flow/Hooks.php(1639): Flow\BoardMover->prepareMove(integer, Title) #1 /var/www/html/includes/Hooks.php(195): FlowHooks::onTitleMoveStarting(Title, Title, User) #2 /var/www/html/includes/MovePage.php(252): Hooks::run(string, array) #3 /var/www/html/includes/Title.php(3662): MovePage->move(User, string, boolean) #4 /var/www/html/extensions/UserMerge/MergeUser.php(434): Title->moveTo(Title, boolean, string) #5 /var/www/html/extensions/UserMerge/MergeUser.php(57): MergeUser->movePages(User, array) #6 /var/www/html/extensions/UserMerge/SpecialUserMerge.php(147): MergeUser->delete(User, array) #7 /var/www/html/includes/htmlform/HTMLForm.php(613): SpecialUserMerge->onSubmit(array, HTMLForm) #8 /var/www/html/includes/htmlform/HTMLForm.php(510): HTMLForm->trySubmit() #9 /var/www/html/includes/htmlform/HTMLForm.php(525): HTMLForm->tryAuthorizedSubmit() #10 /var/www/html/includes/specialpage/FormSpecialPage.php(154): HTMLForm->show() #11 /var/www/html/includes/specialpage/SpecialPage.php(479): FormSpecialPage->execute(NULL) #12 /var/www/html/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL) #13 /var/www/html/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext) #14 /var/www/html/includes/MediaWiki.php(745): MediaWiki->performRequest() #15 /var/www/html/includes/MediaWiki.php(519): MediaWiki->main() #16 /var/www/html/index.php(43): MediaWiki->run() #17 {main}
What should I do? Tribly (talk) 17:54, 5 November 2016 (UTC)
- This is a problem with Extension:Flow. The source code is here: https://github.com/wikimedia/mediawiki-extensions-Flow/blob/047b01b850caf30b677a1c32a83cce9df5151826/includes/BoardMover.php#L81
- Obviously,
$this->storage->find( 'Workflow', array( 'workflow_wiki' => wfWikiID(), 'workflow_page_id' => $oldPageId, ) );
- is returning null in your case. As to what you describe, the $oldPageId is set correctly, so the problem will be somewhere else in this code - or in $this->storage->find(). Jörgi123 (talk) 19:38, 5 November 2016 (UTC)
delete row/column in a matrix of intervals
Hi,
trying to remove a colmumn from the matrix b:
a=[infsup(1,2);infsup(3,4)]
b=[a,a]b(:,1)=[]
error: subsasgn: A(I,J,...) = X: dimensions mismatch
error: called from
subsasgn at line 54 column 3
error: assignment failed, or no method for 'class = null_matrix' 88.187.1.23 (talk) 23:07, 5 November 2016 (UTC)
- a=[infsup(1,2);infsup(3,4)]
- b=[a,a]
- when I try: b(:,1)=[]
- I get :
- error: subsasgn: A(I,J,...) = X: dimensions mismatch
- error: called from
- subsasgn at line 54 column 3
- error: assignment failed, or no method for 'class = null_matrix' 88.187.1.23 (talk) 23:10, 5 November 2016 (UTC)
- This doesn't seem to be MediaWiki related. Maybe you came here from another wiki? Ciencia Al Poder (talk) 12:11, 6 November 2016 (UTC)
How do i delete my wikipedia account?
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 want to delete my wikipedia account except i don't know how. Unknownvoid (talk) 01:27, 6 November 2016 (UTC)
- w:en:Wikipedia:FAQ#How do I change my username/delete my account? Ciencia Al Poder (talk) 01:41, 6 November 2016 (UTC)
How to generate correct thumb url with $wgForeignFileRepos when using shared images?
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 guys, I got all files uploaded to a commons wiki, and access those file on other wikis via ForeignDBRepo as following. Although all wiki share a same DB with different name, they are on different machine where access to files on commonswiki are impossible. I tried to comment out thumbScriptUrl & set transformVia404 = false. Then I got thumbnail generating error.
Following settings work, but using thumb.php is buggy and slow. I want other wiki generate thumb url like this: https://commonswiki.org/commons/thumb/1/1f/filename.jpg/200px-filename.jpg directly.
To make this clear, I need the solution to generate right url without thumb.php or attempts on generate thumbnails of image.
Thank you :)
$wgGenerateThumbnailOnParse = false;
$wgForeignFileRepos[] = array(
'class' => 'ForeignDBRepo',
'name' => 'commonswiki',
'directory' => '/tmp', //NO, OTHER WIKIS DOES NOT HAVE ACCESS TO THE COMMONS' FILE THOUGH DIRECTORY!!!
'url' => 'https://static.commonswiki.org/common',
'thumbScriptUrl' => 'https://commonswiki.org/thumb.php',
//'transformVia404' => false,
'dbType' => $wgDBtype,
'dbServer' => $wgDBserver,
'dbUser' => $wgDBuser,
'dbPassword' => $wgDBpassword,
'dbName' => 'commonswiki',
'hasSharedCache' => false,
'descBaseUrl' => 'https://commonswiki.org/File:',
'fetchDescription' => false
); Deletedaccount4567435 (talk) 02:56, 6 November 2016 (UTC)
- Ah, got this done. The key point is transformVia404' => true, ! Deletedaccount4567435 (talk) 06:20, 6 November 2016 (UTC)
No 'Access-Control-Allow-Origin' header is present error with thumb.php
Hi guys,
I have all my images file in commonswiki.org. When visit these file from en.mywiki.org (link https://commonswiki.org/thumb.php?f=Jul_27_2016_BicunSouth_KTT.JPG&width=800)
I got this error No 'Access-Control-Allow-Origin' header is present error
I set the $wgCrossSiteAJAXdomains[] = 'en.mywiki.org'; in commonswiki but still get same error. Does the thumb.php return Cross header? Deletedaccount4567435 (talk) 05:35, 6 November 2016 (UTC)
- How are you loading the image so it gives such error? Apparently the Access-Control-Allow-Origin is only required when loading resources from XMLHttpRequest, fonts, WebGL textures and drawImage patterns. Normal wiki images aren't usually loaded this way, so they shouldn't get this error. Ciencia Al Poder (talk) 20:30, 6 November 2016 (UTC)
system messages
Is there a way to apply a change to all the languages of a particular system message without having to change all of them? Example: I would like to edit MediaWiki:Uploadtext in English, but I would like for that change to be reflected in Uploadtext/de or Uploadtext/en-gb and so on without having to edit all those pages. 188.24.66.168 (talk) 08:22, 6 November 2016 (UTC)
- Put that name in
$wgForceUIMsgAsContentMsg
wargo (talk) 08:57, 6 November 2016 (UTC) - Thank you for the answer. Unfortunately, it seems I am doing it wrong. I tried editing some system messages created by Extension:MediaWikiChat and Extension:CharInsert (chat-topic and edittools). I added the code in localsettings.php as follows: <code>wfMessage( 'chat-topic', 'edittools' )->inContentLanguage()->text();</code>. I am not exactly sure what I should add and where. This section isn't very good at explaining either. Wish MediaWiki would give more examples. 188.24.66.168 (talk) 20:45, 6 November 2016 (UTC)
$wgForceUIMsgAsContentMsg = array( 'chat-topic', 'edittools' );
wargo (talk) 21:41, 6 November 2016 (UTC)- I did that, as well, but it still didn't work. 188.24.66.168 (talk) 06:59, 7 November 2016 (UTC)
- Hey again. This time I tried using 'uploadtext' (since it's not a system message created by an extensions, but in-built in the software) and it still didn't work. 89.123.224.116 (talk) 15:02, 8 November 2016 (UTC)
PINGG site is not sending Invites ????
how is this resolved ??????@John 73.84.32.89 (talk) 16:40, 6 November 2016 (UTC)
- This is the MediaWiki support desk. Please ask on the PINGG website (if it has a forum or a way to contact them) Ciencia Al Poder (talk) 20:21, 6 November 2016 (UTC)
Phabricator search
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.
Why does this search does not find that task ?
Is there a place on Phabricator to ask this kind of "stupid" questions ? Zebulon84 (talk) 05:32, 7 November 2016 (UTC)
- The place is Talk:Phabricator/Help AKlapper (WMF) (talk) 15:50, 7 November 2016 (UTC)
- ...and I cannot reproduce the problem, as that task is displayed as a search result here. AKlapper (WMF) (talk) 15:51, 7 November 2016 (UTC)
- Thanks for the correct page, for the future.
- Just now the task is also displayed for me, so the problem is not permanent, harder to understand and solve. That's not the first time I find the task I search by looking all task of a project while I can't find anything with the search function. And I've already had this feeling that the same search does not always give the same results.
- If I gather more precise data I know where to report it... Zebulon84 (talk) 16:09, 7 November 2016 (UTC)
Relative file path error when php runJobs.php??
Hi guys,
For security reason I have placed my database setting to a location where nginx does not able to read. However, when running runjobs.php as well as upgrade.php, I get file not found error. How to solve this problem? Is this a bug?
$wgDBname = "enwiki";
require_once("../wwwwiki/wgLBFactoryConf.php");
require_once("../../wwwwiki/CommonSettings.php");
require_once("../../wwwwiki/ExtensionSetting.php");
error message:
PHP Warning: require_once(../wwwwiki/wgLBFactoryConf.php): failed to open stream: No such file or directory in /wiki/LocalSettings.php on line 9 Deletedaccount4567435 (talk) 07:46, 7 November 2016 (UTC)
- I don't see how is this more secure... Assuming database is not accessible from outside the webserver, there shouldn't be any additional problem if an attacker is able to read your username/password from LocalSettings.php. Also, if MediaWiki is able to access it, it can also be accessed by any other random script as well... Ciencia Al Poder (talk) 01:30, 8 November 2016 (UTC)
- Manual:Securing database passwords : Keep MySQL Passwords Out Of Webroot was an old security suggestion exist at least earlier than Mediawiki 1.25. The first time I saw this page was 2012.
- The problem is we are using wgLBFactoryConf for wiki farm, where it must be a single file accessible for all wikis, and We can't put it directly under /wwwwiki/wgLBFactoryConf.php.
- If a retard guy or bad extension mess up the website, using relative path could reduce the chance of file path exposure. Deletedaccount4567435 (talk) 14:31, 8 November 2016 (UTC)
- You should avoid using relative paths like "../", use $IP or absolute paths instead. Ciencia Al Poder (talk) 17:48, 8 November 2016 (UTC)
- I have heard the recommendation to move the credentials outside of the web root quite a few times. The only reason I can think of where this helps is if PHP got broken: If PHP no longer parsed PHP files, it might happen that the server returns their textual content including the database credentials. This would not happen, were the credentials stored outside of the web root. 87.123.62.243 (talk) 10:09, 8 November 2016 (UTC)
How to fetch Page Creation date from database?
How to fetch Page Creation date and Last modified date from database in a single query using joins. I know they are in Page and revisions table. But my experience with joins in php is very less. Am trying to create an extension and this requires the above to be done in php. Thanks! Ashni rai (talk) 11:53, 7 November 2016 (UTC)
- I don't think ttrying to do that in one single query is a good idea. You would need to get all revisions from the revision table, which potentially are thousands of rows. And that while you do not need them at all!
- I would query the rev_timestamp field for the oldest and the newest revision of a given page; makes two queries. 87.123.23.126 (talk) 15:22, 7 November 2016 (UTC)
- how to query the rev_timestamp field for the oldest and the newest revision of a given page.I need it for all the pages. Ashni rai (talk) 05:40, 8 November 2016 (UTC)
- SELECT MAX(rev_timestamp), MIN(rev_timestamp)
FROM revision
WHERE rev_page = 1;
Ciencia Al Poder (talk) 18:03, 8 November 2016 (UTC)
Would like to capitialize my Last Name (Account rename request)
Made a personal account and made the mistake of putting my last name in lower case. I don't want this reflect poorly on me for the rest of my life. Jake kocina (talk) 19:10, 7 November 2016 (UTC)
- A steward will do this 2002:43F4:3186:1234:49BD:AB23:1EC9:DEA1 (talk) 00:28, 8 November 2016 (UTC)
- m:Global rename policy Ciencia Al Poder (talk) 01:36, 8 November 2016 (UTC)
Error message : "This Site Can't Be Reached".
I am trying to put together my wiki, but I keep getting an error saying "This Site Can't Be Reached". I know it can be, because sometimes it will just take a second and the page loads and other times I have to manually reload the page and start again. Can anyone help? Attached is a screenshot of the message I am getting.and this is what I was doing when it happened. Hevnlymom (talk) 01:51, 8 November 2016 (UTC)
- At-least in some cases, this happens because of a connection problem between your browser and the server hosting your Wiki.
- Is this happening often?
- One connection problem is that, for a short amount of time, the server cannot be accessed from a particular geographical location. To make sure that this isn't the error, try accessing your site through a different geographical location (using a proxy, or tor etc.). Or better yet, just use a tool like uptrends.
- Also, if you are repeatedly losing your work and have to "start again" because of the "This Site Can't Be Reached" error on clicking the "Save page" button - click the "Back" button of your browser, as your work is likely to still be saved in the browser cache. AhmadF.Cheema (talk) 07:50, 8 November 2016 (UTC)
- If the error happens when clicking save or preview, hitting F5 is preferred instead of hitting back and submit again (F5 will resubmit the same form), since JavaScripts and some gadgets, specially Visual Editor, may cause that when you hit back the text you've modified is no longer there.
- You can see the server error log to see if there's any segfault error or similar, when this connection reset happens. Ciencia Al Poder (talk) 18:22, 8 November 2016 (UTC)
- I don't get the error every time I try, but just a lot in the last 2 days. My mother lives in NY and I am in TX. She attempted to view the site and got the same message and she wasn't even trying to save anything. Hevnlymom (talk) 23:58, 8 November 2016 (UTC)
- Thanks Ciencia Al Poder for the info.
- This does appear to be a server side issue. Ask your hosting provider for any information from their side. I would suggest trying to access the site form a different geographical location (like a different country) or try using the uptrends tool when the problem occurs. AhmadF.Cheema (talk) 07:39, 9 November 2016 (UTC)
Can't edit article in Japanese
I'm trying to edit article in JP.
But after save article,char in article become garbled characters.
When editing article,I can type JP ,but when checking MySQL record,'old_text' in 'text' table record is garbled characters.
My environment is
Mediawiki:1.27
PHP:5.6.27
MySQL:14.14
Apache:2.2 Minakata dsm (talk) 08:07, 8 November 2016 (UTC)
How to delete pages according to a pattern with deletebatch.php or else ?
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 need to delete regularly pages with a certain pattern in thename, for instance "Pagename/de" should be deleted, as all pages finishing by "/de".
How can I script it with deletebatch or else ?
Thanks in advance. Tuxxic (talk) 09:41, 8 November 2016 (UTC)
- Try to get all "/de" page title with Extension:Replace Text.
- If you have huge amount of "/de" page, export all title name under namespace=0. (You may do this by mysqldump -uroot -p --where="page_title (WHERE page_namespace = 0)" wiki page > page-title.sql) ← Not sure if this work, Try api if you can.
- Then write a little regular expressions to match all "/de" (If you can't write script, use notepad++, Press Ctrl+H for replace function. Replace all line not matched to none).
- Save results to a DeleteAllGermanSubPage.txt file, with one title one line style.
- Run
- php /wiki/maintenance/deleteBatch.php DeleteAllGermanSubPage.txt
- in ssh terminal.
- Hope this help. Deletedaccount4567435 (talk) 14:43, 8 November 2016 (UTC)
- Something like a SELECT page_title FROM page where page_title LIKE "%/de" AND page_namespace = 0 INTO OUTFILE page-title.sql should do. 87.123.62.243 (talk) 15:36, 8 November 2016 (UTC)
- Thanks all of you !
- I took the query of 87.123.62.243 and the method of @Zoglun and managed to do it :)
- Thanks for help again :) Tuxxic (talk) 17:38, 9 November 2016 (UTC)
Updating mediawiki 1.15.5-7
Hello,
I would like to update my mediawiki 1.15.5-7 that work under postgres. However, Ive an error message when I try this command :
root@server:/usr/share/mediawiki/maintenance# php update.php WikiSysop --pass $Pass ($Pass is set of obviously)
MediaWiki 1.15.5-7 Updater
No superuser credentials could be found. Please provide the details of a user with appropriate permissions to update the database. See AdminSettings.sample for more details.
What's the problem please ? What is this credential ? Haroun al Mouwahid (talk) 16:34, 8 November 2016 (UTC)
- Version 1.15 is really old and updating it is a good idea!
- MediaWiki 1.15 is trying to read the database credentials from AdminSettings.php.
- However, you do not need this file at all: When you are doing the upgrade, you will usually first upgrade the files of the installation and only afterwards run the update.php script. With other words: At the point where you are using update.php, you will already be using your new version of MediaWiki. The supported versions currently are 1.23, 1.26 and 1.27 and none of them is using AdminSettings.php anymore. 87.123.62.243 (talk) 16:41, 8 November 2016 (UTC)
- Ok thanks a lot. However, if I take the 1.26 or 1.27 files, how I do, I have to delete the old files or I uncompress the new files ABOVE the olders ? Haroun al Mouwahid (talk) 16:54, 8 November 2016 (UTC)
- You should extract the new files into a new folder to make sure that old files are out of the way. Then you move over the files, which you still need (like LocalSettings.php or the contents of the images/ folder for example).
- More details are on page upgrade! 87.123.62.243 (talk) 17:13, 8 November 2016 (UTC)
- Thank you but it still not working :( :( :(
- Actually my old version 1.15.5-7 was in /var/lib/mediawki working with postgres 9.1 and the config file in /etc/mediawiki/LocalSettings.php
- I have downloded mediawiki 1.26.4 and extracted the content in /etc/mediawiki-1.26.4 then and I have copied the /etc/mediawiki/LocalSettings.php in /opt/mediawiki-1.26.4/LocalSettings.php
- Idem for images : cp -p /var/lib/mediawiki/images /opt/mediawiki-1.26.4/images and chown www-data: /opt/mediawiki-1.26.4/images.
- Then I have tryied again : root@server:/usr/share/mediawiki/maintenance# php update.php WikiSysop --pass $Pass and here is what it yields :
- PHP Fatal error: Cannot redeclare class SiteConfiguration in /usr/share/mediawiki/includes/SiteConfiguration.php on line 18
- root@server:/opt/mediawiki-1.26.4/maintenance# sudo -u postgres psql -d wikidb -c "select user_name,user_password from mwuser where user_name like '%Sysop%';"
- user_id | user_name | user_password
- ----------+----------------+----------------------------------------------
- 80 | WikiSysop | :B:3a0ae96a:e442723142df548e474a7905cc23c6632
- (1 row)
- wikidb=# select * from user_groups where ug_user like '%80%';
- ug_user | ug_group
- ---------+------------
- 80 | sysop
- (1 row)
- WTF ? Haroun al Mouwahid (talk) 13:10, 9 November 2016 (UTC)
- I found your topic Project:Support desk/Flow/2016/04#h-Automatic_config_after_installation_for_version_1.15-2016-04-05T10:47:00.000Z from 7 months ago. In that topic you told us that you were using a number of different MediaWiki installation, which would be linked somehow. Is that still what you are trying to update here? (At least the error message is the same.)
- You currently have
/etc/mediawiki-1.26.4 => MW 1.26 /opt/mediawiki-1.26.4/LocalSettings.php => New LocalSettings.php file /opt/mediawiki-1.26.4/images => New images/ folder
- Then you tried
- $/usr/share/mediawiki/maintenance# php update.php WikiSysop --pass $Pass
- As far as I understand it, you are running this command on the old installation. Make sure to run it from inside /opt/mediawiki-1.26.4/maintenance/ instead - and leave away the parameters:
/opt/mediawiki-1.26.4/maintenance/#php update.php
Also in Project:Support desk/Flow/2016/04#h-Automatic_config_after_installation_for_version_1.15-2016-04-05T10:47:00.000Z Ciencia gave you an advice on what to do with the weird directory structure, which you are currently having. 87.123.32.63 (talk) 15:07, 9 November 2016 (UTC)
- Hi, yes during this moment I tried a lot of things but it was not working, I admit that I did not do the rights manipulations and I should forget it for while. Now I can work on this update, at least till the end of the next week.... You can trust me, since Im talking to you, I tried exactly what I said in this thread, it means :
- - Uncompress the mediawiki 1.26.4 in /opt/mediawiki-1.26.4
- - Copy the old images from /var/lib/mediawiki/images to /opt/mediawiki-1.26.4/images (+ chown -R www-data: /opt/mediawiki-1.26.4/images)
- - I have copied my old /etc/mediawiki/LocalSettings.php to /opt/mediawiki-1.26.4/LocalSettings.php
- - Then I tried /opt/mediawiki-1.26.4/maintenance/#php update.php (with or without WikiSysop --pass $Pass), that it yields this error :
- PHP Fatal error: Cannot redeclare class SiteConfiguration in /usr/share/mediawiki/includes/SiteConfiguration.php on line 18
- However, I just read your message and you told me, I have to put the NEW LocalSettings.php in /opt/mediawiki-1.26.4 and therefore Im wondering how can I obtain the new one ??? To have it I have to create a new vhost to point to /opt/mediawiki-1.26.4 (ok no pb) after it asks me to install this new mediawiki .... Haroun al Mouwahid (talk) 11:03, 10 November 2016 (UTC)
- I do trust you in what you say; I just have to understand what it means.
- With the "new" LocalSettings.php file I just mean the copy, which you created when you put that file into the folder /opt/mediawiki-1.26.4/. You can just continue using this copy of the file. There is no need to "install the wiki again" or something like that in order to create a new file with different content. The file can just be used as is.
- I have now checked the source code of SiteConfiguration.php and line 18 does not contain a class declaration. See https://github.com/wikimedia/mediawiki/blob/REL1_26/includes/SiteConfiguration.php. Actually, although you now executed the update.php file from the right directory, the error message is still mentioning the folder /usr/share/mediawiki, which is the old installation!
- I don't know why the Ubuntu guys have split up the installation files into different locations and what they have done to make the one location link to the other. However, you still have to make sure that the old files are not used anymore! 87.123.0.246 (talk) 12:42, 10 November 2016 (UTC)
- 1 : Yes, I don't know why it uses the /usr/share/mediawiki path instead the path where Im ... The problem is I have to keep this path because when it will work, I should prepare a package to update all our servers (we have a lot of MW 1.15.5-7 unfortunatly ...)
- 2 : I don't understand for the LocalSettings.php, you mean I can use the old one as well ? and I have to put it in /opt/mediawiki-1.26.4 ? Haroun al Mouwahid (talk) 13:23, 10 November 2016 (UTC)
- So I tried something else. I had a /etc/apache2/conf.d/mediawiki.conf with :
- Alias /mediawiki /var/lib/mediawiki
- <Directory /var/lib/mediawiki>
- <Location /mediawiki> etc ...
- Then today I created /etc/apache2/conf.d/mediawiki126.conf
- Alias /mediawiki126 /opt/mediawiki-1.26.4
- <Directory /opt/mediawiki-1.26.4/>
- <Location /mediawiki126> etc ...
- I deleted the old LocalSettings of MW 1.15 in /opt/mediawiki-1.26.4
- Then I typed the URL https://localhost/mediawiki126 and set up the new configuration :
- DbType : postgres
- DbName : wikidb126
- install account : postgres
- DB account for web access : wikiuser (as before)
- Admin account : WikiSysop (as before)
- Ok the install has worked, but for the owner of the wikidb126 that I had to change despite the fact I specified wikiuser for db account, its owner will be postgres :
- postgres=# \l
- List of databases
- Name | Owner | Encoding | Collate | Ctype | Access privileges
- -----------+----------+----------+-------------+-------------+-----------------------
- postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
- wikidb | wikiuser | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
- wikidb126 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
- postgres=# alter database wikidb126 owner to wikiuser;
- ALTER DATABASE
- postgres=# \l
- Name | Owner | Encoding | Collate | Ctype | Access privileges
- -----------+----------+----------+-------------+-------------+-----------------------
- wikidb | wikiuser | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
- wikidb126 | wikiuser | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
- postgres=# \du
- List of roles
- Role name | Attributes | Member of
- -----------+------------------------------------------------+-----------
- postgres | Superuser, Create role, Create DB, Replication | {}
- wikiuser | | {}
- After I change the db target : $wgDBname = "wikidb"; (instead of wikidb126, there are the 2 databases) and I start the update :
- /opt/mediawiki-1.26.4/maintenance/# php update.php
- MediaWiki 1.26.4 Updater
- Your composer.lock file is up to date with current dependencies!
- Going to run database updates for wikidb
- 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
- ...index mwuser_pkey already set on mwuser table.
- ...index mwuser_user_name_key already set on mwuser table.
- ...index pagecontent_pkey already set on pagecontent table.
- Renaming sequence ipblocks_ipb_id_val to ipblocks_ipb_id_seq
- Renaming sequence rev_rev_id_val to revision_rev_id_seq
- Renaming sequence text_old_id_val to text_old_id_seq
- Renaming sequence rc_rc_id_seq to recentchanges_rc_id_seq
- Renaming sequence log_log_id_seq to logging_log_id_seq
- Renaming sequence pr_id_val to page_restrictions_pr_id_seq
- Renaming sequence category_id_seq to category_cat_id_seq
- Creating sequence archive_ar_id_seq
- Creating sequence externallinks_el_id_seq
- ...category table already exists.
- [..]
- Altering column 'user_properties.up_user' to be DEFERRABLE INITIALLY DEFERRED
- Altering column 'watchlist.wl_user' to be DEFERRABLE INITIALLY DEFERRED
- Refreshing add_interwiki() ...A database query error has occurred.
- Query: DROP FUNCTION IF EXISTS add_interwiki(TEXT,INT,CHARACTER) CASCADE
- Function: DatabaseBase::sourceFile( /opt/mediawiki-1.26.4/maintenance/postgres/archives/patch-add_interwiki.sql )
- Error: 42501 ERROR: must be owner of function add_interwiki
- What's happen again ? Haroun al Mouwahid (talk) 13:05, 10 November 2016 (UTC)
- Obviously I did a chown -R root: /opt/mediawiki-1.26.4 + chown -R www-data: /opt/mediawiki-1.26.4/images/ Haroun al Mouwahid (talk) 14:09, 10 November 2016 (UTC)
- The update is done now but I ve got an Internal error (error 500). Here is what I did :
- - mv /usr/share/mediawiiki /usr/share/mediawiiki_old (to avoid update.php looks for something in /usr/share/mediawiki/includes/SiteConfiguration.php)
- - Replaced $wgDBuser = "wikiuser"; and $wgDBpassword = "wikiuser_password"; by $wgDBuser = "postgres"; and $wgDBpassword = "";
- Then I started /opt/mediawiki-1.26.4/maintenance# php update.php
- MediaWiki 1.26.4 Updater
- Your composer.lock file is up to date with current dependencies!
- Going to run database updates for wikidb
- 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) ... 4
- 0
- ...index mwuser_pkey already set on mwuser table.
- ...index mwuser_user_name_key already set on mwuser table.
- [..]
- Populating img_sha1 field
- Done 0 of 80, 0.000%
- Done 80 files in 0.2 seconds
- Fixing protocol-relative entries in the externallinks table...
- Done, 0 rows updated.
- Populating fa_sha1 field from fa_storage_key
- Done 0 files in 0.0 seconds
- Updating *_from_namespace fields in links tables.
- ...doing page_id from 1 to 200
- ...doing page_id from 200 to 399
- ...doing page_id from 399 to 598
- Set the local repo temp zone container to be private.
- Purging caches...done.
- Done in 10 s.
- Then I typed the URL https://localhost/mediawiki but the server told me :
- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. One done, here is the error :
- Internal error
- A database error has occurred
- Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len FROM page WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
- Function: Article::pageData
- Error: 1 ERROR: column "page_counter" does not exist
- LINE 1: ...ge_id,page_namespace,page_title,page_restrictions,page_count...
- ^
- Backtrace:
- #0 /usr/share/mediawiki/includes/db/Database.php(616): DatabasePostgres->reportQueryError('ERROR: column ...', 1, 'SELECT page_id...', 'Article::pageDa...', false)
- #1 /usr/share/mediawiki/includes/db/Database.php(1026): Database->query('SELECT page_id...', 'Article::pageDa...')
- #2 /usr/share/mediawiki/includes/db/Database.php(1106): Database->select('page', Array, Array, 'Article::pageDa...', Array, Array)
- #3 /usr/share/mediawiki/includes/Article.php(369): Database->selectRow('page', Array, Array, 'Article::pageDa...')
- #4 /usr/share/mediawiki/includes/Article.php(381): Article->pageData(Object(DatabasePostgres), Array)
- #5 /usr/share/mediawiki/includes/Wiki.php(300): Article->pageDataFromTitle(Object(DatabasePostgres), Object(Title))
- #6 /usr/share/mediawiki/includes/Wiki.php(60): MediaWiki->initializeArticle(Object(Title), Object(WebRequest))
- #7 /usr/share/mediawiki/index.php(116): MediaWiki->initiaIndeed the page_counter does not exist anymore seeing that you deleted it jerk !!! lollize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
- #8 {main} Haroun al Mouwahid (talk) 15:42, 10 November 2016 (UTC)
- Indeed the page_counter column does not exist anymore seeing that you deleted it jerk !!!! lol
- wikidb=# \d page
- Table "public.page"
- Column | Type | Modifiers
- --------------------+--------------------------+--------------------------------------------------------
- page_id | integer | not null default nextval('page_page_id_seq'::regclass)
- page_namespace | smallint | not null
- page_title | text | not null
- page_restrictions | text |
- page_is_redirect | smallint | not null default 0
- page_is_new | smallint | not null default 0
- page_random | numeric(15,14) | not null default random()
- page_touched | timestamp with time zone |
- page_latest | integer | not null
- page_len | integer | not null
- titlevector | public.tsvector |
- page_content_model | text |
- page_links_updated | timestamp with time zone |
- page_lang | text |
- Ohhh please !!! PLEEEEEEEEEAASEEEEE !!! Haroun al Mouwahid (talk) 15:43, 10 November 2016 (UTC)
- Glad to hear that the wiki now is basically working. Since the folder /usr/share/mediawiiki /usr/share/mediawiiki_old then will no longer be used, you most likely can remove that one.
- Information on an error 500 usually is available in the Apache error log.
- That the page_counter column has been deleted from the database is correct. You now need to figure out, where in the source code this column still is used. Maybe you still have to update a few extensions? 87.123.0.246 (talk) 18:05, 10 November 2016 (UTC)
- I still noticed one thing: Your latest error message (the Postgres error, which tells you that the page_counter column no longer is there), is still coming from /usr/share/mediawiki/, from your old installation.
- Please make sure that this old installation no longer is used. You said you would have moved the files away into a different folder?! 87.123.30.181 (talk) 20:51, 10 November 2016 (UTC)
- Yes exactly, thus, I have moved /usr/share/mediawiki in /usr/share/mediawiki_ and /var/lib/mediawiki in /var/lib/mediawiki. Hoever, is-it normal to find this line in the former LocalSettings.php ?
- define('MW_INSTALL_PATH','/var/lib/mediawiki');
- Sinice, I had to change by the new path, otherwise MW is not able to find the skin folder :
- define('MW_INSTALL_PATH','/opt/mediawiki-1.26.4');
- This way it's working, it finds the skin folder.
- I shoud as well add this line, otherwise MW does not consider the skin folder either :
- wfLoadSkin( 'CologneBlue' );
- wfLoadSkin( 'Modern' );
- wfLoadSkin( 'MonoBook' );
- wfLoadSkin( 'Vector' );
- Does that make sense there is no "$" at the beginning ? Otherwise it's not working... Haroun al Mouwahid (talk) 11:26, 14 November 2016 (UTC)
- The lines, in which you are loading the skins, are correct that way, without $-sign at the beginning.
- MW_INSTALL_PATH should normally be set by MediaWiki automatically while it is running. Normally, there is no need to explicitly define it. (If I remember correctly, that may have been different in MW 1.15.) In MediaWiki 1.26, MediaWiki should instead determine MW_INSTALL_PATH all by itself. Maybe you can try, if it is working, if you remove that line. However, if it's only working with the path set explicitly, then leave it in! 87.123.5.18 (talk) 13:09, 14 November 2016 (UTC)
- The update is working now, Im preparing a ubuntu package for the 1.26.4 (not 1.27 because our php version is 5.3 and 1.27 requires at least php 5.5). It has been difficult to upgrade from le ubuntu package 1.15 !! Anyway thank you for your help ;) if I could pay you cofee I would do it :) Haroun al Mouwahid (talk) 22:44, 15 November 2016 (UTC)
- Glad I could help! I am drinking my coffee with milk and sugar! :-)
- If you ask me, huge part of the problem was that strange directory structure, which the Ubuntu package for version 1.15 has created. The process would be way easier, if the new package just created a standard installation with all files in one folder, not in multiple places. 87.123.7.145 (talk) 23:23, 15 November 2016 (UTC)
- This is Im going to do in fact. I will take the 1.23.15 coz it's a LTS and I ll package it. I have to mange the installation, transfert the images from the old 1.15 if detected and delete it after. Our servers are still under ubuntu precise (12.04) et no longer supported. Under trusty (14.04) ubuntu offer their mediawiki 1.19 but it's the same structure (/usr/share/mediawiki & /var/lib/mediawiki) therefore it's no !! definitly :) Haroun al Mouwahid (talk) 13:45, 16 November 2016 (UTC)
ImageMap
Hello,
I am trying to use the ImageMap feature of the MediaWiki. Overall it is working just fine, but no matter what I try, i got the following problem:
The text after the ImageMap will always be a Link to the Image it self. The Link will go to the next footnote in the Text.
Here is the Code i used for the ImageMap:
==The Event-Driven Process Chain== <imagemap> Image:EPC_example.png|alt=Exemplary EPC process model.|Exemplary EPC process model|300px|thumb circle 355 580 55 [[XOR Operator | XOR Operator]] rect 240 270 475 425 [[Function | Function]] rect 240 0 475 165 [[Event | Event]] rect 0 720 240 880 [[Event | Event]] rect 470 720 706 880 [[Event | Event]] </imagemap> The event-driven process chain (EPC) has been one of the most dominant languages for business process modelling over the last decades and is well established in both research and practice.[1]
Anybody got an Idea why this is? Here is a Link to the given Page: https://www.epc-standard.org/collaborate/Main_Page
Thanks 131.173.196.24 (talk) 18:30, 8 November 2016 (UTC)
- Looks like the HarvardReferences extension is conflicting with imagemap. Can you try disabling the HarvardReferences extension and see if that fixes it? Ciencia Al Poder (talk) 02:35, 10 November 2016 (UTC)
- Thank you for the answer, but apparently disabling the HarvardReferences extension made things even worse... Now the text will be linked till the next link in the text. But cause disabling the extension makes a different, it should have to do sth. with some reference configurations? We use the Cite Extension that is already built in in the MediaWiki. I have disabled both of them but with the same result as just disabling the HarvardReferences extension. Any additional idea is welcome!
- Thanks! 131.173.166.59 (talk) 11:24, 10 November 2016 (UTC)
- I found another "interesting" facet of the issue.
- If i edit the page and go to the quick preview (not the "show preview" at the bottom of the page), everything is working fine? I don't know if that could help... 131.173.166.59 (talk) 11:44, 10 November 2016 (UTC)
- I suspect it does not happen without the "thumb" option (try "right"). With thumb (or frame) the image link for the caption ends up inserted again, after the image, wrapping all subsequent text, terminating at the next link (hence why disabling the HarvardReferences extension made it worse).
- I can reproduce the behaviour on a plain 1.27.1 wiki with no other extensions. But on a different 1.27.1 wiki (which has lots of extensions and I cannot control) it does not happen, nor does it happen on mediawiki. Not sure where the bug lies. Clump (talk) 12:09, 11 November 2016 (UTC)
- This is a known bug in ImageMap. 120.144.32.44 (talk) 12:40, 11 November 2016 (UTC)
Saving specific sides from a broken Ubuntu
- Hello,
- because of a HDD failure of the Host VM my Ubuntu Installation with the MediaWiki installed on it is broken. I am able to boot from a LiveCD and access the mounted HDD, however wasnt able to fix the OS.
- My question now is: is it possible to get two specific wiki sides with only access to the file system? I dont really care for the rest but these sides are pretty important for me and yes i know i am an idiot for not making a proper backup.
- Thank you! 62.156.184.62 (talk) 10:22, 9 November 2016 (UTC)
- Yes, you can access database files and script files (core, extensions, config...). wargo (talk) 10:36, 9 November 2016 (UTC)
- Okay where can i find them? 62.156.184.62 (talk) 10:39, 9 November 2016 (UTC)
- By default it's in /var/www and /var/lib/mysql.
- Maybe you can describe error? wargo (talk) 10:42, 9 November 2016 (UTC)
- Thank you for the fast response!
- Well there isnt really an error for Mediawiki, its just that i am not able to repair the original server. I tried to just shift the folders to another (my Nagios) Server, but all i get is
- "A database query error has occurred. This may indicate a bug in the software."
- I guess the database has to be connected? 62.156.184.62 (talk) 13:42, 9 November 2016 (UTC)
- Depends on how you "shift the folders" and which command triggers that error message. Clear steps to reproduce the problem are welcome. :) Malyacko (talk) 12:43, 10 November 2016 (UTC)
- If the only thing you did was just copy-paste the folders to another server then the "A database query error has occurred. This may indicate a bug in the software." error most likely indicates that the MediaWiki files cannot connect to the the database. AhmadF.Cheema (talk) 15:31, 10 November 2016 (UTC)
- Pretty much that, i just shifted the folders, which is obviously not working.
- My new idea is to install a new Mediawiki from scratch, is there a posibility to import the old stuff with what is left of the /www amd /mysql folders? Like i sayed before it doesnt has to be pretty, a raw output would work fine. Is this viable?
- Thank you very much! 62.156.184.62 (talk) 07:14, 11 November 2016 (UTC)
- See configuration in LocalSettings.php wargo (talk) 10:07, 11 November 2016 (UTC)
- See Manual:Moving a wiki Ciencia Al Poder (talk) 20:16, 11 November 2016 (UTC)
Word Count
Hello,
Does anyone know an easier way to find out what the word count of a particular MediaWiki installation?
Thanks for your help! PaleoIsh (talk) 14:18, 9 November 2016 (UTC)
- Depends on which way you are currently having... 87.123.32.63 (talk) 14:56, 9 November 2016 (UTC)
- I'm ok with a simple word count over all pages. PaleoIsh (talk) 15:34, 9 November 2016 (UTC)
Migrate mediawiki from Ubuntu to Windows?
Hello, I need to migrate mediawiki off an old Ubuntu Server (11.04) and was curious if I could migrate it to a Windows server? This would go to either a Server 2008R2 or 2016 Server if possible
Ubuntu 11.04
Current Mediawiki version 1.16.4
MySQL 5.1.63
PHP 5.3.5
Apache 2.2.17 Vjsuarez2002 (talk) 21:55, 9 November 2016 (UTC)
- That should be possible, see Manual:Moving a wiki!
- Depending on what you have on the new server (PHP and MySQL versions), you will also have to Update MediaWiki to version 1.26 or 1.27. 87.123.0.246 (talk) 23:32, 9 November 2016 (UTC)
- Thank you very much Vjsuarez2002 (talk) 16:55, 10 November 2016 (UTC)
This content can’t be shown in a frame.
Hi,
I added widgets 1.2.1 to my work mediawiki, edited the LocalSettings.php and added "$IP/extensions/Widgets/Widgets.php"; When I check the version in special pages I can see that is loaded and working fine
When I add "Google forms" I get "This content can’t be shown in a frame. There is supposed to be some content here, but the publisher doesn’t allow it to be displayed in a frame. This is to help protect the security of any information you might enter into this site."
If I used sample google forms pages from anywhere on the net, google or even here in mediawiki my pages load fine but when I make my own google form always het this error.
Using wamp to host our work wiki to our LAN.
|
Thank you 108.5.251.143 (talk) 22:03, 9 November 2016 (UTC)
- Does Manual:$wgEditPageFrameOptions help? 87.123.0.246 (talk) 23:51, 9 November 2016 (UTC)
- No it does not help. :( 108.5.251.143 (talk) 19:55, 10 November 2016 (UTC)
- Does anyone has any other suggestions? 108.5.251.143 (talk) 14:50, 11 November 2016 (UTC)
- This doesn't seem to be about embedding MediaWiki inside another form, but embedding a google form inside MediaWiki. In that case, $wgEditPageFrameOptions won't help. Google forms seem to require you to use a special URL to embed the form. See this. Ciencia Al Poder (talk) 20:12, 11 November 2016 (UTC)
How to delete deletion history?
Hi guys,
Just get an old wiki with about 85k spam pages without any backup. I delete all spam with DeleteBatch.php. Then the problem become 85k pages deletion history. How can I remove all those deletion record?
Thank you! Deletedaccount4567435 (talk) 06:33, 10 November 2016 (UTC)
- Are you trying to hide that you deleted those pages? If so, you will need revision rights, which you need to enable in localsettings.php (see Manual:RevisionDelete). If you're trying to delete archived revisions (but not the history of a page), then Manual:DeleteArchivedRevisions.php. If you're trying to delete page histories, then Manual:DeleteOldRevisions.php.
- There's also an extension that lets you delete pages permanently, without any trace (Extension:DeletePagesForGood). You could also delete their data by accessing the database itself and searching them in the tables they belong to (though you're better off trying the previous options).
- Hope it helps! │Star-Warden│ 09:57, 10 November 2016 (UTC)
- Is there any way to selective delete(remove from database ,not hide) those deleted version of spam pages from text table and archive table?
- It seems I can clean out text table by purgeOldText.php. However, before that I need to selective delete those spam page from archive table. How to do so?
- deleteArchivedRevisions.php isn't selective. Deletedaccount4567435 (talk) 02:34, 12 November 2016 (UTC)
- By selective do you mean containing a specific phrase/word? If so, just use the search function of the database. │Star-Warden│ 07:32, 12 November 2016 (UTC)
- The deletions are logged inside the database table logging. Deletions have "delete" as value in column log_type. You can then limit the rows to remove e.g. using the value of log_timestamp and of log_user_text. 87.123.0.246 (talk) 10:25, 10 November 2016 (UTC)
- The correct answer to the original question has been given by 87.123.0.246. You also can delete removed contents from the text table - see Manual:Combating_vandalism#If_vandalism_has_won_the_last_battle_on_your_wiki. This however will not influence the log entries at all. 87.123.0.65 (talk) 09:04, 12 November 2016 (UTC)
- If you deleted many spam revisions in one go, then it will be pretty simple to identify and delete them from the database: Inside the archive table, these revisions will have a value for ar_id. This value is an auto_increment and together with the other values of a given row you will be able to see, if you deleted the according revisions together with the other spam or if it got deleted in a different action. You can use ar_id and e.g. ar_user and ar_timestamp to check that! 87.123.0.65 (talk) 09:11, 12 November 2016 (UTC)
Добрый день.
Здравствуйте есть пару вопросов. Не могли ли бы вы мне помочь? Zvezdato (talk) 14:46, 10 November 2016 (UTC)
Remote database setup
I have a running mediawiki with no issues 1.27xxx with php7. I have another site that is remote using exactly the same software, with the same database installed. I want to disconnect the mediawiki from the on site database and connect it to the remote database. I have found no instructions for doing that. Are ther einstructions that anyone knows of or can someone provide a way to do this. I am aware that the mediawiki may be set up initially like this, though have not done so. i just think there is something I am not aware of that will make this easier.
Thanks
john
please reply to: jfoster81747@gmail.com Jfoster81747 (talk) 14:51, 10 November 2016 (UTC)
Image not shown Issue
Hi,
I am working on a new Mediawiki site, and I am having a problem with some images:
Since I have migrated the site to a new server all new images do not appear, instead there is an empty box:
http://adaptopedia.de/index.php?title=Borstige_Taigawurzel
or
http://adaptopedia.de/index.php?title=Engelwurz
I am doing the same as before in the other articles:
http://adaptopedia.de/index.php?title=Ginseng
or
http://adaptopedia.de/index.php?title=Brahmi
1) Uploading (FTP) the image to the /image folder on my server
2) Setting the Tags. e.g.:
[[Datei:Eleutherococcus_senticosus.jpg|miniatur|rechts|Illustration von ''Borstige Taigawurzel'']]
In the sites I have made before, everything is working fine, but the new sites, do not show the images.
Can you please hlep me and tell me what I am doing wrong?
Thanks
Rafael Rfnx (talk) 17:22, 10 November 2016 (UTC)
- Hi Rafael,
- your problem is that files inside the images/ folder cannot be accessed currently. E.g. the Engelwurz image has these URLs (thumb and original):
- which gives an error 403.
- Other images in that folder however can be accessed, e.g. http://adaptopedia.de/images/thumb/b/b8/Panax_quinquefolius.jpg/800px-Panax_quinquefolius.jpg
- Please make sure that access to all files in the images/ folder and in all of its subfolders is allowed! 87.123.0.246 (talk) 17:57, 10 November 2016 (UTC)
- the rights are the same for both images:
- -rw-r--r-- 1 web6 client0 552332 Dec 29 2015 800px-AngelicaArchangelica1.jpg
- -rw-r--r-- 1 web6 client0 94598 Dec 29 2015 Eleutherococcus_senticosus.jpg
- like the Panax Picture:
- -rw-r--r-- 1 web6 client0 154498 Dec 29 2015 Panax_quinquefolius.jpg
- the access to all files is allowed! You can see it here:
- http://adaptopedia.de/images/800px-AngelicaArchangelica1.jpg
- I dont know why there is a copy in "thumb/4/45/" or 4/45/" folder, i think its issued by the websites upload. Rfnx (talk) 18:55, 10 November 2016 (UTC)
- and I've tried to chmod 775 the rights for:
- they look like this now on the server:
- /thumb/4/45/
- -rwxrwxr-x 1 web6 client0 552332 Nov 9 01:07 800px-AngelicaArchangelica1.jpg
- /4/45/
- drwxrwxr-x 2 web6 client0 4096 Nov 9 01:18 800px-AngelicaArchangelica1.jpg
- but the box is still empty:
- http://adaptopedia.de/index.php?title=Engelwurz Rfnx (talk) 19:11, 10 November 2016 (UTC)
- Yes, most likely a filesystem permission issue on those images since they were imported from another server. You probably need to change the owner of the images folder, recursively. Ciencia Al Poder (talk) 18:13, 10 November 2016 (UTC)
- @Ciencia Al Poder
- I migrated the whole kvm image to another server, so the permissions to the folder are the same as before:
- drwxr-xr-x 8 web6 client0 4096 Nov 9 01:04 images
- Only the IP changed.
- The web6 user and its group client0 do have web access. Rfnx (talk) 18:48, 10 November 2016 (UTC)
- I also wonder why the image is displayed when i click on my empty Imagebox on
- http://adaptopedia.de/index.php?title=Datei:Eleutherococcus_senticosus.jpg#file
- It leads to Wikimedia.org:
- https://upload.wikimedia.org/wikipedia/commons/c/c9/Eleutherococcus_senticosus.jpg
- Is that a metatag thing? Rfnx (talk) 18:53, 10 November 2016 (UTC)
- External images, which are coming from wikipedia, are not your problem.
- Whatever you have done to file http://adaptopedia.de/images/4/45/800px-AngelicaArchangelica1.jpg, please do the same for the other files as well! This file can be viewed now while it could not when I wrote my first post! 87.123.30.181 (talk) 19:55, 10 November 2016 (UTC)
- OK, thank you, it was really a rights issue!
- You made my day! Rfnx (talk) 20:15, 10 November 2016 (UTC)
- One other thing :
- I made a new article and found out that the same problem appeard again
- Is there a way to tell my Mediawiki to set the correct rights to the thumbs-folder and any subfolders it creates itself?
- This has been no problem before as far i remember
- Thanks Rfnx (talk) 20:56, 10 November 2016 (UTC)
- What is it that you have changed with the existing files to make them work? 87.123.30.181 (talk) 22:32, 10 November 2016 (UTC)
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 want to install pear for mail support, but I don't know where to install it. My MediaWiki is on an unbuntu server. The instructions provided here: https://help.ubuntu.com/community/MediaWiki don't tell me if I have to install it in the mediawiki root folder or in the folder where all the other ubuntu folders are (bin, boot, etc, home, lib and so on). Which is the correct destination for it? And are the instructions from that page good? The ones under Email Support. 89.123.228.217 (talk) 20:56, 10 November 2016 (UTC)
- That page clearly details how to install pear, run:
sudo apt-get install php-pear
You don't need to worry about where to install it, that's the package manager's job. 120.144.32.44 (talk) 06:29, 11 November 2016 (UTC) - Thanks! That's all I needed to know. 89.123.228.217 (talk) 08:01, 11 November 2016 (UTC)
Codes work in one page but the identical codes do not work in another page.
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.
Here is a page where the "iframe" extension works: http://cyclecityusa.com/index.php?title=Rear_Derailleur_Hanger_Alignment created in 2010
Here is another page with the same codes but the "iframe" extension does not work.
http://cyclecityusa.com/index.php?title=Test created in 2016 after version upgrade
I can't figure out why it works in one page but does not work in another. The only difference in those two pages are the titles and the creation dates of the pages.
The version that is used in this wiki is MediaWiki 1.25.3 and the Kuhitkuhit (talk) 22:36, 10 November 2016 (UTC)
- That page contains
in place of the iframe. Clearly that extension is only allowed in protected pages. 120.144.32.44 (talk) 06:23, 11 November 2016 (UTC)
<!-- FHM_iFrame: page unprotected. -->
*** 120.144.32.44 (talk) 06:24, 11 November 2016 (UTC)
Problem Partial Text in a line should be centered
Hi,
I have a little formatting problem. I have to comment a code line of a configuration and the comment (no mediawiki comment)
should be centered . Here is the example:
ip-address <span style="background:yellow">10.242.64.41</span> <center>(* Loopback0 address *)</center>
The comment of the code is centered but not in the same line.
How can I prevent the line break? Someone an idea?
Kind regards
Thorsten Tuttikanone (talk) 07:35, 11 November 2016 (UTC)
- The "center" element, which you are using is a block element. This is the reason for why it is displayed on its own line.
- You could maybe try using a <span style="text-align: center;">(* Loopback0 address *)</span> instead. However, I don't know how browsers have to display this text, if there also is text in front of this part, which should not be centered. And even if you find what the HTML specification is telling for that case, the next question is, if browsers then really do it that way. Without knowing anything about it, my guess is: At least IE will surprise you.
- Try the above, but my idea would be this:
- Create a table with three columns. The table should be centered on the page. The middle column should only be as broad as needed for its content, not broader. The left and the right column should have the same width. Set content in the middle column to centered. Content in the left column should be aligned to the right so that it stands right next to the centered text from the middle column. 87.123.30.181 (talk) 11:01, 11 November 2016 (UTC)
- Unfortunately the first idea doesn't work. I will try it with a table. 195.202.41.50 (talk) 06:24, 14 November 2016 (UTC)
Redirect / Search does not work properly
Hi everyone,
I have two problems with my mediawiki.
- If I search for a specific page, which exists, I just recive an result-page instead of being transfered to that page.
- If I create a redirect page with "#REDIRECT["Destination Page"]" with no more chars than those (especially not leading), that page will only present the text for redirection instead of redirect immetiately. In addition, the "Destination Page", which exists, will be layouted as if it does NOT exist. By clicking on the destination, I can edit that page as if it is new to the system.
I think, both problems may be related, but I have no clue, how to solve them.
Can anyone help me out with this problem, please? =( 194.76.175.212 (talk) 08:34, 11 November 2016 (UTC)
function startUp() of startup.js is not getting executed by IE11
function startUp() of startup.js is not getting executed by IE11. For this, other javascript files are not getting load through load.php and which is causing problem rendering collapsable div.
These four javascript files are not getting loaded in IE11 although they are successfully getting downloaded in other browsers.
/load.php?debug=false&lang=en-gb&modules=jquery,mediawiki&only=scripts&skin=vector&version=faf78IUV
/load.php?debug=false&lang=en-gb&modules=jquery.accessKeyLabel,client|mediawiki.RegExp,notify,util|mediawiki.legacy.wikibits&skin=vector&version=454dcc125e13
/load.php?debug=false&lang=en-gb&modules=jquery.tabIndex,throttle-debounce|mediawiki.page.startup|skins.vector.js&skin=vector&version=3ceadb7acf17
/load.php?debug=false&lang=en-gb&modules=ext.FancyBoxThumbs|jquery.checkboxShiftClick,cookie,getAttrs,highlightText,makeCollapsible,mw-jump,placeholder,suggestions|mediawiki.action.view.postEdit|mediawiki.api,cldr,cookie,jqueryMsg,language,searchSuggest,template,user|mediawiki.language.data,init|mediawiki.libs.pluralruleparser|mediawiki.page.ready|site|user.defaults&skin=vector&version=51a9f7722188
Any idea why it is not working?
Thanks, Sourab 193.38.100.250 (talk) 09:25, 11 November 2016 (UTC)
- Mediawiki version is 1.26.3 and php version is 5.6.22. There is no error showing in console. 193.38.100.250 (talk) 09:28, 11 November 2016 (UTC)
- Be sure IE11 is not trying to render the wiki in "Internet Explorer 6.0 mode" or something like that, something that usually happens if your wiki is inside an intranet and the site is added to local intranet sites.
- Hit F12 and see the "Emulation" tab. You can change Document mode to 11 or similar, in case it's in a document mode below 10. See this microsoft link Ciencia Al Poder (talk) 20:23, 11 November 2016 (UTC)
Bugging out when trying to switch to source edit.
My colleague has reported to me that frequently he will be creating a page using VisualEditor extension (version 0.1.0 according to my special page). He will be documenting his design process , adding a large amount of text into a page, when he needs to add an image he needs to swap to edit source because of the lack of local file upload support in VisualEditor. When he does this it prompts him with a pop-up menu asking him: "did you mean to swap to source edit?" (something along those lines) and options being "No, cancel" "Yes, discard changes" "Yes, keep changes". Obviously he will select keep changes however once selected it just freezes the page and he looses all progress made (a whole lot of wasted time and frustration also). I am leaning more towards this being an issue with the extension so I have reported it as a bug to the devs but I am looking for any support so I thought I would also post here.
Cheers to anyone who read. Joescull1 (talk) 10:08, 11 November 2016 (UTC)
Images Not Displaying
I just started my own wiki after using Wikia for many years. I am very experienced in wiki code but a complete novice in the back-end (PHP, etc.) stuff. I set image uploads to "true", but when I tried uploading a photo... It will not display properly. See here: http://internationalhockeywiki.com/ihw/index.php?title=File:Wiki_Logo.png
I am at a total loss for what to do, can someone please help me? I'd really appreciate it. Hockeyben (talk) 15:31, 11 November 2016 (UTC)
- When I try to view the actual image, then your server responds with error 500. That is your problem.
- What does the server error log say about this error? 87.123.30.181 (talk) 15:36, 11 November 2016 (UTC)
- Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://internationalhockeywiki.com/ihw/index.php?title=File:12-7-1907_Princes-Oxford.png
- This is what the error log reports. No clue how to fix this. Hockeyben (talk) 16:29, 19 November 2016 (UTC)
- When you google your error message, you will find a topic on stackoverflow.com. I would have linked it here for you, but the spam filter does not allow that. 87.123.34.120 (talk) 18:59, 19 November 2016 (UTC)
- This link I guess: http://stackoverflow.com/questions/27683366/please-explain-this-error-log Ciencia Al Poder (talk) 22:33, 19 November 2016 (UTC)
- Correct. Really an evil spam link. 87.123.5.177 (talk) 10:55, 20 November 2016 (UTC)
Anchor links
Hi, I am having problems with anchor links. I have a page that is a Glossary. Under each letter is a definition. That definition is an H4 header. So it should link to that. It is not. It just goes to a random spot on the Glossary page. Here is my a page with links as an example: http://wpbyd.com/wiki/index.php?title=TS_Fish_Kitchen_Disinfecting_%26_Cleaning#METHODOLOGYAny help is greatly appreciated. Thanks. 2602:304:CD80:50B0:B47E:63C4:45D7:A20F (talk) 17:27, 11 November 2016 (UTC)
- It moved me to "METHODOLOGY" section. wargo (talk) 17:32, 11 November 2016 (UTC)
- If you click on the Concentrated Accel it should take you to the Glossary page. Just not the correct section. Dbo11 (talk) 17:38, 11 November 2016 (UTC)
- Because section has another name wargo (talk) 19:31, 11 November 2016 (UTC)
- Hi, I changed it did not seem to make a difference Dbo11 (talk) 20:16, 11 November 2016 (UTC)
- Now clickng "Concentrated Accel" moves to appropiate section in Glossary. wargo (talk) 21:54, 11 November 2016 (UTC)
E-mails Not Being Sent
I configured $wgSMTP in LocalSettings.php with a set of credentials and IP addresses that worked in past versions of MediaWiki but now, with version 1.27.1, I get an HTTP 500 error when I try to generate a new password and an e-mail is not sent.
E-mail used to work with a PEAR folder in the wiki's root folder as described at http://syrkos.com/blog/2013/04/12/manual-install-of-pear-mail-in-mediawiki/
I read that version 1.27 no longer requires a separate PEAR install so I removed the folder and commented out $pearPath = .... and ini_set (step 8 in the linked article).
What can I do to fix the problem?
Log file excerpt:
Start request POST /wiki/Special:PasswordReset HTTP HEADERS: CONTENT-TYPE: application/x-www-form-urlencoded CONTENT-LENGTH: 90 X-ORIGINAL-URL: /wiki/Special:PasswordReset USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3) REFERER: http://stoutwiki/wiki/Special:PasswordReset HOST: stoutwiki COOKIE: wikidb171UserName=Zchoy; wikidb171_session=vp5j01hnc1br5qrbetp7i8s5pug8lf7r ACCEPT-LANGUAGE: en-US ACCEPT-ENCODING: gzip, deflate ACCEPT: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel, */* CONNECTION: Keep-Alive CACHE-CONTROL: no-cache [caches] cluster: WinCacheBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: WinCacheBagOStuff, parser: WinCacheBagOStuff, session: WinCacheBagOStuff [caches] LocalisationCache: using store LCStoreCDB [session] Session "vp5j01hnc1br5qrbetp7i8s5pug8lf7r" requested without UserID cookie Unstubbing $wgParser on call of $wgParser::setHook from wfSimpleTable Parser: using preprocessor: Preprocessor_DOM IP: 192.168.2.186 Fully initialised SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity [connect] Connected to database 0 at 127.0.0.1 [error] [2bf38f65217fb0f5e2e70bda] /wiki/Special:PasswordReset ErrorException from line 58 of C:\wiki\wiki\includes\libs\objectcache\WinCacheBagOStuff.php: PHP Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given #0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array) #1 C:\wiki\wiki\includes\libs\objectcache\WinCacheBagOStuff.php(58): wincache_ucache_cas(string, string, string) #2 C:\wiki\wiki\includes\libs\objectcache\BagOStuff.php(305): WinCacheBagOStuff->cas(string, string, array, integer) #3 C:\wiki\wiki\includes\libs\objectcache\WinCacheBagOStuff.php(72): BagOStuff->mergeViaCas(string, Closure, integer, integer) #4 C:\wiki\wiki\includes\libs\objectcache\WANObjectCache.php(424): WinCacheBagOStuff->merge(string, Closure, integer, integer) #5 C:\wiki\wiki\includes\cache\MessageCache.php(691): WANObjectCache->set(string, array, integer) #6 C:\wiki\wiki\includes\cache\MessageCache.php(637): MessageCache->setValidationHash(string, array) #7 C:\wiki\wiki\includes\cache\MessageCache.php(406): MessageCache->saveToCaches(array, string, string) #8 C:\wiki\wiki\includes\cache\MessageCache.php(326): MessageCache->loadFromDBWithLock(string, array, NULL) #9 C:\wiki\wiki\includes\cache\MessageCache.php(925): MessageCache->load(string) #10 C:\wiki\wiki\includes\cache\MessageCache.php(857): MessageCache->getMsgFromNamespace(string, string) #11 C:\wiki\wiki\includes\cache\MessageCache.php(827): MessageCache->getMessageForLang(Language, string, boolean, array) #12 C:\wiki\wiki\includes\cache\MessageCache.php(767): MessageCache->getMessageFromFallbackChain(Language, string, boolean) #13 C:\wiki\wiki\includes\Message.php(1178): MessageCache->get(string, boolean, Language) #14 C:\wiki\wiki\includes\Message.php(801): Message->fetchMessage() #15 C:\wiki\wiki\includes\Message.php(892): Message->toString() #16 C:\wiki\wiki\includes\specialpage\SpecialPage.php(564): Message->text() #17 C:\wiki\wiki\includes\specialpage\SpecialPage.php(445): SpecialPage->getDescription() #18 C:\wiki\wiki\includes\specialpage\FormSpecialPage.php(148): SpecialPage->setHeaders() #19 C:\wiki\wiki\includes\specialpage\SpecialPage.php(479): FormSpecialPage->execute(NULL) #20 C:\wiki\wiki\includes\specialpage\SpecialPageFactory.php(576): SpecialPage->run(NULL) #21 C:\wiki\wiki\includes\MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext) #22 C:\wiki\wiki\includes\MediaWiki.php(745): MediaWiki->performRequest() #23 C:\wiki\wiki\includes\MediaWiki.php(519): MediaWiki->main() #24 C:\wiki\wiki\index.php(43): MediaWiki->run() #25 {main} [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database User::getBlockedStatus: checking... Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct User: got user 1 from cache User::pingLimiter: adding record for mediawiki:limiter:mailpassword:ip:192.168.2.186 (limit 5 in 3600s) MWCryptRand::realGenerate: Generating cryptographic random bytes for PasswordFactory::generateRandomPasswordString/MWCryptRand::generateHex/MWCryptRand->realGenerateHex/MWCryptRand::generate/MWCryptRand->realGenerate MWCryptRand::realGenerate: mcrypt_create_iv generated 7 bytes of randomness. MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer. User: got user 1 from cache [authentication] Changing authentication data for Zchoy class MediaWiki\Auth\TemporaryPasswordAuthenticationRequest MWCryptRand::realGenerate: Generating cryptographic random bytes for MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider->providerChangeAuthenticationData/PasswordFactory->newFromPlaintext/Pbkdf2Password->crypt/MWCryptRand::generate/MWCryptRand->realGenerate MWCryptRand::realGenerate: mcrypt_create_iv generated 16 bytes of randomness. MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer. User: cache miss for user 1 User: loading options for user 1 from database. [objectcache] Rejected set() for global:user:id:wikidb171:1 due to pending writes. UserMailer::send: sending mail to zchoy@firstwatch.net Sending mail via PEAR::Mail Start request GET /wiki/Main_Page
ZianFirstWatch (talk) 18:00, 11 November 2016 (UTC)
- The exception shown is:
- [error] [2bf38f65217fb0f5e2e70bda] /wiki/Special:PasswordReset ErrorException from line 58 of C:\wiki\wiki\includes\libs\objectcache\WinCacheBagOStuff.php: PHP Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given
- Sadly, this is reported but there have been no progress so far. See T120896. The problem is with wincache, so as a workaround you'll need to remove $wgMainCacheType from your LocalSettings.php or install another caching system. Ciencia Al Poder (talk) 20:02, 11 November 2016 (UTC)
Content splitting
Hello! I run a mediawiki. Is it possible to publish only some part of articles? For example: I have 100 articles in the system. Now, i want publish only 50 articles. Best greetings (nob) (talk) 19:08, 11 November 2016 (UTC)
- You can try Extension:Approved Revs and Extension:Moderation, but if those pages already exist on the wiki you may not be able to "unpublish" them, that would be for new articles after the extension is installed. Ciencia Al Poder (talk) 19:57, 11 November 2016 (UTC)
MultiUpload issues
Hi. Back when the wiki was founded, a very nice user mostly active at Wikia (Gguigui1), modified the MultiUpload extension (http://dev.wikia.com/wiki/MultiUpload) he wrote at Wikia Dev to work with our wiki (http://dragon-mania-legends-wiki.mobga.me/MediaWiki:MultiUpload.js). It's similar to MultiUpload here on MW. But since we upgraded our software to 1.27 and after fixing the JS issues, the script stopped working properly. Uploading looks like it's loading, but it's actually frozen. Might there be some lines inside it that need to be changed according to the recent JS migration pertaining to MW 1.27? Or is it a malfunction of our wiki? I must mention that I tried using MsUpload and SimpleBatchUpload but both extensions told me I don't have permission to upload files, even though I do have permission to do that. Using the in-built, single file uploader of MW works flawlessly (i.e. special:upload). The browser js console doesn't seem to give any related errors. What might be the cause of it? │Star-Warden│ 21:00, 11 November 2016 (UTC)
Can this information be used in a college paper?, Is it reliable?
Can this information be used in a college paper?, Is it reliable? 24.51.161.67 (talk) 22:01, 11 November 2016 (UTC)
- Wikipedia is not a reliable source. For scientific work, you should not tell people that you used Wikipedia. Instead, a good Wikipedia article will provide sources for what it claims. These sources are what you should really look into! 87.123.0.65 (talk) 22:11, 11 November 2016 (UTC)
Extension to indicate if the page is blocked. (as occurs on Wikipedia)
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.
What is the name of the extension that indicates that the page is locked or with article highlighted, as occurs on Wikipedia? Mwuser1218 (talk) 04:21, 12 November 2016 (UTC)
- By "locked" do you mean the padlock that is shown at the top right of the pages which are protected?
- In which case it is not an extension, but a combination of templates and modules. AhmadF.Cheema (talk) 06:43, 12 November 2016 (UTC)
- Where can I look for this? Mwuser1218 (talk) 16:05, 12 November 2016 (UTC)
- en:Template:Pp is a good idea to look at. It lists all the different templates (which are quite a few) and what they are there for. Showing the actual lock symbol then is done using indicators. See Help:Page status indicators for more information on that! 87.123.0.65 (talk) 17:22, 12 November 2016 (UTC)
User registration for multiple MediaWIKI installations
Hello.
I have created a WIKI consisting of 4 WIKIs.
Now I would like that the user registration simultaneously applies to all 4 wikis, similar to both Wikipedia and Wikimedia.
Is this basically possible? If so, what settings are required?
At best, please answer in German. Thank you. EMorgel (talk) 19:49, 12 November 2016 (UTC)
- Can not help me with this problem? EMorgel (talk) 17:12, 15 November 2016 (UTC)
- Extension:CentralAuth ? :) AKlapper (WMF) (talk) 15:01, 16 November 2016 (UTC)
How to add a content license (CC-BY) note at the bottom?
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 first creating the wiki, you are given the option to choose a content license which is shown at the bottom of each page. However if you skip this option, it's not clear how to add this information after-the-fact? 52.53.190.135 (talk) 20:18, 12 November 2016 (UTC)
- You need to define a few configuration variables, e.g. $wgRightsUrl and $wgRightsText. 87.123.35.25 (talk) 22:27, 12 November 2016 (UTC)
- Thanks 52.9.166.178 (talk) 22:55, 12 November 2016 (UTC)
How to adjust the footer? Links, images and page statistics.
Hello.
I want to change the footer of my WIKI.
Unfortunately, the descriptions here after a translation into the German are not sufficiently meaningful and provide no help.
Likewise, I would like a call statistics or at least a page call counter in the footer displayed.
I ask for help. Thank you. EMorgel (talk) 21:07, 12 November 2016 (UTC)
- For the links and images see $wgFooterIcons.
- Statistics can be included using a hook; an extension like Extension:Piwik Integration can do that as well. 87.123.35.25 (talk) 22:40, 12 November 2016 (UTC)
- The variable:
- $ WgPiwikURL = "piwik-host.tld / dir /";
- Leads to the following error message
- Parse error: syntax error, unexpected 'piwik' (T_STRING) in /homepages/.../LocalSettings.php on line ...
- What is wrong on this line? EMorgel (talk) 17:11, 15 November 2016 (UTC)
- Make sure to set
$wgPiwikIDSite
to the ID of your site in Piwik. For the first site, this ID will usually be "1". - Where can I find the ID of my website?
- How does the syntax of this variable look like? EMorgel (talk) 17:14, 15 November 2016 (UTC)
- The line should basically look like this:
$wgPiwikURL = "piwik-host.tld/dir/";
- When you are getting this error, search LocalSettings.php for the word "piwik". The problem might also be one or multiple lines above the line, which is mentioned in the error message.
- The Piwik Site ID can be seen in the piwik administration menu. Somewhere it has a page, on which you can define the different domains, which Piwik should track. And there it will also tell you the ID of each site. 87.123.36.37 (talk) 18:05, 15 November 2016 (UTC)
Extension:Math (problem not resolved)
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.
How solve this problem? I can not solve it.
********************************************************************************************************************************************
Exception encountered, of type "Error"
[f3be443d981d35dd6c9c6491] /mw/mediawiki-1.27.1/index.php/Special:MathStatus Error from line 418 of /var/www/html/mw/mediawiki-1.27.1/includes/libs/MultiHttpClient.php: Call to undefined function curl_multi_init()
Backtrace:
#0 /var/www/html/mw/mediawiki-1.27.1/includes/libs/MultiHttpClient.php(138): MultiHttpClient->getCurlMulti()
#1 /var/www/html/mw/mediawiki-1.27.1/includes/libs/virtualrest/VirtualRESTServiceClient.php(243): MultiHttpClient->runMulti(array)
#2 /var/www/html/mw/mediawiki-1.27.1/includes/libs/virtualrest/VirtualRESTServiceClient.php(137): VirtualRESTServiceClient->runMulti(array)
#3 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/MathRestbaseInterface.php(113): VirtualRESTServiceClient->run(array)
#4 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/MathRestbaseInterface.php(98): MathRestbaseInterface->executeRestbaseCheckRequest(array)
#5 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/MathRestbaseInterface.php(291): MathRestbaseInterface->checkTeX()
#6 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/MathMathML.php(87): MathRestbaseInterface->getSuccess()
#7 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/SpecialMathStatus.php(68): MathMathML->render()
#8 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/SpecialMathStatus.php(52): SpecialMathStatus->testSpecialCaseText()
#9 /var/www/html/mw/mediawiki-1.27.1/extensions/Math/SpecialMathStatus.php(42): SpecialMathStatus->runMathMLTest(string)
#10 /var/www/html/mw/mediawiki-1.27.1/includes/specialpage/SpecialPage.php(479): SpecialMathStatus->execute(NULL)
#11 /var/www/html/mw/mediawiki-1.27.1/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)
#12 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#13 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(745): MediaWiki->performRequest()
#14 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(519): MediaWiki->main()
#15 /var/www/html/mw/mediawiki-1.27.1/index.php(43): MediaWiki->run()
#16 {main} Mwuser1218 (talk) 04:22, 13 November 2016 (UTC)
- Please make sure that cURL is installed and is active! 87.123.35.25 (talk) 09:18, 13 November 2016 (UTC)
- php-curl, obviously Ciencia Al Poder (talk) 12:27, 13 November 2016 (UTC)
Category issue, MediaWiki 1.27.0
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 been having an issue where pages appear in a category, despite not having the category tag. I've rooted down the issue to it being when I add a templateit will also forcibly categorize the page to it as well, listing it in here, despite having no [[ category:Races]]. Curiously enough, this does not occur on any other page that uses the same system. Suzzie2 (talk) 15:54, 13 November 2016 (UTC)
- If you have "[[ category:Races]]" in your template, when you include this template in any page that page will also get the category.
- To restrict this feature use: <noinclude>[[ category:Races]]</noinclude> in the template code. AhmadF.Cheema (talk) 15:59, 13 November 2016 (UTC)
commons images are suddenly no longer displayed
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 sure if my hosting provider changed something but since ca. Friday all Wikimedia commons images are no longer displayed on my mediawiki 1.26.4. (I didn't change aynthing on my mediawiki config).
For example here.
Since I'm using a shared hosting provider I guess my provider can prohibit the embedding if images from his side via configuration/technical setting? CayceP (talk) 09:46, 14 November 2016 (UTC)
- Somehow your configuration regarding commons integration got broken. Are you using https as the basic URL? Maybe it's that - Commons has been changed some time ago to no longer work over http.
- Apart from that I guess that the problem is in your commons configuration - that are the one or two configuration variables, which which are dealing with Commons in LocalSettings.php. 87.123.5.18 (talk) 13:12, 14 November 2016 (UTC)
- I checked my includes/setup.php and the Wikimediacommons API is called via https. As it turned out my provided (temporarily) blocked certain outgoing connections because some user abused those.
- So not a mediawiki issue, but one from my provider which has now been resolved. CayceP (talk) 17:01, 16 November 2016 (UTC)
Warning: require_once(): open_basedir restriction in effect
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,
I have a wiki in Italian, one in ingloese and one in Spanish. The first uses MediaWiki 1.22.6, the second and third mediawiki 1.25.1... The wiki in Italian works perfectly while in the last two suddenly came out this error:
Warning: require_once(): open_basedir restriction in effect. File(/customers/9/f/6/mysite.com/httpd.www/en/extensions/GeoData/GeoData.php) is not within the allowed path(s): (//customers/9/f/6/mysite.com//httpd.www://customers/9/f/6/mysite.com//httpd.private://customers/9/f/6/mysite.com//tmp:/customers/mysite.com/mysite.com:/var/www/diagnostics:/usr/share/php) in /customers/9/f/6/mysite.com/httpd.www/en/LocalSettings.php on line 144 Warning: require_once(/customers/9/f/6/mysite.com/httpd.www/en/extensions/GeoData/GeoData.php): failed to open stream: Operation not permitted in /customers/9/f/6/mysite.com/httpd.www/en/LocalSettings.php on line 144 Fatal error: require_once(): Failed opening required '/customers/9/f/6/mysite.com/httpd.www/en/extensions/GeoData/GeoData.php' (include_path='.:/usr/share/php') in /customers/9/f/6/mysite.com/httpd.www/en/LocalSettings.php on line 144
Can anyone tell me how to fix this error? They have always worked very well and I have not changed anything. I already tried to remove extensions, but nothing changes 185.5.60.134 (talk) 17:04, 14 November 2016 (UTC)
- ingloese = English... typing error 185.5.60.134 (talk) 17:05, 14 November 2016 (UTC)
- This error means that something has changed in your PHP configuration.
- The different entries in open_basedir are wrong; they have the wrong number of slashes inside them, for example:
- Wrong:
//customers/9/f/6/mysite.com/httpd.www
- Right:
/customers/9/f/6/mysite.com/httpd.www
87.123.5.18 (talk) 18:02, 14 November 2016 (UTC)- Thanks for the answer| So it's a change that has made my host? I can fix this somehow? 185.5.60.134 (talk) 18:38, 14 November 2016 (UTC)
- Someone with access to the PHP configuration can fix this. If this is (only) your host, then he will be the one. The paths, which you have there are obviously wrong. They should just be fixed. 87.123.36.37 (talk) 20:58, 14 November 2016 (UTC)
- Problem solved with the support of my host, thanks for having shown the way to go... I was beginning to despair! 185.5.60.134 (talk) 14:09, 15 November 2016 (UTC)
Excluding Sandbox from Search Results
Hi there,
Does anyone know how we can remove Sandboxes from search results. I looked here (https://en.wikipedia.org/wiki/Wikipedia:Controlling_search_engine_indexing#NOINDEX_magic_word), wanted wanted to remove all Sandboxes from the results. It mentions "Mediawiki software settings" but did not say how.
Thank you. PaleoIsh (talk) 19:18, 14 November 2016 (UTC)
- Manual:$wgNamespaceRobotPolicies Ciencia Al Poder (talk) 01:14, 15 November 2016 (UTC)
Can't download MediaWiki using Git
RESOLVED | |
Worked around by using SSH instead. |
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 trying to download mediawiki through git on my PC, but I keep getting this error:
error: RPC failed; result=18, HTTP code = 2002 MiB | 111.00 KiB/s
ffatal: early EOF atal: The remote end hung up unexpectedly
fatal: index-pack failed
This was the command I used:
git clone -b REL1_27 https://gerrit.wikimedia.org/r/p/mediawiki/skins/Vector.git
Does anyone know a solution? 117.253.161.63 (talk) 16:50, 15 November 2016 (UTC)
- http://stackoverflow.com/questions/17683295/git-bash-error-rpc-failed-result-18-htp-code-200b-1kib-s or http://stackoverflow.com/questions/12236415/git-clone-return-result-18-code-200-on-a-specific-repository could help. Also, you could also try using ssh instead of https. AKlapper (WMF) (talk) 15:05, 16 November 2016 (UTC)
- I tried the solutions given on both the pages and I don't have ssh access.
- Correction: The command I used was:
- git clone -b REL1_27 https://gerrit.wikimedia.org/r/mediawiki/core mediawiki 117.253.161.63 (talk) 11:04, 20 November 2016 (UTC)
- Get ssh access? It's for free. :) AKlapper (WMF) (talk) 12:49, 20 November 2016 (UTC)
- Thanks a lot! It worked. 117.253.161.63 (talk) 18:12, 23 November 2016 (UTC)
Reset password?
Am I able to initiate a reset for my own password? 128.119.202.137 (talk) 19:07, 15 November 2016 (UTC)
- Use the Special:PasswordReset page! See Manual:Resetting passwords for more information! 87.123.7.145 (talk) 22:05, 15 November 2016 (UTC)
Problem loading pages
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, I have encountred a problem I can't resolve. I'm using
MediaWiki | 1.26.2 |
PHP | 5.5.12 (apache2handler) |
MySQL | 5.6.17 |
Lua | 5.1.4 |
Iwas making my personal archive, copying from other wikis to my localhost wiki I created. Everything worked great, unitll suddenly the layout crashed. Instead of this https://en.wikipedia.org/wiki/Slovenian_Republic_Football_League I started seing this: http://shrani.si/f/18/F0/2g8CgB8e/mywiki.png
I'm not a programming expert so I have no idea what's wrong. Thanks. Linhart (talk) 21:09, 15 November 2016 (UTC)
- This looks like load.php does no longer deliver CSS styles. Possibly Manual:Load.php helps you... 87.123.7.145 (talk) 22:12, 15 November 2016 (UTC)
- Hm yes, that seems to be the problem, not delivering css. However, I'm using wamp, so there is no .htaccess file to change in my folder. Linhart (talk) 23:58, 15 November 2016 (UTC)
- I reinstalled everything and now it works perfectly, it loads css normaly. Thanks. Linhart (talk) 01:17, 16 November 2016 (UTC)
- Nice to hear that it's working now. WAMP btw. also contains the Apache webserver and so it should also be able to work with .htaccess files. 87.123.7.145 (talk) 10:58, 16 November 2016 (UTC)
error code 530 wont' allow me to log in ?
error code 530 wont' allow me to log in ? junsharper@hotmail.com 2607:F2C0:9468:1700:1CBE:B584:39F:3E23 (talk) 12:48, 16 November 2016 (UTC)
- On which site or page are you exactly? Is this question about the MediaWiki software? AKlapper (WMF) (talk) 14:59, 16 November 2016 (UTC)
Listing users by user group
RESOLVED | |
I found the necessary api call |
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.
Can I list users in the MediaWiki api.php based on which user groups they belong to? Innosflew (talk) 14:42, 16 November 2016 (UTC)
- https://www.mediawiki.org/w/api.php?action=help&modules=query%2Ballusers wargo (talk) 15:22, 16 November 2016 (UTC)
- Thanks you :) Innosflew (talk) 15:27, 16 November 2016 (UTC)
getLocalURL 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.
Hi. When trying to access this page on the wiki (http://dragon-mania-legends-wiki.mobga.me/Trainer%27s_Pet_Event_(15/09/25)), I get this error: Fatal error: Call to a member function getLocalURL() on a non-object in /srv/dml-wiki/includes/skins/Skin.php on line 1051
I went to that line in that php and I found this: return $title->getLocalURL( $urlaction );
So far, it seems it's the only page acting up. Could anyone give me a solution, please? │Star-Warden│ 17:51, 16 November 2016 (UTC)
- You are using MediaWiki 1.27. I have tested this in your wiki and this is happening with Vector, but also with Monobook, but only on that one page. Other pages display correctly.
- Your problem is that for some reason, $title is not a title object at that point. From reading the code I think that this part of the code only is used to create a link to a special page.
- In your case, SpecialPage::getSafeTitleFor( $name ); does not return a title object.
A complete backtrace would be great.
87.123.33.228 (talk) 19:40, 16 November 2016 (UTC)- All right. And how do I give a complete backtrace? │Star-Warden│ 22:08, 16 November 2016 (UTC)
- http://stackoverflow.com/questions/1159216/how-can-i-get-php-to-produce-a-backtrace-upon-errors Ciencia Al Poder (talk) 02:57, 17 November 2016 (UTC)
- Hey. We found the error without having to backtrace. It's the apostrophe in the title that was causing the issue.
- As you can see, all events that have the apostrophe return the same error:
- http://dragon-mania-legends-wiki.mobga.me/Freedom%27s_Reward_Event_(16/07/04)
- http://dragon-mania-legends-wiki.mobga.me/Ladies%27_Choice_Event_(15/03/06)
- http://dragon-mania-legends-wiki.mobga.me/Veteran%27s_Victory_Event_(15/11/09)
- etc.
- Aside from effectively removing it from the title, is there any other better sign with which we could replace it and not resort to sticking the possessive to the word? │Star-Warden│ 10:23, 21 November 2016 (UTC)
- Although not recommended to be used, apostrophes are allowed in URLs and MediaWiki also can cope with them, e.g. en:Lady's Magazine.
- An idea might be to check, why this is not working on your server and to fix the reason - or to use different page titles without apostrophe. 87.123.36.209 (talk) 10:35, 21 November 2016 (UTC)
- To be completely honest, I am not a programmer, I just try to follow the instructions given. With that in mind, how do I find why it's not working? And I've tried using other signs, like the prime or a different-looking comma, but both give the same error.... │Star-Warden│ 10:50, 21 November 2016 (UTC)
- Getting a backtrace would be helpful to see what's calling that method, possibly passing an invalid parameter. If that's hard, try disabling all extension and see if the problem still happens. Ciencia Al Poder (talk) 00:55, 22 November 2016 (UTC)
- Hey. I didn't backtrace, but I disabled extensions, as you suggested me to, and I found that Extension:Contributors is the culprit. Why though? │Star-Warden│ 14:33, 24 November 2016 (UTC)
- Extension talk:Contributors has other people complaining about that, but I don't see a bug about that on phabricator... Looks like nobody cares enough to report it so devs are aware of the bug. Ciencia Al Poder (talk) 01:27, 25 November 2016 (UTC)
- I can open up a bug report, but I am not exactly sure how to formulate it to be as precise as possible. I mean, I could give the error that I am getting, but that points to folders on my wiki's server, so it would be different from what others reported. │Star-Warden│ 16:08, 25 November 2016 (UTC)
- https://mediawiki.org/wiki/How_to_report_a_bug AKlapper (WMF) (talk) 17:13, 25 November 2016 (UTC)
- Yes, I am aware of HOW to report it, but I am not sure how to formulate the error itself so as to be as precise as possible. │Star-Warden│ 10:10, 26 November 2016 (UTC)
- Just try it. If devs need further information they'll ask in the task. Ciencia Al Poder (talk) 21:01, 4 December 2016 (UTC)
- Done (https://phabricator.wikimedia.org/T152492). Hope it's clear enough. │Star-Warden│ 11:47, 6 December 2016 (UTC)
- Ran into the same (unsolved) issue and added a comment to the bug report. Stefahn (talk) 17:41, 18 November 2017 (UTC)
- There should be a fix in master now. Try redownloading the extension (Make sure to select the master branch of the extension) Bawolff (talk) 21:44, 20 November 2017 (UTC)
Can Media Wiki work on Windows Server 2012?
I see that Windows Server 2008 R2 and Windows Server 2016 are listed in the Install guide Operating systems. Does 2012 Server not work or will one of the guides also work for 2012? Vjsuarez2002 (talk) 20:40, 16 November 2016 (UTC)
- I got it running on 2012 R2, and seeing that 2012 and its R2 predecessor don't differ that much, it should be possible. I used the guide for 2008 R2 to set it up, but I wrote the 2016 version with 2012 (R2) in mind. —Mainframe98 talk 20:48, 16 November 2016 (UTC)
In update.php : syntax error, unexpected '[' in line 170
Hi.
When I try to execute update.php from command line, PHP terminates with "syntax error, unexpected '[' in line 170".
This is the line causing the error:
$updates = ( 'core', 'extensions' );
I'm trying to update from 1.20 to 1.27. I'm using php 5.6.27, MySQL 5.0.11 and centos-6-x86_64.
When I open update.php using Dreamweaver line 170 is marked like "syntax error", too.
I'm stuck because my 1.20 doesn't work with php 5.6 and the new one needs this database update. I was googling and there's no information about this problem.
Thanks. 2.137.90.91 (talk) 22:25, 16 November 2016 (UTC)
- Sorry, line 170 is $updates = [ 'core', 'extensions' ];
- Anyway, line is marked with syntax error using ( ) or [ ] in the same way.
- Any ideas? 2.137.90.91 (talk) 22:30, 16 November 2016 (UTC)
- Your PHP version is not supported. MediaWiki 1.27 requires PHP version 5.5.9 or later Ciencia Al Poder (talk) 02:54, 17 November 2016 (UTC)
- Right. Doing a php -v on the shell will show you that the PHP version which you are using there is not version 5.6... 87.123.33.228 (talk) 07:39, 17 November 2016 (UTC)
redirect
Is there a way to have the 'leave a redirect' unchecked by default when moving pages? I have looked everywhere, but could not find any such option nor in default settings.php or $wgDefaultUserOptions. 188.24.66.168 (talk) 23:47, 16 November 2016 (UTC)
- The suppressredirect permission is required. By default, admins and bots have it but regular users do not. See Manual:User rights for more information. Reach Out to the Truth (talk) 01:03, 17 November 2016 (UTC)
- Right... but if I set it to false, I wouldn't be able to see the box at all, thus I wouldn't be able to suppress the redirect and it will be created. I don't think hiddenprefs would affect it, either, as it's not a preference, so how do I uncheck it be default? 188.24.66.168 (talk) 02:11, 17 November 2016 (UTC)
- You can add ?wpLeaveRedirect=0 to the end of the URL to load the form with the checkbox unchecked. How would you make that the default for every move? I'm not sure, but it would probably involve JavaScript. Reach Out to the Truth (talk) 02:29, 17 November 2016 (UTC)
- I wouldn't mind adding a JS, but why doesn't mediawiki have this in-built option? And what kind of JS would I need to add? 188.24.66.168 (talk) 14:23, 17 November 2016 (UTC)
Picture suddenly not showing
At this [//mat54_wiki.harry-arends.nl/mat54_Wiki//index.php/Draaistel#Draaistellen page i added the first picture last night.
This morning i would add a second one but now the first one issint showing anymore.
Howcome????? Harry H. Arends 08:44, 17 November 2016 (UTC)
- When I view your page, I am seeing both images. I also tried the last revision of that page from yesterday and there I also see the one image. Maybe you had a caching issue? 87.123.33.228 (talk) 09:15, 17 November 2016 (UTC)
Extension issues, 1.12 to 1.27
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 recently upgraded from 1.12 to 1.27. The database upgrade seemed to go OK. I am having issues with extensions (I think). The release notes say these have to be upgraded also, but I cannot find clear instructions for doing this. I do not think I have any custom extensions. I have made 2 of these changes to localsettings:
#require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");
wfLoadExtension( 'SpecialConfirmAccount' );
My latest error is this:
Fatal error: Uncaught exception 'Exception' with message '/home/ozpolit/public_html/wiki/extensions/ConfirmEdit/extension.json does not exist!' in /home/ozpolit/public_html/wiki/includes/registration/ExtensionRegistry.php:106 Stack trace: #0 /home/ozpolit/public_html/wiki/includes/GlobalFunctions.php(115): ExtensionRegistry->queue('/home/ozpolit/p...') #1 /home/ozpolit/public_html/wiki/LocalSettings.php(129): wfLoadExtension('ConfirmEdit') #2 /home/ozpolit/public_html/wiki/includes/WebStart.php(124): require_once('/home/ozpolit/p...') #3 /home/ozpolit/public_html/wiki/index.php(40): require('/home/ozpolit/p...') #4 {main} thrown in /home/ozpolit/public_html/wiki/includes/registration/ExtensionRegistry.php on line 106
wiki URL:
http://www.ozpolitic.com/wiki/
PHP Version | 5.6.16 |
MySQL Version | 5.6.33 |
- Obviously the file extension.json in the ConfirmEdit extension is missing.
- Note that in the source code of that extension there is an extension.json file. Is this file present in /home/ozpolit/public_html/wiki/extensions/ConfirmEdit/?
- Anyway, you still can load the extension using require_once:
require_once("$IP/extensions/ConfirmEdit/ConfirmEdit.php");
87.123.33.228 (talk) 09:23, 17 November 2016 (UTC)- OK thanks. I guess they must have been custom installs. I got it all working now. Oz freediver (talk) 10:07, 17 November 2016 (UTC)
Login or edit action not being served by https
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 running MediaWiki on Centos 7 with apache 2.4.23 and PHP 5.6.28 (installed from resource code). I also set up self-signed certificate for my mediawiki.
The problem was: For some action like edit or login, they got served by http not https.
For example, if i want to edit my article, i can choose Show preview, Show changes button without any problem.
But after i press the Save Page button, i would get: ERR_CONNECTION_REFUSED
And i noticed that in my address bar, it turned into http.
What's the fix for this? 203.174.65.44 (talk) 09:28, 17 November 2016 (UTC)
- What is the value of $wgServer in LocalSettings.php? 87.123.33.228 (talk) 09:45, 17 November 2016 (UTC)
- $wgServer = "http://203.104.251.75";
- Here it is 203.174.65.44 (talk) 09:47, 17 November 2016 (UTC)
- If you want to run MediaWiki over https, make sure that $wgServer also starts with https! 87.123.33.228 (talk) 09:49, 17 November 2016 (UTC)
- Ah, thank you. It worked like a charm!! :D 203.174.65.44 (talk) 01:17, 18 November 2016 (UTC)
1.23.15 - install.php with postgres
Hello all (again ^^)
I have had a problem during the packaging of the last MW 1.23.15 LTS. I have dl the 1.23.15 and the 1.26.2 in /opt :
/opt/mediawiki-1.23.15
/opt/mediawiki-1.26.2
and their apache conf :
/etc/apache2/conf.d/mediawiki123.conf (/mediawiki123)
/etc/apache2/conf.d/mediawiki126.conf (/mediawiki126)
.
Posgres is installed and works properly
dpkg -l | grep -E "postgres|pgsql"
php5-pgsql 5.4.34-1+deb.sury.org~precise+2
postgresql 9.1+129ubuntu1
postgresql-9.1 9.1.7-0ubuntu12.04
postgresql-client-9.1 9.1.7-0ubuntu12.04
postgresql-client-common 129ubuntu1
postgresql-common 129ubuntu1
.
Then I did
sudo -u postgres createuser -S -D -R -P -E wikiuser 'wikiuserpass'
sudo -u postgres createdb -O wikiuser wikidb123
sudo -u postgres createdb -O wikiuser wikidb126
.
When I attempt to install MW 1.23.15 (URL : https://my-server.com/mediawiki123/mw-config/index.php) I select :
DBType : PostgreSQL
Database host : localhost
Database port : 5432
Database name : wikidb123
Schema for Mediawiki : mediawiki
Database username : wikiuser
Database password : wikiuserpass
If I try to use the postgres account with no password, I have got this message:
Please enter a password for the new database user: postgres. While it may be possible to create users with no passwords, it is not secure.
.
When I click on continue, I have got a blank page (URL : https://my-server.com/mediawiki123/mw-config/index.php?page=DBConnect) !! Impossible to continue !!
.
With MW 1.26.2 (URL : https://my-server.com/mediawiki126/mw-config/index.php) I select the same options and it's working !!
.
So I tried an automatic install via /opt/mediawiki-1.23.15/maintenant/install.php
php install.php --server localhost --dbuser wikiuser --dbpass wikiuserpass --dbname wikidb123 --dbtype pgsql --dbport 5432 --installdbuser wikiuser --installdbpass wikipass --pass (password of which account is it please ?) --scriptpath /mediawiki123 my-server WikiSysop
PHP 5.4.34-1+deb.sury.org~precise+2 is installed.
Warning: Could not find APC, XCache or WinCache.
Object caching is not enabled.
Found GD graphics library built-in.
Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Using server URL "my-server/mediawiki123".
Warning: Your default directory for uploads (/opt/mediawiki-1.23.15/images/) is not checked for vulnerability
to arbitrary script execution during the CLI install.
Warning: The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation.
If you run a high-traffic site, you should read a little on Unicode normalization.
The environment has been checked.
You can install MediaWiki.
PHP Fatal error: Class 'PgsqlInstaller' not found in /opt/mediawiki-1.23.15/includes/installer/Installer.php on line 493
If I try "--dbtype postgres" , same message but at the end :
PHP Fatal error: Class 'Database' not found in /opt/mediawiki-1.23.15/includes/installer/PostgresInstaller.php on line 161
Sorry but could you help me again ? I have to use a 1.23.15 because it's a LTS or do you think a can use the 1.26.2 (or 1.26.4, works fine as well) ?? Haroun al Mouwahid (talk) 13:14, 17 November 2016 (UTC)
- You are trying to install MediaWiki 1.23.15, but in the Installer when you provide PostgreSQL as your database type, you are getting a blank screen.
- According to your error
- PHP Fatal error: Class 'PgsqlInstaller' not found in /opt/mediawiki-1.23.15/includes/installer/Installer.php on line 493
- and to the code, you have type=Pgsq. This value is wrong. You have to use type=postgres instead, then it will at least point to an existing PHP file.
- For the error
- Class 'Database' not found in /opt/mediawiki-1.23.15/includes/installer/PostgresInstaller.php on line 161
- I am not sure currently. I guess that this class should be there as it should get autoloaded... 87.123.33.228 (talk) 15:05, 17 November 2016 (UTC)
- I did already test postgres or pgsql with --dbtype. Thank you anyway for your response :) Haroun al Mouwahid (talk) 16:23, 18 November 2016 (UTC)
- This class name has been introduced with a change 3 months ago. Maybe this change is just wrong and you should open a bugreport to get the wrong classname fixed again! 87.123.33.228 (talk) 15:10, 17 November 2016 (UTC)
Pages are not linked to categories
Hi, I just just installed mediawiki on an ovh server. Only problem during installation was that cache is no enable.
Now when I put categories in a page, the page is not linked to the category. Here is an exemple: http://arae.kernork.fr/index.php?title=Isae
The categories show up in the bottom, but when clicking on the category page no pages are linked. All categories are shown as unused categories: http://arae.kernork.fr/index.php?title=Sp%C3%A9cial:Cat%C3%A9gories_inutilis%C3%A9es
Thanks for the help. Kernork (talk) 14:35, 17 November 2016 (UTC)
- This is a known issue. The solution can be found on Manual:$wgRunJobsAsync! 87.123.33.228 (talk) 14:50, 17 November 2016 (UTC)
How to get transparent backgrounds with ImagickExt?
My new web host doesn't allow exec() through PHP, so I have to use ImagickExt instead of ImageMagick. It generates SVG thumbnails just like before, but I don't know how to get transparent backgrounds working. In ImageMagick, I used the following line in LocalSettings.php:
$wgSVGConverters = array_replace($wgSVGConverters, array('ImageMagick' => '$path/convert -background transparent -thumbnail $widthx$height\! $input PNG:$output'));
But the same won't work with ImagickExt. The default value for ImagickExt in $wgSVGConverters is:
array( 'SvgHandler::rasterizeImagickExt' )
Does anyone know how I can change this to make ImagickExt generate thumbnails with transparent background? Thanks! TheAlmightyGuru (talk) 01:49, 18 November 2016 (UTC)
- I finally figured how to fix this! The bug occurs because the code to render a PNG thumbnail from an SVG image has a bug. The current code loads the SVG image first, then sets the background to transparent, but it should be in reverse. To fix it, do the following:
- Open /wiki/include/media/SvgHandler.php
- Go to public static function rasterizeImagickExt
- Replace the four lines of code which read this:
- $im = new Imagick( $srcPath );
- $im->setImageFormat( 'png' );
- $im->setBackgroundColor( 'transparent' );
- $im->setImageDepth( 8 );
- To this:
- $im = new Imagick();
- $im->setBackgroundColor( 'transparent' );
- $im->readImage( $srcPath );
- $im->setImageFormat( 'png' );
- $im->setImageDepth( 8 ); TheAlmightyGuru (talk) 13:32, 8 February 2022 (UTC)
- Reported as phab:T301242 Malyacko (talk) 15:12, 8 February 2022 (UTC)
change font settings
Hi,
I am a user, if I am not supposed to post here, please let me know.
I'd like to know whether it's possible to change font settings (typeface, size, etc.) applying those different settings to different scripts (Latin, Arabic, Han, etc.).
Hope to hear news soon.
Thank yo so much in advance. JMGN (talk) 15:46, 18 November 2016 (UTC)
donate by check
I do not want to use the types of payments available to donate. How can I donate by check or other? 66.255.250.182 (talk) 16:14, 18 November 2016 (UTC)
OOUI error on search
Recently upgraded a WAMP MediaWiki to 1.27.1. When using Search box, searches for terms that do NOT link to articles, that is, using the "Containing..." option where there is no article in the primary namespace that correspond to the search term entered, I get a PHP fatal error.
Fatal error: OOUI\InputWidget cannot use OOUI\FlaggedElement - it is not a trait in (wikiroot directory)\vendor\oojs\oojs-ui\php\widgets\InputWidget.php on line 11
Saw reference to a similar problem here Talk:Page Previews/2016#h-Problem_with_images_and_references-2016-08-28T15:13:00.000Z, but didn't see a solution or workaround. Any suggestions? Search box autocomplete working fine. Selecting a page from the search results dropdown works fine. Only issue I know of is the "containing..." search.
Software stack:
Windows 10 - Microsoft Windows [Version 10.0.14393]
MediaWiki | 1.27.1 |
PHP | 5.6.27 (apache2handler) |
MySQL | 5.6.30 |
Troubleshooting log:
1) Restarted Apache web server
2) Checked Apache error.log file, but no errors there.
3) Ran "composer update" on main MediaWiki composer file and restarted Apache again.
Several (10-12) warnings were issued about specific class files, like:
Warning: Ambiguous class resolution, "OOUI\ButtonElement" was found in both "C:\Users\Public\Documents\website\RTWWiki\vendor/oojs/oojs-ui/php/elements\ButtonElement.php" and "C:\Users\Public\Documents\website\RTWWiki\vendor/oojs/oojs-ui/php/mixins\ButtonElement.php", the first will be used.
4) Re-ran maintenance/update script. I had to correct some permission errors on the account the wiki was using to allow it DROP table permissions. Update script could then run these two commands, which it previously erred on:
Dropping table msg_resource_links ...done.
Dropping table msg_resource ...done.
! ) Fatal error: OOUI\InputWidget cannot use OOUI\FlaggedElement - it is not a trait in C:\Users\Public\Documents\website\RTWWiki\vendor\oojs\oojs-ui\php\widgets\InputWidget.php on line 11 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0014 | 242328 | {main}( ) | ...\index.php:0 |
2 | 0.5346 | 16699416 | MediaWiki->run( ) | ...\index.php:43 |
3 | 0.5346 | 16700616 | MediaWiki->main( ) | ...\MediaWiki.php:519 |
4 | 0.5419 | 17216392 | MediaWiki->performRequest( ) | ...\MediaWiki.php:745 |
5 | 0.5442 | 17582240 | SpecialPageFactory::executePath( ) | ...\MediaWiki.php:282 |
6 | 0.5444 | 17585216 | SpecialPage->run( ) | ...\SpecialPageFactory.php:576 |
7 | 0.5444 | 17585616 | SpecialSearch->execute( ) | ...\SpecialPage.php:479 |
8 | 0.7767 | 23665760 | SpecialSearch->showResults( ) | ...\SpecialSearch.php:140 |
9 | 0.8404 | 24864816 | SpecialSearch->shortDialog( ) | ...\SpecialSearch.php:342 |
10 | 0.8404 | 24865120 | spl_autoload_call ( ) | ...\SpecialSearch.php:1236 |
11 | 0.8404 | 24865344 | AutoLoader::autoload( ) | ...\SpecialSearch.php:1236 |
12 | 0.8409 | 24879168 | require( 'C:\Users\Public\Documents\website\RTWWiki\includes\widget\SearchInputWidget.php' ) | ...\AutoLoader.php:81 |
13 | 0.8409 | 24879496 | spl_autoload_call ( ) | ...\AutoLoader.php:13 |
14 | 0.8410 | 24879728 | AutoLoader::autoload( ) | ...\AutoLoader.php:13 |
15 | 0.8414 | 24897640 | require( 'C:\Users\Public\Documents\website\RTWWiki\includes\widget\TitleInputWidget.php' ) | ...\AutoLoader.php:81 |
16 | 0.8414 | 24897912 | spl_autoload_call ( ) | ...\AutoLoader.php:13 |
17 | 0.8415 | 24898104 | Composer\Autoload\ClassLoader->loadClass( ) | ...\AutoLoader.php:13 |
18 | 0.8415 | 24898104 | Composer\Autoload\includeFile( ) | ...\ClassLoader.php:301 |
19 | 0.8424 | 24951832 | include( 'C:\Users\Public\Documents\website\RTWWiki\vendor\oojs\oojs-ui\php\widgets\TextInputWidget.php' ) | ...\ClassLoader.php:414 |
20 | 0.8424 | 24952120 | spl_autoload_call ( ) | ...\ClassLoader.php:8 |
21 | 0.8425 | 24952312 | Composer\Autoload\ClassLoader->loadClass( ) | ...\ClassLoader.php:8 |
22 | 0.8425 | 24952312 | Composer\Autoload\includeFile( ) | ...\ClassLoader.php:301 |
23 | 0.8435 | 24988232 | include( 'C:\Users\Public\Documents\website\RTWWiki\vendor\oojs\oojs-ui\php\widgets\InputWidget.php' ) | ...\ClassLoader.php:414 |
Appreciate any help.
Thanks,
IowaJason Iowajason (talk) 01:59, 19 November 2016 (UTC)
- bawolff on IRC support channel provided a solution. Basic problem is that my upgrade technique was to overlay new version of MW software over old version directory structure, creating duplicate paths. The suggestions was to install into clean directory on file system.
- The shortcut I used accomplished to accomplish this goal was:
- 1) Stop Apache web server
- 2) Delete "includes" and "vendor" directories (I hypothesize that only "vendor" directory would have been sufficient.)
- 3) Recopy those 2 directories from distribution tarball.
- 4) Run "composer update" although I'm advised that such step is unnecessary.
- 5) Restart Apache
- Thank you to bawolff. Iowajason (talk) 02:49, 19 November 2016 (UTC)
- Hi there,
- I'm not sure if anyone still needs the solution. But I think this error can occur anytime you upgrade an old wiki via composer.
- The ambiguous class declaration comes from the files inside the /vendor/oojs/oojs-ui/php/elements folder. It's outdated and seems to not get deleted by the composer while updating. Just delete this folder and rerun the composer update.
- This should do it.
- Regards,
- aploe Aploe (talk) 11:36, 27 February 2018 (UTC)
Unable to install html2wiki extension
I'm running mediawiki as a TurnKey application and the first thing I'm trying to do after setting the system up is to install this extension. I've followed the guide on the wiki by doing the following:
Installing from git.
Adding the two lines to LocalSettings.php (am I meant to enter these as is or should I be changing some, what does it mean to declare the variable before require_once?).
Installing all the dependencies.
But after that, when I go to the SpecialPages page, I don't see a html2wiki link and when I got to Special:Version, I don't see any mention of html2wiki like the page alluded that I should.
Any ideas? 59.102.56.111 (talk) 08:22, 19 November 2016 (UTC)
- According to Extension:Html2Wiki you should add these two lines to the bottom of your LocalSettings.php file:
$wgNamespacesWithSubpages[NS_MAIN] = true;
require_once "$IP/extensions/Html2Wiki/Html2Wiki.php";
- The result of the require_once line should be that the extension gets listed on your Special:Version page in your wiki! 87.123.34.120 (talk) 09:39, 19 November 2016 (UTC)
Error with SocialProfile
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.
Across the top of Special:SpecialPages I get the following error: Strict Standards: Declaration of UploadAvatar::performUpload() should be compatible with UploadBase::performUpload($comment, $pageText, $watch, $user, $tags = Array) in /home/wikitest/public_html/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 256 MacFan4000 (talk) 13:01, 19 November 2016 (UTC)
- Check to see whether you're using the Extension:SocialProfile version, relevant to your MediaWiki version. AhmadF.Cheema (talk) 13:13, 19 November 2016 (UTC)
- I am. It's version 1.8 (latest). 2002:43F4:3186:1234:4C01:98D3:FA09:A9FA (talk) 13:31, 19 November 2016 (UTC)
- Any updates? 24.39.1.140 (talk) 18:18, 21 November 2016 (UTC)
- Maybe someone else can help, in my pretty limited I have seen these errors only for mismatches between extension and MediaWiki core versions. Don't know what to do beyond this initial step. Maybe try using an older version? AhmadF.Cheema (talk) 19:25, 21 November 2016 (UTC)
- Social tools extensions doesn't support branches apparently, see phab:T149508#2754752. Maybe try master? Ciencia Al Poder (talk) 01:03, 22 November 2016 (UTC)
If you edit line 359 to bepublic function performUpload( $comment, $pageText, $watch, $user, $tags = [] ) {
the error goes away. If there are no errors with the change, I will open a PR on git.- I then get an error from trying to upload an avatar.... I will try a new fix. -- The Voidwalker Whispers 02:10, 1 January 2017 (UTC)
- A new version was released which fixed that. MacFan4000 (talk) 02:09, 15 February 2017 (UTC)
Visual editor chokes with too many code blocks
I've created a page with some 10 code blocks on it. No problems when I'm creating, saving, or viewing, but when I go back to edit the page the code blocks don't load.
I'm pretty sure loading these up is causing some form of spike in CPU, based on php-fpm or Parsoid. If I see nothing happening on the edit page, and then go back to view, then edit, and repeat a few times it tends to slow the server to a grind where it can't handle requests for several minutes.
Is there a setting somewhere to adjust, or can I dig up logs for anywhere to help? Andeejaym (talk) 22:03, 19 November 2016 (UTC)
- That's probably an issue you should bring on the bugtracker, specially if such an issue could bring a site down. Ciencia Al Poder (talk) 22:27, 19 November 2016 (UTC)
Try Ubuntu & WINE Install Woes...
RESOLVED | |
Offtopic for the help desk of the MediaWiki software; please ask in an Ubuntu support forum. Thanks! |
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.
One of the barricades between me and switching to Linux has always been some of my Windows apps which I need to run.
I am "trying" Ubuntu (have not done the official install - booted to 8GB USB thumbdrive). Trying to install WINE to do a trial run of some of my Windows apps. Cannot seem to get it to install. Here is what I get....HELP!
----------------------------------------------------------------------------------------------------
ubuntu@ubuntu:~$ sudo dpkg --add-architecture i386
ubuntu@ubuntu:~$ sudo add-apt-repository ppa:wine/wine-builds
More info: https://launchpad.net/~wine/+archive/ubuntu/wine-builds
Press [ENTER] to continue or ctrl-c to cancel adding it <<== PRESSED [ENTER} here
gpg: keyring `/tmp/tmpywgatqh1/secring.gpg' created
gpg: keyring `/tmp/tmpywgatqh1/pubring.gpg' created
gpg: requesting key 77C899CB from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpywgatqh1/trustdb.gpg: trustdb created
gpg: key 77C899CB: public key "Launchpad PPA for Wine" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
ubuntu@ubuntu:~$ sudo apt-get update
Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Hit:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Ign:5 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial/main i386 Packages
Ign:6 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial/restricted i386 Packages
Ign:5 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial/main i386 Packages
Ign:6 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial/restricted i386 Packages
Err:5 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial/main i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err:6 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial/restricted i386 Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:7 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease [18.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [163 kB]
Get:10 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial/main amd64 Packages [2,440 B]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [159 kB]
Get:12 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial/main i386 Packages [2,396 B]
Get:13 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial/main Translation-en [980 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [67.8 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [79.1 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [62.9 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [6,576 B]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [6,528 B]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,016 B]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Get:22 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8,684 B]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [424 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [418 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [163 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [339 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [200 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [6,576 B]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [6,528 B]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,016 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Fetched 6,681 kB in 7s (844 kB/s)
Reading package lists... Done
E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead. <<<==LOOK HERE
ubuntu@ubuntu:~$ sudo apt-get install --install-recommends winehq-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have <<<==LOOK HERE
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: <<<==LOOK HERE
winehq-devel : Depends: wine-devel (= 1.9.23~ubuntu16.04.1)
E: Unable to correct problems, you have held broken packages. <<<==LOOK HERE
ubuntu@ubuntu:~$ sudo apt-get install --install-recommends winehq-staging
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have <<<==LOOK HERE
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
winehq-staging : Depends: wine-staging (= 1.9.23~ubuntu16.04.1)
E: Unable to correct problems, you have held broken packages.
ubuntu@ubuntu:~$ Wa2pux (talk) 01:41, 20 November 2016 (UTC)
- What does this have to do with MediaWiki? 101.160.139.228 (talk) 03:49, 20 November 2016 (UTC)
Kartographer and GeoData
When an article uses maplink or mapframe from Extension:Kartographer are the coordinates automatically registered to the database or do the #coordinate tag of Extension:GeoData still needs to be used separately ? Zebulon84 (talk) 03:38, 20 November 2016 (UTC)
active users count doesn't update anymore?
Active users count doesn't update anymore in my wiki. Even runjob.php can't get it update. Currently the only way I could get it change, is to run UpdateSpecialPages.php.
$wgMiserMode is false. What might cause this problem, and how to fix it??? Deletedaccount4567435 (talk) 15:43, 20 November 2016 (UTC)
- Can you confirm that it used to work before? Did you perform any update before this mistake started appearing?
- The issue could possibly be related to this bug. AhmadF.Cheema (talk) 07:00, 21 November 2016 (UTC)
- It happened after wiki been upgraded to 1.27.1. Deletedaccount4567435 (talk) 13:20, 22 November 2016 (UTC)
- If the same bug is the culprit, it is unlikely it will get a fix as it doesn't appear to be affecting most MediaWiki installations.
- Maybe you can just periodically run a Cron job to keep updating the number of active users. AhmadF.Cheema (talk) 15:47, 22 November 2016 (UTC)
how to upload in different directories
At this moment all uploaded files endup in the /images/ directorie. So files whit all extensions are put in one place. Would it be posible to place, for example PDF files in /image/PDF and access them like file:PDF:files_name Harry H. Arends 15:59, 20 November 2016 (UTC)
- No. What do you want to achieve with this? Note that you can link directly to a file using media:Example.png (this link doesn't work inside Flow, but does in normal pages) Ciencia Al Poder (talk) 01:32, 22 November 2016 (UTC)
Notifications
Is it possible to add some form of notification that pops up on talk pages and reminds users to sign themselves and title their message? 188.24.66.168 (talk) 21:01, 20 November 2016 (UTC)
How to get data from a specific section in MediaWiki supported wikis
I am parsing a Wikia article and trying to get the data from the right hand side TOC block, I have already got the left one using the following URL
http://hetalia.wikia.com/api.php?action=parse&prop=revisions&prop=sections&page=America&format=json
But don't know the reference about the right one. What will be the parameter?
The original URL is,
http://hetalia.wikia.com/wiki/America
Lamiajoyee (talk) 07:43, 21 November 2016 (UTC)
- What do you mean by "right hand side TOC block". There is only one TOC on a page, and it's on the left. 58.164.112.98 (talk) 10:45, 21 November 2016 (UTC)
- I beg pardon. Actually I meant the summary block on the right hand side (with the image). I need to parse the data inside that panel which is named "toccolours" in HTML.
- I am attaching a shot
- Lamiajoyee (talk) 10:56, 21 November 2016 (UTC)
- The "right hand side TOC block" is apparently a template (http://hetalia.wikia.com/wiki/Template:Character). The API will have to be used in a way to access this template's data on the America page. I personally don't know how to do this, maybe someone else can help. AhmadF.Cheema (talk) 13:50, 21 November 2016 (UTC)
- There is no data associated with templates that is easily machine readable. You will have to parse the wikitext of the page to manually retrieve the values used with the template. 58.164.112.98 (talk) 01:27, 22 November 2016 (UTC)
runJobs.php issue, site suspended
Hello
I have my site suspended from HostGator, reason: some issue with runJobs.php.
Can anyone help me, i really dont know what to do.
They only sent me this:
Your account has been abusing CPU resources for an extended period of time and has been disabled in order to ensure continued performance stability of the account and server. While we do limit each account to no more than 25% of a system's CPU in our terms of service, we do not actively disable accounts until they greatly exceed that number, which is what happened in this case.
5379 64120 7.0 0.1 296804 23252 ? RN 12:01 0:00 /usr/bin/php /home/rightnet3/public_html/maintenance/runJobs.php --maxjobs 1 5379 64140 3.5 0.1 291448 17316 ? SN 12:01 0:00 /usr/bin/php /home/rightnet3/public_html/maintenance/runJobs.php --maxjobs 1 5379 64167 7.0 0.0 282800 10820 ? RN 12:01 0:00 /usr/bin/php 86.122.192.157 (talk) 14:23, 21 November 2016 (UTC)
- I'm using MediaWiki 1.22.3 and PHP 5.6 , the site is suspended 86.122.192.157 (talk) 14:39, 21 November 2016 (UTC)
- MediaWiki does not "abuse" anything. However, I have never heard of that kind of problem. Also the lines which they gave you do not tell much. Especially they do not tell, which job was the problematic one. Maybe your host does not only limit resources, but maybe he also does not really have much of them.
- You might want to try updating MediaWiki to a newer version. I know that the runJobs.php script works differently in current verions than it did in older ones. However, it will still need resources.
- In the past, I have answered a number of users, who had problems with GoDaddy. But I don't remember anyone, who could not use HostGator. 87.123.36.209 (talk) 14:44, 21 November 2016 (UTC)
- Thank you! 86.122.192.157 (talk) 16:52, 21 November 2016 (UTC)
- Maybe the hosting is too limited in terms of resources for the size of your wiki, and you need a paid/not so cheap hosting Ciencia Al Poder (talk) 01:25, 22 November 2016 (UTC)
'Fake Date'
Hello, I operate a wiki for a fictional world, where the date is not 2016 but 2028, is there anyway we can make date templates think as if it was 2028 today? without changing server time? 213.93.210.166 (talk) 14:39, 21 November 2016 (UTC)
- You can use the #time parser function specifying a date or even relative dates to the current one (like +12 years). See Help:Extension:ParserFunctions#.23time Ciencia Al Poder (talk) 01:28, 22 November 2016 (UTC)
- Thanks, so I'd put this in the template code? its mainly for birth and death date templates, but I can't really figure out where to put it in. 213.93.210.166 (talk) 16:17, 23 November 2016 (UTC)
- Whenever you need to get the "current date". In places where you specify a date I guess you're already passing the modified date... Ciencia Al Poder (talk) 01:29, 24 November 2016 (UTC)
How can I get notifications when I create a new article
As the title said that, is there a function that can notification like email to the users when they create a new article? Thanks, I have find so many pages, but still no help~ could anyone help me solve this problem? Jackeymai32 (talk) 16:11, 21 November 2016 (UTC)
- I have just looked up the information you want to know: I know that MediaWiki has hooks, which allow to hook into the processing. Then I searched for a hook, which gets executed when a new article gets created. This brought me to Manual:Hooks/PageContentInsertComplete. The link to
- Category:PageContentInsertComplete extensions
- then showed exactly one extension in that category, which is Extension:EditNotify! Violà! 87.123.36.209 (talk) 17:17, 21 November 2016 (UTC)
- Thanks, It's help a lot! Jackeymai32 (talk) 00:32, 22 November 2016 (UTC)
414 Request-URI Too Large
So I was trying to access the wiki of this game http://wiki.smutosaur.us/CoC/Main_Page
and it loads just fine, but right after loading, the page reloads into this Age.html page http://i.imgur.com/NjEafEE.png
Then it keeps reloading and reloading on this same page until I get to this page 414 Request-URI Too Large nginx/1.11.3
http://i.imgur.com/X7Uk9cj.png
Also, every time the Age.html page reloads, the link increases like these screenshots:
http://i.imgur.com/NzOHkaU.png
http://i.imgur.com/obJ1WW9.png
My guess is that the page redirects me to this age page to check my age since the wiki is based in an erotic game, this also happens on my phone. 201.68.254.21 (talk) 17:25, 21 November 2016 (UTC)
- Yes, and it's caused by a script in MediaWiki:Common.js. If you aren't a sysop there, you should contact them about it. Ciencia Al Poder (talk) 01:22, 22 November 2016 (UTC)
- I will, thanks. 201.68.254.21 (talk) 19:43, 22 November 2016 (UTC)
Design Not Loading for Changes
I'm creating a new invite and want to make changes to the design. What comes up, though, is a generic picture and a message that the design is perfect with no options for modification.
Have tried creating anew invite vs copying from a previous one. Same result. Is there a problem in the system? I NEED to be able to design. 68.224.29.168 (talk) 02:51, 22 November 2016 (UTC)
- Welcome on the Support Desk for MediaWiki!
- When you are speaking about a design, what do you mean? Are you speaking about a MediaWiki skin? I have the feeling you might not be not speaking about MediaWiki at all... 87.123.6.70 (talk) 07:49, 22 November 2016 (UTC)
Unable to transfer files from Internet Archive to the Commons using IA Upload Bot
I have no clue how to get info on this tool to be sure that it's broken, and because of this I don't want to file a bug report. Numerous (old) links to this tool or access to Magnus Manske are no longer available (404).
Just want to know if the tool is working or not. If not, the it's much easier to download to my desktop and the upload to the commons.
These screen shots were made of the steps taken:
https://en.wikisource.org/wiki/File:IA_OAuth_permission_granted_1.jpg
https://en.wikisource.org/wiki/File:IA_file_is_missing_step_3.jpg
P.S: Just to clarify, I already downloaded this particular file to my desktop, but I have four additional titles to transfer. — Ineuw talk 06:53, 22 November 2016 (UTC)
- You have to remove the .djvu at the end of the Internet Archive id (sorry, it's a bit conter-intuitive) and the tool should be able to detect the file. Tpt (talk) 18:09, 26 November 2016 (UTC)
- Thanks!!!!!, I will try it a bit later today. — Ineuw talk 21:28, 26 November 2016 (UTC)
Segfault in refreshLinks.php
Whenever I run the refreshLinks maintenance script, I get a segmentation fault at a random point in the "refreshing links tables" section:
Refreshing links tables. Starting from page_id 1 of 5674. 100 200 300 400 500 600 700 800 900 1000 1100 Segmentation fault
The error log is wholly unhelpful:
AH00052: child pid 26072 exit signal Segmentation fault (11)
MediaWiki 1.27.1
PHP 7.0.8
MySQL 5.7.16
Linux Mint 18 121.214.25.146 (talk) 09:15, 22 November 2016 (UTC)
- I found T16257, where a user also got a segfault using refreshLinks.php. He did some debugging, but did not get to a solution obviously. 87.123.6.70 (talk) 11:14, 22 November 2016 (UTC)
How to add a page to the left hand panel?
I apologize if this is something that is documented else where, but I have tried my hardest to find a solution and I have had no luck. Please help :) Omnitcfi (talk) 23:25, 22 November 2016 (UTC)
- See Manual:Interface/Sidebar! 87.123.41.8 (talk) 23:26, 22 November 2016 (UTC)
- THANK YOU Omnitcfi (talk) 00:08, 23 November 2016 (UTC)
Date Based Articles
I'm trying to create an internal wiki where many of the articles are weekly meeting agendas/minutes. What's the best way to organize these so that I can use a tree extension for the user's navigation?
I'm thinking about using Categories, Sub-Categories and Extension:CategoryTree but I'm not sure how to nest categories because months would have the same name.
I need a hierarchy like this:
Meetings
-2017
-January
--07
--14
-2016
--Dec
--Nov
---07
----Possibly other articles
---14
---21
--Oct
--Sept
Thank you 2001:56A:F661:D800:5979:376C:5D90:3989 (talk) 02:00, 23 November 2016 (UTC)
- You could create categories like "2016 11" for November and "2016 12" for December. If you use numbers, you also would not have the problem that the categories would be displayed by their alphabetical name, which would be disturbing (April - August - December - February - ...). For the months January til September I would add a leading "0" then like "2017 01".
- The different protocol pages can then just be put into the according category. 87.123.41.8 (talk) 08:59, 23 November 2016 (UTC)
The lua binary lua is not executable
hello
i have a fatal exception
[a201ec8a] /index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Bananas&action=submit Exception from line 158 of /htdocs/public/www/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/htdocs/public/www/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua) is not executable.
Backtrace:
#0 /htdocs/public/www/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(105): Scribunto_LuaStandaloneInterpreter->__construct(Scribunto_LuaStandaloneEngine, array)
#1 /htdocs/public/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(72): Scribunto_LuaStandaloneEngine->newInterpreter()
#2 /htdocs/public/www/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
#3 /htdocs/public/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(172): Scribunto_LuaStandaloneEngine->load()
#4 /htdocs/public/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(655): Scribunto_LuaEngine->getInterpreter()
#5 /htdocs/public/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(628): Scribunto_LuaModule->getInitChunk()
#6 /htdocs/public/www/extensions/Scribunto/common/Base.php(157): Scribunto_LuaModule->validate()
#7 /htdocs/public/www/extensions/Scribunto/common/Hooks.php(313): ScribuntoEngineBase->validate(string, string)
#8 [internal function]: ScribuntoHooks::validateScript(EditPage, string, string, string)
#9 /htdocs/public/www/includes/Hooks.php(206): call_user_func_array(string, array)
#10 /htdocs/public/www/includes/GlobalFunctions.php(4013): Hooks::run(string, array, NULL)
#11 /htdocs/public/www/includes/content/ContentHandler.php(1120): wfRunHooks(string, array)
#12 /htdocs/public/www/includes/EditPage.php(1355): ContentHandler::runLegacyHooks(string, array)
#13 /htdocs/public/www/includes/EditPage.php(1603): EditPage->runPostMergeFilters(ScribuntoContent, Status, User)
#14 /htdocs/public/www/includes/EditPage.php(1237): EditPage->internalAttemptSave(boolean, boolean)
#15 /htdocs/public/www/includes/EditPage.php(427): EditPage->attemptSave()
#16 /htdocs/public/www/includes/actions/EditAction.php(50): EditPage->edit()
#17 /htdocs/public/www/includes/actions/EditAction.php(74): EditAction->show()
#18 /htdocs/public/www/includes/Wiki.php(428): SubmitAction->show()
#19 /htdocs/public/www/includes/Wiki.php(292): MediaWiki->performAction(Article, Title)
#20 /htdocs/public/www/includes/Wiki.php(588): MediaWiki->performRequest()
#21 /htdocs/public/www/includes/Wiki.php(447): MediaWiki->main()
#22 /htdocs/public/www/index.php(46): MediaWiki->run()
#23 {main} Dezedien (talk) 09:32, 23 November 2016 (UTC)
- Change the permissions of file: "/htdocs/public/www/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua"
- to allow execution.
- Or in other words, browse to directory: "/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic"
- and change the permissions of the "lua" file to 0755.
- See: Extension:Scribunto#Installation AhmadF.Cheema (talk) 10:46, 23 November 2016 (UTC)
- yeah !
- Thank you very much
- the problem is fixed
- done :) Dezedien (talk) 13:39, 23 November 2016 (UTC)
- Hello.
- The same problem appeared on my site: ( wiki.sheki.site ).
- [XQZbPCmD7BJvsNm2suoY3gAAAAY] /index.php?title=Module:Wikidata&action=submit Error from line 52 of /home/ipekchi/public_html/wiki/extensions/Scribunto/includes/common/ScribuntoContent.php: Call to undefined method ScribuntoContent::getText()
- Backtrace:
- #0 /home/ipekchi/public_html/wiki/includes/content/AbstractContent.php(517): ScribuntoContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
- #1 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(242): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)
- #2 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(ScribuntoContent, boolean)
- #3 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
- #4 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
- #5 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
- #6 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
- #7 /home/ipekchi/public_html/wiki/includes/Storage/DerivedPageDataUpdater.php(1265): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- #8 /home/ipekchi/public_html/wiki/includes/Storage/DerivedPageDataUpdater.php(1235): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
- #9 /home/ipekchi/public_html/wiki/includes/page/WikiPage.php(1994): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()
- #10 /home/ipekchi/public_html/wiki/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(31): WikiPage->prepareContentForEdit(ScribuntoContent)
- #11 /home/ipekchi/public_html/wiki/includes/Hooks.php(174): SpamBlacklistHooks::filterMergedContent(RequestContext, ScribuntoContent, Status, string, User, boolean)
- #12 /home/ipekchi/public_html/wiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
- #13 /home/ipekchi/public_html/wiki/includes/EditPage.php(1747): Hooks::run(string, array)
- #14 /home/ipekchi/public_html/wiki/includes/EditPage.php(2066): EditPage->runPostMergeFilters(ScribuntoContent, Status, User)
- #15 /home/ipekchi/public_html/wiki/includes/EditPage.php(1574): EditPage->internalAttemptSave(NULL, boolean)
- #16 /home/ipekchi/public_html/wiki/includes/EditPage.php(677): EditPage->attemptSave(NULL)
- #17 /home/ipekchi/public_html/wiki/includes/actions/EditAction.php(60): EditPage->edit()
- #18 /home/ipekchi/public_html/wiki/includes/actions/SubmitAction.php(38): EditAction->show()
- #19 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(501): SubmitAction->show()
- #20 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- #21 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(860): MediaWiki->performRequest()
- #22 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(517): MediaWiki->main()
- #23 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()
- #24 {main}
- Modules can not be created. understand what you wrote. lua5_1_5_linux_32_generic/lua - on my site: public_html/wiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua . But I did not. "Change the permissions of file" and "change the permissions of the". I can not understand that. How to Do It? Where to Do? Thanks in advance. Tofiq Kərimli (talk) 14:54, 16 June 2019 (UTC)
- See, How to Change File Permissions in Linux. AhmadF.Cheema (talk) 17:14, 16 June 2019 (UTC)
- [XQamVgwa@RImTCtmTSWmTwAAAA4] /index.php?title=Module:Wikidata&action=submit Error from line 52 of /home/ipekchi/public_html/wiki/extensions/Scribunto/includes/common/ScribuntoContent.php: Call to undefined method ScribuntoContent::getText()
- Backtrace:
- #0 /home/ipekchi/public_html/wiki/includes/content/AbstractContent.php(517): ScribuntoContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
- #1 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(242): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)
- #2 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(ScribuntoContent, boolean)
- #3 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
- #4 /home/ipekchi/public_html/wiki/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
- #5 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
- #6 /home/ipekchi/public_html/wiki/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
- #7 /home/ipekchi/public_html/wiki/includes/Storage/DerivedPageDataUpdater.php(1265): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- #8 /home/ipekchi/public_html/wiki/includes/Storage/DerivedPageDataUpdater.php(1235): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
- #9 /home/ipekchi/public_html/wiki/includes/page/WikiPage.php(1994): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()
- #10 /home/ipekchi/public_html/wiki/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(31): WikiPage->prepareContentForEdit(ScribuntoContent)
- #11 /home/ipekchi/public_html/wiki/includes/Hooks.php(174): SpamBlacklistHooks::filterMergedContent(RequestContext, ScribuntoContent, Status, string, User, boolean)
- #12 /home/ipekchi/public_html/wiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
- #13 /home/ipekchi/public_html/wiki/includes/EditPage.php(1747): Hooks::run(string, array)
- #14 /home/ipekchi/public_html/wiki/includes/EditPage.php(2066): EditPage->runPostMergeFilters(ScribuntoContent, Status, User)
- #15 /home/ipekchi/public_html/wiki/includes/EditPage.php(1574): EditPage->internalAttemptSave(NULL, boolean)
- #16 /home/ipekchi/public_html/wiki/includes/EditPage.php(677): EditPage->attemptSave(NULL)
- #17 /home/ipekchi/public_html/wiki/includes/actions/EditAction.php(60): EditPage->edit()
- #18 /home/ipekchi/public_html/wiki/includes/actions/SubmitAction.php(38): EditAction->show()
- #19 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(501): SubmitAction->show()
- #20 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- #21 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(860): MediaWiki->performRequest()
- #22 /home/ipekchi/public_html/wiki/includes/MediaWiki.php(517): MediaWiki->main()
- #23 /home/ipekchi/public_html/wiki/index.php(42): MediaWiki->run()
- #24 {main} Tofiq Kərimli (talk) 20:33, 16 June 2019 (UTC)
- "Call to undefined method" is a different error than the permissions issue.
- For your error, make sure that the Extension:Scribunto version corresponds to your MediaWiki version. AhmadF.Cheema (talk) 22:01, 16 June 2019 (UTC)
- Thank you.
- "Download Mediawiki extension" page (Extension:Scribunto)
- No such extension "Scribunto".
- Unable to fetch extension list! - it is written.
- I suspected that. Because the catalog was inconsistent. I downloaded from here: github.com/wikimedia/mediawiki-extensions-Scribunto .
- Can I download the right version? Tofiq Kərimli (talk) 22:09, 16 June 2019 (UTC)
- Yes, just make sure to download the version which corresponds to your MediaWiki version. AhmadF.Cheema (talk) 05:05, 17 June 2019 (UTC)
- Sorry, Mr. But it is not possible to download from here (Extension:Scribunto). No such extension "Scribunto".
- Unable to fetch extension list! - it is written.
- Maybe there's a problem with the fresh version? Tofiq Kərimli (talk) 08:13, 17 June 2019 (UTC)
- I downloaded it: https://github.com/wikimedia/mediawiki-extensions-Scribunto/tree/REL1_32 Excellent! Problem solved. Thank you for your help. Interestingly, there was no need to change the files. They were changed. Tofiq Kərimli (talk) 10:57, 17 June 2019 (UTC)
- I have the same issue, and when I check the permissions of the file, I find
-rwxrwxr-x. 1 apache apache 195508 Aug 22 09:40 lua
- Looks to me to be fine (775 in fact).
- In version 1.39.0 it worked fine with permissions set to 644...
- I guess I'll have to ask the Scribunto maintainers? Techcare.noc (talk) 12:05, 22 August 2023 (UTC)
- Turns out reading the documentation and setting the correct SELinux context solved it for me...
- (chcon -t httpd_sys_script_exec_t /path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) Techcare.noc (talk) 12:10, 22 August 2023 (UTC)
Bizagi
Hello
Is there any way to publish, automatically, Bizagi Web-publish version in Mediawiki?
This action will be made by the users, so it needs to be simple :D Bty0808 (talk) 13:17, 23 November 2016 (UTC)
Extension Lockdown blocks permission to SimpleBatchUpload
I installed the Lockdown extension to block acces for regular users to certain special pages. Everything works fine exept it blocks the uploading of files through the SimpleBatchUpload extension even though I didn't even configured the Lockdown extension to do that. How do I enable it for everyone to upload with the SimpleBatchUpload extension so I can use both extensions without any problems?
I would also like to know if it's possible to block acces to certain normal articles with the Lockdown extension?
Also, I have an other problem that has nothing to do with the Lockdown extension, but it has to do with mediawiki's native $wgGroupPermissions
function. I tried disable the createpage
permission for regular users and only enable it to certain user groups, but as soon as I did that the regular users weren't able to upload images on my wiki, which I still want them to be able to do that. How am I able to restric the creation of articles for regular users but still allow them to upload images? Innosflew (talk) 13:22, 23 November 2016 (UTC)
- Hey. Uploading an image means creating a page for that image, thus uploading and creating share a symbiotic relationship. As far as my knowledge goes, I know no workaround to that except for allowing uploading users to create pages, too. It's not something I am especially thrilled with, either, as I would like to do the exact same thing that you want to, but it is what it is. │Star-Warden│ 08:52, 24 November 2016 (UTC)
- Lockdown doesn't specify on its page about locking single articles, only namespaces or special pages, but there's an extension (though unmaintained) that does what you want: Extension:PrivatePageProtection │Star-Warden│ 08:56, 24 November 2016 (UTC)
Pages with special characters no longer work after switching to SSL
Hello, after switching to SSL, pages with special characters no longer work. The error message is "The page isn’t redirecting properly". This error occurs independent from the browser (tested Firefox and Edge) and independent from used PC. And this error occurs independent from namespace.
The German language wiki is https://inklupedia.de/
You can reproduce the error by opening e.g.
- https://inklupedia.de/wiki/N%c3%bcrnberg
- https://inklupedia.de/wiki/Spezial:Letzte_%c3%84nderungen
Pages without special characters are working as expected. If you need more information to help, please ask or contact me at inklupedia@inklupedia.de
Installed is MediaWiki 1.26.2 and PHP 5.6.27 (cgi-fcgi). More information are available at https://inklupedia.de/wiki/Spezial:Version
Thank you
Frank InkluPedia (talk) 20:01, 23 November 2016 (UTC)
- This looks like T131414, fixed in T106793, should land on 1.27.2 when it comes out (I don't know when). 1.26 is becoming obsolete in 2 days so it won't have any fix for that.
- That's a strange situation, where it's fixed in master and backported, but nobody is doing a release of 1.27 with all the backports since june... I wonder what are they waiting for doing a new release. You may bring this to mediawiki-l. Ciencia Al Poder (talk) 02:13, 24 November 2016 (UTC)
Hi I uploaded some photos and now want to take them down from the commons site. please tell me how.
Hi I uploaded some photos and now want to take them down from the commons site. please tell me how. Roseyperkins (talk) 20:11, 23 November 2016 (UTC)
- See commons:Commons:Criteria for speedy deletion Ciencia Al Poder (talk) 01:44, 24 November 2016 (UTC)
A fix for hosted sites
Was getting a MWException error so added to LocalSettings.php:
# SA added
$wgShowExceptionDetails = true;
Discovered /includes/cache/localisation/LCStoreCDB.php was attempting to write to /tmp when it is not allowed on my hosted account.
Fix was to add to LocalSettings.php:
$wgCacheDirectory="cache";
to put it in an allowed area on disk and
and changed /includes/cache/localisation/LCStoreCDB.php to hard code it to the settings variable:
function __construct( $conf = [] ) {
global $wgCacheDirectory;
if ( isset( $conf['directory'] ) ) {
$this->directory = $conf['directory'];
} else {
$this->directory = $wgCacheDirectory;
}
// Doesn't work on Bluehost, so hard code it ... scott auge
$this->directory = $wgCacheDirectory;
}
Not a member of the coding community here, but someone may want to explore this work around. Scott Auge (talk) 21:18, 23 November 2016 (UTC)
- Hacking the core files should not be needed - you should be able to fix the problem with configuration variables only.
- Does it help, if you do not only set $wgCacheDirectory, but if you also set $wgTmpDirectory to a fitting value? 87.123.4.206 (talk) 08:26, 24 November 2016 (UTC)
Extension:Upload Wizard new license
Hi everybody!
I want (and need) to add a new license in the list of 'my own work' licenses. How could I do?
Thanks for your help!
Lorenzo Loman87 (talk) 08:48, 24 November 2016 (UTC)
- Hey. You need to go to MediaWiki:Licenses on your own wiki. │Star-Warden│ 08:50, 24 November 2016 (UTC)
- Thanks for your answer!
- But adding new licenses in MediaWiki:Licenses just allows me to choose them if I use the default Mediawiki upload manager. Instead I want to select a different license in the UploadWizard extension.
- I think I have to edit the Upload Wizard extension files, but I don't where. Loman87 (talk) 09:35, 24 November 2016 (UTC)
- Ah, sorry, overlooked the title. I looked over the extension and found this. I don't know if it's helpful or not. │Star-Warden│ 14:32, 24 November 2016 (UTC)
- Hi,
- thanks for the link! I can't understand where to find the actual implementation...it seems to be a not finished work.
- Any other ideas? Loman87 (talk) 08:41, 25 November 2016 (UTC)
Search in PDF´s that are written in a Texttool.
I am searching for an Extension or an Option how i make Search in PDF´s that are written in a Texttool.
So i can use the search button with a Keyword that will search throw the Sites and throw EMBEDED PDF Files. Thx for the Help. 195.160.253.7 (talk) 11:59, 24 November 2016 (UTC)
Editing Notification Email Content
Hi all,
On my private Wiki, I would like to edit the content of notification emails to make them more user-friendly. Could you please let me know how we can do this?
Thank you! PaleoIsh (talk) 12:45, 24 November 2016 (UTC)
- I think one is available at:
- MediaWiki:Accmailtext AhmadF.Cheema (talk) 13:28, 24 November 2016 (UTC)
- I'm seeing a deleted page, and could not find a similar tool. PaleoIsh (talk) 13:32, 24 November 2016 (UTC)
- I meant browse to your Wiki's version of the page, i.e. go to: <your_wiki_URL>/MediaWiki:Accmailtext
- On second thought, this might not be related to the email message, but just the notification shown to the admin on resetting the password for a particular user. AhmadF.Cheema (talk) 13:38, 24 November 2016 (UTC)
- I think the following will be the one you're probably looking for:
- MediaWiki:Enotif body AhmadF.Cheema (talk) 13:51, 24 November 2016 (UTC)
Script Error
RESOLVED | |
The used Wikipedia template code was for a newer version of Extension:Scribunto. |
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 had this error on different pages of my wiki project
like :
Lua error in package.lua at line 80: module `Module:Pagetype/config' not found. Backtrace: (tail call): ? [C]: in function "error" package.lua:80: in function "load" package.lua:99: ? (tail call): ? (tail call): ? mw.lua:803: in function "loadData" وحدة:Pagetype:13: in function "init" package.lua:103: in function "require" وحدة:Portal:13: in main chunk (tail call): ? (tail call): ? [C]: in function "xpcall" MWServer.lua:87: in function "handleCall" MWServer.lua:301: in function "dispatch" MWServer.lua:40: in function "execute" mw_main.lua:7: in main chunk [C]: ?
need solution Dezedien (talk) 15:19, 24 November 2016 (UTC)
- What is your Extension:Scribunto version and MediaWiki version?
- Also, have you imported any templates/modules from other wikis like Wikipedia etc. AhmadF.Cheema (talk) 15:32, 24 November 2016 (UTC)
- the version of my scribunto is 1.23 and mediawiki is 1.23
- yes i have imported navbox template Dezedien (talk) 19:22, 25 November 2016 (UTC)
- hello @AhmadF.Cheema anny idea ? Dezedien (talk) 07:23, 28 November 2016 (UTC)
- Sorry for the late reply, did not have any ideas before.
- Can you confirm the page
Module:Pagetype/config
exists on your Wiki? - Also, how exactly did you import the navbox template? Did you import just the single navbox template page or did you also import the other templates/modules used on that page? In other words, did you check the "Include templates" option at https://en.wikipedia.org/wiki/Special:Export? AhmadF.Cheema (talk) 07:49, 28 November 2016 (UTC)
- Hi @AhmadF.Cheema, Problem resolved
- because vesion of wiki installed is old the solution is to use the same script copied from wikipedia during 2014 in accordance with the last date of 1.23 update
- Thanks you very much Dezedien (talk) 18:40, 9 December 2016 (UTC)
Is there a way to have Category Pages returned in the search results? Specifically in the Ajax/Suggest search?
We have a lot of category pages with info we want included in the search. Both the search results and the search suggestions. Is there a way to turn this on?
I have tried using $wgNamespacesToBeSearchedDefault[NS_CATEGORY] = true; however ot does not seem to be working.
Thanks,
Pete. 2601:193:8302:1FA5:B101:D077:ED44:2DE6 (talk) 15:40, 24 November 2016 (UTC)
- I am using : Php 5.6 Mediawiki 1.27.1 MySQL 5 2601:193:8302:1FA5:B101:D077:ED44:2DE6 (talk) 15:41, 24 November 2016 (UTC)
- Maybe Extension:CirrusSearch can help, specifically Help:CirrusSearch#Filters.
- I might have misunderstood above, can't what you want to do, be done through the "Advanced" option in "Search results" (e.g. https://www.mediawiki.org/w/index.php?title=Special:Search&search=abc&fulltext=Search&profile=advanced&searchToken=53bm93cr2zl1cdagtwpqpjgrw) AhmadF.Cheema (talk) 15:52, 24 November 2016 (UTC)
- The Search page itself is fine and does return categroy page results but the Suggestions do not. Like when you start typing in the search box and it suggests pages. It never includes category pages. :P. 2601:193:8302:1FA5:B101:D077:ED44:2DE6 (talk) 16:22, 24 November 2016 (UTC)
- See if the comments in this section help: Manual talk:$wgEnableMWSuggest#Namespaces in suggestions. AhmadF.Cheema (talk) 16:40, 24 November 2016 (UTC)
- The suggestions will suggest any page, in that namespace. If you don't specify a namespace, then it is limited to the main namespace. Simply typing "Category:" will start suggesting categories. 121.214.25.146 (talk) 05:14, 25 November 2016 (UTC)
- Yes. It's true if you start the search with the word Category it will return the Category pages. I want them included at all times in the Ajaxy Suggestion box when you search. Does any option other then editing the core search javascript code exist? Peteolsen (talk) 13:47, 25 November 2016 (UTC)
MWException : "Revision is null"
Hi,
I use Translate extension on my wiki, and I have a MWException on a few pages that I am looking forward to mark for translation on my wiki that I don't understand :
[4dc49fa8c70db04f8c8505f4] /index.php?title=Sp%C3%A9cial:PageTranslation&target=Page+name&do=mark MWException from line 97 of C:\mediawiki\extensions\Translate\tag\TranslatablePage.php: Revision is null
Backtrace:
#0 C:\mediawiki\extensions\Translate\tag\SpecialPageTranslation.php(725): TranslatablePage::newFromRevision(Title, integer)
#1 C:\mediawiki\extensions\Translate\tag\SpecialPageTranslation.php(241): SpecialPageTranslation->showPage(TranslatablePage, array)
#2 C:\mediawiki\extensions\Translate\tag\SpecialPageTranslation.php(75): SpecialPageTranslation->onActionMark(Title, integer)
#3 C:\mediawiki\includes\specialpage\SpecialPage.php(479): SpecialPageTranslation->execute(NULL)
#4 C:\mediawiki\includes\specialpage\SpecialPageFactory.php(576): SpecialPage->run(NULL)
#5 C:\mediawiki\includes\MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#6 C:\mediawiki\includes\MediaWiki.php(745): MediaWiki->performRequest()
#7 C:\mediawiki\includes\MediaWiki.php(519): MediaWiki->main()
#8 C:\mediawiki\index.php(43): MediaWiki->run()
#9 {main}
If you can help me on this, or at least guide me on where to look for ?
Everything is up to date.
MediaWiki 1.27.1
PHP 5.6.26 (cgi-fcgi)
MySQL 5.7.15-log
ICU 57.1
MLEB 2016.10 Tuxxic (talk) 17:27, 24 November 2016 (UTC)
show NON-protected pages
I would like to see the possibility to reverse a choice, i.e. on the special page/protected pages there could be a checkbox reversing the search, listing the pages in a wiki that are NOT protected. This might also be nice for other kinds of pages... Thank you. Arie Klerk (talk) 19:45, 24 November 2016 (UTC)
- Sounds like a feature request to me. You should open a bugreport to discuss this change in Phabricator and then to possibly get it integrated into MediaWiki! 87.123.32.68 (talk) 20:24, 24 November 2016 (UTC)
- I did of course. But the reply was:
- Reception123 closed this task as "Invalid".Thu, Nov 24, 18:08
- There is nothing that we can do about this on our side. This could be done by an extension, so maybe check around Mediawiki.org
- So I came to you, PLEASE don't send me back... ;) Arie Klerk (talk) 21:31, 24 November 2016 (UTC)
- No, I won't send you back. You have asked in the issue tracker of Miraheze. However, what I mean is the one of the Wikimedia project, which you find at http://phabricator.wikimedia.org/. The page looks the same, but it reaches different people, here: the MediaWiki developers. :-) 87.123.32.68 (talk) 22:04, 24 November 2016 (UTC)
- Tks for the explanation. I submitted the bugreport to WikiMedia Phabricator. Interested for the outcome?
- T151610: show NON-protected pages. Arie Klerk (talk) 07:54, 25 November 2016 (UTC)
Raw scary transclusion is turning up the HTML for the login page instead of the thing I want to transclude
I have two wikis, both running MediaWiki. I want to use templates from wiki A on wiki B. To do this, I set up an appropriate entry in the interwiki table on wiki B, and tried using the {{raw:wiki:foo}}
syntax.
Instead of getting the template, I got a page covered in the HTML source for the login page on wiki A.
Wiki A was installed with the private wiki option in the installer. The first thing I have tried is to set $wgGroupPermissions['*']['read'] = true
, but although this setting has indeed taken effect, it has not resolved the problem on wiki B, even after resaving the affected page.
Any ideas about what might be causing the problem, and how to solve it? MadEmperorYuri (talk) 21:53, 24 November 2016 (UTC)
- Platonides solved this for me on IRC. The problem was the transcache on wiki B, keeping a cache of the login page. Truncating the transcache solve the issue. MadEmperorYuri (talk) 22:18, 24 November 2016 (UTC)
Problem with categories
I have a problem with categories. If I try to use categories, at the bottom of the site appears the box "Category:Test". If I click on "Test", the Category-Page of "Test" opens. But there are no sites linked.
Why? 77.189.120.112 (talk) 22:23, 24 November 2016 (UTC)
- This is a known issue. See Manual:$wgRunJobsAsync for the solution! 87.123.32.68 (talk) 22:35, 24 November 2016 (UTC)
How to export all files under a category from wiki A to wiki B?
Hi guys, we are using free domain icons from wiki commons for quite a long time. Recently it get really unstable (either problem from commons or network connection to commons).
We would like to export all these icons from Wikimedia commons to our own wiki. If description pages can export as well would be even better!
Thank you! Deletedaccount4567435 (talk) 06:15, 25 November 2016 (UTC)
- See Help:Export for some options. Hamilton Abreu (talk) 13:42, 25 November 2016 (UTC)
WikiEditor and PageForms conflict
Hi everybody,
I have a problem to edit page, since the wikieditor doesn't appear in edit mode (it works when I create new pages or in other namespaces). I read other similar threads but I guess this a new issue. Using the Chrome console I have this error
Uncaught Error: Unknown dependency: ext.semanticforms.main
I also tried to deactivate semantic forms extesnion but the problem continues.
Please help!
Infobox & doc pages display issues
Hello,
2 issues here. Any time I insert an infobox, it aligns to the left, does not have borders, and various other formatting issues. I've verified the Navbar, Navbox, Infobox modules are installed properly in addition to the various templates. I can't figure out what could be causing this.
Additionally, all of my /doc pages are formatted incorrectly as well - no background colors/borders etc. Maybe these are related? Thank you for your help! Stillhouse (talk) 13:04, 25 November 2016 (UTC)
- In case you are importing from Wikipedia templates, If I'm not mistaken, /doc pages aren't supposed to have a background colour and borders.
- For the infobox issue, you might need to copy the relevant styling code from https://en.wikipedia.org/wiki/MediaWiki:Common.css. AhmadF.Cheema (talk) 14:05, 25 November 2016 (UTC)
Bild wird nach hochladen nicht angezeigt / Image is not displayed after upload
Hallo ich benutze das MediaWiki 1.26.2.
Nach dem hochladen wird das Bild nicht angezeigt. Weiterhin erschein bei der seite wo es eingebunden ist nur eine weise seite. Das gleiche ist in der Bildkategorie und in der Dateiliste (title=Spezial:Dateien).
Ich kann also weder das Bild löschen sowie die Kategorie des Bildes anzeigen lassen sowie den Beitrag mit dem Bild.
Ich weis nicht weiter und bitte um Hilfe.
----------------------------------------------------
Hello I use the MediaWiki 1.26.2. After the upload, the image is not displayed. Furthermore appears with the side where it is only a wise side. The same is in the image category and in the file list (title = special: files). So I can neither delete the picture, the category of the picture, and the picture with the picture. I do not know any further and ask for help. 91.43.13.11 (talk) 19:17, 25 November 2016 (UTC)
- Hallo!
- Was passiert denn nach dem Hochladen? Wirst du dann auf die Seite, auf der das Bild sein sollte, weitergeleitet?
- Ist das Wiki, in dem der Fehler auftritt öffentlich zugängnlich? Wenn ja, wie ist die URL, unter der ich mir den Fehler ansehen kann?
- Ohne es gesehen zu haben rate ich, dass womöglich die Dateiberechtigungen für den Ordner images/ nicht richtig sind. Der Ordner, alle Unterordner und alle enthaltenen Dateien müssen vom Webserver gelesen und geschrieben werden können! 87.123.61.69 (talk) 21:45, 25 November 2016 (UTC)
- Hallo, das Wiki ist öffentlich und unter http://stagenine.info/web/gox/index.php?title=Hauptseite zu erreichen.
- Die URL für den Fehler ist http://stagenine.info/web/gox/index.php?title=Lichtgestalter, wobei das Bild Datei:ESC2014 - Austria 01 (crop).jpg nach dem hochladen einen weisen bildschirm erzeugt hat. Auch nach dem erneuten hochladen gibt es auch nur ein weise bild.
- An den Dateiberechtigungen kann es nicht liegen da schon viele Bilder hochgeladen wurden. Weiterhin ist die Bild Kategorie und die Dateiliste nicht zu erreichen. Stagenine (talk) 23:40, 25 November 2016 (UTC)
- Der komplett weiße Bildschirm deutet auf einen PHP-Fehler hin. Wir brauchen die zugehörige Fehlermeldung! Unter blank page steht, wie du an die drankommst! 87.123.61.69 (talk) 23:46, 25 November 2016 (UTC)
- Hallo!
- Danke erstmal für die Hinweise... leider ist mein englisch nicht gut. Ich habe, zumindest hoffe ich es wie in blank page steht die Zeilen
- <?php
- error_reporting( E_ALL );
- ini_set( 'display_errors', 1 );
- eingefügt und hochgeladen auf den server (natürlich wahr das <?php schon vorhanden).
- Leider wird beim aufrufen der defekten seiten kein code ausgegeben, Ich kläre das gra dnoch ab mit meinen server hoster warum kein code angezeigt wird. Ich gebe soschnell wie möglich Antwort wenn ich ein code angezeigt bekomme.
- Wenn nicht würde ich mich über eine Persönliche Hilfe freuen, am besten kurz über mein TS, wen es möglich währe.
- Mfg Stagenine (talk) 09:11, 26 November 2016 (UTC)
- Wenn ich die Seite Lichtgestalter aufrufe, dann wird mir jetzt das Bild angezeigt: Das Vorschaubild in der passenden Größe ist auf dem Server vorhanden und man kann es auch abrufen. Auch das Original ist auf dem Server und auch das kann ich abrufen.
- Beim Aufruf der Seite Datei:ESC2014_-_Austria_01_(crop).jpg kommt es aber immer noch zu einem PHP Fehler. Mit
<?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 );
- ganz oben in LocalSettings.php müsste dir der Fehler angezeigt werden. Ansonsten frag nochmal den Host - der wird eine Möglichkeit haben, dir die Fehlermeldung zu nennen! 87.123.61.69 (talk) 13:09, 26 November 2016 (UTC)
How to...
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.
How to speed up the mediawiki software on a Linux operating system? Help me please! Thank you! Kizule (talk) 21:31, 25 November 2016 (UTC)
- See Manual:Performance tuning! 87.123.61.69 (talk) 21:40, 25 November 2016 (UTC)
- Thank you for help! Kizule (talk) 22:36, 25 November 2016 (UTC)
Backing up an offline only personal wiki?
Hello, I use an offline online personal Mediawiki for my own projects, I wish to upgrade my computer to 64bit Windows OS and I need to back the wiki up so I can access it after the upgrade. What is the simplest way to do this? Thank you 174.28.181.84 (talk) 16:05, 26 November 2016 (UTC)
- Edit, I mean' to say "I use an offline personal Mediawiki" 174.28.181.84 (talk) 16:09, 26 November 2016 (UTC)
- See Backup! 87.123.61.69 (talk) 16:53, 26 November 2016 (UTC)
- If I am going to install the new OS on a new SSD and keep my two current hard-drives (including the one where the Wiki is) as data drives so I still need to do anything specific to use the wiki with the new OS? 174.28.166.134 (talk) 00:32, 29 November 2016 (UTC)
- The wiki needs a server to be run. The wiki files must be inside the docroot of a webserver (e.g. Apache) and the database files need to be in a MySQL server. Both of these servers need to be running.
- It might be possible to continue running the old servers from your old HDD in the new OS, but I guess you might then have to change some configuration variables for these servers to continue working.And the servers will then be installed on the old harddrives obviously, not on the new one. Since you have to adjust the configuration anyway, it might not even be that much more work to just set up a new server directly inside the new OS and to run the wiki from there. That way the wiki will again be inside your OS and no longer outside - just as it has been before. 87.123.26.238 (talk) 04:51, 29 November 2016 (UTC)
- OP here.
- I think I am accessing the myPHPadmin panel for my wiki. I used the WAMP to install it and I forgot much so I need to be helped like baby lol
- Well I am in the myphpadmin and I see the "export" tool but I can't find the file for my wiki? is this weird? should i be able to see the database of my wiki (the infos)? 174.28.166.133 (talk) 02:02, 1 December 2016 (UTC)
- Yes, phpmyadmin should show you the different databases and - I would have to look up how that is working exactly - but phpmyadmin has an option to export a database... 87.123.21.22 (talk) 09:46, 1 December 2016 (UTC)
Sorry! We could not process your edit due to a loss of session data.
Hello, I have been getting this message whenever I try to save edits in Wikipedia. I realize this issue is covered at Manual:Errors and symptoms, but I am only a Wikipedia editor and do not understand the instructions there. Could someone please explain how to fix this problem to a layperson? Thanks.
Also, this only happens in Firefox. Sunnya343 (talk) 18:01, 26 November 2016 (UTC)
- The information on that page only apply to people, who have control over the server and e.g. over its PHP installation.
- In Firefox, you might have a problem with cookies. Make sure that session data and cookies are allowed and kept by your browser! 87.123.32.168 (talk) 22:28, 26 November 2016 (UTC)
- Oh ok. I just reinstalled Firefox and the problem went away, so it probably had something to do with that. Thanks. Sunnya343 (talk) 01:07, 27 November 2016 (UTC)
Enabling Gadgets in MW 1.23.15
Hello, I have installed MW 1.23.15 and it's working but I find hard to enable the Gadgets. However, I put this line in my LocalSettings.php :
require_once "$IP/extensions/Gadgets/Gadgets.php";
I don't know neither if openjdk have to be installed on my server ... I would say no cause it's the browser that works with the scripts and no the server.... Could you confirm ? I use oracle java 8 last version with firefox 50 on my m$ windows and in fact, I don't see any Gadgets tab in the preferences ....
On my wikipedia space, I see the gadgets tab so I wonder maybe it's no neither a problem with my java plugin....
My page https://myserver/mediawiki/index.php/Special:Gadgets is empty but this senstence : Below is a list of special gadgets users can enable on their preferences page ...
Could you help me please ? Haroun al Mouwahid (talk) 23:43, 26 November 2016 (UTC)
- Ok I have created the page https://server/mediawiki/index.php/MediaWiki:Gadgets-definition and pasted inside some gadgets. it's working even if I don't really understand how I can separate the gadgets per type...
- However I d like to know how we could create this page and the gadgets available without creating the page via the interface .... Is there any script to do that ? Im wondering if we could eventually insert this page directly in base by in which table ??? Haroun al Mouwahid (talk) 01:35, 27 November 2016 (UTC)
- It should be noted that JavaScript, which gadgets use and is part of the browser, is completely unrelated to Java, which uses a plugin to work in a browser. 58.164.108.250 (talk) 02:19, 27 November 2016 (UTC)
- The gadgets are separated manually by editing the MediaWiki:Gadgets-definition page (e.g. see the source code for, https://en.wikipedia.org/wiki/MediaWiki:Gadgets-definition).
- For somewhat automatic setting-up of gadgets you can try exporting/importing gadgets like from, https://en.wikipedia.org/wiki/Special:Gadgets. AhmadF.Cheema (talk) 05:04, 27 November 2016 (UTC)
- Yes I know for JavaScript... Actually yes, it's working without any openjdk, the JavaScript is executed on the client side.
- Ahmad, in fact I cannot export anything with Special:Export.... If I try to give the page Special:Export/MediaWiki:Gadget-HotCat.js or any normal page name (even Special:Export/Main Page) and click on Add, the text box below remains empty...
- /var/log/apache2/error.log
- [Sun Nov 27 18:14:53 2016] [error] [client 192.168.0.7] PHP Notice: Undefined variable: wgUseXVO in /srv/mediawiki/includes/actions/RawAction.php on line 96, referer: https://server/mediawiki/index.php/Special:SpecialPages Haroun al Mouwahid (talk) 18:21, 27 November 2016 (UTC)
- Ok I succeeded, lol you just have to put the name of the page in the text box, not in the input box (here it's a category name you have to put...). Otherwise, once my gadget pages exported, can I import them through a script in the maintenance folder ? ? Haroun al Mouwahid (talk) 19:40, 27 November 2016 (UTC)
- By exporting gadgets I meant just using the "Export" link provided for each gadget at https://en.wikipedia.org/wiki/Special:Gadgets. No need to go and use the lesser efficient method of using Special:Export.
- Regarding importing them to a maintenance folder, maybe I misunderstood you, but from what I know "gadgets" are basically like other pages on a Wiki. And like any other page on a Wiki, they are stored in the database and not separately in any directory. AhmadF.Cheema (talk) 07:07, 28 November 2016 (UTC)
signing in
Says user name doesn't exist Had since 2006 Can play on old computer now want it on my new one 66.185.210.55 (talk) 21:56, 27 November 2016 (UTC)
- Hello and welcome on the Support Desk for MediaWiki!
- Are you sure that you are speaking about a MediaWiki account? When you say "play on the computer" I am pretty sure that you are wrong here... 87.123.55.230 (talk) 22:20, 27 November 2016 (UTC)
Trouble with table rendering using while-loop and pipe-scape |
I have been stuck trying to get my table to render. I've read a lot, but can't seem to figure out what I'm doing wrong.
Hopefully , someone spots it immediately and can help me.
I have a #while loop that works except that the |- doesn't render. I am using {{!}}- . I tried {{!-}} but it just looked for a template !-. I created the template and tried adding the standard |- and then {{!}}- but keep getting the exact same results.
The table just keeps rendering horizontally with a dash (-) in the column where it should be giving a new row.
I am using MediaWiki 1.27.1 on Debian with PHP5.5 and MySQL 5.6.32
Template:TableTop
{{#vardefine: pvcount | 1 }}
{{#vardefine: LastRow | 1 }}
{{#while: | Expression error: Unrecognized punctuation character "{".
| {{ #vardefine: LastRow | Expression error: Unrecognized punctuation character "{".
}}
{{ #vardefine: pvcount | Expression error: Unrecognized punctuation character "{". }}
}}
Template:TableBottom
Template:TableEnd
Regular brackets replacing curly braces for the sake of rendering here.
(( TableTop ))
(( #vardefine: pvcount | 1 ))
(( #vardefine: LastRow | 1 ))
(( #while: | (( #ifexpr: (( #var: LastRow )) > 0 | true ))
| (( #if: ((( DimNum (( #var:pvcount )) | )))
| ((!))-
((!)) (((DimNum(( #var: pvcount )) | ))) ((!))((!)) ((( Dimension(( #var: pvcount )) | ))) ((!))((!)) ((( Tolerance(( #var:pvcount )) | ))) ((!))((!))((( Method(( #var: pvcount )) | ))) ((!))((!)) ((!))((!)) ((!))((!)) ((!))((!)) ((!))((!)) | (( #vardefine: LastRow | (( #expr: (( #var: LastRow )) - 1 ))
))
))
(( #vardefine: pvcount | (( #expr: (( #var: pvcount )) + 1 )) ))
))
(( TableBottom | Note=(((Note))) ))
(( TableEnd ))
Issue with LDAP groups
Hi
My Wiki validates LDAP users with this setting
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array("domain.com");
$wgLDAPServerNames = array("domain.com"=>"IP");
$wgLDAPPort = array("domain.com" =>"389");
$wgLDAPUseLocal = true;
$wgLDAPEncryptionType = array("domain.com"=>"clear");
$wgLDAPBaseDNs = array("domain.com"=>"dc=domain,dc=com");
$wgLDAPSearchAttributes = array("domain.com"=>"uid");
$wgLDAPUserBaseDNs = array("domain.com"=>"ou=Usuarios,dc=domain,dc=com");
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgLDAPGroupsPrevail = array("domain.com"=>true);
$wgLDAPUseLDAPGroups = array( "domain.com"=>true );
$wgLDAPGroupNameAttribute = array("domain.com"=>"cn");
$wgLDAPGroupBaseDNs = array('domain.com' => 'ou=Grupos,dc=domain,dc=com');
I have created two groups: wikiusers and wikiadmins
$wgGroupPermissions['wikiusers']['read'] = true;
$wgGroupPermissions['wikiusers']['edit'] = true;
$wgGroupPermissions['wikiusers']['createpage'] = true;
$wgGroupPermissions['wikiusers']['upload'] = true;
$wgGroupPermissions['wikiadmins']['*'] = true;
These groups are also created in LDAP
When I login with a user belonging to the LDAP group wikiadmins I do not have the Administrator permissions.
It's wrong? Felixberrocal (talk) 09:42, 28 November 2016 (UTC)
Navigating Categories in Mediawiki
I would like to get list of pages from two or more categories in Mediawiki. Is there any special page or extension available to see this? For example, Download page is under both Category:Installation and Category:MediaWiki Introduction. When I go to Category:Installation page, I would see all pages under this category but I would like to see all pages under both these categories. How do I see this?
Thanks in advance. 106.51.225.209 (talk) 11:52, 28 November 2016 (UTC)
How do I close an account as I signed up for this thinking it was something else
I cannot find where you allow me to close my account! Russjudy2 (talk) 12:58, 28 November 2016 (UTC)
- In short: There is no way. en:Wikipedia:Changing username comes closest to what you want, so I would follow the instructions there to get the account renamed to something like "uigfhuifhkjvnj", if you get what I mean. :-) 87.123.26.238 (talk) 05:03, 29 November 2016 (UTC)
Upgrade question from 1.5 to 1.28
Were were running MediaWiki 1.5 on our 2003 windows server and everything worked fine. Last week we rolled out a new 2012 R2 server. We had to upgrade our Wamp to version 2.5 which meant we had to upgrade our PHP to 5.5.12. How should I go about the upgrade? Should I install a new version of 1.28 with new mysql on my new server then copy the localsetting.php over or is there a better method? 23.31.108.65 (talk) 14:30, 28 November 2016 (UTC)
- An upgrade guide is available at Upgrade!
- Usually it is the best idea to make a backup of both, files and database, and to then upgrade the existing installation, but inside a new folder. Also make sure to follow the information in the RELEASE-NOTES file - they are especially relevant in your case when upgrading a really old installation. 87.123.55.230 (talk) 19:06, 28 November 2016 (UTC)
- Thanks I've went through the steps I now get this error. I've ran the updater located in my bin folder is there any other schema script update i need to do to the data
- DBQuery] SQL ERROR: Unknown column 'page_links_updated' in 'field list' (localhost)
- [exception] [f941a2ca3ab4b781263ef60d] /wiki/mw-update/ DBQueryError from line 1054 of C:\wamp\www\dsi_docs\mediawiki\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 `dw_page` WHERE page_namespace = '0' AND page_title = 'Mw-update/' LIMIT 1
- Function: WikiPage::pageData
- Error: 1054 Unknown column 'page_links_updated' in 'field list' (localhost) 23.31.108.65 (talk) 19:52, 28 November 2016 (UTC)
- You still need to update the database (using the files of your new MediaWiki version). Neither mw-update/ nor in the bin folder is where the updater is. By calling mw-update with your browser, you have only opened a wiki page with that name, nothing more. Apart from that it is not clear to me what commands you have run or what exactly you have done. Please follow our update page!
- MediaWiki 1.27 (the final release of 1.28 is not out yet) has two possibilities to update the database: One is the web updater in example.com/mw-config/ and the other is running maintenance/update.php from the shell. Both will do the same and using the shell is recommended. 87.123.26.238 (talk) 04:59, 29 November 2016 (UTC)
Skyrim creation kit keeps crashing!
Every time I load the skyrim files data on the creation kit, after it finishes downloading them all, it crashes! Its driving me insane! Please help! i'm running Windows 10 if that means anything Alid0n (talk) 16:13, 28 November 2016 (UTC)
- Hello and welcome on the Support Desk for MediaWiki!
- Are you sure that you are speaking about a MediaWiki installation? If so, please detail what you are doing and in how far MediaWiki is involved in this! 87.123.26.238 (talk) 05:01, 29 November 2016 (UTC)
Clarification for GPL clauses when using MediaWiki with a commercial/proprietary product/project.
- If I have a proprietary project, that is intended to be distributed commercially, and there is a wiki that is required with it, can I use MediaWiki for the purpose?
- The Wiki portion will be hosted separately and the communication with it from the rest of the project will happen over REST.
- Could anyone please help me with understanding the
- following passage of GPL-2.0:
- "These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it."
- Both products are separate with respect to functionality.
- Besides, the REST API in MediaWiki, I believe, is there for such communications.
- Does making a REST call to MediaWiki makes the calling project fall under the GPL's sphere? Iimraann (talk) 03:52, 29 November 2016 (UTC)
- This is a forum for support requests, but not really a place where many laywers specialized in software licenses hang out. :) If you want to receive an interpretation of the GPL license text you will have to contact a lawyer, as any comments in this thread are obviously not legally binding but personal interpretations. Malyacko (talk) 22:31, 29 November 2016 (UTC)
- Thank you for replying Andre. I really need some pointers about being able to use MediaWiki. The statement makes one lawyer interpret it in one way while other, other way. Could you point me to anyone who could give me a 'go/no go' for the use? I need to understand it from the perspective of someone who chose GPL-v2 over less restrictive L-GPL for the licensing purpose of MediaWiki. I'll really appreciate all the help regarding this matter. Iimraann (talk) 14:03, 30 November 2016 (UTC)
- GPL 2 was written in 1991. MediaWiki was started in the late 1990es. I don't know why MediaWiki maintainers at that time chose GPL over LGPL - maybe you can find something in ancient email archives though...
- Again: The "anyone who could give you a 'go/no go' for the use" is a lawyer, as I cannot point to somebody who is above law. I could both give you a "go" or a "no go", but how does that matter in court when I'm not a lawyer? :) Malyacko (talk) 19:16, 30 November 2016 (UTC)
- The authors of the software can choose multiple licensing policies for the same software and can clarify aspects of terms. The authors can clarify like 'Just making calls to REST API of MediaWiki doesn't force you to make the source code of the calling application available'. A lawyer can't do that, the authors of that software can. Could you please help me with it? :) Iimraann (talk) 06:43, 1 December 2016 (UTC)
- The question with which licenses GPL2 can be combined is a rather common one. There are many products, which are licensed under GPL2, and so this question arises rather often. There surely will be lawyers who can tell you and who can bindingly tell you.
- Without being a lawyer from reading the last note on I would say that -considering only the GPL2- you can use MediaWiki (with the GPL2) and another product, which in turn is using any other license, as long as the two products are separate works. 87.123.21.22 (talk) 19:37, 30 November 2016 (UTC)
Link to doc to download
Hello,
I try to link a doc file on my own server. So I look on internet and wiki pages and I add that line to my page mediawiki
<ext>file:/media/server/Installation/git.doc</ext>
but the line stay like this on the web page, no interpretation of the link. 85.171.203.4 (talk) 11:00, 29 November 2016 (UTC)
- Upload it or move to directory accessible from web server. wargo (talk) 20:05, 29 November 2016 (UTC)
- I understood the question in a way that he ants to be able to access the files through the file:/// protocol.
- Doing so is possible, but you have to allow that protocol in one of the configuration variables. And you hould follow the advices given on the according pages concerning upload of Word documents. In short: It can be insecure. 87.123.58.234 (talk) 22:48, 29 November 2016 (UTC)
- That links will open file on reader's computer. It depends he wants it or open always from his server where installed MW. wargo (talk) 10:18, 30 November 2016 (UTC)
- Than you.
- What is the variable to allow that protocol? In which il? 85.171.203.4 (talk) 13:26, 30 November 2016 (UTC)
Mediawiki Logout time change?
Is there a way to change the logouttime of the Mediawiki login?
Cause if i want to put in a Site by a Frm i need much Time to fill the form aut in the Time betwin i will be logout and my filled Form was complettly clear so i have to start agian.
Thx for the Help. 195.160.253.7 (talk) 13:39, 29 November 2016 (UTC)
- OK i fond allready a Way to do that via .htaccess with that line:
- php_value session.gc_maxlifetime 6000 195.160.253.7 (talk) 15:28, 30 November 2016 (UTC)
URGENTLY Need to free up space.
Mediawiki Version: 1.19.20
PHP Version: 5.33
MySQL: 5.1.69
URL: I can’t provide the url because it is on an intranet
I am currently running into an error and I desperately need a quick/temporary fix. I am getting this error:
Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/wiki/tmp) in Unknown on line 0
I know it means that my disk is filled unfortunately the regular admin for this server who usually handles this is out and I do not know how to resolve this or go about freeing up space. Can someone please help me find a quick fix to help me free up some space to keep this running at least until the admin gets back?
Thank you Vpolius (talk) 14:36, 29 November 2016 (UTC)
- See Manual:Reduce size of the installation! 87.123.26.238 (talk) 15:42, 29 November 2016 (UTC)
- Unfortunately I have already done this and I am still getting the error. Vpolius (talk) 15:46, 29 November 2016 (UTC)
- Then there maybe is not much you can do. You can delete the contents of the cache/ folder, but: This usually only are a few MB and they will automatically be recreated when people view the wiki.
- What might take up much space is the content of the images/ folder. You could make space by deleting uploaded images. However, in order to really free the disc space used, you will have to permanently remove them. This can be done with the eraseArchivedFile.php maintenance script. This script allows you to delete a selected image, which had been deleted through the MediaWiki interface before.
- The deleteArchivedFiles.php maintenance script will delete all images, which had been deleted through the interface before.
- Note that these files, which previously have been deleted and would have been restorable, will then no longer be restorable! 87.123.26.238 (talk) 15:55, 29 November 2016 (UTC)
- So I tried using the deleteArchivedFiles.php script and I got this error:
- PHP Warning: file_exists(): Unable to find the wrapper "mwstore" - did you forget to enable it when you configured PHP? in /home/wiki/public_html/maintenance/deleteArchivedFiles.inc on line 47
- Warning: file_exists(): Unable to find the wrapper "mwstore" - did you forget to enable it when you configured PHP? in /home/wiki/public_html/maintenance/deleteArchivedFiles.inc on line 47
- Notice - file '01v67qncvs5wq8f2iy0lt840w0wvqc2.xlsx' not found in group 'deleted' Vpolius (talk) 17:31, 29 November 2016 (UTC)
- Run
df -h
to check you really run out of space. Maybe your temporary directory is full? wargo (talk) 19:26, 29 November 2016 (UTC) - I have ran df -h here is the output
- [vpolius@WEBLAB12 public_html]$ df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/sda1 37G 35G 0 100% /
- tmpfs 1.9G 0 1.9G 0% /dev/shm
- [vpolius@WEBLAB12 public_html]$ Vpolius (talk) 19:29, 29 November 2016 (UTC)
Some Special pages shows javascript elements when it's suppose to be hidden
Mediawiki Version: 1.27.1
XAMPP v3.2.2
PHP: 5.6.24
Apache/2.4.23
mysqlnd 5.0.11
URL: I can’t provide the url because it is on an intranet
Special pages such as Preferences, Recent changes, log in, Create Account all show element code when it's suppose to be hidden. I'm not sure where to look to fix this issue in my file i. I do know this happened during the process of upgrading to 1.18 to 1.27.1
<script type='text/javascript'>function toggleExpandable(id) {var heading = document.getElementById('expandable-heading-'+id);var content = document.getElementById('expandable-content-'+id);if (content.style.display == 'none') content.style.display = '';else content.style.display = 'none';this.parent.focus();}</script>< p>Member of groups:< /p> 64.206.79.221 (talk) 16:08, 29 November 2016 (UTC)
- Nevermind, I figured it out why the elements was showing but. it was due to an old Collapsible table which is outdated. Extension:Expandable tables.
- But how do I get an updated version of the expandable tables if the created stop working on it. is their another Collapsible.php I can add to my local settings? 23.246.115.50 (talk) 17:46, 29 November 2016 (UTC)
Image Galleries without "File:" Prefix
Hello, I am in the process of moving from Wikia to an independent host. I have imported most of my pages, but noticed a problem. On Wikia, you can create image galleries without the "File:" prefix coming before the image. That does not seem to be supported in default MediaWiki. Is there some javascript or something else I can use to make this work on standard MediaWiki? Or will the "File:" prefixes all have to be inserted manually? Hockeyben (talk) 16:11, 29 November 2016 (UTC)
- What do you mean "Image galleries"? wargo (talk) 19:46, 29 November 2016 (UTC)
- <gallery>
- </gallery>
- On Wikia, images can be inserted like this, and still display properly:
- <gallery>
- Pic1.png
- Pic2.png
- </gallery>
- But on standard Mediawiki, the "File:" prefix is required, or they do not display.
- <gallery>
- File:Pic1.png
- File:Pic2.png
- </gallery>
- I am wondering if there is a workaround to allow the files to display in galleries without the "File:" prefix, as otherwise I will have to manually insert it on every gallery page. Hockeyben (talk) 19:51, 29 November 2016 (UTC)
- It is not required on standard installation. wargo (talk) 20:09, 29 November 2016 (UTC)
- File extensions aren't required by MW for galleries, for example: https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=2298130 58.164.108.250 (talk) 02:50, 30 November 2016 (UTC)
FuzzyBot has broken my page
Hello, I have spend some time translating manually Extension:Scribunto/Lua reference manual/ru to Russian, it was not complete but something had been done. And then FuzzyBot came and ruined everything. Translation tool is cool but the original is far from complete support of it, and however I wanted complete sections to be moved to the new interface automatically. HALP! Ignatus (talk) 18:11, 29 November 2016 (UTC)
Retrieving lost data after MW Zip closed
Hello, I'm part of a group that had a wiki hosted by MW Zip, which closed down unexpectedly a few weeks ago. We don't have a backup of our data, and haven't been able to contact anyone from MW Zip for help. Anyone have suggestions for how we might be able to access our data, or contact whoever was running MW Zip? Any help appreciated, thanks! 108.30.56.174 (talk) 18:33, 29 November 2016 (UTC)
- Maybe archived in Web Archive? wargo (talk) 18:53, 29 November 2016 (UTC)
- Thanks for the suggestion Wargo, but that doesn't seem to be working, I think because it wasn't a publicly accessible wiki.
- Any other ideas?? Does anyone have any info on who was running MW Zip or how we might contact them? Or has anyone had similar experiences losing and retrieving wiki data in the past? 108.30.56.174 (talk) 16:25, 1 December 2016 (UTC)
- Maybe try sending a message to their twitter account. AhmadF.Cheema (talk) 17:05, 1 December 2016 (UTC)
- Thanks Ahmad for the suggestion. We've been trying that for the past couple of weeks, without luck so far. 108.30.56.174 (talk) 18:54, 2 December 2016 (UTC)
Database error during searching
I get the following error whenever I try and search using the search function on the left hand side.
"
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "SearchMySQL::searchInternal
". Database returned error "145: Table './callcenter/searchindex' is marked as crashed and should be repaired (localhost)
".
"
I am not sure where to start looking to troubleshoot this issue. Unfortunately our wiki is on an internal company only network and is inaccessible from outside the network.
Any help would be appreciated, thank you.
Versions
MediaWiki 1.18.1
PHP 5.3.10 (apache2handler)
MySQL 5.5.21 DrewLeavitt (talk) 23:59, 29 November 2016 (UTC)
- This error can be solved without lossing anything:
- Currently, the searchindex table is crashed and MySQL will not allow you to do anything with until before it got repaired. So in your database, run a REPAIR statement on the table searchindex:
REPAIR TABLE searchindex;
- What is the result of running that query? 87.123.21.22 (talk) 19:42, 30 November 2016 (UTC)
Enable upload to two different location?
Hi there,
I have been trying to find out if this is possible. Currently, users upload their files (jpg, pdf, etc) into the mediawiki and it goes to the following location:
http://mywiki/images/9/9c/ThisIsFile.pdf
- Is it possible to separate the upload of pdf so it goes to a different directory such as: http://mywiki/files/9/9c/ThisIsFile.pdf
- is it possible to upload files of pdf so it goes to a different server location? The reason this is requested is so that for future purposes, all the pdf that is located in this other server, mediawiki might be able to scrape all the words that does text searching in this other server. It would also help to lessen the typical traffic on the mediawiki server where people would just like to view pages only.
I have look at different support such as this, doesn't seem like there are replies. Anybody? Help would be much appreciated!
Manual talk:Configuring file uploads#Upload on a different FTP server AmazingTrans (talk) 01:27, 30 November 2016 (UTC)
why are the mediawiki's desk content different from the mobile content in index pages?
why are the mediawiki's desk content different from the mobile content in index pages?
https://m.mediawiki.org/wiki/MediaWiki
If I edit the index pages on mobile,will the desk change? Yelvti (talk) 02:50, 30 November 2016 (UTC)
- The mobile content uses https://www.mediawiki.org/wiki/Extension:MobileFrontend Malyacko (talk) 19:21, 30 November 2016 (UTC)
- The content is the same, the styling is different. 58.164.108.250 (talk) 06:37, 1 December 2016 (UTC)
- NO,the content of mobile is less than the desk. Yelvti (talk) 06:44, 1 December 2016 (UTC)
- I remember reading somewhere, about some sections which are by design not shown in mobile view. This is probably done by using divs.
- Additionally, some resource modules in extensions also do not get loaded in mobile view (see: Extension:MobileFrontend#For Extension Developers). AhmadF.Cheema (talk) 06:53, 1 December 2016 (UTC)
1% Biker Culture
I wish to create a page for the '1% Biker Culture' and I am having a hard time understanding the how-to and why-fors on how to open a 'New Page'.
Perhaps you would be able to guide me in the appropriate direction.
Thanks,
Edgewalker54 Edgewalker54 (talk) 03:50, 30 November 2016 (UTC)
- For new articles, see: https://en.wikipedia.org/wiki/Wikipedia:Your_first_article
- However, apparenlty some information has already been included for the one percenters at,https://en.wikipedia.org/wiki/Outlaw_motorcycle_club#One_percenter AhmadF.Cheema (talk) 08:40, 30 November 2016 (UTC)
Mediawiki Upgrade
RESOLVED | |
Needed updated version of Extension:UniversalLanguageSelector. |
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 upgraded from Mediawiki version 1.25 (IIRC) to 1.27 on my wiki, wiki.worldofasdar.com. I can no longer view the wiki. Mediawiki upgrade page (https://www.mediawiki.org/wiki/Manual:Upgrading) says that other software needs to be updated, including PHP 5.5.9 or higher. I edited the htaccess file by adding text as recommended on site5 (my host). However, I still can't see the wiki. http://wiki.worldofasdar.com 04:23, 30 November 2016 (UTC)
- You are getting a PHP error! We need the actual error message. See blank page for how to get it! 87.123.58.234 (talk) 08:51, 30 November 2016 (UTC)
- I believe I have made the correct change to the LocalSettings.php file. The wiki now reports this:
- Fatal error: Call to undefined method Language::getLanguageName() in /home/worldofa/public_html/wiki.worldofasdar.com/extensions/UniversalLanguageSelector/UniversalLanguageSelector.hooks.php on line 81
- Thank you for your kind help. :) http://wiki.worldofasdar.com 03:34, 1 December 2016 (UTC)
- According to the error, the problem lies with the extension Extension:UniversalLanguageSelector, have you already tried using its updated version? AhmadF.Cheema (talk) 05:09, 1 December 2016 (UTC)
- Not until just a few minutes ago. It works now. Thank you. http://wiki.worldofasdar.com 02:08, 2 December 2016 (UTC)
On Ubuntu 16:04, mediawiki breaks on setting $wgEnableUploads to true
On Ubuntu 16:04, mediawiki breaks on setting $wgEnableUploads to true
Gives a db connection error after saving. Does not fix by setting $wgEnableUploads false
Have to copy fresh LocalSettings.php file to overwrite changed one.
Text value modified both in WINCSP and command line, same problem.
Error Message:
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot access the database) 165.255.96.218 (talk) 07:10, 30 November 2016 (UTC)
- Your MediaWiki version might be more interesting. :) See https://www.mediawiki.org/wiki/Manual:How_to_debug for more information to provide. Malyacko (talk) 19:20, 30 November 2016 (UTC)
Slideshow
I upgraded to MW 1.28 and was eager to test out the new slideshow feature for galleries. It works great, but it seems I can't change the default px size of the images inside the gallery, no matter what I tried. I tried using
<gallery mode="slideshow" widths=50px>
Filename.png|caption
Filename2.jpg|caption
</gallery>
I also made use of $wgGalleryOptions, but to no avail. It seems galleries, while in slideshow mode, can't have the size of their images changed. Is this intended or am I doing something wrong?
These are my default gallery options inside localsettings.php
$wgGalleryOptions = array (
'imagesPerRow' => 0, // Default number of images per-row in the gallery
'imageWidth' => 150, // Width of the cells containing images in galleries (in "px")
'imageHeight' => 200, // Height of the cells containing images in galleries (in "px")
'captionLength' => 20, // Length of caption to truncate (in characters)
'showBytes' => true, // Show the filesize in bytes in categories
'mode' => 'nolines', // One of "traditional", "nolines", "packed", "packed-hover", "packed-overlay"
);
188.24.113.190 (talk) 15:45, 30 November 2016 (UTC)
- So, no option? 188.24.113.190 (talk) 12:09, 1 December 2016 (UTC)
Update to 1.28: Images are missing
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! After the upgrade from 1.26.3 to 1.28 the images are missing and I get the "Internal Server Error" (Link). What can I do? Vincenʈ 18:52, 30 November 2016 (UTC)
- I just deleted the .htaccess file in /images and it works now! Is that safe? Vincenʈ 19:56, 30 November 2016 (UTC)
- This opens an XSS attack for users of old Internet Explorer versions, see T30235.
- Your bug btw. sounds like T64289. You should add the .htaccess file again - but the one from the new MediaWiki version! Jörgi123 (talk) 20:38, 30 November 2016 (UTC)
- But with the file of the new MW the images are missing again. Vincenʈ 20:55, 30 November 2016 (UTC)
- Check the Apache error log! It should tell you, what Apache is choking on! Jörgi123 (talk) 20:57, 30 November 2016 (UTC)
- I changed the .htacess file to:
- # Protect against bug 28235
- <IfModule rewrite_module>
- RewriteEngine On
- RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
- RewriteRule . - [forbidden]
- </IfModule> Vincenʈ 20:58, 30 November 2016 (UTC)
- Alright. Jörgi123 (talk) 21:11, 30 November 2016 (UTC)
template sample creating sidebar TOC?
Hi there, I am interested in creating template such as like this webpage: http://poker.cavalie.ro/
Where they have table of contents on the right side.
How do i create the list, or maybe even better collapsable List?
Hope to hear from someone! AmazingTrans (talk) 20:01, 30 November 2016 (UTC)