Project:Support desk/Flow/2016/02
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
This page is an archive. |
Please ask questions on the current support desk. |
Timeout when trying to add large table
I'm trying to add a very large table (about 3,700 rows tall) to a page at my local/private wiki. Every time I try previewing the edit, I get a message like this:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\mywikipedia\includes\StringUtils.php on line 260
The part of the path after "includes", and line number, aren't always the same as shown above; but that's the basic problem. Any suggestions? Thanks for your help. ~ Preslethe (talk) 21:47, 1 February 2016 (UTC)
- I was able to preview the table, and add it to the article, by starting with just the header row, the end of the table, and two rows in between. I then was able to add to the table in 1,000-line (500-row) increments—but it timed out again when I tried to push it beyond 5,000 lines (2,500 rows). Preslethe (talk) 22:17, 1 February 2016 (UTC)
- Tried pushing it beyond 5,000 lines a few times. The latest time, instead of the usual timeout message, I got a garbled-looking wiki page reading thus:
- = Database error =
- 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 "
Revision::insertOn
". Database returned error "2006: MySQL server has gone away (localhost)
". Preslethe (talk) 22:20, 1 February 2016 (UTC) - The error "MySQL server has gone away" usually happens in two cases: When the connection timed out and the server closed the connection. This can be fixed by adjusting the "wait_timeout" MySQL variable.
- Second case: The server dropped a package, which was incorrect or too large. This can be fixed by increasing the maximal packet size limit “max_allowed_packet” in the MySQL configuration. You can e.g. set max_allowed_packet = 128M. After that, restart the MySQL server for the changes to take effect. 87.123.47.196 (talk) 22:58, 1 February 2016 (UTC)
- About the max execution timeout, see this SO question Ciencia Al Poder (talk) 10:27, 2 February 2016 (UTC)
Database file hangs up...
When I open my database file created in a previous of OpenOffice, it hangs up when i try to edit anything. The Spreadsheet and Word Processor work just fine... any ideas? Jamiestev (talk) 07:36, 2 February 2016 (UTC)
- We know little or nothing about OpenOffice. Maybe you asked on the wrong support desk? This one is for MediaWiki software. Ciencia Al Poder (talk) 10:28, 2 February 2016 (UTC)
How do I get my reports from sidebar to run...
My wanted templates report just shows:
The following data is cached and may not be up to date. A maximum of 1,000 results are available in the cache. Alprunty (talk) 14:27, 2 February 2016 (UTC)
- Maybe you need to run Manual:UpdateSpecialPages.php Ciencia Al Poder (talk) 10:27, 3 February 2016 (UTC)
Issues with menusidebar
Hi i just uppgraded to the latest version of mediawiki. We are currently using the MenuSidebar 0.4.1 which is not supported. I was wondering if there is anyway to change it so that it does work or if there is an alternative?
Thanks! Mercursolutions (talk) 15:19, 2 February 2016 (UTC)
- You could ask on the discussion page of Extension talk:CSS MenuSidebar. Malyacko (talk) 10:11, 3 February 2016 (UTC)
make sandbox page anonymously editable but other pages should require log in
this is the link to my sanbox (sandkasten), the site is originally in German.
https://zlb.uni-due.de/wiki/index.php?title=Sandkasten
I would like to make only the sandbox page editable without logging in. when a user is logged in, either the user presses the edit button(bearbeiten) or a javascrpit onkeypress button ("b") to edit. my aim is to make this sandbox editable without a user login but only this page, only the sandbox page, an example will be to be able to use the onkeypress function("b") once i am on the page. How do i bypass login for only this page, if any source code is needed to be shown to edify the support desk i am willing to. Jjheavens (talk) 16:57, 2 February 2016 (UTC)
Missing Icons
Hello. So, I recently developed a new install for Mediawiki on my server. I noticed now that the icons have been missing. By icons, I mean any icons that originate from the extension folder. They are there, but don't appear on the wiki.
After a bit of digging, I noticed what the issue is, but I don't know how to fix it.
While the wiki is linking to the images and where they should be, they are... how do I put this...
Instead of this (what it should be): background-image: url("http://mydomain.com/wiki/extensions/SemanticForms/skins/rearrangeDots.png");
It is this (trying to reference full path, which is incorrect): background-image: url("http://mydomain.com/home4/user/public_html/wiki/extensions/SemanticForms/skins/rearrangeDots.png");
For some reason, the wiki is trying to put the whole path into the link. I figure it must be some small setting that I messed up somewhere, but when I compare it to my older install, everything is pretty much the same. I can't for the life of me figure out why this might be happening. Kirabook (talk) 18:04, 2 February 2016 (UTC)
- Sounds like somewhere you defined something to be "$IP/something" instead of "$wgServer/something". The wgExtensionAssetsPath variable explicitly warns about such a mistake. —TheDJ (Not WMF) (talk • contribs) 09:47, 9 February 2016 (UTC)
account create page change
RESOLVED | |
To hide recent contributors , edits and pages Information for New ACCOUNT create:
MediaWiki:Common.css in your wiki and put according CSS styles on there in order to hide things. .mw-createacct-benefits-container { display: none; }and $wgAllowSiteCSSOnRestrictedPages = true; in LocalSettings.php |
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,
MediaWiki | 1.26.2 |
Vector | – | GPL-2.0+ |
i will change (deleted) the Information of recent contributors , edits and pages on the spezial page Create account.
What system file i must edit?
Into SpecialUserLogin.php or Usercreate.php i found not the right line!
Thanks for help! Bastor de (talk) 22:45, 2 February 2016 (UTC)
- You don't have to edit any system file. Editing these files is evil and wrong - don't do it. If there is something you want to hide, use the wiki page MediaWiki:Common.css in your wiki and put according CSS styles on there in order to hide things.
.mw-createacct-benefits-container {
display: none;
}
- This (untested) code should hide the according lines on Special:UserLogin/signup. 87.123.5.38 (talk) 00:35, 3 February 2016 (UTC)
- Thanks for that idea,
- its not running,
- but now i have a name to search: createacct-benefits-container
Bastor de (talk) 14:09, 3 February 2016 (UTC))
- If there is no typo in my code, then putting exactly that on MediaWiki:Common.css should work.
- Some time back there was something with special styles not being used on Special:... pages or so...if I remember correctly. Afterwards, some configuration variable has been added to either allow or disallow special styles there.
- See Manual:CSS#Styles_not_working_on_Special:UserLogin_or_Special:Preferences.3F for a setting, which you need to make in LocalSettings.php.
- You have to add
$wgAllowSiteCSSOnRestrictedPages = true;
- to LocalSettings.php! 87.123.29.48 (talk) 15:16, 3 February 2016 (UTC)
- Perfect way, many Thanks for you help! Bastor de (talk) 17:46, 3 February 2016 (UTC)
Specific CSS and Javascript in a template
Hello,
How can I create a template whith specific javascript and specific CSS in a way that anybody can see the result either he is logged or not ? And without using the widget system, please.
Thank you in advance for your help
Mariama Mdia12 (talk) 08:17, 3 February 2016 (UTC)
- You can use user group specific CSS and JS using the pages named on Manual:User group CSS and Javascript. In your wiki, you could then writ the sentences that the user is logged/not logged in, wrap them with a certain class and make the one sentence visible while you hide the other one on MediaWiki:Common.css while you do the opposite on MediaWiki:Group-user.css. Jörgi123 (talk) 11:46, 3 February 2016 (UTC)
- Thank you so much @Jörgi123 for your response. Does it mean that if i procede like that even the persons who don't have a user account on Wikiversity for example will be able to see the interface that we develop ?
Mariama
Mdia12 (talk) 13:57, 3 February 2016 (UTC)- What interface are you speaking about? With my idea, you have two sentences, both wrapped in different classes, on the same page, directly below each other. E.g.
<p class="not-logged-in">You are not logged in.</p> <p class="logged-in">You are logged in.</p>
- Then on MediaWiki:Common.css add
p.logged-in {display: none; }
p.not-logged-in {display: block; }
- and on MediaWiki:Group-user.css add
p.logged-in {display: block; }
p.not-logged-in {display: none; }
- That will hide the one and show the other depending on the login status. Jörgi123 (talk) 15:25, 3 February 2016 (UTC)
- @Jörgi123 we create a training about web accessibility in Wikiversity with specific CSS and Javascripts. But only us can see it. We want people who don't have a user account to see our pages like this:. Here is the template for the video , here for the activities and here for the quizz
- In order to access to these pages : user name: demo , password: demo Mdia12 (talk) 15:50, 3 February 2016 (UTC)
- Put the content, which people without user account should not see into a div container and add a class, e.g. "logged-in". Then use the pages and the principles for the styles from above to show or hide them. 87.123.29.48 (talk) 17:27, 3 February 2016 (UTC)
Feed should list moved pages
I combined MediaWiki and WordPress: Every time a MediaWiki is created a WordPress page is created. This happens via the MediaWiki feed "new pages".
Now if a MediaWiki is moved, the new pagename is not listed in the feeds "new pages" and also not in the "recent changes" feed. Thus the moved page isn't created in WordPress.
Is there a way to add moved pagenames to any of the feeds? Or is there even a feed for moved pages? Stefahn (talk) 08:21, 3 February 2016 (UTC)
- Anyone? Stefahn (talk) 12:18, 8 February 2016 (UTC)
- Hey Stafahn, I don't have an answer for you but I have also combined MediaWiki and Wordpress and am wondering how you did it. We might be able to learn from eachother :)
- Also, are you trying to do this because you want Wordpress comments on MediaWiki pages? I am planning to build the same functionality so we may be able to do some brainstorming. Let me know! Swennet (talk) 20:02, 8 February 2016 (UTC)
- Yes, lets talk about that. I suggest we do that via mail -> you can contact me at http://interspirit.de/kontakt :) Stefahn (talk) 08:09, 9 February 2016 (UTC)
Error message when translating from Korean to Chinese
I'm trying to translate "Flitto" page from Korean to Chinese, but an error message keeps popping up when I try to publish it. It's in Chinese so I can't understand it. My friend tells me it's something related to the page being highly advertising and therefore cannot be published. I tried deleting some of the links (i.e. Facebook, Instagram, and more) but it still won't let me publish. Please help me. SOS!! Hjahn1203 (talk) 09:54, 3 February 2016 (UTC)
- How do you "try to translate"? What does the error message say? How do you try to "publish it" and what is "it"? AKlapper (WMF) (talk) 10:05, 3 February 2016 (UTC)
- How are you translating a page into a language you can't understand? 121.214.131.38 (talk) 10:42, 3 February 2016 (UTC)
Maximum MW session time?
When I edit a page and keep it open for a long time I get the error "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in" when trying to save the page.
I assume it has something to do with sessions? If so how can I increase the maximum session time? I've tried session.gc_maxlifetime in php.ini (yes, I restarted Apache) but that makes no difference (which means I tried 30 seconds but I still could save the page after editing for some minutes). Or do I've to use a MW configuration settings? Waanders (talk) 13:24, 3 February 2016 (UTC)
Removing Default "user" Group
I have
unset( $wgGroupPermissions['user'] );
unset( $wgRevokePermissions['user'] );
unset( $wgAddGroups['user'] );
unset( $wgRemoveGroups['user'] );
unset( $wgGroupsAddToSelf['user'] );
unset( $wgGroupsRemoveFromSelf['user'] );
unset( $wgAutopromote['user'] );
in my LocalSettings.php, however the user group still appears in the interface.
I have created my own "user" group called "App_Wiki_QRG_Users", and want to completely remove the original user group.
When I look at my preferences and group membership, I have 2 "Users" listed, one points to "Help:Users" and the other points to "QRG:Users"
Am I missing something?
How can I remove the user group in its entirety? Terryrogers1984 (talk) 14:10, 3 February 2016 (UTC)
- We have just discussed this in IRC:
- The default "user" group does not get assigned to users through the usual permission system. Instead, every user automatically is member of that group after he logged in. This also is the reason why following Manual:User_rights#Removing_predefined_groups does not completely remove that group. Even, if no user rights get assigned, this group is still hardcodedly present at various places inside MediaWiki. There currently is no way to get completely rid of it. 87.123.29.48 (talk) 14:59, 3 February 2016 (UTC)
Unable to open image (via Commons)
Hey! My Wiki (1.26.2) using files via InstantCommons since four years. But now there is a problem to open images. I get the error-code (German) "Fehler beim Erstellen des Vorschaubildes". What's wrong? Example Vincenʈ 08:49, 4 February 2016 (UTC)
- See phab:T125781 AKlapper (WMF) (talk) 10:42, 4 February 2016 (UTC)
- Ok, thanks! But how I can fix this bug? Vincenʈ 08:51, 5 February 2016 (UTC)
- It should work - see https://phabricator.wikimedia.org/T125804#1998381 (as T125781 was marked as a duplicate of this one, in the meantime) AKlapper (WMF) (talk) 11:47, 5 February 2016 (UTC)
Fatal error after trying to install extensions
I have been trying to install two different extensions, VisualEditor and WikiLog and in each case I come up with seemingly similar errors. Details of my software versions are listed below.
Firstly, with WikiLog, I install the extension into the extensions directory, as per the official instruction. I verify that the directory name is correct. Then I copy the two lines of code from the instructions into LocalSettings.php, save it, and then got to localhost/(path)/mw-config. I get the following error:
Fatal error: Call to undefined method Wikilog::setupBlogNamespace() in C:\wamp\www\commonplace2\LocalSettings.php on line 152
When I follow a similar procedure with VisualEditor I get the following:
Warning: require_once(C:\wamp\www\commonplace2/extensions/VisualEditor/VisualEditor.php): failed to open stream: No such file or directory in C:\wamp\www\commonplace2\LocalSettings.php on line 156
Fatal error: require_once(): Failed opening required 'C:\wamp\www\commonplace2/extensions/VisualEditor/VisualEditor.php' (include_path='.;C:\php\pear') in C:\wamp\www\commonplace2\LocalSettings.php on line 156
What am I doing wrong?
Product | Version |
---|---|
MediaWiki | 1.26.2 |
PHP | 5.5.12 (apache2handler) |
MySQL | 5.6.17 |
Halfbeing (talk) 10:30, 4 February 2016 (UTC)
- For the first error, be sure the
setupBlogNamespace
call in LocalSettings.php is afterrequire_once( 'extensions/Wikilog/Wikilog.php' );
- For the second error, does C:\wamp\www\commonplace2\extensions\VisualEditor\VisualEditor.php exist on the server? Ciencia Al Poder (talk) 11:33, 4 February 2016 (UTC)
- Thanks for your suggestions, one of which has worked. It turned out that I had nested VisualEditor one directory too deep because of the way I unpacked the tarball. Now it is functioning properly. However that still leaves WikiLog. I've double-checked and I do have setupBlogNamespace set already. I've left it at the default value of 100. Halfbeing (talk) 16:54, 4 February 2016 (UTC)
- I've fixed the installation instructions in Extension:Wikilog, Wikilog::setupNamespace should be used instead Ciencia Al Poder (talk) 20:20, 4 February 2016 (UTC)
- I've made the adjustments you have suggested. Now I get a long list or warnings and notices, starting with
Warning: Missing argument 2 for Wikilog::setupNamespace(), called in C:\wamp\www\commonplace2\LocalSettings.php on line 154 and defined in C:\wamp\www\commonplace2\extensions\Wikilog\Wikilog.php on line 207
Warning: Missing argument 3 for Wikilog::setupNamespace(), called in C:\wamp\www\commonplace2\LocalSettings.php on line 154 and defined in C:\wamp\www\commonplace2\extensions\Wikilog\Wikilog.php on line 207
Notice: Undefined variable: name in C:\wamp\www\commonplace2\extensions\Wikilog\Wikilog.php on line 227
(withWikilog::setupNamespace( )
at the bottom of the call stack)- etc Halfbeing (talk) 10:37, 5 February 2016 (UTC)
- Wikilog::setupNamespace() needs exactly three parameters: The first one is an even namespace number, th second one is the name of that namespace and the third one is the name of the according talb namespace.
- See Extension:Wikilog for how to install the extension correctly! 87.123.5.214 (talk) 12:48, 5 February 2016 (UTC)
How do I customise the File:File.jpg template?
RESOLVED | |
I've found a [https://commons.wikimedia.org/wiki/Special:Gadgets#Interface:_Other suitable extension] that should do the job once I've worked out how to fix the bugs it's come with. ;) Thank you! |
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 am very new to wiki management, and I would like to add some text to the standard MediaWiki File:file.jpg type pages.
I've explored system messages thoroughly and googled a LOT and can't find anything I can helpfully edit for what I want to do. What I want to do is add a little snippet of code to each file page for users to copy and paste into articles, to more easily insert pictures.
I don't have a technical fault so this may not help, but the instructions say to do it! Here's my wiki: http://thislandwiki.nn.pe/w
Thank you for reading this far,
Cassian Cassolotl (talk) 10:55, 4 February 2016 (UTC)
- It doesn't seem to be an extension for that, but Wikimedia Commons uses a gadget for this: commons:Help:Gadget-Stockphoto. Ciencia Al Poder (talk) 11:41, 4 February 2016 (UTC)
- Ooo, interesting, that looks helpful.
- Can you give any advice on how to install gadgets? Is it an extension, or a different kind of thing?
- Edit: Okay, I've enabled the Gadget extension, and I've installed a few gadgets from some of these galleries: Extension talk:Gadgets/Archive 2/Flow export#h-Browsable_gallery_of_known_gadgets-2013-09-30T18:17:00.000Z
- But Stockphoto isn't on any of those lists, and I don't know how to install gadgets without importing exported thingies through Special:Import. :S Cassolotl (talk) 11:55, 4 February 2016 (UTC)
- The gadget is in Commons, so you should look at commons:Special:Gadgets Ciencia Al Poder (talk) 19:46, 4 February 2016 (UTC)
- Perfect! :) I have now four gadget galleries:
- Thank you very much! Cassolotl (talk) 13:39, 6 February 2016 (UTC)
Deleted users vs blocked users
If I delete a user (spammer) that has been blocked, will the user information remain in the blocked user list? 2605:6000:3812:7300:0:0:0:1 (talk) 14:08, 4 February 2016 (UTC)
- Yes, but you can also hide it with Help:RevisionDelete Ciencia Al Poder (talk) 20:34, 4 February 2016 (UTC)
- Thank you! I'm not so much worried about them showing up in the blocked list, as I am about losing the block on them. Again, thank you! 2605:6000:3812:7300:0:0:0:1 (talk) 20:39, 4 February 2016 (UTC)
- Uh, I think I misunderstood you, what do you mean by "deleting a user"? MediaWiki doesn't have such functionality. Anyway, deleting a user would effectively make it unable to login, but a new account could be created Ciencia Al Poder (talk) 20:48, 4 February 2016 (UTC)
- Aditionally, if the user is deleted with the UserMerge extension, then the block will be removed as well. 87.123.60.188 (talk) 21:18, 4 February 2016 (UTC)
- We have blocked spammers, that are now showing up in our "Marked for deletion" category pages. If I delete those user pages, do we lose the blocks on them? The pages read as "User:SoandSo". If I delete that page, will Soandso remain blocked, or do I need to move those users to another category to keep them blocked? 2605:6000:3812:7300:0:0:0:1 (talk) 06:15, 5 February 2016 (UTC)
- Deleting a user page (emphasis on page) does not affect the user account nor blocks. It's just a page.
- What 87.123 says about Extension:UserMerge is also an option, if you would like to merge accounts into one single spammer account to avoid having a lot of useless users in the user list. Ciencia Al Poder (talk) 10:20, 5 February 2016 (UTC)
I want to delete my diaspora account
I want to delete my account. Can you advise where I go to do this.
Thanks You 81.103.227.55 (talk) 14:56, 4 February 2016 (UTC)
PHP version missmatch on mediawiki1.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'm experimenting with the new 1.27 mediawiki and have it installed on a working LAMP system ubuntu. I am getting this apache error message when I try to start the server:
[Thu Feb 04 10:03:24.654584 2016] [:error] [pid 26404] [client 51.255.65.68:27433] PHP Fatal error: require_once(): Failed opening required '/var/www/html/includes/PHPVersionCheck.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/index.php on line 36
I see that the there is no longer a index.php5 file in the start up and the index.php file is vastly different than 1.25.2 mediawiki. Any tips on what to do.
John Jfoster81747 (talk) 16:27, 4 February 2016 (UTC)
- FYI: I also am running and have verified that it works Php7. Just need to figure out how to configure the mediawiki1.27 to use it. chave also run composer update and only get a depreciation error warning on constraints. that should no stop the mediawiki from running. Jfoster81747 (talk) 17:34, 4 February 2016 (UTC)
- Does /var/www/html/includes/PHPVersionCheck.php exist and can the server read it? Ciencia Al Poder (talk) 20:30, 4 February 2016 (UTC)
- Yes it does exist and as far as I know the server has access, however I did just now compare the files ownership to my provious working set up and see they are different. Fixing that & will report.
- Thanks
- john Jfoster81747 (talk) 01:59, 8 February 2016 (UTC)
- GOOD CATCH!
- That did get the very basic site to running. However now its full of bugs. used the basic recycled LocalSettings from the older running site. However it craps out when I try to run php update.php to get the site updated. I'm getting this error regardless of which extension I put in there.
- PHP Parse error: syntax error, unexpected 'require_once' (T_REQUIRE_ONCE) in /var/www/html/LocalSettings.php on line 190. I do not know if this is because of the new style of loading extensions, but that does not work either. Any tips??
- Thanks
- John Jfoster81747 (talk) 02:20, 8 February 2016 (UTC)
- OK I'm now getting this error using the new load syntax:
- PHP Parse error: syntax error, unexpected 'wfLoadExtension' (T_STRING) in /var/www/html/LocalSettings.php on line 190 Jfoster81747 (talk) 02:22, 8 February 2016 (UTC)
- You obviously have an error in your LocalSettings file near that line. If you can't figure out what it is, post the lines near that area (redacting any private information). 121.219.226.9 (talk) 09:51, 8 February 2016 (UTC)
- Thanks to all who assisted. The site is now up and running Mediawiki 1.27 on php7. VERY fast...Now to debug the few things missing.. Jfoster81747 (talk) 23:44, 12 February 2016 (UTC)
Main space categories in sandboxes and other non-main space
Seeing that some sandbox pages have categories that should only appear on main space articles, I was thinking of using a bot to put them inside "nowiki" or "comment" tags, but someone on the French community talk page had the idea to let MediWiki do the work.
In fact, it would be better if MediaWiki could recognise if a category is part of the "category:main space" or "category:non-main space" and display it only if the page is in the main space or not.
As the problem occurs in all Wikipedias, and even in all wikis, I wonder if it is possible that MediaWiki do that.
I created a task on phabricator, but I don't know if I did right : https://phabricator.wikimedia.org/T125855
Regards, ~ Şÿℵדαχ₮ɘɼɾ๏ʁ 17:18, 4 February 2016 (UTC)
- Yes, you did it right Ciencia Al Poder (talk) 20:29, 4 February 2016 (UTC)
GoogleLogin extension doesn't work
Hi,
I have been trying to configure the GoogleLogin extension for mediawiki but unfortunately it never works. There is a "Login with Google" button shown on my wiki's main page but nothing happens when i click it. it doesn't forward me to Google.
I can create a local account and then can link that account to my google further but I cannot create any account with a google account from the beginning.
Can someone please help. I am using nginx. It seems that this Special:GoogleLogin doesn't work
https://wiki.mydomain.com/index.php?title=Special:GoogleLogin
thanks in advance. Khan.tauseef (talk) 19:41, 4 February 2016 (UTC)
How to disable vandalism checks
I've scoured to find documentation pertaining to how to disable these vandalism checks. My contributors and I make massive changes throughout the site; it's normal to gets reverted back to previous content since upgrading to a newer version of mediawiki. I would think the tips from using mediawiki as a CMS would be enough to cover it, but it seems not.
Example:
(diff | hist) . . m page-name; 22:51 . . (-47,412) . . User2 (Talk | contribs) (Reverted edits by User2 (Talk); changed back to last version by User1)
Thanks! 129.7.105.17 (talk) 23:14, 4 February 2016 (UTC)
- Is your wiki public so that I could have a look? What is its URL?
- Your configuration obviously is that the same user, who did an edit, automatically(?) undoes it again, if some magical criteria are met. I would guess that it is some kind of extension, which might do that.
- Please check your Special:Version page in your wiki and see, which extensions it lists there! 87.123.60.188 (talk) 01:20, 5 February 2016 (UTC)
- Not really sorry. Everything is fairly default.
- Product Version
- MediaWiki 1.23.13
- PHP 5.4.16 (apache2handler)
- MariaDB 5.5.44-MariaDB
- Last time I looked at the problem I could tell it was something around this mechanism.
- https://www.mediawiki.org/wiki/Manual:Interface/Revertpage
- You can see it follows the example of the resent change format. Something is triggering a rollback and this revertpage functionality.
- I do not have any extensions enabled, no require once in LocalSettings.php. 129.7.105.17 (talk) 16:54, 5 February 2016 (UTC)
- Apparently showing apache logs is a bad idea here. 129.7.105.17 (talk) 17:17, 5 February 2016 (UTC)
- Apache logs showing automatic rollback upon submission.
- http://pastebin.com/n1MKEffM 129.7.105.17 (talk) 17:21, 5 February 2016 (UTC)
- I am pretty sure that MediaWiki itself does _not_ contain a functionality, which would do automatic reverts.
- There are some extensions, which can be used to do automatic reverts (and if these extensions are configured incorrectly, they could show the undesired behaviour, which you see). One of these extensions is Extension:AbuseFilter. However, if you do not have any extensions installed, then this cannot be the problem.
- The log excerpt, which you posted, only contains hits, which have been done by one and the same user. To me it looks like this has happened: The user visited Special:RecentChanges and then he hit one of the rollback links, which are present on that page. At least judging from the URLs, which have been requested, this is what happened.
- Based on these observations, I would expect that, if you do _not_ visit Special:RecentChanges, _no_ rollback occurs. That mightbe a workaround until the problem is really solved.
- Does that happen for _all_ users? Or only for some?
- Do you maybe use some JavaScript, which automatically clicks certain links for you? 87.123.5.214 (talk) 18:10, 5 February 2016 (UTC)
- I observe it very rarely. Two or three heavy committer seem to be have this issue. In the database the rc_comment notes the following on the rollback.
- Reverted edits by user2 (Talk); changed back to last version by user1
- Also rc_log_action and rc_params are blank instead of null for both the commit and the rollback. This differs from normal commits that have null for both fields.
- I'll ask the committer not to look at the page and I'll examine it in the database. As for javascript very doubtful. Text data is what the wiki is used. Everything is very vanilla, no customization other than the banner icon.
- Since i'm not referencing any extensions I'm just going to delete the directory and see if I notice anything different. 129.7.105.17 (talk) 20:59, 5 February 2016 (UTC)
- I'm not 100% sure yet, but disabling Special:RecentChanges seems to stop this behavior. I disabled access to Special:RecentChanges via the extension Lockdown and I have not seen the activity since. The problem is I know the users are not actively pressing the rollback for the changes. I would like to have the functionality to see changes, but at least it seems working correctly again. Thanks for your suggestions! I'll leave an update when I know for sure. 129.7.105.17 (talk) 23:29, 5 February 2016 (UTC)
- It seems highly likely that they are just accidentally (or maybe purposely) clicking on the rollback link. You could simple hide that link to test that theory.
.mw-rollback-link { display: none; }
- You could also remove the rollback right from their user group, and if you still want to have it, make a new group that contains the rollback right and give your account that group. 101.160.16.110 (talk) 07:16, 6 February 2016 (UTC)
Erweiterungen Installieren
Ich hoffe ich bin hier Richtig mit meiner Frage, wenn ich falsch bin bitte einmal benachrichtigen
Hallo ich bin grade dabei ein eigenes Wiki Projekt Aufzubauen, und benötige dazu Hilfe bei der Konfiguration und Installation von Erweiterungen.
Ich möchte die Erweiterung Echo und Math noch in meinen Wiki Integrieren.
(https://www.mediawiki.org/wiki/Extension:Echo#Configuration)
Bei der Eche erweiterung bekomme ich nach der Installation,
(also den Ordner Echo in den Extensions Ordner im Server übertragen) und in die LocalSettings.php den Befehl
require_once "$IP/extensions/Echo/Echo.php";
oder
wfLoadExtension( 'Echo' );
funktionieren nicht. Irgendwie bin ich ratlos was ich da machen kann.
Die Math Erweiterung habe ich auch versucht so zu installieren, allerdings auch ohne durchschlagenden erfolg.
Auserdem würde ich gerne einen neuen Namensraum erstellen. Dazu habe ich in die LocalSetting.php $wgExtraNamespaces
eingetragen, wie aber trage ich den nun genau meinen Namensraum ein?
Quelle: https://www.mediawiki.org/wiki/Manual:FAQ/de#Wie_erstelle_ich_weitere_Namensr.C3.A4ume.3F
Für Hilfe von euch währe ich sehr dankbar und würde mich freuen wenn Ihr mir helfen würdet. ZUrzeit läuft meine Wiki in Version 1.26.2 Stagenine (talk) 13:50, 5 February 2016 (UTC)
- Ob eine Erweiterung installiert ist oder nicht, kannst du auf der Seite Special:Version in deinem Wiki sehen. Wenn die Erweiterung installiert ist, wird sie dort angezeigt. Der Befehl für LocalSettings.php sieht gut aus. Wenn die referenzierte Datei nicht vorhanden ist, dann bekommst du einen PHP-Fehler. Wenn das nicht passiert, dann sollte die Erweiterung zumindest gefunden werden.
- Passiert nach der Installation irgendwie gar nichts, dann kann das an einem PHP-Cache liegen, der noch alte Daten enthält. Oder es wurde die falsche LocalSettings.php-Datei bearbeitet (z.B. eine aus einer anderen Installation). 87.123.5.214 (talk) 18:15, 5 February 2016 (UTC)
WikiEditor not Showing and Wincache warning message
MediaWiki 1.26.0
PHP 7.0.0 (cgi-fcgi)
MySQL 5.7.10-log
Server Windows Server 2008 R2 SP1 with IIS 7.5
Hi,
I have followed the instructions online to install the WikiEditor. I have cleared the browser cache and added the mime type for svg in IIS. However, the WikiEditor is still not showing.
Also, I do not know if this could be causing the problem with the WikiEditor not showing. On every page I navigate to on my wiki, I am getting a warning message:
Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given in D:\inetpub\wwwroot\mediawiki\includes\libs\objectcache\WinCacheBagOStuff.php on line 52
Please advise and help.
Thank You Cgol38 (talk) 18:02, 5 February 2016 (UTC)
- I have the very same issue:
- MediaWiki 1.26.2
- PHP 5.4.45 (cgi-fcgi)
- MySQL 5.1.73-community
- Has there been any resolution? I see there is a bug report listed. Xdaveyx (talk) 09:09, 7 April 2016 (UTC)
- MediaWiki 1.27.0
- PHP 5.6.22 (cgi-fcgi)
- MySQL 5.1.73-community
- I commented out $wgMainCacheType = CACHE_ACCEL;
- I suspect this may be an isssue that is going unnoticed as it is not a show stopper, even though cache is presumably not working?
- I don't have the WikiEditor problem though. JimmyRoxburgh (talk) 03:38, 27 July 2016 (UTC)
Missing buttons in Visual Editor
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've been searching around trying to establish whether I have missed something however my MediaWiki with VisualEditor doesn't appear to match the editor from the Sandbox page. For the most part it is all there, but the 'Insert' drop down looks to be missing options such as 'Code Block'. I gather it may be down to a plugin that needs to be added but there doesn't appear to be any documentation as to how this was created.
Any help would be appreciated! SONiQz (talk) 23:08, 5 February 2016 (UTC)
- That is from Extension:SyntaxHighlight GeSHi. 101.160.16.110 (talk) 07:18, 6 February 2016 (UTC)
- I have the exact same issue. I do not see the code block option... 76.170.45.100 (talk) 08:44, 6 February 2016 (UTC)
- Extension:SyntaxHighlight GeSHi. Is the key! Thank you for your prompt response! SONiQz (talk) 09:26, 6 February 2016 (UTC)
how do i get vuze to work
RESOLVED | |
This is the helpdesk for MediaWiki, not for Vuze |
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 had vuze for months i even paid for vuze plus and i have not been able to pull up one music or movie sent i had it what can be done about this need help please 2602:306:8B57:76D0:3138:4FA2:C19B:2843 (talk) 00:29, 6 February 2016 (UTC)
- We do not provide vuze support Ciencia Al Poder (talk) 14:54, 6 February 2016 (UTC)
Special:Log/Patrol looking for "no-auto" only
- MediaWiki: 1.27.0-wmf.12 (0915d8b) 02:16, 5. Feb. 2016
- PHP/Database: n/a
- Project: WMF de.wikibooks.org
I'm able to look for auto-patrolled edits and for all edits; I'm not able to look for edits that are not auto-patrolled.
Special:Log/Patrol works as follows: showing auto-patrolled edits only. On the other side, I tried parameters like "noauto", "no-auto", "notauto", "not-auto" but all these wrong parameters are ignored. Is there any suitable parameter to call no-auto edits only?
ApiSandbox works similarly. shows all edits differed by
<params curid="782016" previd="781892" auto="" />
<params curid="782008" previd="782007" />
As far as I remember I found a test showing auto-patrolled edits only (but don't know how). I didn't find a way to show no-auto edits only.
Of course, I can remove all auto edits manually. Is there a more direct way? Thanks in advance, Jürgen (User:Juetho) Juetho (talk) 11:04, 6 February 2016 (UTC)
- No answer 'til now, so I created a help by myself:
- Create a dotNet application using http://dotnetwikibot.sourceforge.net/
- Use the Api query command "list=logevents" as linked to the ApiSandbox above.
- Store the result as internal Xml inside the application.
- Check each item of the result whether <params> contains the auto attribute or doesn't.
- I don't mark the problem as solved hoping that someone else shows a more direct way. Jürgen Juetho (talk) 08:12, 13 February 2016 (UTC)
After changing the localsettings.php always the same error
MediaWiki 1.24.1
PHP 5.5.8 (cgi-fcgi)
MariaDB 5.5.35-MariaDB
My wiki works fine: http://filmtheater.square7.ch/wiki/index.php?title=Hauptseite
But if I change someting in the localsettings, for example adding a # in a free line, there ist alway this error:
Warning: Cannot modify header information - headers already sent by (output started at /users/filmtheater/www/wiki/LocalSettings.php:1) in /users/filmtheater/www/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /users/filmtheater/www/wiki/LocalSettings.php:1) in /users/filmtheater/www/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /users/filmtheater/www/wiki/LocalSettings.php:1) in /users/filmtheater/www/wiki/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /users/filmtheater/www/wiki/LocalSettings.php:1) in /users/filmtheater/www/wiki/includes/WebResponse.php on line 37
Even if I remove the change, the error is still there, only the original localSettings.php works. Wegavision (talk) 13:22, 6 February 2016 (UTC)
- Unrelated to your question, MediaWiki 1.24 is no longer supported and has known security holes. For the security of your own data, you should upgrade MediaWiki to a supported version!
- If you get an error in LocalSettings.php on line 1, then you most likely have edited the file with an editor, which silently adds a
- en:byte order mark
- . Such a sign at the beginning of the file can be invisible in the editor and can cause this problem. See the big red box in the manual page about LocalSettings.php! When you edit LocalSettings.php, make sure that you use an editor, which does _not_ add byte order marks to files. 87.123.21.228 (talk) 13:35, 6 February 2016 (UTC)
Visual Editor Insert Menu Missing Code Block Option
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there was a thread earlier on this but no one actually posted how to get it to work other than a link to some extension. I looked it over and I still can't figure out what's wrong. I use media wiki 1.25 with the matching Visual Editor version. I would encourage the community to post how they fixed something when they get it to work so that we can avoid repeat threads with pleas for help. Londonx (talk) 01:26, 7 February 2016 (UTC)
- They link to some extension because that extension provides such functionality. Have you tried installing that extension? Ciencia Al Poder (talk) 12:10, 7 February 2016 (UTC)
- Based on what I see, it is already installed and enabled by default in 1.25. I went ahead and tried "re-installing" it .. no change. Buttons still MIA. Londonx (talk) 04:13, 8 February 2016 (UTC)
- I can actually insert code into the regular syntax editor and it displays correctly but then when I use visual editor, the code block section gets the green and white lines and the cursor has the red sign. Londonx (talk) 04:20, 8 February 2016 (UTC)
- Because VE integration was added in the 1.26 branch. 121.219.226.9 (talk) 08:50, 8 February 2016 (UTC)
- I will attempt to upgrade my installation and see what happens. Thank you Londonx (talk) 07:31, 9 February 2016 (UTC)
- So as it turns out, you are correct, you have to have minimum version of 1.26 to get the code block to show up along with a matching Visual Editor release.
- I went ahead an updated my wiki to 1.26 but unfortunately I keep getting this error
- Error loading data from server: parsoidserver-http-bad-status: 404. Would you like to retry?
- I went ahead and edited the localsettings.js parsoid config file to look like this:
parsoidConfig.setInterwiki( 'localhost', 'http://localhost/api.php' );
- I throw that link in the browser and the API file shows up... but the editor says 404.. no dice... After researching the error, I have found no solution to fix this other than to modify the parsoid config file... help? 70.197.0.61 (talk) 08:34, 9 February 2016 (UTC)
- ok everything works now, version 1.26 is where the code block is introduced... that is the minimum version
- to overcome the 404 error, please make sure that the following files have these lines properly configured per your wiki
- /etc/mediawiki/parsoid/settings.js
- exports.setup = function( parsoidConfig ) {
- // The URL here is supposed to be your MediaWiki installation root
- parsoidConfig.setInterwiki( 'localhost', 'http://localhost/api.php', 'http://localhost/' );
- parsoidConfig.serverPort = 8000;
- };
- /var/www/html/LocalSettings.php
- require_once "$IP/extensions/VisualEditor/VisualEditor.php";
- $wgDefaultUserOptions['visualeditor-enable'] = 1;
- $wgHiddenPrefs[] = 'visualeditor-enable';
- $wgVisualEditorParsoidURL = 'http://127.0.0.1:8000'; Londonx (talk) 08:21, 10 February 2016 (UTC)
- Again I would encourage the community to post fixes in detail as they figure them out so that we all can save some time... Londonx (talk) 08:23, 10 February 2016 (UTC)
How do I contact an administrator?
RESOLVED | |
See Special:ListUsers/sysop on your local wiki. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This universe of Wiki is soooo confusing. I just had 2 pages deleted by robots that mis-cited information. The administrators who supposedly followed up after I "Talked" back to supposedly a real person... seem also NOT TO BE REAL PEOPLE who are active on the site. Please guide me to contact a real life administrator in the Wiki system. thank you. Gioia333 (talk) 02:51, 7 February 2016 (UTC)
Changing $wgserver is not updating the url for my wiki
RESOLVED | |
Apache not configured properly. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello there,
- Apache/2.2.16 (Debian)
- MySQL client version: 5.1.49
- MediaWIki 1.20.3 (it appears)
So I have recently joined a volunteer group where I was to help develop and improve their wiki. On almost my first day the server partition (/var) where the wiki was being developed filled up. Talking the the server administrator caused me to now become the server administrator. I have experience coding but not with wiki's or with server administration.
Here is what I have done. I backed up the sql database, which in my case was called hertiage_media and created a duplicate of it, heritage_media_old. I took my site and changed the wgdbname from the former database to my heritage_media_old database. I then used rsync to duplicate the entire /var/www directory to /home/www where I have a lot more space to play. I then changed the wgserver on my first site from "http://heritage.apegm.mb.ca" to "http://heritage.apegmold.mb.ca" and the used "http://heritage.apegm2.mb.ca" for the wgserver variable on my new, synchronized location at /home/www. Neither of the urls i have created work, and the original site url of "http://heritage.apegm.mb.ca" is still there but with broken formatting.
What have I missed? I just want to get the wiki at the /home directory to work so i can delete the old directory at /var and get back to developing functionality.
Thanks for reading and for your help and time,
Trent 24.77.173.145 (talk) 17:37, 7 February 2016 (UTC)
- > Talking the the server administrator caused me to now become the server administrator.
- Haha, I know that one!
- MediaWiki configuration is only one part of your question.
- If you have different folders, which both should be accessible from the web, then you need to configure Apache accordingly. Basically, you need a virtual host pointing to each of the two folders. That way, each of them should be available under _some_ URL.
- Currently, I cannot call the URLs with "old" and "2" in it at all. I get a server error. No MediaWiki involved here. It seems, like the Apache configuration (or anything else, I am not an expert here) for these two virtual hosts is wrong. Or: Did you create Apache configuration for the according directories at all? (_Missing_ configuration could also be the reason for this.)
- Coming to MediaWiki, the value of $wgServer always needs to be the URL, under which the page should be reachable. Basically for each host this is the URL, which you have configured in the Apache configuration. So in case of the URL _without_ old in it, this "old" also should not be in $wgServer.
- For the URL _with_ old in its name, this "old" also needs to be in $wgServer. 87.123.40.18 (talk) 18:43, 7 February 2016 (UTC)
- Ok I was wondering about apache but don't really know wanything about it. So there would have originally been an apache configuration somewhere for the original site, if i find it and set the url to "old" like wgserver than that url should work. So then i would need to create and new apache configuration for the new location correct? Does it need to be in the same directory as the /www ? Whytekong (talk) 18:53, 7 February 2016 (UTC)
- Also the only place I can find an apache2.conf file is in /etc/apache2. Does that sound right? Whytekong (talk) 18:58, 7 February 2016 (UTC)
- > So there would have originally been an apache configuration somewhere for the original site, if i find it and set the url to "old" like wgserver than that url should work.
- Yes, I think so. On the page, which currently is available under the URL _without_ old, $wgServer already seems to be set that way. At least certain internal links inside MediaWiki contain that "old" already.
- > So then i would need to create and new apache configuration for the new location correct?
- Right, I think what you want to create is a virtual host. Basically like the one, which currently is configured for the URL without "old" in it.
- > Does it need to be in the same directory as the /www ?
- The _configuration itself_ always needs to be stored at the place where such configuration is stored. I think that is in the same folder as the configuration of the other host is as well.
- The _web root directory_ can then be anywhere. It can e.g. be /home/www while for the other virtual host it is somewhere different. It does not have to be the same folder as for the other host. 87.123.40.18 (talk) 18:58, 7 February 2016 (UTC)
- apache2.conf might be such a file. httpd.conf might be another file name. Also, there might be a folder called something like "sites-available". This might also be the place for the configuration. In order to take effect, changes to Apache configuration files usually need an Apache restart. 87.123.40.18 (talk) 19:02, 7 February 2016 (UTC)
- Ok i believe that i got my apache problems fixed. I believe that my virtual host is now pointing at my new website directory. Now im having an issue where when i upload files to my website, its saving the files at the old var/www directory.
- Any thoughts? Whytekong (talk) 01:09, 8 February 2016 (UTC)
- You may need to change other configuration settings in LocalSettings.php related to upload directory, etc Ciencia Al Poder (talk) 11:08, 8 February 2016 (UTC)
- It doesn't look like there are any configuration settings in my LocalSettings.php related to upload directory. Just to enabling uploading and file extensions. Forgive the inexperienced question but how does MediaWiki upload? Does uploading files utilize mySql in anyway or does LocalSettings direct the uploads directly to /images? Would any of my extensions or mySql have a configuration option that would still be pointing back to /var/www/wiki/images instead of /home/www/wiki/images? Whytekong (talk) 15:11, 8 February 2016 (UTC)
- File uploads in fact use both: The file system _and_ the database. An overview is available here Manual:Configuring_file_uploads#Upload_directory. Especially $wgUploadPath will be the variable to look into. 87.123.58.199 (talk) 16:43, 8 February 2016 (UTC)
- Ok thanks. Ill take a look into this after work. Whytekong (talk) 16:49, 8 February 2016 (UTC)
- ok one last question. It appears my last statement was incorrect. For some reason when I upload a file, both my /var directory and /home directory are both increasing in size according to df. When i updated mysql conf file i only changed the data directory variable. Would this issue be a result of that or did i do something else thats causing my /var directory to still take on data? Whytekong (talk) 23:32, 9 February 2016 (UTC)
- Also if i manually set the uploadpath it kills my image and pdf thumbnails. Like i can still access the files at http://heritage.apegm.mb.ca/images/ but they dont work on the site. Whytekong (talk) 01:33, 10 February 2016 (UTC)
Admin help requested for page move
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 an admin has the time, can they please have a look at the page move requested here. Thanks! – Robin Hood (talk) 19:43, 7 February 2016 (UTC)
- Please report mediawiki.org issues in Project:Current issues Ciencia Al Poder (talk) 11:09, 8 February 2016 (UTC)
- Thanks, I wasn't aware that that was the place to go. – Robin Hood (talk) 22:33, 8 February 2016 (UTC)
wikimedia/composer-merge-plugin
The "wikimedia/composer-merge-plugin" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).
This tells me exactly what? How am I supposed to require it? Doing it via the normal composer require call from the terminal did not offer anything.
So how to fix it? Temptuousinsolence (talk) 21:35, 7 February 2016 (UTC)
- At which step did you encounter this ? —TheDJ (Not WMF) (talk • contribs) 09:36, 9 February 2016 (UTC)
- Temptuousinsolence (talk) 15:38, 10 February 2016 (UTC)
php composer.phar update
Blocked users permissions
Is there a way for blocked accounts to have the 'read' permission revoked? 89.123.241.143 (talk) 01:21, 8 February 2016 (UTC)
- no, and this would make no sense. Most you can do is create a new user group and revoke the read rights for it, and adding those blocked users to the new group, but that wouldn't make more sense anyway, since users can just logout to see the content Ciencia Al Poder (talk) 11:06, 8 February 2016 (UTC)
- What Ciencia says is right. You would need a setup, where users cannot see anything, if they are not logged in. Otherwise it would not make sense to revoke read rights from certain accounts. 87.123.58.199 (talk) 12:22, 8 February 2016 (UTC)
- Hm. Is it possible to work for IPs then? That's what I meant to ask initially. I don't think IPs can be added to groups, can they? 89.123.241.143 (talk) 00:48, 9 February 2016 (UTC)
- They cannot. IPs can be blocked, but they cannot be added to groups (at least not by default and I don't know of an extension, which would change that).
- Note that what you want in fact _is_ possible: You can configure MediaWiki in such a way that as long as the user is not logged in, only access to a few pages is possible, e.g. to the Main Page and to the login page. All other pages would then be forbidden as long as the user is not logged in. If you then blocked a user, you will effectly also take his read rights away. However, I am not sure, if this solution really is what you want: After all, this takes read rights away from _each and every_ IP. I am aware that this is not what you asked for... 87.123.58.199 (talk) 01:31, 9 February 2016 (UTC)
- Yes. I would only like for any blocked IP/account to have their 'read' rights revoked. 89.123.241.143 (talk) 09:24, 9 February 2016 (UTC)
- Well, mostly for IPs. 89.123.241.143 (talk) 16:33, 9 February 2016 (UTC)
- I know. That's how I understood your question. ;-) 87.123.14.60 (talk) 17:25, 9 February 2016 (UTC)
- So.. there's really no workaround to it? No extension? No setup? I figured it should be something mediawiki had bundled. 89.123.241.143 (talk) 21:39, 9 February 2016 (UTC)
- A setup without extension definitely not.
- Groups currently are assigned based on the user ID, which is linked to the account in the user table.
- The following would be needed in order to be able to assign groups also to IPs: Group membership should not only be addable for certain user IDs, but also for user ID 0 in combination with the IP address as username. This would need according changes in the MediaWiki database layout and the addition of according code. As far as I can tell, neither of this is currently existing. 87.123.14.60 (talk) 23:36, 9 February 2016 (UTC)
Https migration
Hi,
Was curious to know about migration to https from http and how it affected wikipedia's traffic.
Also does it recommend the migration or not.
Thanks 103.55.184.7 (talk) 05:41, 8 February 2016 (UTC)
- See https://meta.wikimedia.org/wiki/HTTPS for related information. AKlapper (WMF) (talk) 06:52, 8 February 2016 (UTC)
Server Down
Hello since when are the servers down, and when will they be back ???? 2A02:8108:14C0:1588:8CAB:65C8:7859:9AD9 (talk) 08:36, 8 February 2016 (UTC)
- What server are you talking about? Ciencia Al Poder (talk) 11:04, 8 February 2016 (UTC)
database error
if I use http://simpsonspedia.net/index.php?title=Simpsonspedia I got this error, but if I use http://simpsonspedia.net/index.php?title=Simpsonspedia&mobileaction=toggle_view_desktop this site works.
what is the reason? have anyone an idea?
best regards
s.net 178.24.167.81 (talk) 17:50, 8 February 2016 (UTC)
MediaWiki | 1.24.2 |
PHP | 5.4.16 (cgi-fcgi) |
MariaDB | 5.5.44-MariaDB |
178.24.167.81 (talk) 18:03, 8 February 2016 (UTC)
- You can put anything behind the URL and it seems to work. Possibly there is some sort of caching occurring on that URL, and this cache is not being purged for some reason, so that you are seeing an old version of this page from a time where it was actually showing the error ? If that's not it, then I suggest you start looking at debug logs. —TheDJ (Not WMF) (talk • contribs) 09:35, 9 February 2016 (UTC)
- I use the magic quote __NOCACHE__, so cache shouldn't use.
- I'll check the cache and if I find an cached html for this side, I'll delete this file.
- best regards
- s.net 195.50.155.96 (talk) 14:54, 9 February 2016 (UTC)
- You should add
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgShowDBErrorBacktrace = true;
- to LocalSettings.php and see, what the actual error is. 87.123.14.60 (talk) 15:15, 9 February 2016 (UTC)
Not exceeding the CPU quota limit
RESOLVED | |
That host sucks. |
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.
Hostinger Philippines suspended TME's hosting account because it "exceeded allowed 70% CPU quota limit for more than 21 times." How do I make so that MediaWiki doesn't exceed this limit? Luis/stranger195 (talk • contribs • guestbook) 03:40, 9 February 2016 (UTC)
- There is a $wgMemoryLimit, but no cpu limit. Also, that isn't really a common limitation to be applied by hosters for these kinds of services. Limits like these are much more common. I would ask them what this is about, since CPU limit is not something you can easily enforce yourself from PHP. —TheDJ (Not WMF) (talk • contribs) 09:30, 9 February 2016 (UTC)
- This was the full reason for suspending my account:
Account themultilingualencyclopedia.16mb.com exceeded allowed 70% CPU quota limit for more than 21 times. This is considered abnormal as it causes a high server load and overall slowdown. Website must be secured and optimized or removed form the server (Account themultilingualencyclopedia.16mb.com exceeded allowed 70% CPU quota limit for more than 21 times. This is considered abnormal as it causes a high server load and overall slowdown. Website must be secured and optimized or removed form the server)
Luis/stranger195 (talk • contribs • guestbook) 10:06, 9 February 2016 (UTC)- Get a better hosting company, basically. That's what you get for a free/cheap hosting Ciencia Al Poder (talk) 10:25, 9 February 2016 (UTC)
- Good answer... Luis/stranger195 (talk • contribs • guestbook) 10:46, 9 February 2016 (UTC)
- If I was Sheldon Cooper, I would now ask "Irony?".
- But no, that is no irony at all. Bad hosts offer bad services. I am not saying _your_ host is bad. All I see is that what this host offers obviously is not enough even for the standard functions of MediaWiki. Or let me put it that way: Your host wants to have more money or they will no longer allow you to use MediaWiki in that hosting account. And compared to other systems, MediaWiki is even frugal. With a reasonable host this most likely would _not_ have happened. 87.123.14.60 (talk) 12:47, 9 February 2016 (UTC)
show on select
Hello,
I would like to use the "show on select" function in my semantic mediawiki form.
I tried this (with the {{{}}}) , but it doesn't work, the "Specify" question is visible in the form from the beginning, without chosing "specialists" in the list.
Thanks for your help!
{field|Diastra|mandatory|input type=listbox|values=everybody, young people, old people, specialists|show on select=specialists=>Specify}
div id="Specify">
Specify : | Diastra else} |
---|
Connect to https wiki-site api with wikitools.py
I try to create a little python script and have problems to connect my Wiki .
from wikitools import *
s = wiki.Wiki('https://aquanautweb.de/testwiki/api.php')
results in
==== RESTART: C:\Users\XXXXXXX\test_wikitools.py ====
URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> trying request again in 5 seconds
URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> trying request again in 10 seconds
It works with https://en.wikipedia.org or other wikipedia pages. The API on my wiki is turned on so I can send requests via the browser. It works further with another wiki that has no TLS. I think someting is going wrong on the server-side but I have no idea what. Carchaias (talk) 07:36, 9 February 2016 (UTC)
- Your server seems to use TLSv1.0, and that python lib seems to use 1.2 by default. See this SO question Ciencia Al Poder (talk) 10:35, 9 February 2016 (UTC)
- Hm, this may be the source. But I can't see where wiki.py from wikitools uses requests
- But I not experienced with that. Carchaias (talk) 16:19, 9 February 2016 (UTC)
- true, they not use requests, but httplib2, with the same problem. Here's another answer for httplib. This seems to be a problem with ssl, used by both requests and httplib2 Ciencia Al Poder (talk) 16:47, 10 February 2016 (UTC)
installation issue with MariaDB
Hi,
i'm trying to install mediawiki on our centralized mysql database. During wizard i choose mysql and insert all the parameters but i receive: DB connection error: Can't connect to MySQL server on 'MYDBSERVER' (13) (MYDBSERVER).
Is there something i need to configure before or after wizard?
Thanks 194.183.0.100 (talk) 09:45, 9 February 2016 (UTC)
- Maybe you have SELinux enabled and it's blocking external connections from apache? See this SO question Ciencia Al Poder (talk) 10:27, 9 February 2016 (UTC)
- Thanks Ciencia, you're right. Disabled SELinux but now i'm encountering another issue: DB connection error: Authentication plugin 'dialog' cannot be loaded: /usr/lib64/mysql/plugin/dialog.so: cannot open shared object file: No such file or directory 194.183.0.100 (talk) 10:55, 9 February 2016 (UTC)
- That is a problem with MySQL. Obviously the dialog.so plugin cannot be loaded, because it is not present at /usr/lib64/mysql/plugin/. 87.123.14.60 (talk) 12:41, 9 February 2016 (UTC)
- you're right, indeed i'm using mariadb and i really don't know if that's the issue or the compatibilty on redhat 194.183.0.100 (talk) 13:12, 9 February 2016 (UTC)
- So obviously you either want to add that plugin so that it can be found, or - if you don't use it - you should remove it from MariaDB's plugin list so that MariaDB no longer tries loading it.
- See https://mariadb.com/kb/en/mariadb/uninstall-plugin/ 87.123.14.60 (talk) 13:52, 9 February 2016 (UTC)
- i think i need it in order to let app to connect to db....where can i download it? 194.183.0.100 (talk) 15:21, 9 February 2016 (UTC)
- Up to a few hours ago, I didn't even know that MySQL/MariaDB has support for something called plugins. According to this plugin comes with the MariaDB distribution. It should then be part of the MariaDB installation process to install it, I think. 87.123.14.60 (talk) 16:03, 9 February 2016 (UTC)
Lay-out logonpages not visible
Hi,
After upgrading our WIKI page has no lay-out, only text, on the login pages and certain special pages.
I searched in Localsettings.php and CSS directories for answers.
The option to show CSS on all pages does not work: $wgAllowSiteCSSOnRestrictedPages.
I changed the localhost as shown in other solutions on similar problems, in Localsettings.php.
? Colleax (talk) 12:00, 9 February 2016 (UTC)
- See Manual:Load.php! 87.123.14.60 (talk) 12:40, 9 February 2016 (UTC)
Why can I not use /FAQ as a URL? MediaWiki is stealing it!
It just displays:
The MediaWiki FAQ can be found at: https://www.mediawiki.org/wiki/Manual:FAQ
Which isn't very helpful, as I cant change this. I dont want to have to use Faq as my URL. GodsDead (talk) 12:18, 9 February 2016 (UTC)
- That's what happens when you configure Short URLs starting at the MediaWiki installation path, setup that's not recommended! (and you now know why)
- FAQ is a file in the filesystem, same as index.php, load.php etc. Ciencia Al Poder (talk) 17:20, 10 February 2016 (UTC)
Binary file upload save with a wrong extension
RESOLVED | |
solar flares |
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 added $wgFileExtensions in LocalSettings.php to allow uploads of Microsoft Office files i.e. ppts, docx, xlsx. The problem is that when I upload a file with pptx, the upload tool insists on saving it as a docx file. PDf files seem to be immune but not Office files.
Appreciate your help,
George Gtehrani (talk) 14:44, 9 February 2016 (UTC)
- I don't get it. Do you say that, when you have a pptx file and you upload it, the resulting file name ends in docx? Where does this happen? I mean, you can explicitly define the file name you want, right? 87.123.14.60 (talk) 15:17, 9 February 2016 (UTC)
- Yes, it happened when I used the upload tool to upload a pptx file. I tried twice with the same result. 3 hours later I tried again after checking my scripts, and viola! It's working! Must have been solar flares. Gtehrani (talk) 20:27, 9 February 2016 (UTC)
Updating incorrect Freebase information
How would I go about removing outdated information that's feeding from Freebase in Wikidata, and add in updated information to be used in Google's knowledge graph?
I'm looking to update this page https://www.wikidata.org/wiki/Q1976628 so that more relevant and current results for TV shows come up in search. LizLemon12 (talk) 00:43, 10 February 2016 (UTC)
WikiFarm
The instructions on the Wiki Family page on how to create a Wiki Farm dont make since. Could someone please create a better guide or post a video? 71.170.106.147 (talk) 05:28, 10 February 2016 (UTC)
Sortable Tables
RESOLVED | |
Permission issue on temp directory (C:\Windows\Temp in this case) |
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 at my wits' end with this...
I've upgraded to the latest version of MediaWiki for our Intranet, all went well, with ONE exception:
We have a few pages where we use sortable tables and this feature is no longer working. Went through every bit of documentation I could find, nothing could fix it. So exasperated I was I went as far as installing a new Wiki from scratch (assuming something went wrong in the upgrade process), and I am using an example from the main MediaWiki site and that does not work either.
Has anyone else come across this? Help!!!
Product | Version |
---|---|
MediaWiki | 1.26.2 |
PHP | 5.4.9 (cgi-fcgi) |
MySQL | 5.6.10-log |
- That's usually caused by a JavaScript error. Hit F12 in your browser, reload the page and see if there's any error showing up in the console. Ciencia Al Poder (talk) 17:15, 10 February 2016 (UTC)
- Thank you, so there's definitely a problem:
- Internal error
- Internal error
- Problematic modules: {
- "startup": "error"
- }
- I can't be the only one seeing this. Of all the things to go wrong, I'm glad it's only sorting tables, but it is sooooooo frustrating! Csi19790218 (talk) 09:59, 11 February 2016 (UTC)
- Setting $wgShowExceptionDetails to true should give more details about the error. another report about the issue was a missing /tmp directory (or maybe a permission issue) Ciencia Al Poder (talk) 10:12, 11 February 2016 (UTC)
- Thank you Ciencia! Got there in the end. Setting $wgShowExceptionDetails to True and checking Java Script errors pointed out a permissions problem on C:\Windows\TEMP (It's a windows installation I've got).
- I've addressed that and the issue is now resolved. This was also affecting the formatting tools (on "edit page"... now fixed :) Csi19790218 (talk) 12:11, 12 February 2016 (UTC)
Moved Website, uploads going to both old and new directories
Hello there,
I resolved my previous post and opened a new one because I had gotten off topic from the original title.
- Apache/2.2.16 (Debian)
- MySQL client version: 5.1.49
- MediaWIki 1.20.3 (it appears)
I had my wiki running on the /var directory but it filled up. I backed up my mysql database and rysnc'd my /var directory over to my /home directory where I have more space. I changed the data-dir variable in mysql conf over to /home/lib/mysql and updated my apache configurations to point over to the new /home directory.
Now my issue is that when i upload pdf's to my wiki, 66 mB to be precise, not all of the data is moving into my /home directory. I ran df before and after uploading the pdf's and data used increased in both /home and /var. Any thoughts as to why this would happen? I tried to manually set the uploadpath but it kills my image and pdf thumbnails. Like i can still access the files at http://heritage.apegm.mb.ca/images/ but they dont work on the site. Did i miss a setting i need to change in mysql or are there any configuration files in the extensions of my wiki that would be doing this?
Thanks for any help,
Trent
This wiki will be the death of me. Whytekong (talk) 14:58, 10 February 2016 (UTC)
- Did you update your $wgUploadDirectory accordingly to the change? Ciencia Al Poder (talk) 17:15, 10 February 2016 (UTC)
- yes, changed $wgUploadPath and $wgUploadDirectory both to "{IP}/images/" I believe. Whytekong (talk) 17:26, 10 February 2016 (UTC)
- $wgUploadDirectory should be ok, but $wgUploadPath must not be set with {$IP}! Ciencia Al Poder (talk) 20:58, 10 February 2016 (UTC)
- Oh? Why is that? Also how should I set it? Whytekong (talk) 21:00, 10 February 2016 (UTC)
- $wgUploadPath is the path seen from the web browser. {$IP} points to an absolute path for the filesystem. $wgUploadPath can be left unset if the upload directory hasn't been changed.
- Your images point to URLs like http://heritage.apegm.mb.ca/img_auth.php/5/55/Early_Whiteshell.jpg giving an Access denied error. I assume you set up this accordingly for Manual:Image Authorization. In that case that's OK because I'm not logged in, so I shouldn't see those images. Ciencia Al Poder (talk) 21:18, 10 February 2016 (UTC)
LDAP authentication with local users
Hi,
i'm try to configure access to wiki through AD but i'd like to keep local authentication for main wiki admin. Is it possible? 194.183.0.100 (talk) 15:00, 10 February 2016 (UTC)
WikiEditor not showing
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'm trying to get the WikiEditor (version 0.5.0) to work. The extension shows up in Special:Version, but the editor does not show up when editing a page.
I have the following MediaWiki configuration:
MediaWiki 1.26.2
PHP 7.0.0 (cgi-fcgi)
MySQL 5.7.10-log
Server Windows Server 2008 R2 SP1 with IIS 7.5
I have followed the instructions online at https://www.mediawiki.org/wiki/Extension:WikiEditor to install the WikiEditor. I have cleared the browser cache and added the mime type for svg in IIS.
I added the following to the bottom of the LocalSettings.php:
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 1;
$wgDefaultUserOptions['wikieditor-publish'] = 1;
However, the WikiEditor is still not showing when editing a page.
Any advice would be much appreciated!
Thank You Cgol38 (talk) 16:40, 10 February 2016 (UTC)
- That's usually caused by a JavaScript error. Hit F12 in your browser, reload the page and see if there's any error showing up in the console. Ciencia Al Poder (talk) 17:09, 10 February 2016 (UTC)
- Hi,
- I looked at the error console in Firebug in Firefox, and I get this error:
- Internal error
- Internal error
- Problematic modules: {"startup":"error"}
- load.php?debug=false&lang=en&modules=startup&only=scripts&skin=monobook()load.ph...onobook (line 8)
- ...e.error) {console.error("Internal error\n\nInternal error\n\nProblematic modules...
- Any ideas as to what is causing this error and how to fix it?
- Thank You Cgol38 (talk) 19:37, 10 February 2016 (UTC)
- Setting $wgShowExceptionDetails to true should give more details about the error. another report about the issue was a missing /tmp directory (or maybe a permission issue) Ciencia Al Poder (talk) 21:11, 10 February 2016 (UTC)
- Hi,
- In the LocalSettings.php, I uncommented $wgCacheDirectory = "$IP/cache" and the WikiEditor shows up.
- However, when I enable wincache the WikiEditor does not appear. If I disable wincache, the WikiEditor shows up.
- I get the following error message when wincache is enabled:
- Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given in D:\inetpub\wwwroot\mediawiki\includes\libs\objectcache\WinCacheBagOStuff.php on line 52
- Is there some other configuration needed to get the WikiEditor to show when using wincache?
- Thank You Cgol38 (talk) 19:59, 17 February 2016 (UTC)
- Since you've opened a new thread for this error, I'll close this to follow it on a single thread Ciencia Al Poder (talk) 11:15, 18 February 2016 (UTC)
Special:NewPages shows correct pagename but the feed doesn't !?
After I created and moved a page, Special:NewPage lists the new pagename, but the feed still shows the old name (in the title of the feed entry).
How can I get the feed to show the new name?
You can see an example here (as of 11.2.2016, 14:37) : Special:NewPages shows the new name "User:Stefahn/New page", the feed however shows the old name "User:Stefahn/Old page" Stefahn (talk) 13:37, 11 February 2016 (UTC)
- Yeah, I guess you'd have to parse the summary to get the new page name. This is why you should use the API rather than a stinky old XML feed. 121.219.226.9 (talk) 07:52, 12 February 2016 (UTC)
- Thanks for your comment. What would be an easy-to-use parser that you can recommend? Stefahn (talk) 15:14, 12 February 2016 (UTC)
External links
Is there a way to prevent anonymous users and even non-autoconfirmed users from sharing external links, be it in articles or in forum/comment extensions? 89.123.241.143 (talk) 13:01, 12 February 2016 (UTC)
- Let me just go through some options: $wgSpamRegex will enable you to disallow external links altogether, e.g. based on a tags. But it is not possible to set different values based on user groups.
- The ConfirmEdit extension allows you to at least show a captcha, if a user from one of the named groups tries adding a link.
- Finally, with extension AbuseFilter you can prevent users from adding certain text and it also has a way to differentiate by user group (that is the variable "user_groups" in the different rules). So I would try with Extension:AbuseFilter! 87.123.6.102 (talk) 14:28, 12 February 2016 (UTC)
- Ahh and if you only want to block users from inserting links to certain domains, then Extension:SpamBlacklist is worth a try! 87.123.6.102 (talk) 16:29, 12 February 2016 (UTC)
- Do you happen to have a filter that it's already configured not to let anonymous and non-autoconfirmed to share external links?
- Also, AbuseFilter doesn't work with the WikiForum extension, sadly. 89.123.241.143 (talk) 17:36, 12 February 2016 (UTC)
New Mediawiki1.27 with Php7 , 1 bug left
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.
OK I have it running and seems all good except for couple of things. The Navigation pane is at the bottom of the mainpage for the site and the custom logo does not show up anywhere. Along with that and likely related , the login and preferences links that were at the top of all pages along with the edit buttons are all located at the bottom of the mainpage as well. For anyone who has a minut to look at it. the site is a test site: http://www.physicswiki.net Thanks for any assistence. Jfoster81747 (talk) 23:51, 12 February 2016 (UTC)
- OK the issues are solved. I needed to update the skins to a newer version. Jfoster81747 (talk) 00:17, 13 February 2016 (UTC)
New issue with mediawiki 1.27
Lua error in mw.title.lua at line 68: attempt to concatenate field 'nsText' (a boolean value).
The error above is now still popping up. I have updated the Module:Shortcut from Wikipedia and the Module Shortcut/config. Jfoster81747 (talk) 00:39, 13 February 2016 (UTC)
I am translating to Tagalog and the recommended English translation is not good.
AzimuthPolarity5 AzimuthPolarity5 (talk) 00:58, 13 February 2016 (UTC)
- Learn wiki markup before translating. Shirayuki (talk) 02:37, 13 February 2016 (UTC)
- The English text usually are the "originals". So if they are not ok, the correct workflow is to first change the original and to later update the translation accordingly. 87.123.18.138 (talk) 12:16, 13 February 2016 (UTC)
Page Import created orphaned pages - How to Fix?
I am new to mediawiki and I imported 1088 pages from a formatted XML file. During the import it froze and only 900 some imported. From viewing all pages though it appeared those pages were made successfully. I ran a secondary import of the remaining pages and this completed successfully, but upon further inspection, I noticed my wiki's statistics only said I had 169 pages (pages done in second import), and the other pages were all orphans.
I've tried some mass delete extensions to just delete the 900 some orphans and re-import them, but I couldn't get the extensions to work! I actually don't 100% what the severity of the page being orphaned is in the first place, but being a bit OCD it irks me my site statistics only shows 169 pages when I really have 1088 pages! Is this something I need to fix, and if so, what is the easiest way to fix the orphaned pages?
EDIT: The orphaned pages are in the MySQL database tool, the only difference I see from the 169 regular pages being the "page_links_updated" column is set to "NULL" for the orphans whereas the 169 regular pages all have a long number inserted there.
Thank you for any help on this! 2601:248:4703:DD60:78E7:7501:A8DA:C564 (talk) 05:24, 13 February 2016 (UTC)
- You may need to run the rebuildall.php maintenance script, to refresh link tables and search index. You can also run initSiteStats.php to fix stats. Ciencia Al Poder (talk) 14:45, 14 February 2016 (UTC)
not solved by removing spaces
RESOLVED | |
This is not the helpdesk for Wordpress |
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.
Warning: Cannot modify header information - headers already sent by (output started at /home/content/48/2798248/html/wp-admin/includes/template.php:1947) in /home/content/48/2798248/html/wp-includes/pluggable.php on line 1228 Codecraze (talk) 06:00, 13 February 2016 (UTC)
- This is a WordPress problem. However, here is the Support Desk for MediaWiki - we do not know how WordPress is supposed to work. 87.123.18.138 (talk) 12:15, 13 February 2016 (UTC)
E-mail while registering
RESOLVED | |
the captcha problem is T127621 |
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.
Dear Member,
While registering an e-mail is send.
But I get the following error-code : Failed to connect to mailout.one.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]
I added the folowwing code :
$wgSMTP = array(
'host' => 'mailout.one.com',
'IDHost' => 'one.com',
'port' => 25,
'username' => '',
'password' => '',
'auth' => false
);
How can the error be prevented?
Thank you in advance.
Hansie Hansie (talk) 13:58, 13 February 2016 (UTC)
- According to this, the SMTP server is send.one.com and not mailout.one.com Ciencia Al Poder (talk) 14:38, 14 February 2016 (UTC)
- Dear Ciencia, dear others,
- I made the change (mailout -> send)
- 1 The reCaptha window does not appear, or appears left bottem screen. It appears just after a refresh.
- 2 After a try to register : The e-mail programm : Failed to add recipient: some@something.net [SMTP: Invalid response code received from server (code: 554, response: 5.7.1 <some@something.net>: Recipient address rejected: Authentication required)]
- Authentication required : So I made this change :
- $wgSMTP = array(
- 'host' => 'ssl://smtp.gmail.com',
- 'IDHost' => 'gmail.com',
- 'port' => 465,
- 'username' => 'something@gmail.com',
- 'password' => 'a_password',
- 'auth' => true
- );
- But no change in results.
- What can be the problem?
- Thank you.
- Hansie Hansie (talk) 13:39, 24 February 2016 (UTC)
- the captcha problem is T127621 Ciencia Al Poder (talk) 22:42, 24 February 2016 (UTC)
Infobox templates show {{#se: / {{#if: code
RESOLVED | |
After exporting-importing more templates from wikipedia to my wiki the problem solved by himself. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://chronomaps.net/wiki/index.php?title=Special:Version
I read everything I found about templates, ParserFunction and Scribunto installation as well lua. I was able to install those extensions.
I have also imported all the recomended templates. Eventhoug, when I copy or use a template, the template appears with code {{#se: / {{#if:
and the template does not show up inside the box, but occupies all article width as you can see here:
http://chronomaps.net/wiki/index.php?title=Exp
How can I solve these problems?
Thank you for your help! Rodriguewilson (talk) 17:35, 13 February 2016 (UTC)
- After exporting-importing more templates from wikipedia to my wiki the problem solved by himself. Rodrigueswilson (talk) 06:18, 14 February 2016 (UTC)
I need help on many issues
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 global rollbacker. I get an error:rollback fails, ''There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.'' I can't take any changes back. It also remains the same, although I change the language settings on the wiki. For example, I change the language of menu's in the Ukrainian Wikipedia. I am setting the Turkish language but again becomes the Ukrainian language. I am using Tagger for Speed deletions tool when I get invalid token error. Also api.php responded with unknown result: WrongToken on Huggle. Uncitoyen (talk) 20:06, 13 February 2016 (UTC)
- There was an update to Huggle around the same time, which should fix the problem, as far as I'm aware. See also Wikipedia:Huggle/Feedback. —TheDJ (Not WMF) (talk • contribs) 11:13, 16 February 2016 (UTC)
- I think there must be a problem due to the MediaWiki system. Many things don't permitted by the system. Uncitoyen (talk) 15:26, 16 February 2016 (UTC)
- I think the problems was solved. Uncitoyen (talk) 16:09, 18 February 2016 (UTC)
PDFembed doesn't work on Android
RESOLVED | |
I update the static private function embed in the PDFEmbed.hooks.php in extension PDFembed |
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.
OK : The pdf is displayed without problem on the wiki page when I use PC with firefox, chrome, opera, IE11 (if filtrage active X is unchecked) browsers
NO OK : the following message is displayed "The PDF file did not load properly or your web browser doesnot support viewing pdf files; Download <a href=......>exemple.pdf</a>directly to your device"
I performed these checks on my Android tablet with firefox, chrome, dolphin, ( adobe acrobat reader, free PDF reader, google pdf reader, dropbox pdf reader, drive pdf reader, pdf viewer for oneDrive android version from playstore are installed )
here is an exemple of page with the problem : (mediawiki 1.26.2 - PDFembed1.1.2)
link removed by author
How to solve this for Android ? Chantoune (talk) 18:10, 14 February 2016 (UTC)
- I think phone browsers aren't capable of displaying PDFs embedded inside a page. PDF must be downloaded to the phone and opened with the appropriate viewer. Please provide an example where such embedding works to prove me wrong. Ciencia Al Poder (talk) 21:11, 14 February 2016 (UTC)
- It seems that it is possible to see an embed pdf in web page displayed on android tablet
- here is an exemple
- http://googlesystem.blogspot.fr/2009/09/embeddable-google-document-viewer.html
- with this exemple i may see the embeded pdf displaying on my pc but also on my android tablet
- but to use an iframe it is perhaps not secure for my wiki ?
- Perhaps somebody could create an extension for wiki to embed pdf which works in all cases (pc & mobile) ? Chantoune (talk) 13:34, 15 February 2016 (UTC)
- it seems this type of plugin exists for wordpress
- https://wp-pdf.com/premium/demo/ Chantoune (talk) 14:13, 15 February 2016 (UTC)
- That's not an embedded PDF. That's an HTML representation of a PDF.
- It should be a matter of editing PDFHandler.class.php
- changing:
urlencode($file->getFullUrl())
- with
- Ciencia Al Poder (talk) 20:26, 15 February 2016 (UTC)
urlencode('http://docs.google.com/gview?url='.$file->getFullUrl().'&embedded=true')
- Hi,
- I try to update the file PDFHandler.class.pdf in the extension/PDFEmbed/classes
- static private function embed(File $file, $width, $height) {
- return "<object width='{$width}' height='{$height}' data='".urlencode('<nowiki>http://docs.google.com/gview?url='.$file-</nowiki>>getFullUrl().'&embedded=true')." type='application/pdf'></object>";
- }
- but sorry the result is always right on pc and wrong on mobile Chantoune (talk) 11:11, 16 February 2016 (UTC)
- oops, I didn't notice the http: URL mangled the code. I've edited the previous post in case you copied it wrong because of this
- That's how it works on the link of googlesystem.blogspot.fr that you posted. Ciencia Al Poder (talk) 10:21, 17 February 2016 (UTC)
- Hi,
- Sorry, but even with this update in the PDFhandlerClass.php, I always have the error report on the mobile
- So I suppose it is because there is also one method (static private function embed) in the PDFEmbed.hooks.php which return the Html::rawElement('object'.....
- So, perhaps it is necessary to perform one check according the OS in this function to return the encoding of two different Html:rawElement (case mobile : without the #page attribut and with the URLencode completed with the....docs/google....and in other case or by default as actually)
- But I don't know the PHP syntax to perform this check about OS ?
- If somebody could help me because in my mediawiki there is a great lot of imported PDF which will be confortable to read on line in the browser without obligation to exit to open the download files for reading
- Thanks Chantoune (talk) 21:43, 17 February 2016 (UTC)
- OK I resolve the problem as follwing for the moment :
- I only update the function embed of file PDFEmbed.hooks.php as following (by an if then else about one android check)
- Chantoune (talk) 16:15, 19 February 2016 (UTC)
static private function embed(File $file, $width, $height, $page) { $ua = strtolower($_SERVER['HTTP_USER_AGENT']); if(preg_match('/android/i',$ua)) { $myfile = "https://docs.google.com/gview?url=".$file->getFullUrl()."&embedded=true"; $mystyle = "width:800px; height:600px;"; return Html::rawElement('iframe', [ 'src' => $myfile, 'style' => $mystyle, 'frameborder' => "1" ], wfMessage('pdf_not_supported', $file->getFullUrl(), $file->getName())->escaped() ."<param name='page' value='$page' />" ); } else { return Html::rawElement('object', [ 'width' => $width, 'height' => $height, 'data' => $file->getFullUrl().'#page='.$page, 'type' => 'application/pdf' ], wfMessage('pdf_not_supported', $file->getFullUrl(), $file->getName())->escaped() ."<param name='page' value='$page' />" ); } }
Hi, While importing Infobox from Wikipedia and While Trying to Create a Template i get an 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, While importing Infobox from Wikipedia and While Trying to Create a Template i get an error
- Fatal error: Call to undefined function pcntl_wifsignaled() in /extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 645
- I am not able to find a solution. Kindly help 27.5.8.207 (talk) 18:11, 14 February 2016 (UTC)
- Redhat (at least 6.7) does not have the pcntl functions installed. I've adapted the code so that it works and will submit a patch for review. ☠MarkAHershberger☢(talk)☣ 15:45, 24 February 2016 (UTC)
- The patch here should help: https://gerrit.wikimedia.org/r/#/c/273173/ ☠MarkAHershberger☢(talk)☣ 03:34, 25 February 2016 (UTC)
- Question has been replied on IRC:
- Ciencia Al Poder (talk) 21:04, 14 February 2016 (UTC)
[19:17:00] <Guest77742> Hi, While importing Infobox from Wikipedia and While Trying to Create a Template i get an error Fatal error: Call to undefined function pcntl_wifsignaled() in /extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 645 I am not able to find a solution. Kindly help
[19:18:59] <Skizzerz> you either need to recompile PHP with --enable-pcntl, or install the luasandbox PHP extension. The latter is likely easier, but both require that you have superuser access to the machine
[19:20:08] <Guest77742> I have hosted mediawiki on GoDaddy and i can only configure using FTP... is it possible to configure using FTP?
[19:20:13] <Skizzerz> see https://www.mediawiki.org/wiki/Extension:Scribunto#LuaSandbox for more information on that option
[19:20:16] <Skizzerz> no, it is not
[19:21:59] <Guest77742> Ok.. any other option you feel may be possible based on your experience ?
[19:23:01] <RobotsOnDrugs> you need support from php to do it, and your hoster controls php here
[19:23:04] <Skizzerz> use a different host that gives you more underlying access, ask really nicely in a support ticket for them to install/configure the thing for you, or uninstall Scribunto because you can't use it
[19:23:13] <Skizzerz> those are your 3 options
[19:23:42] <Guest77742> Ok thanks a lot.. really appreciate it
[19:24:32] <Skizzerz> (well, 4 options; #4 is modify the extension code to remove the dependency on the pcntl functions for the standalone engine)
[19:25:08] <Skizzerz> I cannot provide any assistance in that regard, however
How do I edit the description etc. of a file I just put on Wiki Commons?
How do I edit the description etc. of a file I just put on Wiki Commons? LawrencRJ (talk) 21:50, 14 February 2016 (UTC)
- Visi the page on commons, e.g. this one https://commons.wikimedia.org/wiki/File:Step_Method_Muliplication_Algorithm.png and hit the "Edit" button! 87.123.23.200 (talk) 23:09, 14 February 2016 (UTC)
Sidebar Not Displayed After Update and Monobook
After updating mediawiki and making monobook the default skin, the default sidebar is displayed instead of the one that I created. How can this be fixed? 161.98.4.10 (talk) 09:47, 15 February 2016 (UTC)
- Did you edit the sidebar at MediaWiki:Sidebar?
- Maybe you have any kind of object caching in place that didn't get the customized sidebar. Try editing MediaWiki:Sidebar to see if it updates. Ciencia Al Poder (talk) 10:24, 15 February 2016 (UTC)
Aligment icons menubar VisualEditor + Chameleon-skin
We've a problem with alignment of the VE menubar icons when using the Chameleon-skin (both version 1.1.4 and 1.2).
Icons Undo, Redo, Link, Special character and Help are aligned incorrectly.
When using Vector-skin alignment is okay.
Anybody any suggestions? Thanks in advance. Waanders (talk) 15:01, 15 February 2016 (UTC)
Help with pythonwikibot
I'm currently learning Python programming, and programming in general. Recently managed to get a little level up, and started to use some APIs like Google's geocode, Twitter, and also MediaWiki's pythonbot. I want to create a little hitchhiking program, based on an user search for a location which give back the needed wikitravel page. When I try to log in via pywikibot's 'welcome.py' it didn't allow me to do so. My password and username is correct, I checked that many times. I read most of the related pages from the documentation, but haven't found the solution yet.
Anybody any suggestion?
Thanks in advance
PythonPeterbot (talk) 19:50, 15 February 2016 (UTC)
- You might want to try on the Pywikibot mailing list or IRC channel to find support. See Manual:Pywikibot/Communication Malyacko (talk) 17:00, 18 February 2016 (UTC)
Sidebar not appearing after edit
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 downloaded MediaWiki this week and have started editing with no trouble except for my sidebar. The default sidebar already existed and appeared on my main page, and I was able to edit it without too much trouble. The page was successfully saved and can be viewed by going directly to that page. My problem is that it doesn't show up at all on my main page--not even with the default links. I've tried re-saving, deleting and restoring, using multiple browsers and waiting 24 hours to see if it was a propagation issue. There's also no sidebar cache line in my local settings file that I can see and I didn't change the file name http://breyerwiki.org/mw/index.php/MediaWiki:Sidebar. Nothing has worked and I've run out of ideas. Can anyone help me see the light? 98.238.154.132 (talk) 21:24, 15 February 2016 (UTC)
- I think I've solved this one myself. I found that when adding links to the Sidebar I can't use the internal link button on the edit page but must use the format "Main_Page|Home". A simple thing, but one that made all the difference. Looking closely at another Wiki's Sidebar did the trick Identify Your Breyer (talk) 17:35, 16 February 2016 (UTC)
How to make a new page
Im trying to make a new wikipedia page of someone and need help. let me know if anyone is in and ill let you guys know the details. Fastaki1 (talk) 00:48, 16 February 2016 (UTC)
- https://en.wikipedia.org/wiki/Wikipedia:Your_first_article —TheDJ (Not WMF) (talk • contribs) 10:57, 16 February 2016 (UTC)
How to determine if function hook requires # prefix?
If I query the API for parser function hooks:
/api.php?action=query&meta=siteinfo&siprop=functionhooks
I get no indicator which functions hooks require a #
prefix and which do not. Is there some way to find this out?
And just out of curiosity:
How is this handled internally? Why isn't the #
part of the name? And why isn't #
required for all function hooks - or at least the ones that accept arguments? Pecoes (talk) 11:20, 16 February 2016 (UTC)
- There doesn't appear to be a way, you should file a bug.
- A
#
is the default, see Manual:Parser functions#Naming. 121.214.146.20 (talk) 04:17, 17 February 2016 (UTC)
Please create MediaWiki:Wikibase-otherprojects-wikispecies
All that's needed is the string "Wikispecies" at MediaWiki:Wikibase-otherprojects-wikispecies in order for us to have sidebar links at WMF projects. Thanks. —Justin (koavf)❤T☮C☺M☯ 15:02, 16 February 2016 (UTC)
- This label is only needed in some wikis - it is not part of the MediaWiki software itself, right? In that case, this label in fact does not belong into the MediaWiki tarball. Instead, please have an admin create that page in the according wiki(s)! 87.123.41.171 (talk) 16:13, 16 February 2016 (UTC)
- I don't know really. See Beta_Features/Other_projects_sidebar#Link_texts for more information. Tommy Kronkvist (talk) 08:36, 17 February 2016 (UTC)
- I have created a task for this and can look into it. I see Wikispecies link on https://en.wikipedia.org/wiki/Cat What page(s) are missing it?
- The message is set in https://github.com/wikimedia/mediawiki-extensions-WikimediaMessages/blob/master/i18n/wikimedia/en.json#L183-L194 Aude (talk) 09:37, 17 February 2016 (UTC)
editing
I am using mediawiki and need to edit our company profile. How can I do this? Thanks. Cohencar (talk) 15:02, 16 February 2016 (UTC)
- What do you mean with "company profile"?
- If this is a page, then you will be able to edit it just like editing a normal page (if you have permission to do so). If you are in contrast speaking about a user account, then you can edit it using the page Special:Preferences in the according wiki after you logged in. 87.123.41.171 (talk) 16:11, 16 February 2016 (UTC)
MediaWiki Social Network for Storytelling
3 Questions that that the MediaWiki Community may be able to address —
- What kind of “Social Media-Like" network do you envision may be conducive to the future of Storytelling?
- How hard would it be to evolve the MediaWiki Platform into a Social Network?
- Who is up for the challenge?
At one level, I'm referring to the possibility of connecting MediaWiki Websites, with each one, serving as an independently hosted "publishing press" for storytelling.
Imagine a CC BY-SA (The Creative Commons License that MediaWiki supports) Social Network where “literary-worlds” intersect — where writers have the opportunity to legally build upon each another's story, characters, etc.
For instance, imagine you love Harry Potter and want to evolve the World of Harry Potter. While fan-fiction's an option, it's basically illegal, especially when it comes to making the sale... (Harry Potter, obviously, Copyright Protected.) And aside from the money-making-aspect, why would anyone wait in line at the Publisher's Inbox when the masses are streaming their fiction online?
If it's not online, does it exist?
With a MediaWiki Social Network, open to "all", yet exclusively edited by "Friends," writers could potentially —
- Create worlds together
- Publish Stories in a Real-Time Atmosphere on a Platform that is "Independently Owned"
- Help edit one another's work
- Create unique or exclusive "Publishing Teams" (perhaps that edit work for free or for compensation)
- Generate an audience while posting creative writes
- Get immediate feedback
- A "Graffiti Wall" — an idea where "Friends" or anyone (depending on the page's "Protection") can post some work
More?
With the Creative Commons Movement constantly growing—featuring their strongest push in the CC BY-SA “Copyleft” Direction — https://stateof.creativecommons.org/2015/ — the communal creation of decentralized fiction is now an option — why not the reality?
While personally not big on the Social Media scene, I've been working on a story (for nearly 10 years now) that presents a World (Hearth) that is conducive for anyone to legally build upon, just in case someone else should wish to write or evolve some aspect of the story, characters, etc.
To test the model later this year, am self-publishing the novel in two parts — the first Part will be “Copyleft;” the second part, Copyrighted. If you would like to see one demonstration of "streaming storytelling," I have been been experimenting on my own MediaWiki site — http://blondyn.com . I post an original CC BY-SA excerpt of a story each day that is available for anyone to reinvent. (Still searching for a community!)
Critique or feedback welcome; thanks for taking the time to read.
jon blondyn
jonblondyn@gmail.com Jonblondyn (talk) 20:06, 16 February 2016 (UTC)
- Hi Jon,
- reading your post I never actually came past the following question: Why would I need such a network at all? When I am telling stories or when as a child I got them told, then this was out of a book. A good old story from an old book. I don't need an online platform for that.
- Anyway, many people use MediaWiki to make up something like their own fairy tale world. E.g. if you are a fan of StarCraft, then you can make up a wiki with persons, things and so on from that universe.
- MediaWiki has a number of extensions, which make comunication between users easier. E.g. there are extension, which inform a user, if another user mentioned his name or something like that. Of your 7 numbers, most are possible one way or the other. However, I don't know, how you would want to get real-time atmosphere/immediate feedback. You can have something like that in a chat, e.g. in IRC on Skype or so. But with MediaWiki? Not so much. You can write answers on pages. But real-time? Not really. Generating an audience will largely have to do with advertising the platform. 87.123.41.171 (talk) 23:52, 16 February 2016 (UTC)
About 中文(zh), 中文简体(zh-hans) and 中文繁体(zh-hant)
中文包括了中文简体和繁体,所以我们不需要再简体和繁体了。转换器可以自动转换简体和繁体。你看中文维基百科可以自动转换,谁还分了什么简体中文维基百科和繁体中文维基百科?因此一个页面的翻译版本只需要中文,不再需要中文简体和繁体。 SolidBlock (talk) 04:40, 17 February 2016 (UTC)
- In one word, we need zh, not zh-hans and zh-hant. It can auto transform to hans or hant. SolidBlock (talk) 10:55, 17 February 2016 (UTC)
- Who is "we"? What is "it"? Malyacko (talk) 16:59, 18 February 2016 (UTC)
- Oh... I'm not good at English. "We" means Chinese users. "It" means "not zh-hans and zh-hant, only zh". (Err, I'm too bad at English. Maybe I must study English harder. But...as a Chinese, Chinese is the most important subject...) SolidBlock (talk) 12:03, 19 February 2016 (UTC)
- If you speak for all Chinese users, please prove that. :)
- Also, what is "it" in your sentence "It can auto transform to hans or hant." ? Malyacko (talk) 11:23, 24 February 2016 (UTC)
- Look, other Chinese languages like 中文(中国大陆) is not allowed translating. When I translate pages to 中文(中国大陆), it displays, "translate in zh please". But why not stop translating in 中文简体 and 中文繁体? We only need "中文". It's enough. SolidBlock (talk) 10:51, 4 March 2016 (UTC)
- Transformer (maybe called transformer) can transform the wikitexts in zh to hans, hand or other Chinese. For example, in Chinese wiki you input "广东", it displays "广东" when you set hans, and "廣東" when you set hant. You can also see Chinese Wikipedia. SolidBlock (talk) 04:58, 27 February 2016 (UTC)
- Not everyone prefers only one language code for Chinese instead of two for Simplified and Traditional. AFAIK (as far as I know), it will automatically switch into what you want.
- (I'm trying to use very simple English here...) Luis/stranger195 (talk • contribs • guestbook) 08:01, 5 March 2016 (UTC)
- I am wondering if it is possible to download the "transformer" since dictionary dumps in https://dumps.wikimedia.org/zhwiktionary/latest/ is zh-hant(abstract excluded which tw and cn supported). 114.242.248.238 (talk) 08:56, 6 February 2017 (UTC)
- ignore me, please help remove this conversion if possible 114.242.248.238 (talk) 09:00, 6 February 2017 (UTC)
- typo LOL, consersion->conversation 114.242.248.238 (talk) 09:02, 6 February 2017 (UTC)
Cite Option Not Showing In WikiEditor
I have installed WIkiMedia 1.26.2. WikiEditor and Cite extension are included by default in the extensions directory. I tried to use them by adding these lines at bottom of LocalSettings.php.
wfLoadExtension( 'WikiEditor' );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
wfLoadExtension( 'Cite' );
But still i'm not able to see it in editor. Cite button is not there.When i see Special:Version, Cite and WikiEditor are there in the installed extensions.
I have the exact same problem asked here (https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2014/01#c-88.130.100.168-2014-01-28T21%3A54%3A00.000Z-98.207.85.174-2014-01-28T21%3A45%3A00.000Z).
Do i need to add/load any additional files? Kanav kapoor (talk) 16:40, 17 February 2016 (UTC)
- The ref toolbar is not provided by the Cite extension, it is a javascript tool which adds a button, that allows people to make more advanced use of the Cite extension. The script needs to be manually copied into your installation. —TheDJ (Not WMF) (talk • contribs) 12:24, 18 February 2016 (UTC)
- Where to copy it? Do you mean that i need to copy/install "Cite" extension in the "extensions" directory? But, it's already there.
- And if you mean that i need to install "RefToolbar", then as per the documentation "RefToolbar 2.0 is now turned on by default for all users on English Wikipedia. You don't have to do anything to install it."
- So, can you elaborate the steps? That would be very helpful. Kanav kapoor (talk) 12:55, 23 February 2016 (UTC)
- In case you are still looking for the solution.
- You will have to follow the instructions here:
- https://en.wikipedia.org/wiki/Wikipedia:RefToolbar/2.0#Porting_to_another_wiki
- According to the instructions from the above link, what you will need to do is create "mirror" pages for your own wiki. For example:
- Copy the source from the following page:
- https://en.wikipedia.org/wiki/MediaWiki:RefToolbarConfig.js
- Create in your own wiki a new page with the name:
- YourWikiName/index.php?/MediaWiki:RefToolbarConfig.js
- where "YourWikiName/index.php?" is whatever the start of the URL of your Wiki is; and paste the copied source here.
- You will have to do this for up to 6 or 7 pages, which are given in the first link.
- Remember to bypass your cache (https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache) after creating all the pages, otherwise you may not be able to see the "Cite" button appear in the toolbar.
- Note: The "Cite" uses other templates and another thing called "modules" which might be needed in addition, to get the functionality of the "Cite" button. I have not personally done this part, because it is much more complicated, and requires shell access from the server; but hopefully it will not be needed for you.
- Regards, AhmadF.Cheema (talk) 03:49, 5 March 2016 (UTC)
looking to import from excel list
If you want to import from a Vcard or Excel file, click the appropriate radio button and import your file from your computer using the browse button that appears. If you find that your Excel file is importing with errors, please contact our support team for a sample Excel file that you can use to import your recipients.
Can you post the sample excel file? 71.202.243.21 (talk) 17:08, 17 February 2016 (UTC)
- Can you first provide a link to where that text is from that you (probably) quoted? AKlapper (WMF) (talk) 16:56, 18 February 2016 (UTC)
WikiEditor not showing when wincache is enabled
MediaWiki: 1.26.2
PHP: 7.0.0 (cgi-fcgi)
MySQL: 5.7.10-log
Server: Windows Server 2008 R2 SP1 with IIS 7.5
The WikiEditor does not appear when wincache is enabled. If I disable wincache, the WikiEditor shows up.
I get the following error message when wincache is enabled:
Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given in D:\inetpub\wwwroot\mediawiki\includes\libs\objectcache\WinCacheBagOStuff.php on line 52
Is there some other configuration needed to get the WikiEditor to show when using wincache? Cgol38 (talk) 19:44, 17 February 2016 (UTC)
- This seems to be a bug, and ideally you should report it in phabricator. Can you provide a full stack trace of the error?
- Since it's not a fatal error, you may need to add this example (without the "Trigger exception" part) to LocalSettings.php to get the full stack trace. Ciencia Al Poder (talk) 11:23, 18 February 2016 (UTC)
- Hi,
- I am new to PHP, so I need some more clarification. I copied the following to the bottom of the LocalSettings.php file:
- function exception_error_handler($severity, $message, $file, $line) {
- if (!(error_reporting() & $severity)) {
- // This error code is not included in error_reporting
- return;
- }
- throw new ErrorException($message, 0, $severity, $file, $line);
- }
- set_error_handler("exception_error_handler");
- However, I do not see a stack trace error message when I access an Edit page in the wiki. Is there something else I need to do or enable in order to see the track trace? Will I see this stack trace when accessing a page in the wiki site?
- Thank You Cgol38 (talk) 16:47, 18 February 2016 (UTC)
- I'm not sure, you can try also setting Manual:$wgShowExceptionDetails to true, but since this is not a "fatal" error it may not trigger the stack trace... The stack trace is good for debugging, because otherwise it may be difficult to see from where that line of code was called that may give such error. Ciencia Al Poder (talk) 21:38, 18 February 2016 (UTC)
the real name
Dear Sirs,
we have understood the reasons why you had to cancel the introduction to our business page, but in regard to the username, this is our real name. So no problem, you can cancel our real logo and everything. We will not use a different name since we represent our real company and our real logo.
We have chosen not to provide our email just because we are showered by ads, but either our website and our business contacts (and logo!) are easy to find on the net.
By the way, we didn't find how to delete our account from MediaWiki. Would you be so kind as let us know how to do?
Best regards,
Raffaella
Monolit Immobili & Attività Monolit immobiliare (talk) 11:11, 18 February 2016 (UTC)
- What is meant (i'm assuming you are asking about an interaction on Wikipedia) is that accounts should reflect real people. An account may not represent a group of people (like a company), only individuals. You do not need to delete the account, you can simply abandon it. —TheDJ (Not WMF) (talk • contribs) 12:22, 18 February 2016 (UTC)
error occurred while saving the response
Hi, I get the error message: "An error occurred while saving the response to survey...", without any further information. But I do receive responses to the survey . But not at the time that the error messages arrive. What is happening? Aukjevanm (talk) 13:07, 18 February 2016 (UTC)
- Please provide steps to reproduce and how to get to some "survey". AKlapper (WMF) (talk) 16:54, 18 February 2016 (UTC)
Does this open source software apply as Enterprise Use?
Purpose: To not use the sharepoint KB, and move to this MediaWiki.
To be used by the IT dept, and possible other depts for a school district.
Main concern that it may violate some licence agreement or legal concerns using it on an enterprise level. 209.232.151.49 (talk) 18:46, 18 February 2016 (UTC)
- Woah, there is not a single verb in any of your sentences, right? Let me try, answering accordingly:
- To move things into, MediaWiki was made.
- To be used by the IT dept, MediaWiki is there for.
- Legally possible it is. 87.123.60.3 (talk) 22:44, 18 February 2016 (UTC)
How to Host?
I'm creating a MediaWiki for an organization. I have a domain and the Wiki's already up and running on a localhost server, so I don't need a free service like Wikia. However, how do I get the Wiki to link to a subdomain or domain.com/wiki? Is it in LocalSettings.php? Thanks guys. Sirots (talk) 19:12, 18 February 2016 (UTC)
- You have to mak the domain record point to your server. Usually, when you buy a domain name, then your host, through which you are buying that name and who also offers webspace to you, does this job.
- If the place, where the wiki files should be stored (= the place, where this webspace is), is not your local computer, then you will have to move the wiki to that place (as explained in the article I just linked you). 87.123.60.3 (talk) 22:40, 18 February 2016 (UTC)
Mediawiki 1.26.2 - Stylesheet not working/loading
have downloaded and installed Mediawiki latest version 1.26.2. In this version, the stylesheet is not working/loading. In older version (1.23.5) of Mediawiki installed on same server, its working fine. I have checked LocalSettings.php file multiple times and everything seems to be fine.
Anyone facing same issue?
The Mediawiki 1.26.2 site is deployed as a directory in a website under IIS (Windows 2012 server). In same website, Mediawiki 1.23.5 is deployed under different directory. Mediawiki 1.23.5 stylesheet works. However for 1.26.2 it did not.
I also tried deploying Mediawiki 1.26.2 under a new website "MediawikiNew' just to be sure that directory inside a website is not creating any problem. But still that didn't worked.
I tried both with http and https protocol but it did not made any difference. 123.63.241.41 (talk) 06:52, 19 February 2016 (UTC)
- See if anything from here applies: Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 10:30, 19 February 2016 (UTC)
Extension:CirrusSearch/CompletionSuggester
RESOLVED | |
Done. Please use Project:Current issues for issues related to this wiki. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please lock this page, it's getting vandalized too often. Kopiersperre (talk) 10:30, 19 February 2016 (UTC)
google doc embedder plugin ?
does exist an equivalent plugin for mediawiki ?
this is defined for wordpress
https://fr.wordpress.org/plugins/google-document-embedder/
this plugin allows to embed PDF, MS Office, and many other file types in a web page using the free Google Docs Viewer (no Flash or PDF browser plug-ins required).
and it runs also on mobile Chantoune (talk) 11:29, 19 February 2016 (UTC)
In theory, can I recreate wikipedia using mediawiki?
Or are there any limits? 81.255.154.160 (talk) 13:35, 19 February 2016 (UTC)
- Technically that's possible. Wikipedia does exactly that. You will need much diskspace for database and files and a faster machine performance-wise always is better.
- Legally, MediaWiki itself is licensed in a way that you do not need to pay license fees or so. The content e.g. of the English Wikipedia is licensed under the CC BY-SA 3.0 License and the GFDL. 87.123.36.114 (talk) 14:18, 19 February 2016 (UTC)
Baseball - Austin Senators
I was looking at the roster for the Austin Senators and did not see the name Frank Johnson. He was
a pitcher for them in the 1950's. And he played for other teams also. Beaumont Exporters, Boise, Moose Jaw Mallards (of Canada). Ejohn60 (talk) 22:16, 19 February 2016 (UTC)
- Thanks for informing us about this fact! The article en:Austin Senators (I guess you mean that one) in fact is at a rather basic level. Feel free to extend it!
- You can edit the article yourself! Please add, what is missing! If you have sources, you may also provide them, e.g. in the edit summary so that it is easy to identify that what you write is actually correct.
- If you have further questions, don't hesitate to ask!
- Good luck! 87.123.36.114 (talk) 00:41, 20 February 2016 (UTC)
WebStart.php-conf is very slow
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 All,
Each request is taking more than 3.5 Second. I enabled the profiling and it shows loading of WebStart is taking most of the time. How do I rectify this. It's a godaddy shared enviornment and APC is enabled.
Even a call to get the 20 byte css script is taking more than 3.5 second because of this.
This is how my profiling output looks like: Dagarwal82 (talk) 22:17, 19 February 2016 (UTC)
- Output pastebin com/sASHgu65 Dagarwal82 (talk) 22:18, 19 February 2016 (UTC)
- To me the output looks like it is generally slow (or "fast" or however you want to call this speed). Is there any reason, why you specifically mention WebStart? In the log you posted it has around 25% of the exec time (during the one call to it).
- Maybe it would be possible to make things faster by checking those functions, which are used rather often, e.g. DatabaseBase::query or LocalisationCache::getSubitem-load.
- On shared hosting however, you only have limited possibilities in regards to adjusting MySQL settings. You could try adjusting the Localization Cache by configuring $wgLocalisationCacheConf so that it does no longer use the database.
- > Even a call to get the 20 byte css script is taking more than 3.5 second
- I don't get that one? Do you mean loading a wiki page with CSS on it, or do you mean: The server needs more than 3.5 seconds to deliver an ordinary, static CSS file?
- As a personal note, often when people say they use GoDaddy, there has in the past not been a solution, which still involved GoDaddy hosting, to put it that way. I wonder why you guys are all using this host... 87.123.36.114 (talk) 00:59, 20 February 2016 (UTC)
- The reason I mentioned WebStart is because when I tried to call (like 50 times) an ordinary static css file of 20 bytes I saw that WebStart was the main call which was taking all the time. I am going to check your suggestion for $wgLocalisationCacheConf. 72.238.139.49 (talk) 19:37, 21 February 2016 (UTC)
- # Include site settings. $IP may be changed (hopefully before the AutoLoader is invoked)
- require_once( MW_CONFIG_FILE );
- This line is taking time Dagarwal82 (talk) 19:45, 21 February 2016 (UTC)
- I figured out that it's AuthWP plugin. When I remove following from my LocalSettings.php the speed is back to normal (100msec about).
- require_once "$IP/extensions/AuthWP/AuthWP.php";
- $wgAuth=new AuthWP(); Dagarwal82 (talk) 20:00, 21 February 2016 (UTC)
anyone writes
can i do sth that anyone can write articles in my mediawiki or should i personally enter the articles? Rezasomebody (talk) 23:45, 19 February 2016 (UTC)
- Anyone who is registered as a user can write articles. Dagarwal82 (talk) 23:58, 19 February 2016 (UTC)
- Whether anyone or only registered users can write articles can be configured. So if this is your wiki, then you can adjust $wgGroupPermissions in order to change these rights. That way you can allow everyone to write articles:
$wgGroupPermissions['*']['edit'] = true;
- That way everyone can edit your wiki - also evil spambots.
- Whether you should allow anyone editing or only registered users depends on your use case. Depending on how you are using MediaWiki, either of them might make sense. 87.123.36.114 (talk) 00:34, 20 February 2016 (UTC)
word frequency
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 pretty good at using ref. works but I'm foxed by your word frequency pages and the links they point to. None but the smaller lists show what the frequency (or rank) figure refers to; I had expected a %, not something that seemed to require that I know the total in that corpus, from which % could be calculated. I can't be alone in wanting something from which I can quickly assess how likely it is that one word rather than another might be understood not just recognised by a reader. Could an editor consider this? Fitzmichael (talk) 20:35, 20 February 2016 (UTC)
- Hi, I'm afraid you have landed in the wrong place. This page is for help with MediaWiki, a popular wiki software package. If you can provide a link to the word frequency lists you are referring to, we might be able to point you in the right direction and suggest who is the best person to ask your question. This, that and the other (talk) 03:04, 24 February 2016 (UTC)
Rotating files
*File:In commemoration of the establishment of steam navigation between Great Britain and America ... this engraving of the magnificent steam ship, the Great Western... (NYPL Hades-118176-53882).tif
*File:To the British and American Steam Navigation Compy. this print of their splended steam ship the British Queen ... (NYPL Hades-118178-53883).tif
*File:The British steamer Sirius (NYPL Hades-118629-54755).tif
and more files in Category:Ships cannot be rotated by Rotatebot. Has to be done manually. @Stunteltje Stunteltje (talk) 22:04, 20 February 2016 (UTC)
- conf 5.112.144.83 (talk) 22:45, 20 February 2016 (UTC)
- Rotatebot is going to be merged (or has already been merged?) into the MediaWiki Core. This given, I don't know, if it makes snese to fix this issue in the bot. See https://commons.wikimedia.org/wiki/User:Rotatebot!
- It would be great, if you could check the status of this merge. Will the merged feature have the same bug? 87.123.8.40 (talk) 00:20, 21 February 2016 (UTC)
- Btw, if the problem is that tiff files cannot be rotated, according to https://phabricator.wikimedia.org/T35186 this has been solved just a few days ago. 87.123.8.40 (talk) 00:23, 21 February 2016 (UTC)
Abuse filter
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.
Hey! I have added a bad word filter for the abuse filter extensions, but it does not seem to work. Even though I have written regex for words such as the f and s words, they were still added into some articles by vandals. Here it is: http://pastebin.com/3YMMVC81
The only thing under 'actions taken when matched' that's checked is: Prevent the user from performing the action in question
Would someone please tell mere where I have went wrong? 188.24.79.140 (talk) 00:41, 21 February 2016 (UTC)
- There are multiple things wrong
- First of all,
article_namespace == 0 & article_namespace == 1
won't match anything because a single edit can't be done at 2 or more namespaces at the same time. - Also,
[\*u][\*]
means letter*
or letteru
followed by letter*
, but that doesn't seem to be what do you want to block... - There's a section for examining past edits in the abuse filter, you can use it to test your regular expressions and see if they match or not Ciencia Al Poder (talk) 17:07, 21 February 2016 (UTC)
- Thank you. And what should I replace those with? 188.24.79.140 (talk) 20:20, 21 February 2016 (UTC)
- For example the AND operator & should be replaced by the OR operator |. Then I would put brackets around those expressions, which are connected by OR so that the evaluation order is: First the ones with OR and after that the conditions with AND.
- See Extension:AbuseFilter and especially Extension:AbuseFilter/Rules_format for more information! 87.123.57.58 (talk) 00:31, 22 February 2016 (UTC)
- How about now: http://pastebin.com/McXU12FW? I didn't quite catch your second part. I did read those articles, but I am very bad at regex. As a matter of fact, I wasn't the one who wrote that filter. 188.24.79.140 (talk) 22:23, 22 February 2016 (UTC)
- Better try with this http://pastebin.com/cKLsDCFB Ciencia Al Poder (talk) 10:49, 23 February 2016 (UTC)
- Great, thank you! 188.24.79.140 (talk) 17:04, 23 February 2016 (UTC)
Missing keys with inner join result
Here is my setup:
Mediawiki 1.25.2
PHP 5.6.12
MYSQL 5.6.26
Consider the following simple db query
<code>
$tables = array('t1'=>'page','t2'=>'page');
$conds = 'page_id =1 ';
$join_conds = array('t2' =>array('INNER JOIN','t1.page_id=t2.page_id');
$dbr = wfGetDB(DB_SLAVE);
$res = $dbr -> select($tables,'*',$conds,__METHOD__,null,$join_conds);
$row = $res->fetchRow();
$row['t1.page_id']; //oops, index does not exist ?? wth ??
</code>
So why doesn't the key t1.page_id exist ? Mfort123 (talk) 19:41, 21 February 2016 (UTC)
- column names won't contain dots, specially if you specify the select fields as "*". You should change the "*" with specific field names and alias, so you can refer to them from the results Ciencia Al Poder (talk) 11:06, 23 February 2016 (UTC)
Get the link to wiki for the ship by given IMO number
Hi all,
It there any api to be called to get result link as the title? I need to call from web api to MediaWiki API to get this ship link to wiki page. Thanks.
For example:
Given IMO Number 6419057
I need to call API to get the link https://en.wikipedia.org/wiki/MV_Porto to the ship with this ship IMO number.
given 6419057 ==> get the link to ship page. Stanleyqian (talk) 03:23, 22 February 2016 (UTC)
- I did some research on the api document.
- This is API sandbox link.
- https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=info&titles=IMO+6419057&formatversion=2&inprop=url&intestactions=edit%7Cdelete%7Crollback
- Actually can formulate url with given IMO number as follow:
- https://en.wikipedia.org/wiki/IMO_6419057 Stanleyqian (talk) 12:19, 22 February 2016 (UTC)
Need to get all imo numbers from calling mediaWiki API
Hi All,
There are huge IMO numbers collected on https://commons.wikimedia.org/wiki/Category:Ships_by_IMO_number
How can I call MediaWiki API to get all of these imo numbers?? Thanks. Stanleyqian (talk) 04:15, 22 February 2016 (UTC)
- Here's the URL: http://pastebin.com/raw/qQmiRaNk
- On pastebin because of spam filters 110.148.122.122 (talk) 04:57, 22 February 2016 (UTC)
- Thanks for your help.
- The query you build:
- /w/api.php?action=query&format=json&list=categorymembers&cmtitle=Category%3AShips_by_IMO_number&cmprop=title&cmtype=subcat&cmlimit=500
- Only returned max 500 IMO numbers but I need to get all of them that displayed at https://commons.wikimedia.org/wiki/Category:Ships_by_IMO_number
- How can I get next 500?
- Appreciate!!! Stanleyqian (talk) 05:31, 22 February 2016 (UTC)
- API:Query#Continuing queries 110.148.122.122 (talk) 05:52, 22 February 2016 (UTC)
- Appreciate your help.
- Furthermore,
- https://commons.wikimedia.org/wiki/Special:ApiSandbox#action=query&format=json&list=categorymembers&meta=&indexpageids=1&cmtitle=Category%3AShips_by_IMO_number&cmprop=title%7Cids%7Csortkey%7Csortkeyprefix%7Ctype%7Ctimestamp&cmlimit=496&cmsort=sortkey&cmstartsortkeyprefix=6419057&cmendsortkeyprefix=6419058
- I built a api query as:
- /w/api.php?action=query&format=json&list=categorymembers&meta=&indexpageids=1&cmtitle=Category%3AShips_by_IMO_number&cmprop=title%7Cids%7Csortkey%7Csortkeyprefix%7Ctype%7Ctimestamp&cmlimit=496&cmsort=sortkey&cmstartsortkeyprefix=6419057&cmendsortkeyprefix=6419058
- Result:
{ "batchcomplete": "", "query": { "categorymembers": [ { "pageid": 5729610, "ns": 14, "title": "Category:IMO 6419057", "sortkey": "363431393035370a494d4f2036343139303537", "sortkeyprefix": "6419057", "type": "subcat", "timestamp": "2009-07-29T12:07:44Z" } ] } }
- However the pageid 5729610 is not what I need, I expect it to be 20166589 so I can call:
- https://en.wikipedia.org/w/api.php?action=query&prop=info&pageids=20166589&inprop=url
- And then get "fullurl" link https://en.wikipedia.org/wiki/MV_Porto
- Could you please help to further revise my query? Thanks. Stanleyqian (talk) 07:02, 22 February 2016 (UTC)
- That is the page ID of the category, which is what
Category:Ships by IMO number
contains. There is no relation between this category and the page you're looking for, in fact they're not even on the same site. - However, since Wikipedia has redirects set up for the IMO numbers, so you can simply use the category name (without the namespace) as the page name. E.g.: https://en.wikipedia.org/wiki/IMO_6419057.
- If there is any missing redirects, you could instead perform a search for pages containing that number, and the first result should be the page you're looking for. E.g.: https://en.wikipedia.org/wiki/Special:ApiSandbox#action=opensearch&format=json&search=IMO_6419057&limit=1&redirects=resolve 121.219.52.179 (talk) 05:52, 24 February 2016 (UTC)
Change index to Special:All_Pages
Hello,
How do I change index to display the Special All_Pages pages?
I'd like users to see this page when they reach the base url.
Thanks 180.94.175.94 (talk) 06:18, 22 February 2016 (UTC)
- Edit MediaWiki:Mainpage on your wiki. This page contains the title of the "index" page on your wiki. If you put Special:AllPages there, it will be used as the index page. Ciencia Al Poder (talk) 11:03, 23 February 2016 (UTC)
using php session superglobals to pass variables
Hello,
i am trying to implement a report button for anonymous users and user without editing privileges so that they can still report missing links on a page.
i tried to use $_SESSION superglobals to pass variables regarding page urls and page titles from erudite.skin.php to a missinglinks.php that writes the variables in a text file. The problem is that session_start() at the very top of missinglinks.php can't find an active session and thus creates a new PHPSESSION and doesnt' read previous $_SESSION variables.
Using firebug, i noticed that visiting the site creates user session cookies but not PHPSESSID cookie. PHPSESSID is created only when session_start() inside missinklinks.php is launched, so it doesn't read any previous $_SESSION variables.
I tried to put session_start() at the very top of erudite.skin.php but it doesn't seem to work. Can anyone help me with where should i put session_start() so that a PHPSESSION cookie is created when a user visit a page and it can be retrieved by missinglinks.php?
My configuration:
MediaWiki 1.26.2
PHP 5.3.29 (cgi-fcgi)
MySQL 5.5.44-37.3-log
ICU 3.6
i am on a shared host server.
i am using Erudite skin.
in Erudite.skin.php i wrote
session_start();
at the very beginning, before
$this->html( 'headelement' ); //i tried other locations too but noone seems to work
and then inside the content part i wrote:
<div id="reportButton"><?php
$_SESSION['url'] = '/sitename.info'.$_SERVER['REQUEST_URI'];
$_SESSION['pName'] = $pageName; //$pageName contains the name of the page
echo '<a href="/missinglinks/missinglinks.php?htmlspecialchars(SID)" onclick="return confirm(\'Are you sure you want to report a missing link on this page?\')" >report missing link</a>'?></div><?php
}?>
and in missinglinks.php:
<?php
session_start();
$title = $_SESSION['pName'];
$url = $_SESSION['url'];
$fp = fopen('missinglinks.txt', 'a');
fwrite($fp, "$title\n");
fclose($fp);
header( "Location: $url" );
?>
i am quite lost by now, so i kindly thank anyone who may give me useful advices. 87.2.48.120 (talk) 11:18, 22 February 2016 (UTC)
- p.s.
- i noticed i messed up a little in the href line, it should be
- ?><a href="/missinglinks/missinglinks.php?<?php echo htmlspecialchars(SID);?>" onclick="return confirm(\'Are you sure you want to report a missing link on this page?\')" >report missing link</a>
- but this is not related to the topic problem. 87.2.48.120 (talk) 12:55, 22 February 2016 (UTC)
What would cause User->setPassword() to fail when creating a new user?
I'm using the LDAP authentication plugin. From the LDAP server log, we can tell that the authentication is working. However, for some reason, when a new user logs in for the first time (that is, the user is not in the MediaWiki database), we get the following error:
[1bef854e] /balloon/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page PasswordError from line 2425 of mediawikipath/includes/User.php: There was either an authentication database error or you are not allowed to update your external account.
Backtrace:
#0 mediawikipath/includes/specials/SpecialUserlogin.php(670): User->setPassword(string)
#1 mediawikipath/includes/specials/SpecialUserlogin.php(942): LoginForm->initUser(User, boolean)
#2 mediawikipath/includes/specials/SpecialUserlogin.php(769): LoginForm->attemptAutoCreate(User)
#3 mediawikipath/includes/specials/SpecialUserlogin.php(958): LoginForm->authenticateUserData()
#4 mediawikipath/includes/specials/SpecialUserlogin.php(341): LoginForm->processLogin()
#5 mediawikipath/includes/specialpage/SpecialPage.php(384): LoginForm->execute(NULL)
#6 mediawikipath/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)
#7 mediawikipath/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)
#8 mediawikipath/includes/MediaWiki.php(714): MediaWiki->performRequest()
#9 mediawikipath/includes/MediaWiki.php(508): MediaWiki->main()
#10 mediawikipath/index.php(41): MediaWiki->run()
#11 {main}
In the MySQL log, I can see where the INSERT into the USER table happens, and if I do that SQL command manually it works. However, when someone is trying to login, the USER does NOT exist afterwards, so it appears that while the INSERT INTO the user table works, a subsequent step fails and the INSERT is rollbacked.
This was all working previously, but I'm not exactly sure when it became broken, as the users didn't report it immediately.
Users that already exist in the database can authenticate (against LDAP) just fine.
Can anyone shed some light on what might be going wrong here? Mvanhorn (talk) 14:31, 22 February 2016 (UTC)
- Good analysis so far!
- Have a look at the source code to see, how the password should be updated.
- Obviously the call to $wgAuth->setPassword( $this, $str ) does not succeed. 87.123.39.116 (talk) 15:07, 22 February 2016 (UTC)
- Well, the relevant lines in includes/User.php are
- if ( !$wgAuth->setPassword( $this, $str ) ) {
- throw new PasswordError( wfMessage( 'externaldberror' )->text() );
- }
- but I don't know enough about the underlying code to know why wgAuth->setPassword() would fail (where is that declared, anyway?), nor how I could modify the call to PasswordError so that something more meaningful is returned (such as, for example, what the actual problem was, or the return code from setPassword(), etc.). Mvanhorn (talk) 16:05, 22 February 2016 (UTC)
- I think I have determined that this isn't a general mediawiki issue, and am moving this to the Talk page for the LDAP Authentication Plugin. Mvanhorn (talk) 17:08, 22 February 2016 (UTC)
- Hi. Did you fix this issue? I'm having this problem right now. It was working fine last week. 87.217.123.116 (talk) 11:38, 30 January 2017 (UTC)
SVG conversion comes out blank
I'm using MediaWiki 1.25.3 on SUSE Linux Enterprise Server 11.3, with Apache 2.2.12 and PHP 5.3.17.
I've chosen to use librsvg to render SVGs. When I am on the upload page and choose an SVG file, it shows up in the little preview canvas on the right. However, after uploading, the previews are all the proper aspect ratio but completely transparent.
librsvg and rsvg-convert are version 2.26.0.
$wgFileExtensions[] = 'svg'; $wgAllowTitlesInSVG = true; $wgSVGConverter = 'rsvg';
These are the latest versions of everything (except MediaWiki) that are available for SUSE Linux Enterprise Server 11.3, and upgrading the OS is not an option for me, though I could compile my own packages if absolutely necessary.
This is an internal private wiki so I can't provide a link to it.
Any suggestions or things for me to try to find out why my SVG->PNG process is producing blank images?
Thanks! TyrelHa (talk) 16:33, 22 February 2016 (UTC)
- If the rasterized SVG version of the image gets created, then it seems to be a bug with the SVG converter.
- You can set up a debug log as explained in Manual:How to debug to see the exact command being issued for the conversion, so you can try it on your own from the command line. To trigger the conversion again you may need to delete the thumbnail file or put the image on a page specifying a different size.
- Also, try with a simple SVG image, in case the image is too complex or uses features not supported by rsvg. If using inkscape to create the SVG be sure to save it as "plain SVG". Ciencia Al Poder (talk) 11:00, 23 February 2016 (UTC)
How to get all subcategories for given container category
Hi,
https://en.wikipedia.org/wiki/Category:Ships_by_type
I need to build API query to get all subcategories and its url for the given category 'Ships by type'. Thanks. Stanleyqian (talk) 01:40, 23 February 2016 (UTC)
Redirect loop in page with title contain plus sign
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 everybody
I have trouble with my wiki. Since update in version 1.26.2, page with title contain plus sign causes browser error "This webpage has a redirect loop ERR_TOO_MANY_REDIRECTS"
I have already run script maintenance/update.php
Can every one help me please ?
Thanks a lot 82.236.252.19 (talk) 15:44, 23 February 2016 (UTC)
- It depends on your setup:
- A + sign in the page URL is expected to be treated literally - no encoding or so is needed. It is a valid sign.
- A + sign in the query string however should be treated as a space. So if the page name is in the query string, it does need encoding or you won't be able to reach the page.
- Are you using short URLs with a recommended setup? This setup can be found here: Manual:Short_URL/Apache! 87.123.10.144 (talk) 17:49, 23 February 2016 (UTC)
- After lot of search, i cannot resolved the problem.
- So I put $wgUsePathInfo = false; in my config file and all is alright.. 82.236.252.19 (talk) 14:51, 24 February 2016 (UTC)
- This issue also affected me after upgrading from 1.23 to 1.26.3. The problem is outlined in this post: https://phabricator.wikimedia.org/T127734. It seems to be specific to those using IIS and short URL redirects. Manually reverting this patch fixed it: https://phabricator.wikimedia.org/rMW155d555b83eca6403e07d2094b074a8ed2f301ae#39a67c51 Wimp user (talk) 20:24, 18 July 2016 (UTC)
VisualEditor load syntaxhighlight tag when edit
Hello,
when I edit a page with VisualEditor, instead of the editor loads the original text, it shows "trash", like
"<syntaxhighlight lang="php"> echo("qualquer coisa"); </syntaxhighlight>" or codes between syntaxhighlight tags.
I've already disabled the Syntaxhighlight extension but the problem continues. Does anybody know how can I resolve this?
I'm using the version 1.26.2 of Mediawiki.
Thanks Crismagnabosco (talk) 15:45, 23 February 2016 (UTC)
Thumb Images without Hyperlink to File:XY page
- Hi,
- I'd like to have in my private Wiki (V. 1.15.1) a NON-LINK with the
thumb
Format/Parameter to the Image. - ([[File:XXX.jpg|thumb|500px|alt=A|B]] without linking to the PageImage site.)
- so instead example:
<a href="/wiki/XXX.jpg" class="image" title="B"><img alt="A" src="/wiki/images/thumb/6/23/XXX.jpg/500px-XXX.jpg" class="thumbimage" border="0" width="500" height="334"></a>- only the img tag:
- <img alt="A" title="B" src="/wiki/images/thumb/6/23/XXX.jpg/500px-XXX.jpg" class="thumbimage" border="0" width="500" height="334">
- I tried to modify parser.php/linker.php but without success.
- Thanks a lot
- Ivan 2A02:AA16:9100:2D80:E1EB:D264:50DB:BE5D (talk) 17:47, 23 February 2016 (UTC)
- Please upgrade your ancient installation, for your own safety and security: Manual:Upgrading. Malyacko (talk) 11:09, 24 February 2016 (UTC)
- try [[File:XXX.jpg|thumb|500px|alt=A|link=|B]] Ciencia Al Poder (talk) 10:26, 24 February 2016 (UTC)
- @Ciencia Al Poder
- I tried it, but with your idea unfortunately it doesn't work.
- ~ Ivan 2A02:AA16:9100:2D80:18DD:11AA:9E1A:CC63 (talk) 03:19, 26 February 2016 (UTC)
- 1.15 hasn't been supported for over 5 years, so it's not unlikely that most things will not work for you. 121.219.52.179 (talk) 10:03, 26 February 2016 (UTC)
- I know it's an old version. But can I change somewhere some code snippet to disable the link in thumb modus?
- ~Ivan 2A02:AA16:9100:2D80:F855:2C32:6403:60D5 (talk) 22:11, 27 February 2016 (UTC)
Upload file/images broke when updating to 1.26
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 get the following error when attempting to upload an image after updating MW software from 1.24 to 1.26:
[c30b18f4] /index.php?title=Special%3AUpload UploadStashFileException from line 266 of D:\inetpub\wwwroot\includes\upload\UploadStash.php: Error storing file in 'C:\Temp\php226E.tmp': Directory "mwstore://local-backend/local-temp" is read-only. Backtrace: #0 D:\inetpub\wwwroot\includes\upload\UploadBase.php(921): UploadStash->stashFile(string, string) #1 D:\inetpub\wwwroot\includes\upload\UploadBase.php(934): UploadBase->stashFile() #2 D:\inetpub\wwwroot\includes\upload\UploadBase.php(943): UploadBase->stashFileGetKey() #3 D:\inetpub\wwwroot\includes\specials\SpecialUpload.php(359): UploadBase->stashSession() #4 D:\inetpub\wwwroot\includes\specials\SpecialUpload.php(460): SpecialUpload->showUploadWarning(array) #5 D:\inetpub\wwwroot\includes\specials\SpecialUpload.php(197): SpecialUpload->processUpload() #6 D:\inetpub\wwwroot\includes\specialpage\SpecialPage.php(384): SpecialUpload->execute(NULL) #7 D:\inetpub\wwwroot\includes\specialpage\SpecialPageFactory.php(553): SpecialPage->run(NULL) #8 D:\inetpub\wwwroot\includes\MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext) #9 D:\inetpub\wwwroot\includes\MediaWiki.php(714): MediaWiki->performRequest() #10 D:\inetpub\wwwroot\includes\MediaWiki.php(508): MediaWiki->main() #11 D:\inetpub\wwwroot\index.php(41): MediaWiki->run() #12 {main}
I am using Windows 2008 R2 Service Pack 1 with the following:
MediaWiki | PHP | MySQL | Lua |
---|---|---|---|
1.26.2 | 5.6.15 (cgi-fcgi) | 5.7.9-log | 5.14 |
Uploads worked fine prior to update.
Any help will be greatly appreciated. I'm really hoping it's something I can add or delete in local settings, although I tried hashing out almost everything. Wseeman (talk) 23:21, 23 February 2016 (UTC)
- This most likely is not a problem in LocalSettings.php. Most likely you do not have to change this file in order to fix thi issue.
- > Directory "mwstore://local-backend/local-temp" is read-only.
- Please check the images folder, most likely this is the folder D:\inetpub\wwwroot\images. Permissions there somehow are incorrect. At least write permissions for the subfolder temp\ are missing. Depending on what was overwritten during the update, other subfolders of images\ (e.g. tmp\ or deleted\) might be affected as well. Their permission then needs to be fixed as well! 87.123.10.144 (talk) 01:55, 24 February 2016 (UTC)
- According to the error message, the directory that's not writable seems to be C:\Temp\ Ciencia Al Poder (talk) 10:23, 24 February 2016 (UTC)
- Was late yesterday... 87.123.50.188 (talk) 13:10, 24 February 2016 (UTC)
Issue with Search Autocomplete in Cutom Skin
In my Custom Skin I have MediaWIki's search field in my navigation bar.
Now this navigation bar uses jQuery to stick to the top of the Browser window when you scroll down the page. This is so my visitors have easy access to the site's navigation and search field even if the they scroll down a wiki page.
However, the search suggestion results don't move along with this 'sticky' navigation bar. (See pic)
This happens because the suggestions element is appended at the end of the HTML document, right before the closing </body> tag.
Is it possible to move this auto-appended code to right after the search input box? Or are there any extensions that replaces MediaWiki's search bar with one that does append it's autocomplete after the search input box? Swennet (talk) 00:43, 24 February 2016 (UTC)
- I have two ideas on this issue:
- If I got you right, then the container, which now is displayed too low, should always start at the same position inside the viewport. Wouldn't it help to set its position" to "fixed" with CSS?
- As for moving the place, in which the container is inserted inside the HTML code, I think this should be possible with just a few lines of jQuery JavaScript. jQuery offers the functions .appendTo() nd .preprendTo(), which allow you to move a container to a different place. This script would always be executed, if you put it into a/the ResourceLoader module, which your skin is/may be using.
- For adjusting the place inside the HTML code, there may theoretically be a hook, which might allow you to modify the place before MediaWiki inserts the container at the "wrong" place. However, I don't know that. 87.123.10.144 (talk) 01:47, 24 February 2016 (UTC)
- @87.123.10.144
- Thanks for the input! I managed to get it working how I want by editing some core code. More specifically, I did the following:
- in "/mediawiki/resources/src/jquery/jquery.suggestions.js"
- First I changed where the Search Results form is appended into the document. Search for:
.appendTo( $( 'body' ) );
And replace body with the class you want the suggestions element to be INSIDE of.
.appendTo( $( '.navigationBar' ) );
- After that I ran into another issue. jQuery was adding additional inline CSS styles to the suggestions box, giving it an absolute positioning on the page, which made scrolling the page move around the element.
- What I did was simply editing the lines where that happened and giving each of the inline styles an 'auto' value.
- Search for and edit the values to your needs.
newCss.
I'm unsure why MediaWiki makes everything so hard when it doesn't need to be... Makes customizing it a real pain in the ass. I guess I shouldn't complain since they've done a great job building MediaWiki, but man, is it frustrating sometimes! Swennet (talk) 16:53, 24 February 2016 (UTC)
- That will break all other suggestions used throughout mediawiki, such as the search page, and various special pages. 121.219.52.179 (talk) 05:52, 25 February 2016 (UTC)
- Ouch.. Hadn't thought of that. I'll have to add a check to see which search form is used... I'll report back when I find a soluton. Swennet (talk) 14:47, 25 February 2016 (UTC)
- So this is quite a quick and dirty fix.
- Again, in "/mediawiki/resources/src/jquery/jquery.suggestions.js" I added an If / Else statement to determine if the Search page was being shown or not, and then created a variable where the containing Suggestions element is decided.
if ( $( "#mw-search-top-table" ).length ) { var searchLocation = '#mw-search-top-table'; } else { var searchLocation = '.navigationBar'; }
- Then I simply edited the .appendTo function to include this variable.
.appendTo( $( searchLocation ) );
Lastly, you want to disable the Search field in the navigation bar for that page. I did this by adding the following check to my Template file:
if ( substr($this->getSkin()->getTitle(), 0, strlen('Special:Search')) !== 'Special:Search' ) { // Checks if page title is NOT Special:Search // Display Search in navgationBar }
Swennet (talk) 20:33, 3 March 2016 (UTC)
- Editing Core files is evil. Don't do it! You should better do that correctly:
- Add a JavaScript file to your skin, in which you move the container accordingly. Then integrate that JavaScript file into the ResourceLoader module of your skin.
- For an example, see the Vector skin, which defines some scripts in the ResourceLoader section of skin.json. 87.123.50.188 (talk) 18:30, 24 February 2016 (UTC)
- I tried this as my first option, but the issue is that MediaWiki keeps adding CSS in the suggestions element on every 'action' like clicking, focusing etc. This makes it especially tricky to set it's position and honestly, it just feels like a bad solution to keep overwriting MediaWiki's odd behavior. My MediaWiki installation is already highly customized, so I have just accepted that I'll have to edit the core files to achieve my goals. Swennet (talk) 14:52, 25 February 2016 (UTC)
[RESOLVED] Modules not being loaded on article 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.
Hello, I made a Template using parsers and the template Countdown-ymd from Wikipedia and the end results works fine, but only on the template page.
When transcluding the template to an article, the Countdown-ymd doesn't seem to work at all (blank spaces are left behind).
What I've noticed is that the Modules that are used for Countdown-ymd aren't being loaded on the article while they are on the template page (when comparing "Templates used on this page").
I don't have much (any) experience with Lua, so I'm not sure of the root cause. The template is 5,000 bytes, so I don't think the size is causing the problem at least.
MediaWiki 1.2.6 ; PHP 5.4.45 ; Lua 5.1.5 65.92.160.3 (talk) 03:39, 24 February 2016 (UTC)
- You've wrapped the invoke in Template:Countdown-ymd with Template:Main other, the purpose of which is to show different content in the main space (in this case, nothing). 121.219.52.179 (talk) 05:38, 24 February 2016 (UTC)
- Thanks a lot, the problem is now fixed! 65.92.160.3 (talk) 00:00, 25 February 2016 (UTC)
Hello! I can't register because of a foolish capcha - doesn't perceive that I enter.
Hello! I can't register because of a foolish capcha - doesn't perceive that I enter. 213.247.153.172 (talk) 09:48, 24 February 2016 (UTC)
- You may say thanks to the spammers who force us to use that kind of setup... 87.123.50.188 (talk) 13:11, 24 February 2016 (UTC)
create an account
I need help regarding a seperation of accounts from my husband 70.138.216.25 (talk) 13:49, 24 February 2016 (UTC)
- You mean the two of you have one account and you want to have the posts split to two different accounts?
- I think there is no way to do that. There are extensions, whichallow to transfer all posts of one account to another, effectively renaming the account. Also MediaWiki does have a maintenance script called reassignEdits.php, which allows to change the user account, which basically allows the same. However, also this script merges all references from one user or from one IP address to another user.
- The only way I know, is to manually modify the database. For each revision (including archived revisions), that was done with the according account (rev_user_id=xxx and ar_user_id=xxx), the user id and the user name would have to be adjusted, depending on who did the according edit. Depending on what the user account has been used for, additional entries can be present in the database tables filearchive, image, oldimage, logging and user_groups, just to name the important ones.
- At least for a Wikimedia Foundation wiki, I am pretty sure that no one will manually change something like this. If you are in fact speaking about a private wiki and if there only are a few posts to check, then the administrator might be so kind to do that. 87.123.50.188 (talk) 13:58, 24 February 2016 (UTC)
Problem logging in
While trying to log in under another account I was presented with this error message:
Login error
There was an unexpected error logging in. Please try again. If the problem persists, it may be because you have cookies disabled, and you should check that they are enabled in your browser settings.
I went thru all settings in Firefox, such as cookies; made allowances for receiving cookies from various Mozilla pages; allowed popups; deleted all Mozilla cookies; requested a new temporary password; etc.
I created a new account and was able to login, so my firewall is not to blame. Does anyone have any idea why this sort of thing happens? Is this a Firefox thing? Is some other editor blocking me for some reason? My other login name is Torturella R.bin (talk) 14:53, 24 February 2016 (UTC)
- If the error is logging-in in a WMF wiki like wikipedia, etc, you should report a bug so this can be looked into. Ciencia Al Poder (talk) 10:37, 25 February 2016 (UTC)
Please patch my extension
I have created a new very useful extension.
But it has a serious bug: It works only with ancient versions of MediaWiki.
Please somebody patch my extension to make it functional with current MediaWiki. Notify me porton@narod.ru. VictorPorton (talk) 21:31, 24 February 2016 (UTC)
- https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/BaseHooks VictorPorton (talk) 21:32, 24 February 2016 (UTC)
Colored Main page
Est ce possible de coloriser le fond de la main page
http://vegetalcosme.livehost.fr/index.php?title=Accueil Zazoult49 (talk) 21:58, 24 February 2016 (UTC)
How do I make a easy dropdown menu as a user not admin?
How do I make one easy dropdown menu as a user not admin? 98.218.152.80 (talk) 02:48, 25 February 2016 (UTC)
- Where do you want to make a drop down? And what for? 87.123.50.188 (talk) 03:06, 25 February 2016 (UTC)
MediaWiki 1.26 internal error MediaWiki 1.26 requires at least PHP version 5.3.3, you are using PHP 5.2.17.
RESOLVED | |
MediaWiki 1.26 requires at least PHP version 5.3.3, but your hosting provider is using PHP 5.2.17 which is older. You should ask your host to upgrade PHP or move to a new hosting provider. |
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 using Cpanel Accelerate. first moving the file to my location in server and then load the mediawiki location URL.
Error message is:
MediaWiki 1.26 internal error
MediaWiki 1.26 requires at least PHP version 5.3.3, you are using PHP 5.2.17.
But PHP version in my server is
PHP Version | 5.4.24 |
its working fine in local wamp server. I don't know how to solve this issue.
i need help. i'm new to media wiki. Thanks advance. 117.193.224.47 (talk) 06:49, 25 February 2016 (UTC)
- Which exact MediaWiki version is this about?
- There are a bunch of similar reports which have all been sorted out (as far as I understand it), please check the recommendations there: Project:Support desk/Flow/2015/05#c-2A01:E35:2E07:F430:18AC:C944:1808:D859-2015-05-26T06:43:00.000Z-Message:_MediaWiki_1.25_requires_at_least_PHP_version_5.3.3,_you_are_using_PHP_5, Project:Support desk/Flow/2014/10#h-[RESOLVED]_It_says_I_need_php_v5.3.2_but_I_have_5.3.27_and_it_reports_I_have_5.2-2014-10-02T13:42:00.000Z, https://phabricator.wikimedia.org/T102094. AKlapper (WMF) (talk) 10:12, 25 February 2016 (UTC)
- This error message is self explanatory, MediaWiki 1.26 requires at least PHP version 5.3.3, but your hosting provider is using PHP 5.2.17 which is older. You should ask your host to upgrade PHP or move to a new hosting provider. Ciencia Al Poder (talk) 10:32, 25 February 2016 (UTC)
Problem Loading Css
Sorry for my bad english.I'm having so many problems with my wiki.I've paste all the staff i need in MediaWiki:Common.css and in MediaWiki:Common.js but it seems that the Wiki has not changed.What i'm supposed to do?I've already done the cache reload,but nothing has changed. 95.226.21.211 (talk) 12:58, 25 February 2016 (UTC)
- There may be quite a lot of possible causes.... edits on MediaWiki namespace ignored, custom CSS/JS ignored, cache problem, syntax error on those files... a link to your wiki may help (if it's public, of course) Ciencia Al Poder (talk) 10:33, 26 February 2016 (UTC)
MediaWiki:Centralnotice-template-stewvote
Why I'm seeing alien translation of the m:MediaWiki:Centralnotice-template-stewvote if I have be-tarask interface enabled both on WikiData and Meta?
Installed software
Product Version
MediaWiki 1.27.0-wmf.14 (f6c052b)
15:09, 24 February 2016
HHVM 3.6.5 (srv)
MariaDB 10.0.16-MariaDB-log
ICU 4.8.1.1
Elasticsearch 1.7.1
LuaSandbox 2.0.8
Lua 5.1.5 Taravyvan Adijene (talk) 13:01, 25 February 2016 (UTC)
Preformatted text wraps, how to disable again?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've just updated from mediawiki 1.2.3 to 1.2.6.
In v1.2.3, lines starting with a space generated a preformatted text-box where the text did *not* line wrap.
Now in v1.2.6, long lines of text in those text-boxes are wrapped.
This is not what I want.
1) I suggest that you revert your change so that space-preformatted text once again become preformatted without wrapping.
2) I guess however that you won't revert the change, so then my question is:
How do I configure mediawiki 1.2.6 to use the old style wrapping?
/Elof 176.124.224.31 (talk) 14:23, 25 February 2016 (UTC)
- My guess is that pre elements get some kind of fixed width and maybe an according value for its overflow attribute.
- You can overwrite CSS styles in the wiki page MediaWiki:Common.css in your wiki.
- E.g. something like
pre {
overflow: visible;
}
- (untested) might bring back the old behaviour.
- Even, if it's not exactly this one line of styling, I think you get the idea... 87.123.26.223 (talk) 17:06, 25 February 2016 (UTC)
- Thanks for those pointers!
- In http://mywiki.foo.bar/index.php/MediaWiki:Common.css I added:
/* Change the "space pre formatted style" to *not* use pre-wrap */
@media screen {
pre {
white-space: pre;
}
}
- Solved. :) 176.124.224.31 (talk) 10:38, 26 February 2016 (UTC)
changing the form field label
Hi! How can I change the labels for the fields of the default registration form? I would like to change the "username" label and the "Real Name (optional)" label. Also if possible I would like to make the latter field not optional.
I am using version 1.25.5 - the latest version wouldn't install on my server. Home page of my wiki:
www.talk.saltshaker.us/SaveTheWorld.
Registration form: http://talk.saltshaker.us/savetheworld/index.php/Special:UserLogin/signup
I had imagined that address would lead to a file which I merely needed to alter the text in. But I found no such file. I found files at almost like that address, .js and .css, but I found no text in them like what I seek to change. DaveLeach (talk) 16:53, 25 February 2016 (UTC)
- View the registration page and add to the URL &uselang=qqx. That will show you the name of the different labels. Once you know the name of the label, which you want to change, you can edit the according text inside the MediaWiki namespace of your wiki.
- For example, when the label is shown as "(mytalk)", go to the wiki page MediaWiki:mytalk to edit the text for this label.
- You can edit the text in the different languages by adding the language code to the URL.
- E.g. to edit the German (de) text of the former label go to MediaWiki:mytalk/de. 87.123.26.223 (talk) 17:53, 25 February 2016 (UTC)
- So cool! Magic names show up with that &uselang=qqx tag, giving me more verbiage to search for!
- Unfortunately I’m still too dumb to know what to do with it. I searched for all the new terms and still couldn’t find anything to edit. I have been assuming that to edit the label “Real name (Optional)” field I would have to find somewhere in the software where those words are found, and change those words. But I don’t find any file anywhere by those names; (I have been doing my searching on the unzipped installation files on my computer); those names bring no search returns on my online wiki; and where those search words turn up an occasional line within a wikimedia file, they are not part of the phrases I need to edit. The additional search terms produced by the &uselang=qqx tag brought me no closer to a solution.
- For example, using the &uselang=qqx tag turns the “Real name (Optional)” field into (createacct-realname)
- You wrote, “For example, when the label is shown as ‘(mytalk)’, go to the wiki page MediaWiki:mytalk to edit the text for ... his label.”
- Applying your instructions, to edit “createacct-realname” I should be able to “go to the wiki page MediaWiki:createacct” to edit the text for that label. But I find nothing resembling a “wiki page” which has “createacct” as any part of its name, either by searching my installation files or my wiki’s online search box.
- A search of the “SRC” folder, which contains all the wikimedia files, for “createacct”, produces only 4 files. But in none of those files are either of the labels I am looking for. Nor does the word appear to have any connection with the field whose label I want to edit. The 4 files are:
- mediawiki.special.userlogin.common.css (this contains the line: .mw-createacct-captcha-container)
- mediawiki.special.userlogin.common.js (this contains the lines: helpMsg = mw.config.get( 'wgCreateacctImgcaptchaHelp' ~ ~ helpHtml = '<small class="mw-createacct-captcha-assisted">' + helpMsg + '</small>' ~ ~ '<label for="wpCaptchaWord">' + mw.message( 'createacct-captcha' ).escaped() + '</label>' ~ ~ '<div class="mw-createacct-captcha-container">', ~ ~ '<div class="mw-createacct-captcha-and-reload" />' ~ ~ '<input id="wpCaptchaWord" class="mw-ui-input" name="wpCaptchaWord" type="text" placeholder="' + ~ ~ mw.message( 'createacct-imgcaptcha-ph' ).escaped() + ~ ~ '" tabindex="' + tabIndex + '" autocapitalize="off" autocorrect="off">' ~ ~ helpHtml ~ ~ .prependTo( $content.find( '.mw-createacct-captcha-and-reload' ) )
- mediawiki.special.userlogin.signup.js (this contains the lines: requiredText = mw.message( 'createacct-emailrequired' ).text(), ~ ~ $createByMailCheckbox = $( '#wpCreateaccountMail' ), ~ ~ $statusContainer = $( '#mw-createacct-status-area' ) ~ ~ $( '<strong>' ).text( mw.message( 'createacct-error' ).text() )
- mediawiki.special.userlogin.signup.css (this contains the lines: div.mw-createacct-benefits-container { ~ ~ div.mw-createacct-benefits-container h2 { DaveLeach (talk) 23:22, 25 February 2016 (UTC)
- You should edit the wiki pages inside your wiki. Since the labels are called userlogin-yourname and createacct-realname, you want to edit the wiki pages with the page names MediaWiki:userlogin-yourname and MediaWiki:createacct-realname. For example: http://talk.saltshaker.us/savetheworld/index.php/MediaWiki:Createacct-realname 87.123.26.223 (talk) 00:31, 26 February 2016 (UTC)
- Doesn't that path just create a wiki article, which has no effect on the labels of the registration form? My son found the en-json file under "languages/i18N/" which has all the labels anyone could ever want to find. When I searched for it, my computer searcher wasn't searching the json files and I didn't realize it. So I guess my problem is solved, though now I am curious how the path you propose could possibly work. When I follow your link it is not to any text I can edit; it is to a blank page. DaveLeach (talk) 05:06, 26 February 2016 (UTC)
- I should acknowledge that the cool tag you showed me enabled me, as I went through the en.json file, to know exactly which field label I was affecting. Thanks! DaveLeach (talk) 05:40, 26 February 2016 (UTC)
- Do not edit core files, they will be overwritten when you update. Editing those pages does change the interface, otherwise people that know how it works wouldn't be telling you to do it. If you want to search all the message pages, use
Special:AllMessages
. 121.219.52.179 (talk) 09:58, 26 February 2016 (UTC) - You should just try, what I told you! Log in to the wiki with your admin account, go to http://talk.saltshaker.us/savetheworld/index.php/MediaWiki:Createacct-realname, which currently displays the text "Real name (optional) ". On that page, hit the "Edit" tab and change the text to whatever you want it to be. Log out and then go to the registration page again. Voilà! 87.123.2.100 (talk) 13:54, 26 February 2016 (UTC)
Incorporate spell/grammar check and MediaWiki into my Apache office4 .
Writing a book on Apache Office 4-how do I incorporate spell/grammar check and have a book on my website that needs to be put into a e-book format. Can you help? Gene Gene Black (talk) 17:53, 25 February 2016 (UTC)
I'm a visually impared user. I can't login. Help!
I'm a visually impaired user. I can't login. Help!
Sincerely, 2602:30A:C0FE:A0F0:6819:369F:74C8:136 (talk) 18:14, 25 February 2016 (UTC)
- Wikimedia Foundation takes care that MediaWiki does not pose high barriers to impaired users. Can you describe the problem more clearly? You enter the username in the one, the password in the other field and hit the big button. What is it that is causing problems? 87.123.26.223 (talk) 18:39, 25 February 2016 (UTC)
MediaWiki's automatically generated password is invalid [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.
I created a new MediaWiki account and made sure a password was autogenerated and e-mailed to the new user. The details were sent to the right address, but the password appears to be invalid. This is, in fact, the second time I experienced this problem, again on MW 1.25.1. Any suggestions? Cavila 20:59, 25 February 2016 (UTC)
- Which version of MediaWiki are you using?
- If this version is newer than MW 1.23, have you modified $wgPasswordDefault?
- What are the first 14 signs of the password hash as it is saved inside the user table in the database? This should point to one of the password types from $wgPasswordConfig. Please also check an account, where logging in does work. Is that password of the same type? Or is it of a different type?
- Does it work, if you set the password by other means? E.g. if you set it using the createAndPromote.php maintenance script? 87.123.26.223 (talk) 22:04, 25 February 2016 (UTC)
- Thanks for responding
- It's MW 1.25.1, like I said. $wgPasswordDefault and $wgPasswordConfig have not been interfered with. I don't know how to look up passwords in the database, but like the last time we encountered this problem, things were solved after the new user followed the link, 'Forgot password?', and chose to receive a new password by e-mail. It's just the first 'autogenerated' password that isn't accepted as valid. Cavila 09:03, 26 February 2016 (UTC)
- This issue was fixed in MediaWIki 1.25.3, note that latest 1.25 release is 1.25.5, please upgrade. Ciencia Al Poder (talk) 10:36, 26 February 2016 (UTC)
- OK, thanks! Cavila 13:03, 26 February 2016 (UTC)
- I've made numerous attempts at logging in..........all were unsuccessful. If you won't help me now, I quit! Fun-4 (talk) 13:17, 26 February 2016 (UTC)
- Over the last several days I've made numerous attempts at logging-in.....all were unsuccessful. Will someone please help? Fun-4 (talk) 13:57, 26 February 2016 (UTC)
- You are logged in curently. Seems like it worked... 87.123.2.100 (talk) 14:45, 26 February 2016 (UTC)
How to use a font with MediaWiki.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Say I want use the font Comic Sans on my wiki. How would I do that? NeedAGoodUsername (talk) 02:30, 26 February 2016 (UTC)
- Same as any website, set font-family, most likely on the
MediaWiki:Common.css
page. 121.219.52.179 (talk) 10:09, 26 February 2016 (UTC) - You need to specify your font with the font-family CSS property (see example see SO question), either on specific parts of text with things like <span style="font-family:'Comic Sans';"></span> or applying it in general like
body { font-family:'Comic Sans'; }
in one of the stylesheets Ciencia Al Poder (talk) 10:42, 26 February 2016 (UTC) - Thanks. Would I just upload the font file like any other file if it's a font I've made? NeedAGoodUsername (talk) 18:13, 26 February 2016 (UTC)
- If you want to use it as part of a skin, meaning as default style for something, then it would be best to put it somewhere inside the folder of that skin, meaning inside the skins/<mySkin> folder. 87.123.2.100 (talk) 20:32, 26 February 2016 (UTC)
- You should use the @font-face structure in your CSS to refer to that font, as explained in @font-face MDN Ciencia Al Poder (talk) 11:36, 27 February 2016 (UTC)
Using DB that is on a different server but not added to the domain.
I have mediawiki built on a server running RedHat linux 7.2. I had my db on the same machine until I decided to build another identical server and put the database on that. I'm running mariadb on the second machine. I want to be able to point to the second server with the db on it but it is not on the domain just as my first machine is also not on the domain (they are both just test servers). Just putting in the ip and port in for $wgDBserver is not working. Am I missing something? I am running the latest stable mw 1.26.2.
I'm running 5.5.44 MariaDB
PHP 5.4.16 Mikestuart09 (talk) 16:12, 26 February 2016 (UTC)
- It may be several causes:
- Mariadb may not be listening to TCP connections (that happens if the config has
skip-networking
- There's a firewall on the mariaDB server blocking incoming connections to the mariaDB service
- You're not using the correct port number
- A firewall or SELinux on the MediaWiki server is blocking connections to the mariaDB server
- Mariadb may not be listening to TCP connections (that happens if the config has
- Assuming the problem is connection and not that you're getting "permission denied" errors or similar Ciencia Al Poder (talk) 11:50, 27 February 2016 (UTC)
Error loading data from server: 404: parsoidserver-http: HTTP 404
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.
Environment:
OS: Ubuntu 14.04.4 LTS
MediaWiki: 1.26.2
wiki url: http://intranet.hit.local/wiki-hitit/
parsoid listener port: 8142
After a good day of trying to set up VirtualEditor, the above error is still with us.
I think I followed the instructions in
- https://www.mediawiki.org/wiki/Extension:VisualEditor
- https://www.mediawiki.org/wiki/Parsoid/Setup
though, I'm still uncertain about the url/uri.
/var/www/html/wiki-hitit/LocalSettings.php has the following entries for VisualEditor:
### VisualEditor
require_once( "$IP/extensions/VisualEditor/VisualEditor.php" );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'http://localhost:8142/wiki-hitit/',
'prefix' => 'wiki-hitit'
);
/etc/mediawiki/parsoid/localsettings.js has the following entries:
'use strict';
exports.setup = function(parsoidConfig) {
parsoidConfig.setMwApi({ prefix: 'wiki-hitit', uri: 'http://localhost/wiki-hitit/api.php' });
parsoidConfig.useSelser = true;
};
/var/www/html/wiki-hitit/extensions/parsoid/localsettings.js has these:
'use strict';
exports.setup = function(parsoidConfig) {
parsoidConfig.setMwApi({
prefix: 'wiki-hitit', // optional
uri: 'http://localhost/wiki-hitit/api.php' });
parsoidConfig.useSelser = true;
};
The api.php is accessible:
$ curl 'http://localhost/wiki-hitit/api.php' | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>MediaWiki API help - Hitit</title>
The wiki pages now have both an 'edit' and an 'edit source' tab. But when you press the 'edit' tab, you get a pop-up with this error message:
"Error loading data from server: 404: parsoidserver-http: HTTP 404. Would you like to retry?"
I've found several articles about this issue, but none that helped.
Is the url/uri definition correct? (All examples I found used simple urls.)
Are there any log files I can check? I tried the parsoid and apache2 logs, but there's nothing there.
Any other suggestions?
Kind regards,
Herta Hvdeynde (talk) 17:19, 26 February 2016 (UTC)
- There's a 404 error somewhere, try to find in apache error logs the URL being requested, that should give you a hint what configuration is wrong. Maybe you need to omit the "prefix" configuration part Ciencia Al Poder (talk) 11:59, 27 February 2016 (UTC)
- Thanks for your reply.
- There's nothing in the apache error log. The access log has this entry:
- 10.32.14.57 - - [29/Feb/2016:09:59:13 +0100] "GET /wiki-hitit/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en HTTP/1.1" 200 511 "http://intranet.hit.local/wiki-hitit/index.php/Main_Page?veaction=edit" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
- 10.32.14.57 - - [29/Feb/2016:09:59:13 +0100] "GET /wiki-hitit/load.php?debug=false&lang=en&modules=ext.visualEditor.base%2Ccore%2Cdata%2CdesktopArticleTarget%2Cicons%2Clanguage%2Cmediawiki%2Cmwalienextension%2Cmwcore%2Cmwformatting%2Cmwgallery%2Cmwimage%2Cmwlink%2Cmwmeta%2Cmwreference%2Cmwtransclusion%7Cext.visualEditor.core.desktop%7Cext.visualEditor.mwimage.core%7Cext.visualEditor.mwreference.core%7Cext.visualEditor.mwtransclusion.core%7Cjquery.autoEllipsis%2CbyteLimit%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2Cwidgets%7Cmediawiki.ForeignApi.core%7Cmediawiki.action.history.diff%7Cmediawiki.api.options%7Cmediawiki.language.names%2CspecialCharacters%7Cmediawiki.page.gallery.styles%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.widgets.CategorySelector%2Cstyles%7Cmoment%2Coojs%2Coojs-ui%2Cpapaparse%2Crangefix%2Cunicodejs%7Coojs-ui.styles%7Coojs-ui.styles.icons%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-editing-list%2Cicons-editing-styling%2Cindicators%2Ctextures&skin=monobook&version=10061a186059 HTTP/1.1" 200 2196466 "http://intranet.hit.local/wiki-hitit/index.php/Main_Page?veaction=edit" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0" Hvdeynde (talk) 09:05, 29 February 2016 (UTC)
- P.S. I removed the prefix from the three config files and restarted parsoid and apache2, but the error remains. Hvdeynde (talk) 09:13, 29 February 2016 (UTC)
- I think the URI in your LocalSettings.php file should be .
'url' => 'http://localhost:8142'
/wiki-hiti/part. Let us know if that works :) Swennet (talk) 15:01, 2 March 2016 (UTC)
- After much trial and error, that is indeed what fixed it.
- Thanks, Swennet. Hvdeynde (talk) 07:55, 9 March 2016 (UTC)
- @Hvdeynde, how you solve this issue? Pleace post your config files Andreyshade84 (talk) 08:20, 20 July 2016 (UTC)
- Hello all,
- After spending a LOT of time to let VisualEditor extension be able to work on my Wiki (I tried every possibilities for both parsoid setting file and LocalSettings file), I finally found a simple conf that actually works for me. So, that's what I am sharing below.
- For your information :
- -running on Debian,
- -mediawiki 1.26.2,
- -wiki's name si WikiName,
- -it's located in /var/www/WikiName,
- -IP adress of my wiki is IP_adress (like 123.123.123.123).
- In /etc/mediawiki/parsoid/setting.js, what has changed from the original file is following below:
- parsoidConfig.setMwApi({ prefix: 'IP_adress', uri: 'http://IP_adress/WikiName/api.php' );
- In LocalSettings.php:
- $wgVirtualRestConfig[‘modules’][‘parsoid’] = array(
- ‘url’ => ‘http://IP_adress:8142’
- );
- Everything else is useless for me (like domain for instance). I think that 'Localhost' is not working on recent wiki (my visual editor was not working since I updated my wiki), that's why I think you should try to put some IP adress of yours to make it work insteasd of localhost.
- I hope it will help a few of you!
- @+
- KrazyMax 143.196.159.101 (talk) 16:33, 17 August 2016 (UTC)
- Sorry for the bad layout, looked much better before it was actually posted!
- KrazyMax 143.196.159.101 (talk) 16:35, 17 August 2016 (UTC)
- Hello,
- it dosnt work to me.
- MediaWiki 1.28.0
- i become 404
- LocalConfig.php:
- wfLoadExtension( 'VisualEditor' );
- // Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1;
- // Optional: Set VisualEditor as the default for anonymous users // otherwise they will have to switch to VE // $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
- // Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable';
- // OPTIONAL: Enable VisualEditor's experimental code features
- $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
- $wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://XXX.XXX.XXX.XXX:8142',
// Parsoid "domain", see below (optional)
//'domain' => 'XXX',
// Parsoid "prefix", see below (optional)
//'prefix' => 'XXX'
- );
- localsettings.js:
- parsoidConfig.setInterwiki( { prefix: 'XXX.XXX.XXX.XXX', uri: 'http://XXX.XXX.XXX.XXX/mediawiki/api.php' } ); YasoKuuhl42 (talk) 09:27, 30 January 2017 (UTC)
- From previous messages I see the config is parsoidConfig.setMwApi, not parsoidConfig.setInterwiki. Can you check that's correct? Ciencia Al Poder (talk) 10:26, 30 January 2017 (UTC)
- Thanks. But ist the same 404 -.-
parsoidConfig.setMwApi({ prefix: 'XXX.XXX.XXX.XXX', uri: 'http://XXX.XXX.XXX.XXX/mediawiki/api.php'});
YasoKuuhl42 (talk) 10:35, 30 January 2017 (UTC)- does opening http://XXX.XXX.XXX.XXX/mediawiki/api.php load the api help page when opening the URL from the server? Ciencia Al Poder (talk) 10:48, 30 January 2017 (UTC)
- yes YasoKuuhl42 (talk) 11:45, 30 January 2017 (UTC)
- Other ideas? YasoKuuhl42 (talk) 10:30, 14 February 2017 (UTC)
- You may try asking in the #mediawiki-visualeditor connect IRC channel. Ciencia Al Poder (talk) 10:37, 15 February 2017 (UTC)
- Note:
- I got this exact error due to putting a forward slash at the end of the Parsoid URI. In other words, http://localhost:8142/ caused the error, and changing it to http://localhost:8142 fixed it.
- This is what it looks like in my MediaWiki 1.28 LocalSettings.php--this works!
- # Visual Editor
- require_once("$IP/extensions/VisualEditor/VisualEditor.php");
- $wgDefaultUserOptions['visualeditor-enable'] = 1;
- $wgHiddenPrefs[] = 'visualeditor-enable';
- $wgVisualEditorParsoidURL = 'http://localhost:8142';
- $wgVirtualRestConfig['modules']['parsoid'] = array(
- 'url' => 'http://localhost:8142',
- 'domain' => 'localhost'
- ); 172.251.84.63 (talk) 04:11, 24 May 2017 (UTC)
- ...sometimes it's the simple things too. Have you checked your Apache, HTTPD (or whatever web server your using) configuration files? Read this; MediaWiki Visual Editor Parsoid 404 Error.
- Sorry for re-opening this closed issue, but in all the reading I did on all the different sites that address this issue, no one actually came out and said check the web server configuration. Yes it seems obvious in hind site to me, but while working the problem, I became so fixated on the Mediawiki and Parsoid stuff, the 'basics' never crossed my mind. I also posted here because this page happens to be first in the Google search results. TerraBase (talk) 17:04, 16 January 2018 (UTC)
Urgent Content Removal: bullying
RESOLVED | |
Not MediaWiki related. |
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.
Message to "Project:Suporte_desk"
This page contains an abuse that should not be published. Tentamis removal, but a chauvinist administrator returned content. The site can be severely penalized in the circumstances of law. This is simply bullying. Angelina Souzas (talk) 12:00, 27 February 2016 (UTC)
- Hello Angelina,
- welcome on the Support Desk for MediaWiki, the software used to run wikis like Wikipedia!
- Please note that the desciclopedia site is only using MediaWiki as its wiki software. Wikimedia Foundation, who creates MediaWiki, however neither is responsible for the contents of desciclopedia.org nor is Wikimedia in any way associated with the owners of the desciclopedia site.
- If the contents of that page are not ok, then you should take according steps in order to get it removed. In many legal systems there are ways to get insults, reputational damages and so on removed from a website. If you cannot or do not want to live with something like that, you should contact a laywer to take according steps. 87.123.35.137 (talk) 12:41, 27 February 2016 (UTC)
- According to the whois information for that domain, it is registered by a Carl Austin Bennett, from K7L 5P5 Kingston, Ontario, Canada. 87.123.35.137 (talk) 12:41, 27 February 2016 (UTC)
vuze plus activation
RESOLVED | |
Not MediaWiki related. |
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.
every time I enter my activation code I recieve this message "unable to contact plus liscense server. please try again" Please help 184.53.32.59 (talk) 02:03, 28 February 2016 (UTC)
- This is the support desk for MediaWiki, not for Vuze, you seem to be on the wrong place Ciencia Al Poder (talk) 17:44, 28 February 2016 (UTC)
Styles
I downloaded the mw-erudite style on my desktop. I'd like this style is for everyone on my wiki. How can I do this? 92.255.232.88 (talk) 14:22, 28 February 2016 (UTC)
- I expect you are speaking about the Skin:Erudite.
- In order to make a skin available in a wiki, follow Manual:Skin configuration! 87.123.10.78 (talk) 15:05, 28 February 2016 (UTC)
- Warning: require_once(/home/serve925/domains/serveratom.ru/public_html/wiki/skins/includes/SkinTemplate.php) [function.require-once]: failed to open stream: No such file or directory in /home/serve925/domains/serveratom.ru/public_html/wiki/skins/erudite/Erudite.php on line 15
- Fatal error: require_once() [function.require]: Failed opening required '/home/serve925/domains/serveratom.ru/public_html/wiki/skins/includes/SkinTemplate.php' (include_path='.:/usr/local/php53/lib/php') in /home/serve925/domains/serveratom.ru/public_html/wiki/skins/erudite/Erudite.php on line 15 92.255.232.88 (talk) 16:15, 28 February 2016 (UTC)
- I have this file in this path, I swear. /serveratom.ru/public_html/wiki/skins/erudite/Erudite.php 92.255.232.88 (talk) 17:14, 28 February 2016 (UTC)
- What's your MediaWiki version and what version of the extension are you trying to install?
- master and REL1_24 have a file named erudite.php, not Erudite.php (see lowercase) and line 15 doesn't try to include anything.
- Where did you get that skin from?
- The error is that line 15 of Erudite.php has a require_once of SkinTemplate.php that does not exist. Ciencia Al Poder (talk) 17:40, 28 February 2016 (UTC)
- I delete Erudite and now it works with Vector.
- I use this Manual:Skin configuration link to know how to install. I just have downloaded Skin:Erudite#Releases pack. My MW version is 1.26.
- We have assets and no readme in packs, why? It looks like the manual is obsolete. 92.255.232.88 (talk) 18:03, 28 February 2016 (UTC)
- Do not use the releases section. Follow the instructions in the Installation section and choose your same version of MediaWiki (for example, if you're on MediaWiki 1.26, choose 1.26 from the version selector Ciencia Al Poder (talk) 18:27, 28 February 2016 (UTC)
- Warning: require_once(/home/serve925/domains/serveratom.ru/public_html/wiki/skins/erudite/Erudite.php) [function.require-once]: failed to open stream: No such file or directory in /home/serve925/domains/serveratom.ru/public_html/wiki/LocalSettings.php on line 148
- Fatal error: require_once() [function.require]: Failed opening required '/home/serve925/domains/serveratom.ru/public_html/wiki/skins/erudite/Erudite.php' (include_path='.:/usr/local/php53/lib/php') in /home/serve925/domains/serveratom.ru/public_html/wiki/LocalSettings.php on line 148
- It looks I'm too stupid for it :C 92.255.232.88 (talk) 19:25, 28 February 2016 (UTC)
- Check LocalSettings.php in or directly before line 148. You are trying to require the skin file Erudite.php, which won't work, since you have removed the skin.
- You should then remove the require call as well! 87.123.10.78 (talk) 20:42, 28 February 2016 (UTC)
- Okay, I changed E to e. But what is it?
- Warning: OutputPage::getModuleStyles: style module should define its position explicitly: skins.erudite ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/OutputPage.php at line 623] in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/debug/MWDebug.php on line 300
- Warning: OutputPage::getModuleStyles: style module should define its position explicitly: skins.erudite ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/OutputPage.php at line 623] in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/debug/MWDebug.php on line 300
- Warning: OutputPage::getModuleStyles: style module should define its position explicitly: skins.erudite ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/OutputPage.php at line 623] in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/debug/MWDebug.php on line 300 92.255.232.88 (talk) 05:32, 29 February 2016 (UTC)
- trigger_error( $msg, $level ); // in the 300 line 92.255.232.88 (talk) 05:36, 29 February 2016 (UTC)
- It means the skin should be updated for 1.26. Since it is a warning, you can ignore it, but it might be required in future versions. 137.147.143.221 (talk) 07:51, 29 February 2016 (UTC)
- I can't find the skin for 1.26. Could you find it for me please? 92.255.232.88 (talk) 08:11, 29 February 2016 (UTC)
- Special:SkinDistributor/erudite Ciencia Al Poder (talk) 10:26, 29 February 2016 (UTC)
- I deleted old erudite files and add the new ones. But the error is the same. 92.255.232.88 (talk) 11:26, 29 February 2016 (UTC)
- See 1.26 for the fix of the "style module should define its position explicitly" warning! 87.123.51.183 (talk) 14:18, 29 February 2016 (UTC)
- I don't get what should I write to "MWDebug.php".
- Trying to get my situation better I got another one error:
- Warning: Cannot modify header information - headers already sent by (output started at /home/serve925/domains/serveratom.ru/public_html/wiki/includes/debug/MWDebug.php:1) in/home/serve925/domains/serveratom.ru/public_html/wiki/includes/WebResponse.php on line 37
- P.S. English ins't my native lnguage. 92.255.232.88 (talk) 19:37, 29 February 2016 (UTC)
- You should write nothing into MWDebug.php.
- In the skins/erudite/skin.json, add the line
'position' => 'top',
- in the variable "ResourceModules". Look at 1.26#Module_position_must_be_added_in_ResourceModules! 87.123.51.183 (talk) 00:14, 1 March 2016 (UTC)
- Shall I just change
$wgResourceModules['skins.<my-skin>.styles'] = array( 'position' => 'top', 'styles' => array( ...
- to
"ResourceModules": { "skins.<my-skin>.styles": { "position": "top", "styles": { ...
- ?
- But... whitch a file? 92.255.232.88 (talk) 04:50, 1 March 2016 (UTC)
- HELP! 92.255.232.88 (talk) 13:26, 1 March 2016 (UTC)
- skins/erudite/skin.json:
- 87.123.25.27 (talk) 15:02, 1 March 2016 (UTC)
"ResourceModules": { "skins.erudite": { "position": "top", "styles": { "assets/cssreset.css": { "media": "screen" }, "assets/erudite.css": { "media": "screen" }, ...
- Thank you. This helps a lot. 151.65.146.64 (talk) 02:00, 18 April 2016 (UTC)
- wgResourceModules
- Fatal error: Uncaught exception 'Exception' with message '/home/serve925/domains/serveratom.ru/public_html/wiki/skins/erudite/skin.json is not a valid JSON file.' in /home/serve925/domains/serveratom.ru/public_html/wiki/includes/registration/ExtensionRegistry.php:176 Stack trace: #0 /home/serve925/domains/serveratom.ru/public_html/wiki/includes/registration/ExtensionRegistry.php(127): ExtensionRegistry->readFromQueue(Array) #1 /home/serve925/domains/serveratom.ru/public_html/wiki/includes/Setup.php(39): ExtensionRegistry->loadFromQueue() #2 /home/serve925/domains/serveratom.ru/public_html/wiki/includes/WebStart.php(137): require_once('/home/serve925/...') #3 /home/serve925/domains/serveratom.ru/public_html/wiki/index.php(39): require('/home/serve925/...') #4 {main} thrown in/home/serve925/domains/serveratom.ru/public_html/wiki/includes/registration/ExtensionRegistry.php on line 176
- Please, could you send me validated skin.json, please..? 92.255.232.88 (talk) 16:55, 1 March 2016 (UTC)
- There is only this one line to add. The charset of the file or a BOM at the beginning of the file might cause problems. E.g. https://jsonformatter.curiousconcept.com/ is such a validator. 87.123.25.27 (talk) 18:11, 1 March 2016 (UTC)
500 Server Error after moving media wiki directory
I had a media wiki installation on the main directory `/public_html/` of my domain and had short URLs enabled to `http://example.org/wiki/Page_title` so I had an .htaccess file with the following rules
# Enable the rewrite engine
RewriteEngine On
# Short url for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
I want to install other applications in the main directory of that domain so I am trying to move this media wiki installation from the root `/public_html/` directory to the `/public_html/w/` while keeping the same short url format. So all I did was copy the content from the main directory to the `/public_html/w/` directory and modify the .htaccess rules to
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
# Enable the rewrite engine
RewriteEngine On
# Short url for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
And also modify the `LocalSettings.php` file in the new directory from
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
to
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
In theory, since it's using the same db and all the same settings all I needed to change was the htaccess and localsettings.php directories and it should work fine but after I tried it I got a 500 server error and the site was not working at all and after I checked apache/php error logs I found a lot of the same stuff
[Sun Feb 28 13:59:14.477785 2016] [:error] [pid 12164] [client SERVER IP] script '/home/admin/web/MY DOMAIN/public_html/index.php' not found or unable to stat
[Sun Feb 28 13:59:21.854117 2016] [:error] [pid 12165] [client SERVER IP] script '/home/admin/web/MY DOMAIN/public_html/index.php' not found or unable to stat
[Sun Feb 28 13:59:32.073190 2016] [:error] [pid 12374] [client SERVER IP] script '/home/admin/web/MY DOMAIN/public_html/index.php' not found or unable to stat
[Sun Feb 28 13:59:33.574025 2016] [:error] [pid 12166] [client SERVER IP] script '/home/admin/web/MY DOMAIN/public_html/index.php' not found or unable to stat
[Sun Feb 28 13:59:35.873162 2016] [:error] [pid 12167] [client SERVER IP] PHP Warning: require_once(/home/admin/web/MY DOMAIN/public_html/w/extensions/MsUpload/msupload.php): failed to open stream: No such file or directory in /home/admin/web/MY DOMAIN/public_html/w/LocalSettings.php on line 301
[Sun Feb 28 13:59:35.873207 2016] [:error] [pid 12167] [client SERVER IP] PHP Fatal error: require_once(): Failed opening required '/home/admin/web/MY DOMAIN/public_html/w/extensions/MsUpload/msupload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/admin/web/MY DOMAIN/public_html/w/LocalSettings.php on line 301
Notice the first errors are still referring to the previous root `/public_html/` directory while the extensions errors are already referring to the `/public_html/w/` directory
I have no clue where I went wrong here so I would appreciate some help. So far I had to revert the changes and restore a backup I had for the old directory but I still want to move the wiki directory. Kanecow (talk) 14:29, 28 February 2016 (UTC)
> PHP Fatal error: require_once(): Failed opening required '/home/admin/web/MY DOMAIN/public_html/w/extensions/MsUpload/msupload.php'
- Maybe you forgot to copy your extensions folder?
- Also be sure your LocalSettings is referring MsUpload/msupload.php using the exact same letter case as the file name on the filesystem, because I'd say "MsUpload.php" and not "msupload.php" Ciencia Al Poder (talk) 17:43, 28 February 2016 (UTC)
- nope, it's all there, same letter case and everything.
- I think the first index.php error is much more worrying because thats probably the cause of the error 500. Altough I cant figure what the reason is for the life of me Kanecow (talk) 19:25, 28 February 2016 (UTC)
- If you have some PHP opcaching enabled you may need to clear/refresh it or whatever, since it may still have cached data that expect files on the old locations. If you can, restart apache. Ciencia Al Poder (talk) 10:25, 29 February 2016 (UTC)
- I did restart apache after all the changes to htaccess / apache config (I tried both) and it still didn't work.
- I did install xcache recently on the server tho, would that be the reason? How to I clear/refresh it? Kanecow (talk) 11:17, 29 February 2016 (UTC)
- You may try first disabling xcache (I guess removing it from php,ini, and restart apache) to see if that helps, to see if xcache is the cause, and then find how to clear that cache. Ciencia Al Poder (talk) 10:36, 1 March 2016 (UTC)
Questions about Mediawiki
Hi.
I'd like to move from Wikia to hosting my own wiki and from all of the wiki engines out there Mediawiki engine seems to be best choice so far because it supports importing pages from Wikia and has a lot of extensions.
1. My first question is that the Manual:Installation guide says: "The VisualEditor extension (and also the Flow extension) requires the Parsoid web service, which is implemented using Node.js. Node.js is not provided by most shared-hosting companies (HostGator, Bluehost, Dreamhost, etc.). For performance and security reasons, it is better to use a dedicated hosting solution such as a Virtual private server ("VPS")."
Does that mean that I have to find a web hosting service that has Node.js implemented in it in order for the Visual Editor and Flow to function?
2. On Wikia the wiki I'd want to import has about 1000 pages, and it will probably going to grow even more. How much diskspace would I'm going to need exactly?
3. I know that in order to import templates from Wikia or Wikipedia I'm going to need the Scribunto extension. Do I need anything else for it?
4. What are the web hosting services you would recommend?
Thanks. :) Innosflew (talk) 13:21, 29 February 2016 (UTC)
- For number 1, I have not used the VisualEditor extension myself, but, yes, I understand that sentence in a way that, if node.js is not there, the extension will not be working.
- Pages are stored in the database, with the biggest table being the text table. So the number of pages (actually the accumulated length of the content of each single revision) will determine how big the database will be. If the complete text of all - current and old - revisions of your wiki is e.g. 35 MB in size, then your database will be around that size.
- I have not imported things for wikia, but I would check, if I could get a dump of the database as it is on wikia. That way, I would just get the complete DB as it is - no need to afterwards seperately import anything.
- I would pick a webhosting service from near your location, e.g. if you are n the UK, then from there, if you are in Germany, then from there. Generally you get what you pay for. I sometimes see people here, who have problems with their provider. Many of them use GoDaddy. I don't know, why these people picked GoDaddy and maybe practically all users of that provider are totally happy with it. However, what I see here is a different picture. 87.123.51.183 (talk) 14:28, 29 February 2016 (UTC)
- You can't get a complete database dump from wikia, because of the private information it has. Most you can do is request an updated XML dump from Special:Statistics (see Help:Database download, but you won't have images. For images you can use grabFiles.php from Manual:Grabbers Ciencia Al Poder (talk) 10:35, 1 March 2016 (UTC)
- 1. You will need Node.js for VisualEditor to function yes. If you purchase a VPS (such as an Ubuntu server) then you'll be able to install Node.js on it yourself. If you're looking for a web hosting service then you should make sure that Node.js is available (probably by emailing them) Swennet (talk) 14:56, 2 March 2016 (UTC)
Forced printing of linked page
We are using an internal wiki for our company. There is a need for some users to click on a page link and have the page print without selecting 'printable version'. Can I force the printing from the link selection? GBHansen (talk) 18:07, 29 February 2016 (UTC)
- And this should work for some, but not for all users? In this case, I would go with a small JavaScript snippet, which gets included for the according user as explained at Manual:Interface/JavaScript#Personal_scripts.
- A small jQuery script should do in order to add the parameters printable=yes to internal URLs then. 87.123.51.183 (talk) 18:17, 29 February 2016 (UTC)
- If there are particular links that should always been printed, you can simple write an external link with the printable=yes parameter.
[{{fullurl:Project:Support desk|printable=yes}} A printable link]
: A printable link- You could easily turn this into a template for making print links. 101.160.40.244 (talk) 04:08, 1 March 2016 (UTC)
How to confirm user's email address as an admin?
I use $wgEmailConfirmToEdit = true
on our wiki. Currently the mail for confirming the email address is not sent (for some reason we haven't found out yet). Is there a way that I (as an admin) can confirm the user's email address?
I checked the database. In table "user" there is the value "user_email_authenticated". But it contains no simple "true" or "yes" but a number that doesn't make sense to me. So I don't dare to change this. Stefahn (talk) 19:59, 29 February 2016 (UTC)