Project:Support desk/Flow/2015/02
This page is an archive. |
Please ask questions on the current support desk. |
This page used the LiquidThreads 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. |
Cite/Scribunto Error
When using Cite web/book/journal I get the following error:
"Fatal error: Call to undefined method OutputPage::getTarget() in /home4/cms/public_html/bereawiki.com/extensions/Scribunto/common/Hooks.php on line 379"
I am currently using Mediawiki 1.24.1 and have the latest installation of both Cite and Scribunto, so I'm not sure why there is a problem using citations. The line in the Scribunto file referenced says the following:
"if ( $outputPage->getTarget() === 'mobile' ) {"
Also, when editing the page before the error starts, I notice a template is missing, Quoted text. I tried finding the Quoted_text template but Wikipedia does not appear to have it. I suspect that is a separate error though as removing all citations results in the page working even though it still says that template is missing.
Perhaps there is an issue with mobile compatibility somehow? 71.57.118.25 04:47, 1 February 2015 (UTC)
- I tried downloading two new extensions, MobileApp and MobileFrontEnd. When I downloaded MobileFrontEnd, the entire wiki reverted somehow to a previous version, and is now saying the version is 1.21.0rc5 - resulting in an error message for the entire wiki. 71.57.118.25 05:16, 1 February 2015 (UTC)
- Now it is giving an error of "Fatal error: Call to undefined method MagicWord::matchStartToEnd() in /home4/cms/public_html/___/extensions/ParserFunctions/ParserFunctions_body.php on line 227"
- That line in ParserFunctions says the following:
- "} elseif ( $defaultFound || $mwDefault->matchStartToEnd( $test ) ) {" 71.57.118.25 05:23, 1 February 2015 (UTC)
- You appear to be downloading extensions that are for different MediaWiki version than the one you have installed. Please, check your MediaWiki version on the Special:Version page, and download extensions for that version and not just the latest one. Ciencia Al Poder (talk) 10:44, 2 February 2015 (UTC)
Process mediawiki text of a page via Lua before showing it
Hello guys,
I write the German Wikibook b:de:Mathe für Nicht-Freaks. For this I use Lua to generate the navigation header and the footer dynamically. Now I want also to have the ability to process the mediawiki text via Lua before it goes to the Parser. To archive this I can write something like this:
{{#invoke:Project|page |content=<nowiki> ... </nowiki>}}
In the function page()
of the module Page
I now can process the content before I return it. Unfortunately the section editing does not work anymore with this solution. Because the whole content is encapsulated in a module invocation, also editing the page with the VisualEditor does not work very well.
Is there anything I can do to process the mediawiki text beforehand without having the problems mentioned above? Stephan Kulla (talk) 14:06, 1 February 2015 (UTC)
Login error
Hello,
I have a problem on my website: bravelywiki.org.
I cannot not enter my user account there, and the strange problem is, it happens when a user obtains administrator rights.
I have no idea what causes this strange problem, or it might be a bug, or it depends on the version of the MediaWiki.
It is such a bother, because it clearly acts that way towards contributors that has administrator rights or bureacrat rights.
And that caused me to prevent to log into my user account.
Hopefully you guys can help me out what the problem is.
I thank you for your time.
KidProdigy (talk) 14:22, 1 February 2015 (UTC)
- What error do you see when you attempt to log in? This, that and the other (talk) 01:50, 2 February 2015 (UTC)
[RESOLVED] How to Change Localhost Domain Name?
Hi,
I used to run a few private wikis on my localhost a few years ago (MediaWiki versions 1.18.5, 1.19.2, and a few others), until my computer died. Now I'm trying to pick up the pieces and recreate my wiki on a new computer. Right now, my wiki's URL looks like this:
http://localhost/wiki/Main_Page
(I've given it a short URL).
I'd like it to look more like this:
http://www.mywiki.org/wiki/Main_Page
I know there was a way to do this, because I had multiple wikis with "fake" domain names running on my localhost, but I can't seem to figure out how I did it. Hopefully you guys here at the Support desk can help me find the proper way to do this?
Thanks in advance!
OS: Windows 8.1
XAMPP-Portable: 5.6.3
MediaWiki: 1.24.1
PHP: 5.6.3 (apache2handler)
MySQL: 5.6.21
URL: N/A, Private wiki on localhost Glameglumps33 (talk) 18:46, 1 February 2015 (UTC)
- Fake domain names can be set up by editing the hosts file somewhere in the Windows folder. For the wiki to produce URLs with a different domain name in them, you have to change the value of $wgServer to what you want the domain to be. 88.130.113.187 18:55, 1 February 2015 (UTC)
- Okay, I finally got it. I had seen something else that said I needed to make changes to the hosts file and apache's httpd-vhosts.conf file and it wasn't working. But it worked once I left the httpd-vhosts.conf file alone.
- Thanks! Glameglumps33 (talk) 00:56, 2 February 2015 (UTC)
Registered User not allowed to edit. Not receiving Email to confirm email address.
- Developed this problem since I deactivated automatic registration. I can still as the administrator create users, however when the user login, the wiki shows that he is logged in but when he tries to edit it says: "You do not have permission to edit this page, for the following reason: You must confirm your e-mail address before editing pages. Please set and validate your e-mail address through your user preferences."
- Tried clicking on "user preferences" but it does not allow me to "check" all the boxes in "email options".
- Also when I click on "Confirm e-mail address"
- This message shows:
- "A confirmation code has already been e-mailed to you; if you recently created your account, you may wish to wait a few minutes for it to arrive before trying to request a new code."
- The problem is: The user does not get the email. So the user can't confirm.
- in my localsettings.php the following shows:
- $wgEnableEmail = true;
- $wgEnableUserEmail = true;
- $wgEmailAuthentication = true;
- $wgPasswordSalt = true;
- $wgEmailConfirmToEdit = true;
Kuhitkuhit (talk) 23:07, 1 February 2015 (UTC)- If the email is not received, have you checked your mailserver's error log? Did you receive any kind of bounce notifications? Also thinking of phab:T66795 depending on the mailserver of the recipient... AKlapper (WMF) (talk) 11:51, 3 February 2015 (UTC)
- hello, is this resolved? please let me know how to fixed this.. Alberteranio (talk) 10:29, 23 July 2018 (UTC)
Styles in common.css has no effect in the login page
The css in the Common.css page of my wiki is working fine in all pages other than the login page. What should I do? 208.116.10.45 05:31, 2 February 2015 (UTC)
- This is a frequent question; I just added some documentation to Manual:CSS#Styles_not_working_on_Special:UserLogin_or_Special:Preferences.3F that should help you. This, that and the other (talk) 09:38, 2 February 2015 (UTC)
- I actually have 2 wikis in the server. CSS is by default applied in the first wiki's login page with out using $wgAllowSiteCSSOnRestrictedPages, but not in the 2nd. 208.116.10.45 09:49, 2 February 2015 (UTC)
- Are they both running the same version of MediaWiki? Is the custom CSS in MediaWiki:Common.css or in a file on the server? This, that and the other (talk) 00:36, 3 February 2015 (UTC)
- The wiki that has the problem is Version: 1.23.6 and the other one is Version: 1.23.2. The css is in MediaWiki:Common.css in both the wikis. 208.116.10.45 04:17, 3 February 2015 (UTC)
- In 1.23.6 I tried to use $wgAllowSiteCSSOnRestrictedPages, but nothing happened. Tried ctrl+shift+r, but the same result. 208.116.10.45 04:24, 3 February 2015 (UTC)
- How do you expect the setting to work on a version where it doesn't exist? 121.214.190.213 05:26, 3 February 2015 (UTC)
- Do you have a solution for my problem? Do you know something like $wgAllowSiteCSSOnRestrictedPages for 1.23.6? 208.116.10.45 06:38, 3 February 2015 (UTC)
- Update.
- Obviously not, otherwise what would be the point of $wgAllowSiteCSSOnRestrictedPages being added? 121.214.190.213 09:37, 3 February 2015 (UTC)
- Thanks for your great help. :) Anyone else? 208.116.10.45 09:50, 3 February 2015 (UTC)
- There's nothing else, short of editing core (which you shouldn't ever do). Either upgrade so you have the config value to disable this "feature" or downgrade so you have a version before the introduction of this "feature".
- No one will be able to magically invent additional features just because you don't like the option available. 121.214.190.213 12:29, 3 February 2015 (UTC)
- Thanks for your great help. :) Anyone else? 208.116.10.45 09:50, 3 February 2015 (UTC)
- You will just have to upgrade to 1.23.8. The changes compared to 1.23.6 are minor and ought not to cause any disruption to your wiki. This, that and the other (talk) 12:58, 3 February 2015 (UTC)
- Do you have a solution for my problem? Do you know something like $wgAllowSiteCSSOnRestrictedPages for 1.23.6? 208.116.10.45 06:38, 3 February 2015 (UTC)
- How do you expect the setting to work on a version where it doesn't exist? 121.214.190.213 05:26, 3 February 2015 (UTC)
- In 1.23.6 I tried to use $wgAllowSiteCSSOnRestrictedPages, but nothing happened. Tried ctrl+shift+r, but the same result. 208.116.10.45 04:24, 3 February 2015 (UTC)
- The wiki that has the problem is Version: 1.23.6 and the other one is Version: 1.23.2. The css is in MediaWiki:Common.css in both the wikis. 208.116.10.45 04:17, 3 February 2015 (UTC)
- Are they both running the same version of MediaWiki? Is the custom CSS in MediaWiki:Common.css or in a file on the server? This, that and the other (talk) 00:36, 3 February 2015 (UTC)
- I actually have 2 wikis in the server. CSS is by default applied in the first wiki's login page with out using $wgAllowSiteCSSOnRestrictedPages, but not in the 2nd. 208.116.10.45 09:49, 2 February 2015 (UTC)
how to get listings deleted when I didnt post them.
someone put my business on here in many places. I did not authorize anyone to list my business on here, and i do not want it listed on here, what can i do to get it removed? 65.29.67.79 13:40, 2 February 2015 (UTC)
- I believe you are wrong here: This is the MediaWiki support page - we do not maintain one certain wiki nor can we change it. Contact the according wiki owner, if you cannot edit things yourself! 88.130.113.187 15:58, 2 February 2015 (UTC)
Missing table features in VisualEditor
I am missing the insert table option in VisualEditor on my MediaWiki. I have searched the documentation but found nothing about this! What can I do to get this working?
Versions:
- MediaWiki 1.24.1
- PHP 5.3.3-7
- MySQL Ver 14.14 Distrib 5.1.73
- Visualeditor REL1_24 2014-12-01 92.33.14.99 13:47, 2 February 2015 (UTC)
- Use the latest version. 121.214.190.213 05:28, 3 February 2015 (UTC)
How to limit user's search frequency?
For example, now a attacker visit random full text search 100 times/second to stop my server's response. How to limit search frequency?
I mean if user search faster than 1 search / 10 second then forbid/ignore the extra search request.
Manual:$wgRateLimits only limits edit and other action frequency but not search. Zoglun (talk) 15:13, 2 February 2015 (UTC)
- There's T76497 open, but I'm not sure if it's for search in general or specific of CirrusSearch Ciencia Al Poder (talk) 10:46, 3 February 2015 (UTC)
two mediawiki´s one URL
Hello,
I want to have two mediawikis with two databases on one server. Is it possible to call one URL and then to check which language is set in the browser. If it is English open the mediawiki_englisch_version (database1) and if it is german language then open the mediawiki_german_version (database2). Can anybody please help? Mediakasic (talk) 15:59, 2 February 2015 (UTC)
- If you find a way to do this, i think this will be hacky and there will be some problems, e.g. how do you handle other langauges or how do you want to allow users to change the language? For a real multilangual wiki you should read some of our manuals: Manual:Wiki_family, Interlanguage_links and the translate extension. Florianschmidtwelzow (talk) 11:31, 4 February 2015 (UTC)
- I want to have something like this
- wiki.company.de/wiki_de
- and
- wiki.company.de/wiki_en
- So when I call "wiki.company.de" it should identify which browser language I have and then open the URL depending on the language:
- e.g.
- Browser language is de:
- I open my browser and just enter "wiki.company.de", then it should automatically open the URL "wiki.company.de/wiki_de" page.
- Just in general, is this possible? I am newbie at all, so if someone has also a good link as example - then this would be much appreciated.
- thanks 79.214.38.224 12:57, 19 February 2015 (UTC)
- That's just two separate mediawiki installs, there's nothing weird or problematic about that. You just need to look up how to do language redirection with the server you're using, which is a subject completely separate from mediawiki. 121.219.238.124 06:35, 20 February 2015 (UTC)
- Thanks for help and the keywords 79.214.42.10 08:12, 20 February 2015 (UTC)
- That's just two separate mediawiki installs, there's nothing weird or problematic about that. You just need to look up how to do language redirection with the server you're using, which is a subject completely separate from mediawiki. 121.219.238.124 06:35, 20 February 2015 (UTC)
How to Create Wikia Sliders?
I'm trying to see if I can install a wikia-created extension called WikiaPhotoGallery, which I believe will allow me to create wikia sliders (http://community.wikia.com/wiki/Help:Galleries,_Slideshows,_and_Sliders/wikitext#Slider).
I've gotten the code for the extension by downloading it from the wikia repository (https://github.com/Wikia/app), and then I placed the extension in a folder inside of my wiki's extension folder. In my LocalSettings.php file, I added:
require_once("$IP/extensions/wikia/WikiaPhotoGallery/WikiaPhotoGallery_setup.php");
My wiki starts up without errors, but when I try to actually use the extension, e.g.,
<gallery type="slider"> Example1.png Example2.png Example3.png </gallery>
.... I get the following error:
Fatal error: Call to undefined method TraditionalImageGallery::parse() in E:\XAMPP\htdocs\mywiki\extensions\wikia\WikiaPhotoGallery\WikiaPhotoGalleryHelper.class.php on line 67
Can anyone help me figure out what the issue is?
OS: Windows 8.1
XAMPP-Portable: 5.6.3
MediaWiki: 1.24.1
PHP: 5.6.3 (apache2handler)
MySQL: 5.6.21
URL: N/A, Private wiki on localhost Glameglumps33 (talk) 04:02, 3 February 2015 (UTC)
- I doubt you could get anything useful from Wikia extensions. Wikia's MediaWiki version is a fork in itself (based on MediaWiki 1.19) and any Wikia extension requires a lot of other Wikia extensions and Wikia changes to the base MediaWiki.
- Unless you know PHP to fix it yourself, I doubt you'll be able to use it on your wiki. Ciencia Al Poder (talk) 10:43, 3 February 2015 (UTC)
- I figured I'd at least give it a shot though. It seems like I'm pretty close, normally if something's not gonna work, I'll get an error and my wiki won't even load. The wiki at least works normally until I try to actually use sliders on a page (then I can't save my edit because of the warnings).
- As far as I understand, the main issue is that there's an undefined method on line 67 in the code:
- https://github.com/Wikia/app/blob/dev/extensions/wikia/WikiaPhotoGallery/WikiaPhotoGalleryHelper.class.php
- But I'm just not really sure what that means, or what I can do to fix it. I was looking at Manual:Hooks/BeforeParserrenderImageGallery, and figured that maybe $ig was old and needed to be updated to $imagegallery, but that didn't really help. It just changed the error to
Fatal error: Call to undefined method ImageGallery::parse() in E:\XAMPP\htdocs\mywiki\extensions\wikia\WikiaPhotoGallery\WikiaPhotoGalleryHelper.class.php on line 67
- I also tried copying wikia's Commons.css, Commons.js, Wikia.css, and Wikia.js pages to my wiki, thinking that perhaps I was missing some css or javascript, but that had no effect.
- Additionally, I really doubt it's a version issue, but since I'm using MediaWiki 1.24.1, I decided to try using the same version as wikia: MediaWiki 1.19.23. That didn't change anything either, I still get the same error. Glameglumps33 (talk) 18:05, 3 February 2015 (UTC)
- Hi. Were you able to make wikia's photo gallery extension on your wiki? Innosflew (talk) 22:00, 15 March 2016 (UTC)
timezone settings
Hi,
today, i logged in to my wiki and found errors:
It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST'
thus, i changed the date() in the parser.php to date_default_timezone_set()
after that i got the same error for the Output page. i changed it again there.
now, i can't see texts anymore.
i changed the aboves again to what they were before.
now i added in the local settings:
- Set Default Timezone
$wgLocaltimezone = "Europe/Berlin"; date_default_timezone_set( $wgLocaltimezone );
i don't have error messages anymore. but no texts at all. if i click "edit", i can see the text. but after saving, there isn't any text displayed.
What can i do?! 188.193.6.184 07:48, 3 February 2015 (UTC)
- First, do not edit MediaWiki core files!
- Second, read Manual:Errors and symptoms where your problems were already covered. Ciencia Al Poder (talk) 10:48, 3 February 2015 (UTC)
How to install MediaWiki on a Windoze Box ?
Hi it would be nice if you can provide instructions step-by-step or a software like kiwix or LAMP for use it with wikipedia and others wikimedia projects, sites and articles. [[Special:Contributions/S3th 16:10, 3 February 2015 (UTC)
- Hi :) What do you want to do? The title says, that you want to install MediaWiki. For this follow our installation guide and if you have questions for an exact step, please ask for help for this step. In your text you say "for use it with wikipedia and others wikimedia projects", what do you mean with this? Florianschmidtwelzow (talk) 11:27, 4 February 2015 (UTC)
We are not able to upload the images to our plmwiki site.
We are not able to upload the images to our PLM wiki site,
getting an below error msg.
could not rename the file "/opt/lamp/temp/phpsOK3re" to "public/8/88/DSMF.png"
Here DSMF.png is the image which we are trying to upload.
Can you please let us know, what is the exact problem? 223.239.136.44 18:47, 3 February 2015 (UTC)
Use a variable in a form before the save action
Hi
I want to create a page from an other page (builded with an other form) with this particularity:
The page name must be compute with 2 kind of variables:
The variables included in the page : I can use it with {{#show: Support desk/Flow/2015/02 | ?VAR01}}
and The "page name" passed with the [forminput]
ie:
Page1 content
... VAR01 is available ...
...
information about the new page [VAR02]button "Create/Edit"
==> The "Create/Edit" action => create a new page with VAR02 as name I want to build the name with
{{#forminput:form=T NODE |query string=T_NODE[VAR01]={{#show: Support desk/Flow/2015/02 | ?VAR01}} |placeholder=Enter VAR02 value |page name={{#show: Support desk/Flow/2015/02 | ?VAR02}}- ???VAR02??? }}
So, my question is : how to extract and use the value of the field as a variable to trasmit to the "page name" parameter. My other way is (a workaround), how to extract and use the value of the field before the validation ?
Bests Regards Henri
MediaWiki : 1.24.1 / PHP5.3.3 (fpm-fcgi) / MySQL 5.5.31 Semantic extensions : Semantic Compound Queries 0.3.4 Semantic Drilldown 1.4 Semantic Forms 3.1 Semantic Forms Inputs 0.9.0 alpha Semantic Image Input 0.3.0 alpha Semantic Internal Objects 0.7.6 Semantic MediaWiki 2.1 Semantic Result Formats 2.0 Hdurre (talk) 13:10, 4 February 2015 (UTC)
Image Map
Hi
we are using mediawiki 1.24.1 for maintain IT infrastructure. I need How to Enable and configure Image Map for put Links for Network Topology Diagram.
-- Ragu Thangavel Ragusathis (talk) 06:37, 5 February 2015 (UTC)
- Did you try to install it, like it is outlined here? Temptuousinsolence (talk) 09:07, 5 February 2015 (UTC)
How to handle languages in WikiEditor toolbar customisation ?
Hi everyone, I am trying to customise WikiEditor to create my own button, with a dialog box. The thing works, but the replacement of language tokens by their equivalent in my language (French) does not work. I have modified the fr.json language file, but the dialog box desperately shows me the name of the token between chevrons (eg. <wikieditor-toolbar-tool-iframe-insert>). Only the default tokens seem to work. Am I missing a step? Thanks, Maxime 194.3.81.110 16:53, 5 February 2015 (UTC)
[RESOLVED] Special:NewPages displays zero results
After upgrading to MW 1.24.1 (from 1.21), Special:NewPages now displays zero results. If I create a new page right now, it shows up in Special:NewPages, but anything before the upgrade is not listed.
New pages are listed on Special:RecentChanges with an "N" next to them, so clearly something in MediaWiki knows they're new.
I ran maintenance/rebuildrecentchanges.php but it had no effect on Special:NewPages.
I've installed four other 1.24.1 wikis without having this problem. Disabling all extensions does not help. Any advice appreciated!
I filed this as a bug in Phabricator, and someone there recommended posting it here in Support Desk. Maiden taiwan (talk) 19:03, 5 February 2015 (UTC)
- There is no bug -- it was user confusion. Special:NewPages now defaults to the "Main" namespace only. (Is this new behavior?) All the other new pages on the wiki recently were in other namespaces, so they didn't show up. Maiden taiwan (talk) 17:55, 7 February 2015 (UTC)
[INVALID] error 1067 when trying to start mediawikiMySQL server
I use mediawiki by installing it using a "Bitnami stack". I accidentally deleted my entire database, but was able to rescue it using an undelete utility. (I don't know if it was rescued properly, as some of the mysql-bin files were reported as "Poor" by the undelete) but the ib_logfile1 seems ok.
So, right now I have this mysql data folder containing all this data I am interested in, but I don't know how to access it.
I installed a new clean copy of mediawiki (using Bitnami) on my machine.
If I use the mysql\data folder from this new install, mediawikiMySQL service starts up fine. If I rename this folder to mysql\data-Original, and then copy my rescued data folder into its place, I can no longer startmediawikiMySQL service. I get error 1067, and I don't even know what that means.
How do I go about giving me access to my rescued database?
Thanks. A1s2d3f4 (talk) Win 8.1 x64 20:36, 5 February 2015 (UTC)
- You are running MySQL on a Windows machine. Error 1067 means "Error 1067: The process terminated unexpectedly". That means nothing more and nothing less than: the progam crashed.
- You can check the MySQL log - it will contain information on the error, which happens during start up.
- Generally this is a MySQL recovery problem, you might want to google this: copy mysql data folder to new install. 88.130.113.120 23:10, 5 February 2015 (UTC)
- A1s2d3f4 (talk) 02:22, 6 February 2015 (UTC)
150205 21:21:46 [Note] Plugin 'FEDERATED' is disabled. 150205 21:21:46 InnoDB: The InnoDB memory heap is disabled 150205 21:21:46 InnoDB: Mutexes and rw_locks use Windows interlocked functions 150205 21:21:46 InnoDB: Compressed tables use zlib 1.2.3 150205 21:21:46 InnoDB: Initializing buffer pool, size = 128.0M 150205 21:21:46 InnoDB: Completed initialization of buffer pool InnoDB: Error: space header page consists of zero bytes in data file .\ibdata1 150205 21:21:46 InnoDB: Could not open or create data files. 150205 21:21:46 InnoDB: If you tried to add new data files, and it failed here, 150205 21:21:46 InnoDB: you should now edit innodb_data_file_path in my.cnf back 150205 21:21:46 InnoDB: to what it was, and remove the new ibdata files InnoDB created 150205 21:21:46 InnoDB: in this failed attempt. InnoDB only wrote those files full of 150205 21:21:46 InnoDB: zeros, but did not yet use them in any way. But be careful: do not 150205 21:21:46 InnoDB: remove old data files which contain your precious data! 150205 21:21:46 [ERROR] Plugin 'InnoDB' init function returned error. 150205 21:21:46 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. mysqld.exe: Too many arguments (first extra is 'bitnami_mediawiki'). Use --verbose --help to get a list of available options 150205 21:21:46 [ERROR] Aborting 150205 21:21:46 [Note] mysqld.exe: Shutdown complete
- That's a problem with the mysql server. Unless there's a mysql expert here that could help you, you should better ask about this problem on a mysql specific forum, where it could be reviewed by more users familiarized with mysql. Ciencia Al Poder (talk) 10:21, 6 February 2015 (UTC)
[RESOLVED] External image link URL internal page URL
Hi guys I hope things are well :).
I have limited bandwidth so I have my images located on a different server, I have proceeded to enable x URL using http://www.mediawiki.org/wiki/Manual:$wgAllowExternalImagesFrom. I can successfully embed the images from the server I would like.
As per the information given here: http://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages I am using the syntax [Link_URL Image_Location_URL] however this only works with an external Link_URL, can I set it to an internal link URL? The only real issue being for me the little arrow in a box at the top right of the image pushes the image over. 124.169.209.109 04:03, 6 February 2015 (UTC)
- Use thisː
- [Link_URL Image_Location_URL]
- The class plainlinks removes link icons Ciencia Al Poder (talk) 10:29, 6 February 2015 (UTC)
- Thank you Ciencia the plain links class works great. 124.169.209.109 00:20, 7 February 2015 (UTC)
Moving without leaving redirects but fixing the referencing pages?
Hi.
I probably had to google it myself, but not sure about the search query. Let me try. Suppose there are improperly titled pages, and some day I would like to move the pages to fix the titles. MediaWiki offers a way of moving pages with leaving a redirect. This is a good way, but not the best one from my perspective. The reason is simple: if you leave such a "system/by-design" redirect, you'll get a lot of such pages as time passes by. It's a sort of flood. I would like to know: is there a way of renaming pages not leaving a redirect, but really moving a page and fixing *all* references automatically, so there could be no any reason of leaving a redirect? It would be really great, if such a feature could just fix markup to [[NEW_PAGE]] at the referencing articles, because [[NEW_PAGE|OLD_PAGE]] brings nothing in this case. As far as I know, MediaWiki does not have a feature like this. Probably a bot is a right way to go?
Thanks! 195.234.75.155 07:54, 6 February 2015 (UTC)
- First you can move a page without leaving a redirect by simply unchecking the "create redirect" checkbox during the move.
- Second there is no automatic way to update all internal links; iIrc in some Wikipedias a bot is used to do that.
- Third you never know if there are really zero external links pointing to the now redirected page - which all would break, if you removed the redirect. 88.130.113.120 12:34, 6 February 2015 (UTC)
- Hi, thanks for the reply.
- 1 - Yep.
- 2 - That would be a great option too. I'd like to find any.
- 3 - I'm not sure I understood you correctly, but doesn't "What links here" serves detecting the referencing pages that may refer both "normal" article and any number of redirects? 195.234.75.155 14:43, 6 February 2015 (UTC)
- More information on how to create a bot are here: http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot.
- The "What links here" page only shows links coming from inside the wiki itself (including redirects). What it however does not show are external links from other domains or from users' bookmarks for example. 88.130.113.120 16:46, 6 February 2015 (UTC)
- Yeah, I just misunderstood you regarding the "What links here". That's true, sure. I was just looking for a complete solution, because writing a bot is not that easy within small time frames. Thanks! 194.44.30.5 07:45, 7 February 2015 (UTC)
articles' content doesn't load after migration
we have migrated our site made with MediaWiki 1.21.1 from machine A:
- Windows NT CT63778 6.1 build 7600 (Windows Server 2008 R2 Datacenter Edition) i586
- PHP Version 5.3.10
- MySQL 5.5.21 Community Server (GPL)
to machine B:
- Windows NT H-5024 6.3 build 9200 (Windows Server 2012 R2 Standard Edition) i586
- PHP Version 5.6.2
- MySQL 5.6.21-log Community Server (GPL)
and now articles' content is gone, the site's template loads, actually everything except the content of each article. When I click on "edit", on tab "Wikitext" I see that the content is in fact there. Tab "Preview" is blank.
What could be the problem? 62.245.231.90 14:57, 6 February 2015 (UTC)
- See Manual:Errors and symptoms#All pages have no content, but when editing a page the wiki text is there.
- Note that on recent versions of MediaWiki this issue has been resolved, so you need to upgrade. 88.130.113.120 16:43, 6 February 2015 (UTC)
Not getting password reset email
Twice I attempted requesting an password reset email, asking that the email be sent to two different email addresses. I sent two different emails addresses because I don't remember which email address I used when I initially created an account. After an hour passing I have not received an password reset email at either email address. Is there something else I can do to reset my password? Is the Wiki email system not operating properly? Thanks. 71.204.186.182 18:26, 6 February 2015 (UTC)
- Hi,
- In order to use the mailing service you need to configure the SMTP http://www.mediawiki.org/wiki/Manual:$wgSMTP you will also probably need terminal access to install the pear packages.
- Alternatively to reset the passwords... you will need to go through the database(scroll down to Direct database managment) http://www.mediawiki.org/wiki/Manual:Resetting_passwords 124.169.209.109 00:31, 7 February 2015 (UTC)
[RESOLVED] Domain forwarding with masking
Hi,
So I am forwarding a domain to my site. The domain is hosted with goDaddy (just because they had a special on). Forwarding works fine... when I try to use forwarding with masking however I just get a blank page returned. Is masking not allowed or possible with media-wiki? 124.169.209.109 00:25, 7 February 2015 (UTC)
- This was an issue with my hosting company. Thanks to anyone whom read the post. Byyyyeee 124.169.209.109 01:39, 7 February 2015 (UTC)
Media wiki installation database
Sooooo.... When you set up Media Wiki it asks you to provide database username and password. This assumes that i already have a database. The thing i dont understand is do I have to host the database? Will it take all my internet and computer speed? Is this even what im supposed to be doing? I thought since I have a hosting provider they would handle that. Sincerely, Very confused. 220.237.11.148 05:52, 7 February 2015 (UTC)
- Depends on what your hosting provider provides. See https://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 for example. Malyacko (talk) 11:13, 7 February 2015 (UTC)
- Well, I used the MediaWiki script, and it worked, but first of all im not admin on it so i cant do ANNYTHING. Secondly logging in the hosting site directs me to a useless page which only has file manager, ftp access and the site link. I dont know where the database is or how to access it, although when u delete the site it says its deleting a database? 220.237.11.148 06:38, 9 February 2015 (UTC)
- Ok, I found out how to log in as administrator... Still on my wiki there is no admin controls or anything. Secondly, how am i supposed to access files such as DefaultSettings.php. The manual constantly refers to them but ive never seen them. 220.237.11.148 06:52, 9 February 2015 (UTC)
- The difference between being a wiki administrator and a normal wiki user in fact only looks small: As an admin you have some additional buttons inside the MediaWiki website, which a normal user does not have. An admin e.g. can protect or delete pages or block users. That is basically the whole difference.
- Anyway, the fact that you are a wiki admin does not change anything with the question, whether or not you can acess files inside the file system of the server. E.g. you will need FTP access to view the DefaultSettings.php file, which is located inside the folder includes/ where you installed your wiki. 88.130.81.215 13:07, 9 February 2015 (UTC)
- Ok so I install FileZilla, make an account, connect the account to my hosting site and zolia the database will be accessible. Ill try it and report back thanks. 220.237.11.148 05:12, 11 February 2015 (UTC)
- Ok, I found out how to log in as administrator... Still on my wiki there is no admin controls or anything. Secondly, how am i supposed to access files such as DefaultSettings.php. The manual constantly refers to them but ive never seen them. 220.237.11.148 06:52, 9 February 2015 (UTC)
- Well, I used the MediaWiki script, and it worked, but first of all im not admin on it so i cant do ANNYTHING. Secondly logging in the hosting site directs me to a useless page which only has file manager, ftp access and the site link. I dont know where the database is or how to access it, although when u delete the site it says its deleting a database? 220.237.11.148 06:38, 9 February 2015 (UTC)
[RESOLVED] Recaptha Integration
Dear member,
I have problems with ReCaptha Integration
PHP : 5.3 .. 5.6 MediaWiki : 1.24.1
Added to LocalSetting.PHP :
require_once "$IP/extensions/ConfirmEdit/ReCaptcha.php"; $wgCaptchaClass = 'ReCaptcha'; $wgReCaptchaPublicKey = '6LfjpQE...'; $wgReCaptchaPrivateKey = '6LfjpQ...'; # Adaptation PHP Mail() function $wgSMTP = array( 'host' => 'mailout.one.com', 'IDHost' => 'one.com', 'port' => 25, 'username' => '', 'password' => '', 'auth' => false );
Error :
An internal error occurred: 50E7942BD82C8.AB44A06.A50040D0
What's wrong?
Thank you.
hansie Hansie (talk) 06:13, 7 February 2015 (UTC)
- Where/when does this error happen? On every page? Only when attempting to create an account? When saving a page? Ciencia Al Poder (talk) 11:24, 7 February 2015 (UTC)
- When trying to create an account. I get the error on the area where normally the ReCaptha Window appears. Hansie (talk) 17:38, 7 February 2015 (UTC)
- Searching for that error, most sites suggest that the problem is that the domain you used when you registered your ReCAPTCHA key does not match the actual domain of your wiki. Ciencia Al Poder (talk) 18:43, 7 February 2015 (UTC)
- When trying to create an account. I get the error on the area where normally the ReCaptha Window appears. Hansie (talk) 17:38, 7 February 2015 (UTC)
includes/WebRequest.php: MediaWiki does not function when magic quotes are enabled. Problems with installing 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.
- Hello, i am trying to install mediawiki, unfortunately i am getting this error report. Can anyone help me please?
- Many gretings
- Gloria
- [c8aeae25] [no req] Exception from line 61 of /data/multiserv/users/1289248/projects/2707382/www/mediawiki-1.24.1/includes/WebRequest.php: MediaWiki does not function when magic quotes are enabled.
- Backtrace:
- 0 /data/multiserv/users/1289248/projects/2707382/www/mediawiki-1.24.1/includes/Setup.php(544): WebRequest->__construct()
- 1 /data/multiserv/users/1289248/projects/2707382/www/mediawiki-1.24.1/includes/WebStart.php(121): require_once(string)
- 2 /data/multiserv/users/1289248/projects/2707382/www/mediawiki-1.24.1/mw-config/index.php(36): require(string)
- 3 {main} 95.112.0.184 21:57, 7 February 2015 (UTC)
- This error means that there is a problem with your PHP configuration: You have an option called "magic quotes" enabled. However, MediaWiki needs this option to be disabled in order to work properly.
- You need to disable magic quotes in the PHP configuration to fix this problem! 88.130.79.243 22:09, 7 February 2015 (UTC)
- thank for the answer. Can you tell how i find my php configuration. I have kilu.de and also filezilla. Is it anywhere there? 95.113.128.195 11:34, 8 February 2015 (UTC)
- The PHP configuration usually is located inside php.ini files. Where the according files are located in your case depends on the server setup. Your host will know that! Note that many shared hosters do not allow you to edit these files as doing so you would be able to change the PHP configuration.
- I would have lked to give you a link to the PHP manual where you will find further details about how to enable/disable magic quotes, but mediawiki.org does not let me save posts, if they contain links. So no link for you. 88.130.127.250 13:41, 8 February 2015 (UTC)
- maybe you could send it to my emailadress: Glow88 (at) gmx. net
- That would be so great.
- Thank You 95.113.128.195 14:28, 8 February 2015 (UTC)
- Oh, I just happened to notice this comment and just figured I'd mention that I found a quick fix for that. If you surround the link in nowiki tags, you can display the link, although it won't be clickable.
- For example:
- https://en.wikipedia.org/wiki/Main_Page
- Also, internal links seem to work fine. Glameglumps33 (talk) 19:08, 8 February 2015 (UTC)
- So here it is: http://php.net/manual/en/security.magicquotes.disabling.php (Anyway, bothersome that posting links is broken. In the past it was working, maybe it presented a captcha, but it was working. Yuch!) 88.130.127.250 23:36, 8 February 2015 (UTC)
- Lol yeah I hope it's just a bug that gets fixed soon. Glameglumps33 (talk) 23:53, 8 February 2015 (UTC)
- @88.130.127.250: I have fixed your post to make it a clickable link :) (hope that's not a general problem? :/) Florianschmidtwelzow (talk) 07:20, 9 February 2015 (UTC)
- Thanks for fixing, Florian!
- I think it is a general problem: It worked until maybe two weeks or so back and then it stopped. Since then, when I have a link in my posts, after clicking "Save page", these posts are not saved. As I said that started maybe two weeks or so ago. Since then, this problem is there with every single post I try to make here.
- I don't know if a captcha is wanted or whatever, anyway: The current situation is just bad! This should be fixed again! 88.130.81.215 12:59, 9 February 2015 (UTC)
- So here it is: http://php.net/manual/en/security.magicquotes.disabling.php (Anyway, bothersome that posting links is broken. In the past it was working, maybe it presented a captcha, but it was working. Yuch!) 88.130.127.250 23:36, 8 February 2015 (UTC)
- thank for the answer. Can you tell how i find my php configuration. I have kilu.de and also filezilla. Is it anywhere there? 95.113.128.195 11:34, 8 February 2015 (UTC)
[RESOLVED] How to restore a wiki without a backup?
A while ago, my old computer died, killing my localhost wiki along with it. Luckily, I have a backup, but unfortunately it was made about a year before my wiki died (whoops). So here's the thing: my hard drive still works fine, and I've turned it into an external hard drive. Is it possible for me to restore the most recent version of my wiki based on the files in my old HDD? The only thing I'm not really sure about is MySQL. How would I restore those tables?
Old
OS: Windows XP
XAMPP (On My C: Drive): 1.7.4
Apache: 2.2.17
MediaWiki: Probably 1.18.5, but I can't check Special:Version until it's up and running again
PHP: 5.3.5
MySQL: 5.3.8
URL: N/A, Private wiki on localhost
Current
OS: Windows 8.1
XAMPP-Portable: 5.6.3
Apache: 2.2.4
MediaWiki: N/A
PHP: 5.6.3 (apache2handler)
MySQL: 5.6.21
URL: N/A, Private wiki on localhost Glameglumps33 (talk) 12:40, 8 February 2015 (UTC)
- If you can still run the MySQL server on that harddisc, then you should just export the database. That also works with external tools like mysqldump.exe. 88.130.127.250 13:37, 8 February 2015 (UTC)
- I can't seem to be able to run XAMPP (and thus Apache and MySQL) from the external hard drive, I guess because it's installed to the external hard drive (my old computer's C: Drive) but not to my new computer's C: Drive?
- I already have XAMPP Portable running on a different external hard drive, and I'm currently using it to run a few other wikis, and the year-old backup of my main wiki.
- If I try installing the old XAMPP containing my dead wiki to my new computer's C: Drive, will that installation conflict with the new XAMPP Portable that's connected from my other external hard drive?
- Also, would I even be able to install my old XAMPP onto my new computer's C: Drive (considering that it's not XAMPP Portable)? If it helps, I could just install Apache and everything without using XAMPP, but I'm not sure if that would involve creating an entirely new instance of MySQL Community Server, in which case, I'd still need to import the old MySQL database into it.
- And sorry if I'm being unclear on anything, I don't mind elaborating. Glameglumps33 (talk) 19:01, 8 February 2015 (UTC)
- You could try to install XAMPP and copy (not move, so you have a backup intact in case of necessity) the mysql data files over the new installation, and pray for it to just work. Note that connecting to mysql will require you to use the old passwords, since passwords are in the old files.
- This may not work at all, since someone told me mysql stores stupid things like OS and machine-specific information in the datafiles, making the move of datafiles from one computer to other impossible. I don't know if this has changed, though.
- If you have further problems trying to make XAMPP recognize the old mysql data, you should probably ask on a XAMPP/mysql forum where people may have more specialized knowledgement about this than here. Ciencia Al Poder (talk) 10:44, 9 February 2015 (UTC)
- Thanks, I'll give that a try! I've been looking around on Stack Overflow and similar sites, and it seems like it MAY be possible, but I'll definitely have to do some more reading up on it to make sure I do it right.
- I really appreciate the help, guys! Glameglumps33 (talk) 01:50, 10 February 2015 (UTC)
- So, I just want to mention for anyone else that ever has the same issue that I was successful, and managed to retrieve my old mysql database by following the process described here:
- http://dustindavis.me/restoring-mysql-innodb-files-on-windows/
- I didn't need to change the size of my log file because the new log file was as big as the old log file, but I followed everything else and it worked great. Glameglumps33 (talk) 20:35, 11 February 2015 (UTC)
- Thanks for the link! Ciencia Al Poder (talk) 10:43, 12 February 2015 (UTC)
- Nice to hear that you could get the data out! Don't forget to take the opportunity to set up automatic, regular backups of your new system! 88.130.101.128 15:20, 12 February 2015 (UTC)
- Th.... there's a way to automate backups? Could you link me up? Glameglumps33 (talk) 22:34, 18 February 2015 (UTC)
- Let's see... Since you are on Windows 8.1 running on localhost, I think this should be doable with the Windows Task functionality:
- I would set up a task. This task would run a .bat file. This file would then contain all the things needed:
- I guess running this task would need the MySQL server to be started, so make it start the MySQL service.
- It should then run a shell command, which creates a database dump. Ideally, the day of week somehow is in the filename of the dump, so that you get seven different files and then it starts to remove the oldest one. Maybe something like mysqldump.exe my-db -u root -psecretpassword > Database.%DATE:~7,2%.sql.
- Stop the MySQL service again (ideally: only do so, if this script actually started the server; better do not stop it, if it already had been running before).
- Note that I have not tried that myself, but here is a helpful post on the topic:
- http://www.redolive.com/automated-mysql-backup-for-windows/ 88.130.65.162 02:09, 19 February 2015 (UTC)
- That'd be pretty awesome! My wiki currently sits on an external hard drive though, so I suspect that scheduling it through Windows Task Manager may not always be reliable (like if the drive happens to not be plugged in on a backup day).
- However, I'm planning on moving it to the C: drive of a new computer (once I actually buy it, probably in a few months), so maybe I should wait and give it a try then.
- Thanks for the info! Glameglumps33 (talk) 02:25, 19 February 2015 (UTC)
- Let's see... Since you are on Windows 8.1 running on localhost, I think this should be doable with the Windows Task functionality:
- Th.... there's a way to automate backups? Could you link me up? Glameglumps33 (talk) 22:34, 18 February 2015 (UTC)
- No prob! Also, I should mention that since I was going from an older version of MediaWiki to a newer one, I had to follow the steps in the article, and then run the update script.
- And I actually ran into an issue: it worked, but only once. So I found that I needed to:
- Follow the steps in the article and run the update script
- Export my database in phpMyAdmin
- Stop MySQL and Apache
- Delete the data folder located in the mysql folder
- Replace it with the previous data folder, from before I had made any changes mentioned in the article (luckily I had saved a copy of the folder after each change I made to it)
- Restart MySQL and Apache
- Create a database for the wiki in phpMyAdmin
- Import the recovered tables into the new database
- And so far my recovered wiki has been running perfectly for the past few days. Glameglumps33 (talk) 22:32, 18 February 2015 (UTC)
- Nice to hear that you could get the data out! Don't forget to take the opportunity to set up automatic, regular backups of your new system! 88.130.101.128 15:20, 12 February 2015 (UTC)
- Thanks for the link! Ciencia Al Poder (talk) 10:43, 12 February 2015 (UTC)
Are the information provided on the right side of the page a table?
So for example, look at this page:
https://www.mediawiki.org/wiki/Extension:Cite
On the right there is a table explaining basic facts about the extension. Video game wiki's do the same thing with their video games. How do I do that? Is it just a table? How do I incorporate images into my table? Is there an extension for this?
Thank you for your time and support. 71.10.173.151 19:45, 8 February 2015 (UTC)
- Someone one wiki chat told me that it is a template, and showed me the code. I have no idea what most this code means. When I paste the code into the wiki, I get this output...
{{Template:TNTN }} [[Category:Info templatesTemplate:Translation|Counter-Strike 1.6]] [[Category:Extension creationTemplate:Translation]] [[Category:Categorizing templatesTemplate:Translation|Counter-Strike 1.6]] [[Category:Extension templatesTemplate:Translation]]
- Template:Languages
- Sooo.....can anyone help me with what to do? 71.10.173.151 20:04, 8 February 2015 (UTC)
- What I pasted is different than what is shown in the previous entry. I may have to go back to chat. 71.10.173.151 20:05, 8 February 2015 (UTC)
- Hi!
- The one in the wiki chat (where? IRC?) was right. Mostly this is a template (in this case the Extension template), which basically is a table with some placeholders, which can be defined when transclude the template into an article. To read more about templates should read our Manual and/or the help pages on Wikipedia :) Florianschmidtwelzow (talk) 22:28, 8 February 2015 (UTC)
- What I pasted is different than what is shown in the previous entry. I may have to go back to chat. 71.10.173.151 20:05, 8 February 2015 (UTC)
[RESOLVED] unexpected '$wgEnotifWatchlist' (T_VARIABLE) in LocalSettings.php
Environment
CentOS 6.6
nginx 1.6.2-1
php-fpm.x86_64 5.6.5-1.el6.remi
php-mysqlnd.x86_64 5.6.5-1.el6.remi
php-xml.x86_64 5.6.5-1.el6.remi
mysql-community-server.x86_64 5.6.23-2.el6
MediaWiki 1.24.1
Installed the above and dependencies. Initially got a blank page from the Mediawiki install page, which was due to not having php-xml installed. Once I installed that I completed the mediawiki installation and placed the LocalSettings.php file in the root directory. I now get a blank page with no data at the Mediawiki root. The error in nginx's error log is as follows: 2014/12/23 07:21:47 [error] 3870#0: *1 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '$wgEnotifWatchlist' (T_VARIABLE) in /usr/share/nginx/html/LocalSettings.php on line 31" while reading response header from upstream, client: 172.16.0.208, server: wiki.nginx.org, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "172.16.0.19"
Not sure why it's throwing that. Any ideas? Agjb (talk) 21:11, 8 February 2015 (UTC)
- The code, which you have in LocalSettings.php, contains a syntax error. This error most likely is located before line 31.
- What do you have in that file? 88.130.127.250 21:15, 8 February 2015 (UTC)
- It's the generic unedited file.
- I can't seem to paste it here for some reason. Agjb (talk) 21:47, 8 February 2015 (UTC)
<?php # This file was automatically generated by the MediaWiki 1.24.1 installer. If you make manual # changes, please keep track in case you need to recreate them later. # # See includes/DefaultSettings.php for all configurable settings and their default values, but # don't forget to make changes in _this_ file, not there. # # Further documentation for configuration settings may be found at: # h77ps://www.mediawiki.org/wiki/Manual:Configuration_settings Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "Labs"; $wgMetaNamespace = "Labs"; ## The URL base path to the directory containing the wiki; defaults for all runtime URL paths ## are based off of this. For more information on customizing the URLs (like ## /w/index.php/Page_title to /wiki/Page_title) please see: ## h77ps://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = ""; $wgScriptExtension = ".php"; ## The protocol and server name to use in fully-qualified URLs $wgServer = "h77p://172.16.0.19"; ## The relative URL path to the skins directory $wgStylePath = "$wgScriptPath/skins"; ## The relative URL path to the logo. Make sure you change this from the default, or else ## you'll overwrite your logo when you upgrade! $wgLogo = "$wgScriptPath/resources/assets/wiki.png"; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "nginx@172.16.0.19"; $wgPasswordSender = "nginx@172.16.0.19"; $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = true;
- Altered http to h77p for filter bypass. Agjb (talk) 21:49, 8 February 2015 (UTC)
- Oooh, formatting got fubar'd somewhere in there. My bad. Agjb (talk) 21:55, 8 February 2015 (UTC)
- The line breaks are messed up.
- Starting with line 29 it should be
29 $wgEnableEmail = true;
30 $wgEnableUserEmail = true; # UPO
31 $wgEmergencyContact = "nginx@172.16.0.19";
32 $wgPasswordSender = "nginx@172.16.0.19";
33 $wgEnotifUserTalk = false; #UPO
34 $wgEnotifWatchlist = false; # UPO
35 $wgEmailAuthentication = true;
88.130.127.250 22:09, 8 February 2015 (UTC)
- Oooh, formatting got fubar'd somewhere in there. My bad. Agjb (talk) 21:55, 8 February 2015 (UTC)
[RESOLVED] Problems with Wikibase installation
Hi, I installed Wikibase and now I'm getting this:
[7f540d2c] /wiki/Pagina_principale Exception from line 182 of C:\inetpub\Network\w\includes\Hooks.php: Invalid callback in hooks for SetupAfterCache Backtrace:
- 0 C:\inetpub\Network\w\includes\GlobalFunctions.php(3995): Hooks::run(string, array, NULL)
- 1 C:\inetpub\Network\w\includes\Setup.php(573): wfRunHooks(string)
- 2 C:\inetpub\Network\w\includes\WebStart.php(121): require_once(string)
- 3 C:\inetpub\Network\w\index.php(43): require(string)
- 4 {main}
Why? Scienziatogm (talk) 09:48, 9 February 2015 (UTC)
- This is usually a version mismatch between the extension and MediaWiki.
- You should download extensions that match your MediaWiki version. For example, if you have MediaWiki 1.24, you should select the 1.24 branch of the extension when you download it and not just "the latest". Ciencia Al Poder (talk) 10:49, 9 February 2015 (UTC)
- If I go here: https://extdist.wmflabs.org/dist/extensions/Wikibase-REL1_24-685a998.tar.gz
- The webserver returns a 404 error. How can I download the 1.24 version of the Wikibase extension? Scienziatogm (talk) 10:52, 9 February 2015 (UTC)
- Use github: https://github.com/wikimedia/mediawiki-extensions-Wikibase/archive/REL1_24.zip Florianschmidtwelzow (talk) 11:37, 9 February 2015 (UTC)
- I downloaded and installed it, but it gives me this error:
- PHP Fatal error: Class 'Wikibase\TemplateRegistry' not found in C:\inetpub\Network\w\extensions\Wikibase\lib\WikibaseLib.php on line 121 Scienziatogm (talk) 11:48, 9 February 2015 (UTC)
- I have not personally used Wikibase, but when I google your error message, I find a few other people with the same problem.
- You should follow Wikibase/Installation to properly install Wikibase! 88.130.81.215 14:44, 9 February 2015 (UTC)
- Solved by myself. I needed to install Composer in the directory of Wikibase. Anyway thanks for the replies. Scienziatogm (talk) 15:20, 9 February 2015 (UTC)
- Basically that is what Wikibase/Installation tells you to do. 88.130.81.215 17:38, 9 February 2015 (UTC)
- Solved by myself. I needed to install Composer in the directory of Wikibase. Anyway thanks for the replies. Scienziatogm (talk) 15:20, 9 February 2015 (UTC)
- Use github: https://github.com/wikimedia/mediawiki-extensions-Wikibase/archive/REL1_24.zip Florianschmidtwelzow (talk) 11:37, 9 February 2015 (UTC)
[RESOLVED] site hacked useragent reading incorrect language
My site was hacked and useragent is sending google bot a page in the incorrect language. dir="ltr" lang="ja" xml:lang="ja"> <head> has bee added to the source code. How do I remove this? I can't find what file it is in. For users the site is showing up as expected. How do I debug this Thanks LTech (talk) 10:40, 9 February 2015 (UTC)
- If your website was hacked you should think about to use a new copy of MediaWiki and a new copy of all installed extensions, to make sure, that no other code was changed :) Florianschmidtwelzow (talk) 10:59, 9 February 2015 (UTC)
- By far the most hacks Ihave sen were in the central index.php file; if I should make a guess: around 90% of all hacks manipulate this file. That however does not mean that other files have not been compromised, e.g. LocalSettings.php is a hot candidate.
- What I have not seen (I think even: never seen) are hacks, which are inside the database, e.g. manipulated text entries, which then are somehow brought to the website user. Anyway, theoretically the database can be compromised as well. 88.130.81.215 12:54, 9 February 2015 (UTC)
Connect MediaWiki to IFTTT/Zapier-like integration services?
Is anyone aware of ways to connect a MediaWiki installation with services like IFTTT or Zapier that connect various apps and services? There's an in-development service called Cloudpipes that has a MediaWiki channel, but it seems to be dead, since people signing up for beta accounts aren't hearing back from them. Zapier has a developer platform where people can create their own integrations, but I don't have the chops for it (yet). Would like to know if anyone's already working on this sort of thing. If not, and if there are no huge complicated obstacles that prevent MediaWiki from being integrated with things like Zapier, I'll try to learn.
Thanks for any information! 2A02:1811:890:7F00:14C6:B9EA:BD40:8675 15:54, 9 February 2015 (UTC)
- good question! waiting for an anwser with you ... didnt find anything myself ...))) 2003:45:4B04:D601:CDCD:6FF4:1E36:B600 (talk) 20:08, 23 October 2015 (UTC)
- Would be interested too! Fragazzi (talk) 08:00, 18 February 2020 (UTC)
- +1 would be great to have an extension to allow Zapier integration. Needs to be developed on both ends however. Rbirmann (talk) 21:16, 29 July 2020 (UTC)
Link Removals
Hello,
Does anyone know how to request a link removal from a certain page?
The d00system.com domain has unwanted links to a website that I am trying to get removed but there does not seem to be a contact to request this. Will we have to make a new account and edit the page?
Thanks in advance 81.136.228.248 15:58, 9 February 2015 (UTC)
- MediaWiki.org isn't a page to ask for support about other third-party websites. We can not help you to remove/delete links from another website. Florianschmidtwelzow (talk) 08:28, 12 February 2015 (UTC)
Add a splash page
Hi all,
I recently started a wiki, but am a novice at best when it comes to this sort of thing.
I am using namecheap to host my wiki-page and downloaded mediawiki through softaculous. The wiki is already "live", however, I would like to change that. I would like to use a simple splash page and hide the entire wiki before I am ready to allow users access. Is this possible? If so, how?
Thank you in advance, I really appreciate any and all help you can provide. 75.129.102.233 20:41, 9 February 2015 (UTC)
- What is the intention (the actual problem) behind wanting a splash page? What is a "splash page"? Isn't that some overlay content that annoys me and makes me press the Esc key on my keyboard to get rid of it? Malyacko (talk) 11:32, 10 February 2015 (UTC)
- As far as understand it, it is supposed to be some "this wiki is not ready yet, do not show it to the public".
- That can e.g. be done via .htaccess: Deny access for all users and then make an exception, which fits for _your_ account (e.g. based on IP). Or even better: Set up .htaccess password protection: This will lead to the same result, but it will continue working even if your IP address changes. 88.130.109.131 11:47, 10 February 2015 (UTC)
- Alright. I will give that I try! Thanks! 75.129.102.233 15:11, 10 February 2015 (UTC)
- This will bring up a small prompt, where you have to provide username and password. If you do not provide the correct credentials, you will see a 401 error page. By default that is just an ugly, white page with black text, but it can be customized by defining your own error document with something like ErrorDocument 401 /401.html in .htaccess. 88.130.106.225 16:28, 10 February 2015 (UTC)
- Alright. I will give that I try! Thanks! 75.129.102.233 15:11, 10 February 2015 (UTC)
- Oh goodness no! LOL It's a landing page. Just a page to say "Coming soon" while I work on things behind-the-scenes. No need for users to click or press esc. I agree, I hate it too when websites put that overlay content and make you click to get rid of it. Thanks. 75.129.102.233 15:13, 10 February 2015 (UTC)
Can a template detect transclusion?
Is there a simple way for a template to detect whether it was invoked directly from the main name space, or whether it was invoked by way of one or more intermediate templates? Urhixidur (talk) 21:30, 9 February 2015 (UTC)
- Bump? Urhixidur (talk) 21:50, 16 February 2015 (UTC)
- First of all: I don't know either. But the fact that no one tells you "Yeah, it's working" might by an indicator that it's in fact impossible. 88.130.110.103 13:01, 17 February 2015 (UTC)
- Absence of evidence is not evidence of absence. In other words, the question has not been answered one way or another. Urhixidur (talk) 15:22, 18 February 2015 (UTC)
- As I said: It is not sure knowledge, but it is an indicator. And obviously, you cannot help either. 88.130.65.162 15:50, 18 February 2015 (UTC)
- Absence of evidence is not evidence of absence. In other words, the question has not been answered one way or another. Urhixidur (talk) 15:22, 18 February 2015 (UTC)
- First of all: I don't know either. But the fact that no one tells you "Yeah, it's working" might by an indicator that it's in fact impossible. 88.130.110.103 13:01, 17 February 2015 (UTC)
$wgAccountCreationThrottle and $wgRateLimits w/ Redis
Hi, the pages for $wgRateLimits and $wgAccountCreationThrottle say Memcached is required. Would other forms of caching (e.g. Redis) work too without additional configuration? Thanks. Iso29d (talk) 02:25, 10 February 2015 (UTC)
custom logo gest changed to Wikipedia-logo
Hi,
I have set custom logo for mediawiki on. This seeting has been done and been work fine for a year. Rescently the my custom logo has changed to wikipedia. https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Wikipedia-logo-v2-en.svg/270px-Wikipedia-logo-v2-en.svg.png
I check the settings on localsetting.php and nothing has changed in the configs.
Appercate help on this Pravinxyz (talk) 10:23, 10 February 2015 (UTC)
- Uhh, that's bad. It looks like you have to life with it now, sorry.
- No, just a joke :D But maybe you can give some more information? What MediaWiki version do you use? Which Skin? Can you give a link to your wiki? Have you made some changes to your wiki in the last time? Florianschmidtwelzow (talk) 11:59, 10 February 2015 (UTC)
- Thanks You Floranschmidtwelzow for your reply.
- ..
- Version is 1.19, Skin monobook. This is production setup for our company,since it product bases eveyone loves it and anything happens to it is a always a big problem. So the access is internal (intranet site). We had production with 1.19, Dev with 1.19 and Staging with 1.23 which we plan to roll out on 28th feb :) All seems to have the same problem. Mostly users who have compained are mac users, with firefox and chrome. We have a change mangaement process for any change so i would guess there are no changes done.
- On my dev setup i have been trying to check the skins/ main.css files changing the logo but nothing has helped much. Also i have been trying to find from where this url is present to my wiki. Its a perfect hack, i can put my pic next time insteed of logo :)
- I have added the image how it looks like now.
- Remove the code that you've blindly copied from wikipedia's MediaWiki:Common.css page and only use what you actually need. 137.147.38.65 04:52, 11 February 2015 (UTC)
Page views of Transcranial_magnetic_stimulation are showing zero through Page statistics
Hi,
I am trying to retrieve the page statistics of Wikipedia Page "Transcranial_magnetic_stimulation" but for the past 4 days it is showing 0 views. What should be done here? 162.44.250.21 10:59, 10 February 2015 (UTC)
- How are you "trying to review the page statistics"? No steps given here to reproduce the problem... Malyacko (talk) 11:32, 10 February 2015 (UTC)
- Hi,
- I am trying to retrieve the page statistics of Wikipedia Page "Transcranial_magnetic_stimulation" but for the past week it is showing 0 views. I am using php script to get the data through Wikipedia API and store it in MYSQL database.
- It is showing 0 page views for the last 1 week. are the statistics correct or there is some problem from the wikipedia side? 162.44.250.21 12:25, 11 February 2015 (UTC)
- What is the exact URL you are requesting in order to query the API?
- I guess the API shows the number of views, which is saved in the page table of the Wikipedia DB. This nubmer shows al page hits since the creation of that page. Meaning: It should never decrease and so, if it once was biger than 0, it should never again be 0. Is this number also 0 for other pages? 88.130.106.225 13:19, 11 February 2015 (UTC)
Header
Hi! How I can integrate a banner in the header? (example). Regards Vincenʈ 13:55, 10 February 2015 (UTC)
- He is using a background image in one of the div containers.
- There are two options to do that:
- 1. Overwrite the skin's CSS files and add your image there he way you want it to be. This is not recommended as it will break after a MediaWiki upgrade. (I guess this is the way the fahrrad wiki guys went anyway.)
- 2. Add according CSS styles to the wiki page MediaWiki:Vector.css in your wiki and upload the file somewhere on you server, e.g. in the images/ folder. 88.130.109.131 14:35, 10 February 2015 (UTC)
[INVALID] One-to-many relationship Semantic MediaWiki properties
Is it possible to define a one-to-many relationship between two properties of a SMW-page?
And if so, how? Waanders (talk) 13:57, 10 February 2015 (UTC)
- Nobody? Waanders (talk) 11:55, 30 March 2015 (UTC)
- Hi, maybe you should ask the support of Semantic mediawiki :) Florianschmidtwelzow (talk) 07:08, 31 March 2015 (UTC)
/images/lockdir/18dsgj2sbxi6969fgktwjatj1hws9fu.lock): failed to open stream: Permission denied in
Get the following error when I try to upload images
Warning: fopen(/var/www/html/dbfswiki/images/lockdir/18dsgj2sbxi6969fgktwjatj1hws9fu.lock): failed to open stream: Permission denied in /var/www/html/dbfswiki/includes/filebackend/lockmanager/FSLockManager.php on line 125
I have checked the directory, and as far as I can tell, everyone and anything should be able to write to it now ls -latr -rwxrwxrwx+ 1 apache apache 84 Dec 17 20:11 README drwxr-xr-x. 13 apache apache 4096 Feb 10 13:48 .. drwxrwxrwt+ 2 apache apache 6 Feb 10 14:10 lockdir -rwxrwxrwx+ 1 apache apache 180 Feb 10 14:11 .htaccess drwxrwxrwt+ 3 apache apache 49 Feb 10 14:11 .
And cetfacl
getfacl lockdir/
- file: lockdir/
- owner: apache
- group: apache
- flags: --t
user::rwx user:apache:rwx group::rwx mask::rwx other::rwx default:user::rwx default:user:apache:rwx default:group::rwx default:mask::rwx default:other::rwx
Versions
Mediawiki 1.24.1
PHP Version 5.4.16
CentOS 7 81.148.179.81 14:29, 10 February 2015 (UTC)
- I think the solution was
- chcon -R -t httpd_sys_script_rw_t images
- or potentially
- setsebool -P httpd_can_network_connect on 81.148.179.81 14:46, 10 February 2015 (UTC)
Is the page Special:ListFiles supposed to show the current file description?
It's showing the description at the time of upload. Is there any way to update these to the current descriptions? Immewnity (talk) 17:36, 10 February 2015 (UTC)
ga('require', 'displayfeatures');
Dear Member,
I configured Media Wiki for Google Analytics.
Where should I place this line ?
ga('require', 'displayfeatures');
It's for demografic analysis.
Thank you.
hansie Hansie (talk) 06:14, 11 February 2015 (UTC)
- How do you configured MediaWiki for GAnalytics? What extension? Florianschmidtwelzow (talk) 08:14, 12 February 2015 (UTC)
anchor
Dear Member,
I tryed to implement this anchor :
<span id="http://nl.wikipedia.org/wiki/Randstad_gebied">Randstad</span>
It doesn't work.
I implemented it according to instructions:
<span id="anchor_name">some text</span>
What's wrong?
hansie Hansie (talk) 07:41, 11 February 2015 (UTC)
- Try with something like
Randstad
- There does not have to be a URL inside the ID part of the span tag. The place of the span tag itself automatically is the actual target. 88.130.106.225 11:35, 11 February 2015 (UTC)
- I am sorry, I don't understand your response.
- What do you mean by your example "Randstad"? It just delivers the text "Randstad". I need something I can click on and redirects to a webpage. Hansie (talk) 17:16, 11 February 2015 (UTC)
- I'm sorry, my bad. MediaWiki has parsed what I posted no longer showing you the actual code. I mean this:
- <span id="Randstad_gebied">Randstad</span>
- This is the target of an anchor. If I remember correctly, anchors in HTML usually were "a" tags, not "span" tags, but if it also works with span tags it fine. You can then link this place of your website with something like myPage.html#Randstad_gebied. 88.130.101.128 18:19, 11 February 2015 (UTC)
- The link should refer to any page on the web. Hansie (talk) 20:42, 11 February 2015 (UTC)
- It does! 88.130.101.128 01:09, 12 February 2015 (UTC)
- Are you actually trying to make an external link, rather than an anchor?
- Use:
[http://nl.wikipedia.org/wiki/Randstad_gebied Randstad]
to make an external link. 137.147.38.65 06:08, 12 February 2015 (UTC)
- The link should refer to any page on the web. Hansie (talk) 20:42, 11 February 2015 (UTC)
JSON response
Hello!
I am little bit new in media wiki and now I am developing a extension. I would like to print a JSON response when it’s makes a request for one of my special pages, that the extension creates. The JSON response is not a content of Wikipedia page, it’s a public key that I want to print, and only that. I find for solutions but I don’t find nothing. What it’s the best way to print that? API, Jquery, Special pages?
Thanks in advance, David 139.6.79.4 17:34, 11 February 2015 (UTC)
- What do you want to do exactly? What content you want to get from where and when? How do you want to get the JSON response? Florianschmidtwelzow (talk) 08:14, 12 February 2015 (UTC)
- I just want to do a "echo(json_encode($var));" but working correctly. I want to print a dinamic content that my extension creates, and the header must be set to application/json. 84.44.186.19 09:24, 12 February 2015 (UTC)
- I still don't know, where you want to output this content and why? If you want to use it in another application, maybe it would be better to write a real Api module, instead of using a Specialpage (i think you will do that in the special page?) for it. Florianschmidtwelzow (talk) 10:59, 12 February 2015 (UTC)
- It sounds to me like you are writing your own custom script.
- When a web browser visits some particular url, you want your custom script to run, and *only* the stuff printed by your script returned to the browser, with the header "application/json".
- If I understand you correctly, there are 2 things you need to do: (1) write a script that sets the header and prints out the JSON text, and (2) set things up so that script gets run when a user enters the special URI in his web browser.
- Part 1 is pretty simple. Here's an example with "bash". I hope you will find it simple to translate to Python or PHP or your favorite language:
- begin file "hello.sh":
#!/bin/bash
# 2015-02-12: started by David Cary
# for a question at
# https://www.mediawiki.org/wiki/Project:Support_desk
# released under CC0 1.0 License or later.
echo 'Content-type: application/json'
echo # empty line here is important for CGI
echo '{'
echo '"text": "Hello, world!"'
echo '}'
exit 0
- end file "hello.sh".
- Part 2 is not as complicated as you might think.
- Put your script in some convenient location on your web server --
- perhaps in the same directory as your "LocalSettings.php" file.
- The default ".htaccess" file that comes with Mediawiki already tells the Apache web server to run the Mediawiki "index.php" or "thumb.php" scripts only if a file does *not* already exist at that location.
- (That's what the "!-f" and "!-d" options do).
- If you are lucky, this will "just work" -- test by typing the URI that corresponds to that file in some web browser.
- If that web browser shows you a copy of that script, you know that you've typed the right URI; but you'll have to diddle with some settings (set the execute permission, etc.) to get Apache to *run* your script and send the output to the web browser, rather than simply *copy* your script to the web browser. DavidCary (talk) 17:08, 12 February 2015 (UTC)
- I just want to do a "echo(json_encode($var));" but working correctly. I want to print a dinamic content that my extension creates, and the header must be set to application/json. 84.44.186.19 09:24, 12 February 2015 (UTC)
replying to emails
unable to reply to email prior to sending. 2601:2:8E00:4E00:5446:5873:761F:AE29 17:40, 11 February 2015 (UTC)
- Needs more context and steps to reproduce the problem. Not even sure if this is related to MediaWiki, somehow... AKlapper (WMF) (talk) 12:50, 12 February 2015 (UTC)
How to create a custom/private wiki?
How can I create a custom/private wiki? A friend of mine created a custom/private "wiki world-like wiki pages" that required a password for all pages of his custom/private wiki.
It looked something like this: Main page
Getting Started Meeting Testing
Projects
Project 1 Project 2 Project 3 Project 4
etc. CaptainRockey1 (talk) 00:27, 12 February 2015 (UTC)
- Just add:
$wgGroupPermissions['*']['read'] = false;
- to your LocalSettings.php (make sure, that
$wgGroupPermissions['*']['read']
exists only once) and all users need to login in order to read pages in your wiki :) Florianschmidtwelzow (talk) 08:12, 12 February 2015 (UTC) - If you want to have a more strict control of the content of the wiki, then I would like to direct your attention to BlueSpice. You have much more choices in terms of settings restricitons there. I have difficulties in setting it up along SMW right now, though, but according to the latest information on their blog, they plan to make both of these extensions work together more neatly in the future. Temptuousinsolence (talk) 16:43, 18 February 2015 (UTC)
Clicking on logo gives "Bad Title" error.
Today I tried to move the main page(custom main page I created once)to a new title without checking the 'Leave a redirect behind' select box. But I got a redirect option and I did something after that which resulted in getting "Bad title The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters that cannot be used in titles. Return to തിരിച്ചുവിടുക KCHR:ചരിത്ര പുരാവസ്തു നരവംശ തെളിവുകളുടെ ഡിജിറ്റൽ കലവറ." . Could someone please help?
MediaWiki 1.23.8 PHP 5.3.3 (apache2handler) MySQL 5.1.73 208.116.10.45 03:46, 12 February 2015 (UTC)
[RESOLVED] Importing Infoboxes or Creating them from Scratch
Hi. I'm having a problem trying to import Wikipedia's Infoboxes into my wiki.
I can't do that in the standard way (Using Special:Import and Special:Export) because the server I'm using doesn't allow me to execute files on their side. I can't execute lua files, even if I give permission to them.
I would like to ask to you if there's any other way to me to use infoboxes in my wiki. Another way to import from wikipedia? Or maybe create them from scratch (in this case if you could give me some information from how to create it, it would be nice).
Thank you very much! 2804:14D:4CD1:188A:613C:863E:3AA2:E382 05:55, 12 February 2015 (UTC)
- nevermind, I just realized I could easily achieve what I wanted using regular CSS.
- I don't know why this information is nowhere, though.
- Thanks anyway 2804:14D:4CD1:188A:613C:863E:3AA2:E382 06:10, 12 February 2015 (UTC)
When is DB table templatelinks update?
Hello everybody, i recently experienced a problem at WikiCommons that a certain template is not listed in table templatelinks . Can someone tell me please what triggers the update of this table? Seem that saving a new version is not enough. Thank you. Aschroet (talk) 09:52, 12 February 2015 (UTC)
Hello I'm trying to add some information about my music career.
Hello, I'm trying to add some information about my music career. How can I be accepted? Gemeka (talk) 12:51, 12 February 2015 (UTC)
- If you are speaking about "adding to the English Wikipedia", then you have to become noticable as per en:Wikipedia:Notability. 88.130.101.128 14:03, 12 February 2015 (UTC)
- Also, it is not advisable to write about yourself, as per en:Wikipedia:Conflict of interest. Ricordisamoa 09:44, 13 February 2015 (UTC)
Box-header not working Mediawiki 1.24.1
Hi..Box-header which used to work in earlier versions not working 1.24.1 ..Please help if any syntax change to done. 12.47.107.4 02:12, 13 February 2015 (UTC)
- A link to something called "Box-header" and a better description of "not working" are welcome. AKlapper (WMF) (talk) 08:21, 13 February 2015 (UTC)
How to export some datas from wiki database to import it in a local one
Hello,
Is it possible to export some datas from wiki database as label and definitions (descriptions) and insert it directly inside my joomla wiki website? I've download the an API here, but It doesn't look like being develop for this usage. Now first, can you tell me more abour this possibility and how to proceed if possible.
Thanks in advance for assistance. Internis (talk) 15:25, 13 February 2015 (UTC)
- I do not really understand what you want to do. I have done export and imports in either XML and SQL. I have even manually created a XML-file with a PHP-script and imported the file into a database. This should work. On how to do it see here.
- What I do not understand, how Joomla is supposed to come into play here. Temptuousinsolence (talk) 16:40, 18 February 2015 (UTC)
Upgraded 1.19 to 1.23, Main_Page not found
Hiya,
FreeBSD 10.1, apache 2.4.12, mysql 5.6.23, php 5.4.37. I upgraded from 1.16 to 1.19 (just installed newer mysql which allowed for the upgrade). Worked great. Upgraded from 1.19 to 1.23 and now when I load the wiki I get:
The requested URL /Main_Page was not found on this server.
Is this a simple change I missed in LocalSettings.php? I read a bunch of upgrade and release docs first. I don't see anything obvious in my apache error log..
The old wiki is up now, but it's a tad wonky since I believe the dbases were changed for the 1.23.
wiki.homedistiller.org
I can put the new/broken one in place if need be. 67.174.211.248 18:18, 13 February 2015 (UTC)
- First: If you upgraded a dtabase, make sure that it no longer gets used by an older MediaWiki version. Using it wth an older version can (will?!) create wrong entries, which will only cause trouble!
- As for the "Main_Page not found" issue, I can only guess:
- From seeing the URL fragment "/Main_Page" I guess that you had short URLs set up, right? This is usually done in the .htaccess file. Have you moved this file to the according new location? I think that currently just the redirect to index.php is no longer happening. With other word: You still can access your-domain/index.php?title=Main_Page and it shows you a wiki page. Is that right? 88.130.82.224 18:25, 13 February 2015 (UTC)
- Yes you are right that the full URL with index.php?title=Main_Page works just fine.
- I have checked all my .htaccess files and the only one with anything other than deny statements is:
- cat images/.htaccess
- Protect against bug 28235
- <IfModule rewrite_module>
RewriteEngine On
RewriteCond %{QUERY_STRING} \.[a-z0-9]{1,4}(#|\?|$) [nocase]
RewriteRule . - [forbidden]
- </IfModule>
- I have this set up as a vhost in httpd-vhosts.conf as wiki.homedistiller.org. My vhost entry:
- <VirtualHost *:80>
ServerAdmin webmaster@homedistiller.org
DocumentRoot /usr/local/www/apache24/data/wiki
ServerName wiki.homedistiller.org
ErrorLog /var/log/httpd-error.log
CustomLog /var/log/httpd-access.log combined
ScriptAlias /cgi-bin/ "data/cgi-bin/"
- </VirtualHost>
- <Directory "/usr/local/www/apache24/data/wiki">
AllowOverride FileInfo
Require all granted
- </Directory>
- What am I missing? I read the shorturl info and it seems maybe I have embedded bogus info into my wiki pages by using an old and not recommended method inadvertently? I've had this wiki up for years and am just now trying to bring it current. Dwrobison (talk) 19:06, 14 February 2015 (UTC)
- No bogus, just a few lines of code, which are missing. Where exactly you had them before is hard to tell: They could have been inside the Apache server configuration or inside an .htaccess file.
- So basically what you now have to do is set up short URLs as explained on that page: Manual:Short_URL/Apache. The .htaccess file for that has to be located outside of the wiki folder or with other words: In the parent of the parent of the images/ folder. It's all explained in Manual:Short_URL/Apache. 88.130.113.8 20:53, 14 February 2015 (UTC)
old mysql database resulting in Cannot contact the database server
I use mediawiki through a Bitnami stack on a Win 8.1 machine. I have an old mysql database (from March 2014) and I am trying to access it after installing a fresh mediawiki stack.
Everything seems to be working fine(Apache and Mysql servers are running), I have changed all the paths/variables (or so I believe). Yet, when I try to access my wiki (http://127.0.0.1:1070/mediawiki/index.php) I get the
(Cannot contact the database server)
page.
What is the best way to troubleshoot this?
I don't even know where the error logs for this type of trouble get stored in my stack.
Thanks. A1s2d3f4 (talk) 18:34, 13 February 2015 (UTC)
- This error happens when MediaWiki has a problem with the database credentials. The database credentials are saved in LocalSettings.php. I guess that one of them is wrong. 88.130.82.224 22:42, 13 February 2015 (UTC)
- Well, that's the weird thing.
- I looked at all the settings in the LocalSettings from my March2014 archive - especially $wgDBuser $wgDBpassword and made sure they were matched.
- Now I tried to actually copy over the LocalSettings from March2014 to my new install to see what would happen.
- Interestingly enough, I started seeing it trying to do "Login Required" then "Waiting" and finally getting to HTTP 500 Internal Server Error, not the (cannot contact the database server)
- Ok, let me be thoroughː
- There are various differences between this LocalSettings file and the old one.
- The old LocalSettings Contains (but the new one doesn't)ː
# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
- The new LocalSettings contains (but the old one doesn't)ː
require_once "$IP/skins/Vector/Vector.php";
...
$wgPhpCli = "C:/Bitnami/mediawiki-1.24.1-0/php\php.exe";
- Ah...
- Found one important difference - done due to my tired state, no doubt.
$wgDBname = "mediawiki_bitnami";
- I accidentally reversed it to "bitnami_mediawiki" in the new LocalSettings.
- So, now at least I get HTTP 500 page with the new LocalSettings.
- I also don't know if this matters
- Old LocalSettingsː
$wgSitename = "Fred's Wiki!";
$wgMetaNamespace = "Fred's Wiki!";
- new LocalSettingsː
$wgSitename = "fred's Wiki!";
$wgMetaNamespace = "fred's Wiki!";
- Certainly, no difference either way.
- so, how would I now troubleshoot HTTP500? A1s2d3f4 (talk) 01:36, 14 February 2015 (UTC)
- A server error 500 actually does not look better than the MediaWiki error message (Cannot contact the database server), but worse.
- For database access, of the variables you posted, only $wgDBname is relevant. The others do not matter.
- Important for DB access are $wgDBserver, $wgDBname, $wgDBpassword and $wgDBuser. See the according manual pages here on mediawiki.org for more informaton on those variables and their correct values! Note that these values depend on the MySQL server. So if you are using another server, the servername, the databasename, the DB username and the password will most likely be different from what you used before.
- After double-checking/fixing these variables, what do you get? 88.130.82.224 01:47, 14 February 2015 (UTC)
- For some strange reason I keep getting different error pages, without having touched anything myself overnightː
- This page can’t be displayed
- •Make sure the web address http://127.0.0.1:1070 is correct.
- I looked in my .err file inside mysql/data/ folder and noticed that the last set of error messages are as followsː
150214 9:44:53 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it
150214 9:44:53 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
150214 9:44:53 [ERROR] Column count of mysql.db is wrong. Expected 22, found 20. Created with MySQL 50130, now running 50540. Please use mysql_upgrade to fix this error.
150214 9:44:53 [ERROR] mysql.user has no `Event_priv` column at position 29
150214 9:44:53 [ERROR] Cannot open mysql.event
150214 9:44:53 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
- So, i figured, let me try to run "mysql_upgrade".
- I did and it tried to use mysqlcheck.exe but my bitnami stack doesn't provide this binary, so the upgrade failed.
C:\Bitnami\mediawiki-1.24.1-0\mysql\bin>mysql_upgrade.exe
Looking for 'mysql.exe' as: C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysql.exe
Looking for 'mysqlcheck.exe' as: C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysqlcheck.exe
FATAL ERROR: Upgrade failed
A1s2d3f4 (talk) 14:58, 14 February 2015 (UTC)- So in fact your MySQL installation is broken and mysql_upgrade.exe does not tell you anything helpful as to why it fails.
- If you have nothing else in the MySQL server I guess this is the case as it is broken anyway), then I would do the following: Use the old MySQL server to export your database. Result should be a database dump file. Then set up the new MySQL server just doing a new install. This should give you a working MySQL server without having to upgrade anything. Afterwards import your DB again from the dump. 88.130.113.8 17:25, 14 February 2015 (UTC)
- When you say "use the old mysql server" what do you mean?
- and
- What would be the command line to dump the database file? A1s2d3f4 (talk) 04:52, 15 February 2015 (UTC)
- I mean that you somehow must get the server running again in order to get your data out of it. Since this does not work with the new version, I would try with the old.
- You can use the tool mysqldump to create a database dump on the command line:
mysqldump db-name > dump.sql
- This will save the DB with name "db-name" to the file "dump.sql". For more information on mysqldump see the MySQL manual on mysqldump! 88.130.113.8 11:12, 15 February 2015 (UTC)
- Ah got it.
- But the thing is that mysql (mediawikiMySQL) server appears to be running fine on my machine (?). It's just that I can't get to the wiki page.
- Anyway, I did mysqldump command (I actually had to add -u username and -p options) but got a 10MB dump file. This looks small compared to the total size of the mysql/data folder/subfolders (86MB) but I am assuming it is heavily compressed or something.
- What would be the next command line to run? A1s2d3f4 (talk) 17:20, 15 February 2015 (UTC)
- No, the contents in the dump.sql file mainly are human readable text: A MySQL table definition and then all the rows from inside the according table. And that for every single table in the DB. Maybe you want to open the file with a text editor (which will react slowly due to the file size) and verify that after dumping the last table from Manual:Database_layout, it ends with something like "dump completed successfully" or something similar.
- I believe you have two different problems at the moment:
- 1. that MediaWiki is not accessible.
- 2. that MySQL is not working correctly.
- For the second problem: I see that you still can somehow access the MySQL server and data in it, but according to your error messages there is something wrong with the MySQL system databases. Anyway with broken system DB I would not really trust what the MySQL server is doing; maybe what it gives you is broken somehow. Before continuing with the DB server broken and given that MediaWiki needs the DB, I would try to fix that one first.
- Btw. I found this thread http://serverfault.com/questions/527422/mysql-upgrade-is-failing-with-no-real-reason-given, where people discuss your problem. It has a number of solutions in it, the most common one being: You obviously need to supply the MySQL root user and its password when you run mysql_upgrade on the shell an the shell must be run with administrator privileges. 88.130.97.169 18:49, 15 February 2015 (UTC)
- I ran mysql_upgrade providing my -u username and -p
- Here is the result:
Enter password: ***********
Looking for 'mysql.exe' as: C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysql.exe
Looking for 'mysqlcheck.exe' as: C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysqlch
eck.exe
Running 'mysqlcheck with default connection arguments
Running 'mysqlcheck with default connection arguments
mediawiki_bitnami.archive OK
mediawiki_bitnami.category OK
mediawiki_bitnami.categorylinks OK
mediawiki_bitnami.change_tag OK
mediawiki_bitnami.external_user OK
mediawiki_bitnami.externallinks OK
mediawiki_bitnami.filearchive OK
mediawiki_bitnami.hitcounter OK
mediawiki_bitnami.image OK
mediawiki_bitnami.imagelinks OK
mediawiki_bitnami.interwiki OK
mediawiki_bitnami.ipblocks OK
mediawiki_bitnami.iwlinks OK
mediawiki_bitnami.job OK
mediawiki_bitnami.l10n_cache OK
mediawiki_bitnami.langlinks OK
mediawiki_bitnami.log_search OK
mediawiki_bitnami.logging OK
mediawiki_bitnami.math OK
mediawiki_bitnami.module_deps OK
mediawiki_bitnami.msg_resource OK
mediawiki_bitnami.msg_resource_links OK
mediawiki_bitnami.objectcache OK
mediawiki_bitnami.oldimage OK
mediawiki_bitnami.page OK
mediawiki_bitnami.page_props OK
mediawiki_bitnami.page_restrictions OK
mediawiki_bitnami.pagelinks OK
mediawiki_bitnami.protected_titles OK
mediawiki_bitnami.querycache OK
mediawiki_bitnami.querycache_info OK
mediawiki_bitnami.querycachetwo OK
mediawiki_bitnami.recentchanges OK
mediawiki_bitnami.redirect OK
mediawiki_bitnami.revision OK
mediawiki_bitnami.searchindex OK
mediawiki_bitnami.site_stats OK
mediawiki_bitnami.tag_summary OK
mediawiki_bitnami.templatelinks OK
mediawiki_bitnami.text OK
mediawiki_bitnami.trackbacks OK
mediawiki_bitnami.transcache OK
mediawiki_bitnami.updatelog OK
mediawiki_bitnami.uploadstash OK
mediawiki_bitnami.user OK
mediawiki_bitnami.user_former_groups OK
mediawiki_bitnami.user_groups OK
mediawiki_bitnami.user_newtalk OK
mediawiki_bitnami.user_properties OK
mediawiki_bitnami.valid_tag OK
mediawiki_bitnami.watchlist OK
mysql.columns_priv OK
mysql.db OK
mysql.func OK
mysql.help_category
error : Table upgrade required. Please do "REPAIR TABLE `help_category`" or d
ump/reload to fix it!
mysql.help_keyword
error : Table upgrade required. Please do "REPAIR TABLE `help_keyword`" or du
mp/reload to fix it!
mysql.help_relation OK
mysql.help_topic
error : Table upgrade required. Please do "REPAIR TABLE `help_topic`" or dump
/reload to fix it!
mysql.host OK
mysql.proc
error : Table upgrade required. Please do "REPAIR TABLE `proc`" or dump/reloa
d to fix it!
mysql.procs_priv OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name
error : Table upgrade required. Please do "REPAIR TABLE `time_zone_name`" or
dump/reload to fix it!
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Repairing tables
mysql.help_category OK
mysql.help_keyword OK
mysql.help_topic OK
mysql.proc OK
mysql.time_zone_name OK
Running 'mysql_fix_privilege_tables'...
OK
- In the end of my dump file I see:
- -- Dump completed on 2015-02-15 12:15:55
- I'll have to read all of the text contents to verify that all my pages (at least those I remember) are intact.
- Still can't access mediawiki!
- (Page Cannot Be Displayed) A1s2d3f4 (talk) 20:29, 15 February 2015 (UTC)
- Looks like the dump is complete then.
- So with that mysql_upgrade command, you are making progress with the MySQL upgrade. And when you now run that mysql_upgrade with exactly the same parameters again, then it says...?
- If it says everything is ok, then you should no longer get these errors in the MySQL log now, right? 88.130.97.169 20:43, 15 February 2015 (UTC)
- Correct - no more errors.
- tried to see what's going on with the error log but then I noticed that my mediawikiApache server is not running because somehow httpd.exe file is gone. That's right - gone (I know I didn't go in and delete it; antivirus, perhaps, but that's a first).
- So, reinstalling bitnami stack from scratch.
- Copying all the data files/Local settings.
- Error log doesn't contain errors now.
150215 21:37:03 [Note] C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysqld.exe: ready for connections.
Version: '5.5.40' socket: port: 3306 MySQL Community Server (GPL)
- But I am back to HTTP 500 Error page.
- Maybe i need a reboot. A1s2d3f4 (talk) 02:40, 16 February 2015 (UTC)
- Correct - no more errors.
- tried to see what's going on with the error log but then I noticed that my mediawikiApache server is not running because somehow httpd.exe file is gone. That's right - gone (I know I didn't go in and delete it; antivirus, perhaps, but that's a first).
- So, reinstalling bitnami stack from scratch.
- Copying all the data files/Local settings.
- Error log doesn't contain errors now.
150215 21:37:03 [Note] C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysqld.exe: ready for connections.
Version: '5.5.40' socket: port: 3306 MySQL Community Server (GPL)
- But I am back to HTTP 500 Error page.
- Maybe i need a reboot.
- ...
- No, did nothing.
- I don't know where to look for the error log for this.
- And just to confirm - if I use the virgin installation data and LocalSettings, the wiki comes up no problem. (If only I could get my old data to magically appear instead of the new blankness :)
- So, there is something about my LocalSettings and mysql/data combination that causes doesn't work with the current installation. A1s2d3f4 (talk) 02:40, 16 February 2015 (UTC)
- Puhh, hard to fix, when there suddenly are new problems arising.
- I expect that the MySQL server now is fine and that your data is in a DB in it. Maybe you have another application or maybe even the command line to test, if you can successfully connect to the MySQL server and use the DB - using those credentials, which you have in LocalSettings.php. That should work now; e.g. you should be able to count the rows in the text table.
- For the error 500 have a look at the Apache error log; it is most likely located somewhere inside the apache/ folder. It should have more information on the reason for the error 500. 88.130.97.169 11:41, 16 February 2015 (UTC)
- No reason that I can find - but here is the latest entries in both log files:
- access.log:
127.0.0.1 - - [17/Feb/2015:11:40:12 -0500] "GET /mediawiki/index.php HTTP/1.1" 500 267
- error.log
[Tue Feb 17 11:40:00.113036 2015] [ssl:warn] [pid 5360:tid 644] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 17 11:40:00.175555 2015] [core:warn] [pid 5360:tid 644] AH00098: pid file C:/Bitnami/mediawiki-1.24.1-0/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Feb 17 11:40:00.300556 2015] [ssl:warn] [pid 5360:tid 644] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 17 11:40:00.331790 2015] [mpm_winnt:notice] [pid 5360:tid 644] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.0 configured -- resuming normal operations
[Tue Feb 17 11:40:00.331790 2015] [mpm_winnt:notice] [pid 5360:tid 644] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:07:40
[Tue Feb 17 11:40:00.331790 2015] [core:notice] [pid 5360:tid 644] AH00094: Command line: 'C:\\Bitnami\\MEDIAW~1.1-0\\apache2\\bin\\httpd.exe -d C:/Bitnami/mediawiki-1.24.1-0/apache2 -f C:\\Bitnami\\MEDIAW~1.1-0\\apache2\\conf\\httpd.conf'
[Tue Feb 17 11:40:00.331790 2015] [mpm_winnt:notice] [pid 5360:tid 644] AH00418: Parent: Created child process 4404
[Tue Feb 17 11:40:00.715926 2015] [ssl:warn] [pid 4404:tid 532] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 17 11:40:00.903419 2015] [ssl:warn] [pid 4404:tid 532] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 17 11:40:00.920590 2015] [mpm_winnt:notice] [pid 4404:tid 532] AH00354: Child: Starting 64 worker threads.
- Should I start another thread for this issue? A1s2d3f4 (talk) 16:42, 17 February 2015 (UTC)
- Yes, that would be an idea. What you have posted there is from the right file, error.log, but it does not contain information on an error 500. 88.130.97.28 18:23, 17 February 2015 (UTC)
Vector Skin: Tabs
Hi, I was customizing the vector skin on my website, but I have a little problem to complete my design. I've been struggling with the tabs a lot of times. I want to change the border of the tabs, but when I've finally changed it, it change the background of the tabs as well. I've tried multiple things, and was even trying to figure it out at the map were the borders of the tabs are, but it ends up even worse. I hope you guys can help me out with this.
Thank you for your time. KidProdigy (talk) 00:57, 14 February 2015 (UTC)
- This can simply be done with CSS. Vector is setting a background-image for div.vectorTabs span. This background image contains these blue lines, which are fading out towards the top. So this is what you have to change.
- You can for example upload your own background image with dimensions 1x46px and set up according CSS rules in the wiki page MediaWiki:Vector inside your wiki to use it. 88.130.82.224 02:00, 14 February 2015 (UTC)
- MediaWiki:Vector.css(!) is the actual name of the page. I would have fixed it, but mediawiki.org does not save changes to my previous post. 88.130.82.224 02:02, 14 February 2015 (UTC)
- Tried that, but it takes the whole tab if the blue line is edited. KidProdigy (talk) 09:59, 14 February 2015 (UTC)
How to use $wgUploadStashScalerBaseUrl?
I got ten about 10k page level wiki using a "common" image wiki. Image files will be sent to "common" wiki server by nfs. However, thumbnail are actually render locally then send to "common". We would like the thumbnail request sent to "common" by $wgUploadStashScalerBaseUrl. But don't know how to set up a point to receive the requests.
I notice wikipedia using following configuration: $wgUploadStashScalerBaseUrl = "//{$wmfHostnames['upload']}/$site/$lang/thumb/temp";
But how the receive side receive and process the request? $wgThumbnailScriptPath to thumb.php? Zoglun (talk) 01:41, 14 February 2015 (UTC)
[RESOLVED] How to find a certain URL within wikitext?
How can I find certain URLs within my articles via the search?
I suppose that the search engine only finds URLs that are not included in [ ]
.
for example finds the article. Whereas doesn't find the URL - probably because it is included in [ ]
.
Any way to find an URL regardless of the surrounding wikitext? Stefahn (talk) 11:26, 14 February 2015 (UTC)
- Try insource:"URL"
- FriedhelmW (talk) 18:30, 14 February 2015 (UTC)
- Thanks a lot!
- Just figured out that this only works in MW 1.24 (see Help:CirrusSearch#insource:).
- Another reason to upgrade :) Stefahn (talk) 17:20, 26 February 2015 (UTC)
- Thanks a lot!
Autocategorization?
Hi.
I know it may sound weird, but is it possible to configure/extend MediaWiki somehow so make it add categories out of certain linked articles? Let's say, if I refer [[Alice]] and [[Bob]], then [[Category:Alice]] and [[Category:Bob]] categories are added automatically. This question is a result of our wiki team discussion, where some teammates consider that "What links here" is not enough or visible enough for a regular user, and categories are better for navigation (IMHO, categorization may be considered a Sisyphus' work, whereas "What links here" is a zero-cost thing).
Your help is really appreciated. Thank you in advance. 194.44.30.245 15:32, 15 February 2015 (UTC)
[RESOLVED] File Upload Error
RESOLVED | |
If file permissions in folders are not the problem, check out if SELinux is blocking apache from creating the file |
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.
Good morning. I seem to be having some issues. I get the following when trying to upload a file: Internal Error [3a9c03ba] 2015-02-15 15:37:53: Fatal exception of type MWException
Any help would be appreciated. 71.31.165.106 15:39, 15 February 2015 (UTC)
- Please add
$wgShowExceptionDetails = true;
to your LocalSettings.php to see the ful error message and a stack trace. This error message and stack trace you should post here :) Florianschmidtwelzow (talk) 16:24, 15 February 2015 (UTC)- I just got that enabled:
- [94bbdfd6] /index.php/Special:Upload Exception from line 1871 of /var/www/html/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Doink.png.'
- Backtrace:
- 0 /var/www/html/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
- 1 /var/www/html/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
- 2 /var/www/html/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
- 3 /var/www/html/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload()
- 4 /var/www/html/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
- 5 /var/www/html/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
- 6 /var/www/html/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
- 7 /var/www/html/includes/MediaWiki.php(584): MediaWiki->performRequest()
- 8 /var/www/html/includes/MediaWiki.php(435): MediaWiki->main()
- 9 /var/www/html/index.php(46): MediaWiki->run()
- 10 {main} 71.31.165.106 16:52, 15 February 2015 (UTC)
- See Project:Support desk/Flow/2012/12#h-[SOLVED?]_Problem_With_File_Upload:_Could_not_acquire_lock_for_"mwstore://local--2012-12-18T16:18:00.000Z if that helps Ciencia Al Poder (talk) 10:31, 16 February 2015 (UTC)
- This is happening to me also on a fresh install on Centos 7 (3.10.0-123.el7.x86_64)
- MediaWiki 1.24.1
- PHP 5.4.37 (apache2handler)
- MySQL 5.6.23
- I set these debug options in LocalSettings.php:
# DEBUG error_reporting( -1 ); ini_set( 'display_errors', 1 ); $wgShowSQLErrors = true; $wgDebugDumpSql = true; $wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true;
- Backtrace:
#0 /var/www/html/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock() #1 /var/www/html/mediawiki-1.24.1/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User) #2 /var/www/html/mediawiki-1.24.1/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User) #3 /var/www/html/mediawiki-1.24.1/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload() #4 /var/www/html/mediawiki-1.24.1/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL) #5 /var/www/html/mediawiki-1.24.1/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL) #6 /var/www/html/mediawiki-1.24.1/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext) #7 /var/www/html/mediawiki-1.24.1/includes/MediaWiki.php(584): MediaWiki->performRequest() #8 /var/www/html/mediawiki-1.24.1/includes/MediaWiki.php(435): MediaWiki->main() #9 /var/www/html/mediawiki-1.24.1/index.php(46): MediaWiki->run() #10 {main}
- Also, this error appears on-screen after the failed upload (with the above debugging options on):
Warning: fopen(/var/www/html/mediawiki-1.24.1/images/lockdir/dmzfox3ljn7ipsdr0zlw44nwle1qlbp.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki-1.24.1/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] in /var/www/html/mediawiki-1.24.1/includes/debug/MWDebug.php on line 302
- If you set a debug.log up, this seems to be the relevant tidbit:
[warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [warning] failed to mkdir "/var/www/html/mediawiki-1.24.1/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki-1.24.1/includes/GlobalFunctions.php at line 2582] [exception] [2c79a15b] /index.php/Special:Upload Exception from line 1871 of /var/www/html/mediawiki-1.24.1/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Images_(18).jpg.'
- So, I think it's a permissions thing in general and maybe an SELinux thing in particular? But I can't figure it out. I've set the images dir chmod -R 777. Any idea what's up here? 2601:7:1C00:911:5824:F046:6C6D:DDE1 Nathan in Portland 05:35, 19 February 2015 (UTC)
- If you think it's a SELinux problem, try disabling it and see if upload works. Ciencia Al Poder (talk) 10:42, 19 February 2015 (UTC)
- So, here is what finally fixed it for me:
sudo mkdir /var/www/html/mediawiki-1.24.1/images/temp chmod -R 777 /var/www/html/mediawiki-1.24.1/images sudo setsebool -P httpd_unified 1
- The last command was suggested by the log dumped to screen when you run
audit2allow -a -w
- If you think it's a SELinux problem, try disabling it and see if upload works. Ciencia Al Poder (talk) 10:42, 19 February 2015 (UTC)
So I guess it's SELinux. I will try to see if it stick after a reboot. I hope this helps somebody. 2601:7:1C00:911:5824:F046:6C6D:DDE1 Nathan in Portland 12:42, 19 February 2015 (UTC)
- This worked for me, thanks! Aric Forrest 19:19, 8 April 2015 (UTC)
- This also worked for me. I was convince the problem was related to the $wgScriptPath.
- Thanks for the tip. 66.219.240.170 17:18, 15 June 2015 (UTC)
- worked for me! tranks 189.40.44.111 18:06, 1 July 2015 (UTC)
- Worked for me too, many thanks!!! 167.58.6.127 (talk) 15:32, 14 September 2015 (UTC)
How to delete my account?
- Sorry but i searched now a lot on this pages and didnt find any hint.
- How can i delete my account?
- Thanks for help!
- newshenk Newshenk (talk) 15:28, 16 February 2015 (UTC)
- Since mediawiki does not support user deletion, you can't delete user account in pure mediawiki setups. User deletion may cause many problem with wiki's historic features, like page history or recent changes and logs etc. But if you really want to remove an account, you may use Extension:UserMerge. A detailed information is in extension's page. *devunt (talk) 15:34, 16 February 2015 (UTC)
- According to EU GDPR a user should be able to delete / erase his/her own profile.
- How do you plan to solve this issue? Gengszter (talk) 19:36, 6 June 2018 (UTC)
- For account deletion see GDPR (General Data Protection Regulation) and MediaWiki software#Deleting User accounts 2001:16B8:101A:200:D1C3:3F7F:9E12:ABDC (talk) 20:41, 6 June 2018 (UTC)
Cannot get files to seed
Hello,
I am inexperienced with Vuze but have been reading through everything on the website to try to get my files to seed. I did see seeds available but all files were simply waiting in the queue for days. The instructions that I have found give information based on what type of smiley face is shown, but I had no face at all. In an attempt to follow instructions, I went under Advanced settings and clicked on Connections>Proxy>Enable proxying of tracker communication. This finally prompted some files to begin seeding, but for every one I received the error message "Invalid port." Eventually, all files went back into the queue. Is there something I need to alter with my firewall to get files to seed?
Thanks for any assistance you can offer. Kayla 17:28, 16 February 2015 (UTC)
- This request seems about some Bittorrent Client called Vuze but this page is a support desk about a software called MediaWiki which is unrelated to Vuze. You might want to ask in a support forum for Vuze. AKlapper (WMF) (talk) 09:49, 17 February 2015 (UTC)
- Sorry, the Vuze Help link directs me to this page, so I thought someone may be familiar with Vuze here. Thanks anyway. Kaylah1314 (talk) 16:04, 17 February 2015 (UTC)
- Oh, I see. Vuze probably uses MediaWiki as the software behind their website. AKlapper (WMF) (talk) 16:47, 17 February 2015 (UTC)
- For future ref: https://wiki.vuze.com/ ☠MarkAHershberger☢(talk)☣ 17:03, 17 February 2015 (UTC)
- Oh, I see. Vuze probably uses MediaWiki as the software behind their website. AKlapper (WMF) (talk) 16:47, 17 February 2015 (UTC)
- Sorry, the Vuze Help link directs me to this page, so I thought someone may be familiar with Vuze here. Thanks anyway. Kaylah1314 (talk) 16:04, 17 February 2015 (UTC)
Photos
Is there a way to upload a Photo or Photos of the subject? Shawnten (talk) 03:14, 17 February 2015 (UTC)
- Help:Managing_files AKlapper (WMF) (talk) 09:50, 17 February 2015 (UTC)
[RESOLVED] extdist.wmflabs.org down
--2015-02-17 20:11:30-- https://extdist.wmflabs.org/dist/extensions/RSS-REL1_24-e9f786a.tar.gz Resolving extdist.wmflabs.org (extdist.wmflabs.org)... 208.80.155.156 Connecting to extdist.wmflabs.org (extdist.wmflabs.org)|208.80.155.156|:443... failed: Connection timed out.
Been like this for a few hours at least 93.217.89.244 19:13, 17 February 2015 (UTC)
- Seems to be back up! 93.217.89.244 21:01, 17 February 2015 (UTC)
Favicon is not appearing on all wikis
The setting is
$wgFavicon = "/w/favicon.ico"
and there is also one under /.
The favicon appears on this wiki
http://nazis.exposed/wiki/Main_Page
but not this one.
http://www.geekipedia.rs.pe/wiki/Main_Page Lieutenant Aleksandr Reznov 03:19, 18 February 2015 (UTC)
- That wiki generates the following HTML:
<link rel="shortcut icon" href="/w/images/logos/mwf_nerdwiki.ico" />
- But that URL points to a 404 error page.
- Check the correctness of $wgFavicon Ciencia Al Poder (talk) 10:39, 18 February 2015 (UTC)
[RESOLVED] How to make leftside drop-down menu
Mediawiki 1.24 leftside menu goes without drop-down. Example → http://take.ms/mSKFO
Previos version has drop-down menu. Example → http://take.ms/61noM
Is it possible to make menu with drop-down items. Probably, there is setting in LocalSetting.php? Ektip (talk) 09:46, 18 February 2015 (UTC)
- That's not exactly a drop-down as we understand ;)
- That feature was removed from Vector skin, and was moved to an extension. See Extension:CollapsibleVector Ciencia Al Poder (talk) 10:40, 18 February 2015 (UTC)
Call a template on a page and edit sections without editing the template
I have a template with the following content:
== Section 1 == == Section 2 == == Section 3 ==
I then call the template on a page:
{{Template:mypage)
On my page I can edit each section, but if I do that it will edit the template, not the page. Sure I can use the "subst:", but that is not very scalable. Let’s say I have one template with all my headers. I then have 100 pages that retrieves content from that template. If I use "subst" to call the template I will have to edit all the pages again in order to apply the changes. To fix this I then did a template for every header, example:
template:section 1 {{{section 1}}}
Then I did a page for every template to get the right format:
:section 1 {{section 1 |section 1 = === section 1 === }}
My page (page 1) was then populated like this:
{{:section 1}} {{:section 2}} {{:section 3}}
If I want a different name for "section 1" I just edit the page "section 1", but on my page (page 1) the edit function does not show up, I will have to edit the whole page in order to edit some data and with much data that isn’t very user friendly, and I can’t refer to different section on page 1. So, is there I way to get this working with templates or extensions? 194.68.104.17 13:06, 18 February 2015 (UTC)
- My recommendation would be, on the original template, edit it to look like this.
Template:(whatever page name) ===Section {{{1|(whatever section name you want as the default)}}}=== ===Section {{{2|(whatever section name you want as the default)}}}=== ===Section {{{3|(whatever section name you want as the default)}}}===
- Everything on the right of the | is the default name. Then when you call for it, it should show up as {{(whatever template name)|whatever section 1 name you want|whatever section 2 name you want|whatever section 3 name you want}}. I think that ought to work, but... 2601:B:A800:F0:255B:C9E0:70:7FDD 16:02, 23 February 2015 (UTC)
- It looks good. I created a template with the above content. I then created a page where I called the template. The sections showed up, but when I click edit it jumps back to the template.. 194.68.104.17 08:05, 2 March 2015 (UTC)
Spoiler does not appers in navigational tables with state=autocollapse (or any other states)
Mediawiki 1.24 nav table with state = autocollapse (or any other states) does not display Show/Hide spoiler. Screenshot → http://take.ms/55Ex0 on this page
Previos version same table. Screenshot → http://take.ms/soCUx has the spoiler
What may be the problem? Ektip (talk) 14:15, 18 February 2015 (UTC)
problems importing infoboxes
MediaWiki 1.23.8 PHP 5.6.5 (cgi-fcgi) on IIS 7.5 MySQL 5.6.22-log Lua 5.1.4
I am trying to import the infoboxes exported from wikipedia and I keep having trouble with Scribunto. I tried downloading/installing the latest master and now I am getting an exception in LuaCommon.php: No class for library "mw.site" 209.252.234.128 20:54, 18 February 2015 (UTC)
- If you want to use the latest master of scribunto, you need to use the latest master of mediawiki 1.25. Use the 1.23 version of scribunto if you rightfully don't want to use experimental software on a production wiki. 121.219.238.124 01:36, 19 February 2015 (UTC)
- That is the version I was using before. Now that I am reverted back to it, I get the Lua error
- Lua error in mw.html.lua at line 253: Invalid class given: The name must be either a string or a number.
- which I am led to believe is a known bug? I do not know how to fix it, though. 209.252.234.128 14:42, 19 February 2015 (UTC)
- It's not a bug, just a change in behavior. mw.html used to not accept nil values, but that was changed in a later version (not backported to 1.23). Wikipedia's modules are designed to work with the version of scribunto that wikipedia uses, and so it happily passes values around without bothering to check if they're nil, thus breaking compatibility with previous versions of scribunto.
- The solution is to use an older version of wikipedia's infoboxes, either pre passing nil values around, or pre scribunto entirely. Infoboxes can be really quite simple, unless you need some advanced functionality, using scribunto to build them is massively overkill. You could even use plain wikitables to make infoboxes, with the right styling. 121.219.238.124 06:28, 20 February 2015 (UTC)
- That is the version I was using before. Now that I am reverted back to it, I get the Lua error
Watchlist not sending emails
Hello,
I have been working with mediawiki these last few days trying to get notifications to work properly. To give some background Watchlist DID work back last year until sometime around april when it quit sending emails. The project was put off until now and I am tasked with getting notifications to work again.
Initially we were getting zero notifications period, now after adding $wgUsersNotifiedOnAllChanges = array( 'user1', 'user2' ); and disabling SELinux I am able to get notified on all changes.
Unfortunately the watchlist still appears to be broken.
Here is part of my LocalSettings.php
$wgEnableEmail = true; $wgEnableUserEmail = true;
$wgEmergencyContact = "wiki@company.net"; $wgPasswordSender = "wiki@company.net";
$wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = false; $wgUsersNotifiedOnAllChanges = array( 'user1', 'user2' );
$wgSMTP = array(
'host' => "wh.company.net", 'IDHost' => "wh.company.net", 'port' => 25, 'auth' => false,
);
I've tried changing $wgEmailAuthentication = false; and in both cases true or false I don't get any watchlist updates however the notify on all changes still works.
Sorry for not being able to give more information, my big question is what other places might there be in mediawiki where a setting is preventing the sending of watchlist updates? Additionally is there any reason to think that my current version may be the problem?
Product Version MediaWiki 1.21.2 PHP 5.3.3 (apache2handler) MySQL 5.1.73
Thanks for the help,
Regards,
Jacob 64.85.160.4 00:15, 19 February 2015 (UTC)
- Did you check the apache logs, whether they contain something?
- There is also a new version of the SMW-Watchlist available via composer. Temptuousinsolence (talk) 08:23, 19 February 2015 (UTC)
- Yeah I have looked at the logs and no couldn't find an explanation in them. I think the best course of action will be installing SMW-Watchlist and see if that works better.
- Thanks for the help. 64.85.160.4 03:13, 27 February 2015 (UTC)
- You could try to enable the debug log as explained in Manual:How to debug, and perform an action that should trigger the email, then see the debug log to any message related to the email function.
- You could also check the Manual:Job queue to see how many jobs are on the table. I don't remember if email notifications are handled by the job queue, but if they are and there's some problem on it, it could be also the problem. Ciencia Al Poder (talk) 10:50, 27 February 2015 (UTC)
HTTP 500 problem when trying to access mediawiki
I use mediawiki through a "bitnami stack" Recently I have been trying to use an old archive of my mysql data from 2014 with the new install of mediawiki (version 1.24.1.0).
I installed everything and the virgin installation is working fine.
As soon as I replace the virgin mysql/data folder with my folder from 2014 (as well as updating the LocalSettings.php, I get HTTP 500 Internal Server Error page. I can see it trying to do "Login Required...", "Waiting..." steps before failing.
Also, it updates the date modified of the following files in mysql/data: ibdata1,ib_logfile1 and ib_logfile0.
I don't see any obvious errors in apache error logs and nothing is written to mysql error log.
What is the best way to trouble shoot this? I do not understand how mediawiki works but I can run commandline commands and look inside files, etc. A1s2d3f4 (talk) 03:23, 19 February 2015 (UTC)
- What is in the log of the web server software? AKlapper (WMF) (talk) 12:15, 19 February 2015 (UTC)
- This is what appears in access.log, whenever I try to access wiki at the wiki address:
127.0.0.1 - - [19/Feb/2015:16:14:23 -0500] "GET /mediawiki/index.php HTTP/1.1" 500 267
- If I just do 127.0.0.1:1070 (my apache port), I get to the "Bitnami Welcome page".
- This is what appears in error.log if I manually shut down, and then restart httpd.exe service:
[Wed Feb 18 22:15:30.084186 2015] [mpm_winnt:notice] [pid 7716:tid 536] AH00422: Parent: Received shutdown signal -- Shutting down the server.
Apache server interrupted...
[Wed Feb 18 22:15:32.114153 2015] [mpm_winnt:notice] [pid 8728:tid 556] AH00364: Child: All worker threads have exited.
[Wed Feb 18 22:15:32.145404 2015] [mpm_winnt:notice] [pid 7716:tid 536] AH00430: Parent: Child process 8728 exited successfully.
[Wed Feb 18 22:15:44.874027 2015] [ssl:warn] [pid 7064:tid 640] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Wed Feb 18 22:15:45.061546 2015] [ssl:warn] [pid 7064:tid 640] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Wed Feb 18 22:15:45.092797 2015] [mpm_winnt:notice] [pid 7064:tid 640] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.0 configured -- resuming normal operations
[Wed Feb 18 22:15:45.092797 2015] [mpm_winnt:notice] [pid 7064:tid 640] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:07:40
[Wed Feb 18 22:15:45.092797 2015] [core:notice] [pid 7064:tid 640] AH00094: Command line: 'C:\\Bitnami\\MEDIAW~1.1-0\\apache2\\bin\\httpd.exe -d C:/Bitnami/mediawiki-1.24.1-0/apache2 -f C:\\Bitnami\\MEDIAW~1.1-0\\apache2\\conf\\httpd.conf'
[Wed Feb 18 22:15:45.092797 2015] [mpm_winnt:notice] [pid 7064:tid 640] AH00418: Parent: Created child process 3620
[Wed Feb 18 22:15:45.657518 2015] [ssl:warn] [pid 3620:tid 544] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Wed Feb 18 22:15:45.847697 2015] [ssl:warn] [pid 3620:tid 544] AH01909: 127.0.0.1:768:0 server certificate does NOT include an ID which matches the server name
[Wed Feb 18 22:15:45.863323 2015] [mpm_winnt:notice] [pid 3620:tid 544] AH00354: Child: Starting 64 worker threads.
A1s2d3f4 (talk) 21:24, 19 February 2015 (UTC)- Try setting the display of PHP errors as explained in Manual:How to debug.
- It's strange that such errors don't show up in the error log, though. Ciencia Al Poder (talk) 10:48, 20 February 2015 (UTC)
- Could this post from Stackoverflow point in the right direction? That it is an issue of the server configuration? More information in the configuration would be necessary to help to clear matters up. Temptuousinsolence (talk) 14:01, 20 February 2015 (UTC)
- @Temptuousinsolence
- I looked at the link and couldn't make sense of the answer.
- Seems like the answerer talks about there needing to be a correct "certificate".
- I could only find this one: C:\Bitnami\mediawiki-1.24.1-0\apache2\conf\server.crt
- There are a bunch of alphanumeric characters in it. If I open it with "Crypto Shell Extension" it talks about it being issued to "www.example.com".
- There is also a similar file in C:\Bitnami\mediawiki-1.24.1-0/apps/phpmyadmin/conf/certs/server.crt"
- Really not sure what to do and how to change things. Again, as per my OP, if I use the original mysql/data and LocalSettings, all works fine. Only changing those things breaks the wiki
- @Ciencia Al Poder
- I tried to follow all the directions on the How to Debug page.
- I changed php.ini to display Errors (set to On)
- I added the following to the LocalSettings
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
$wgDebugToolbar = true;
$wgShowDebug = true;
$wgDevelopmentWarnings = true;
$wgDebugLogFile = "c:/Bitnami/debug-{$wgDBname}.log";
- But I am not seeing the debug file appear. A1s2d3f4 (talk) 21:38, 21 February 2015 (UTC)
- Be sure c:/Bitnami/ is writable by the webserver. You may want to create a new folder just for the logs and allow the pseudo-account "Everyone" full rights.
- If you still get the 500 error and no exception detail is shown, you can also try to set
display_startup_errors
in php.ini as explained on the how to debug file. Ciencia Al Poder (talk) 13:39, 22 February 2015 (UTC)- I set debug file to c:\temp\debug.log. If I manually create a file there using Windows' "New" option, I can make one there. I can also save to that folder from Notepad.
- I checked the "properties/Security" of that folder - All permissions are checked for any user/system/administrator.
- I am just not getting a debug file when I try to open the wiki - seems like not getting the debug file is the number one problem here.
- When you say "writable by the webserver" - what does that mean? How do I check? Is that different from one of the Windows options "Group or user names" (Authenticated Users, SYSTEM, Administrators, Users)?
- in php.ini
- display_start_errors is set to
display_startup_errors = On
- edit:
- Interestingly enough, if I try to access wiki through firefox or chrome, I just get a blank page - nothing on it. A1s2d3f4 (talk) 02:39, 23 February 2015 (UTC)
- The "everyone" group is a special group. Normally, the apache server run by bitnami runs under a service account, and not your user account or the Administrator account, so it has restricted permissions.
- You should specifically add that group to the folder permissions and grant access. Since I don't know what user is running the server, I suggest using the "everyone" group that should include it.
- I also assume your php.ini doesn't have
open_basedir
set, which would also cause that PHP can't write on locations outside the application directory. Ciencia Al Poder (talk) 10:24, 23 February 2015 (UTC)- I located open_basedir and, not knowing what to set it to, experimented with different options (none of which solved the problem).
- Right now it's set to
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/open-basedir
open_basedir = C:\Bitnami\mediawiki-1.24.1-0\
- with LocalSettings
$wgDebugLogFile = "C:\Bitnami\mediawiki-1.24.1-0\debug.log";
- So, I looked online about creating "Everyone permissions" and found this site: http://www.howtogeek.com/school/windows-network-sharing/lesson7/all/
- I followed the instructions and enabled sharing on C:\Bitnami\mediawiki-1.24.1-0\ folder. I set Sharing to on, called the share "mediawiki" and set Share Permissions to "Everyone" with all "Allow" checkboxes checked.
- That's giving me nothing.
- I then did the same for my c:\temp\ folder. (calling the share "temp", i.e., <mycomputername>/temp on the network)
- Nothing.
- In fact, I tried setting the path of debug file in LocalSettings and open_basedir using
\\<my computer name>\temp
- string. A1s2d3f4 (talk) 14:04, 23 February 2015 (UTC)
- open_basedir is to set restrictions. If you set it, you're setting a restriction. I guess that a bit of research won't harm you.
- Filesystem permissions are not file sharing permissions. Sharing a folder on the network won't make it writable to other people if the filesystem already imposes a permission restriction. Maybe you need to find a windows forum where people could explain you how to give permissions to the "everyone" group. Ciencia Al Poder (talk) 20:47, 23 February 2015 (UTC)
- I think I am finally getting somewhere with this problem.
- I accidentally noticed that my (windows) Services list listed an Apache2.4 service as well as a mediawikiApache service (the typical name of the service when it is installed.)
- As soon as I stopped mediawikiApache and started Apache2.4, I immediately got some debug info right there on the wiki address page.
- (Still, no debug file dump, though, although I have spent upwards of 2 hours researching Windows 8 permissions and all that - I still don't get it - must be slow. Apache is listed as a SYSTEM in my task manager and it looks like SYSTEM has all the access to the folder I am trying to write debug dump file to.)
- Anyway, I might go back and completely reinstall everything again, making sure that I have no "Apache" services left on my system AT ALL.
- Interesting. A1s2d3f4 (talk) 23:22, 24 February 2015 (UTC)
- Could this post from Stackoverflow point in the right direction? That it is an issue of the server configuration? More information in the configuration would be necessary to help to clear matters up. Temptuousinsolence (talk) 14:01, 20 February 2015 (UTC)
Dot in article name bring to 404 Error on MW
Article was named «Tmall.com»
Then URL generated → http://kupi-v-kitae.info/Tmall.com and server give error 404
Is this the common behavior and is it possible to fix it by replacement «.»-symbol to any code like blank character are replaced by %20-symbol? Ektip (talk) 07:49, 19 February 2015 (UTC)
- Works for me ...
- I would suspect that it has something to do how the url is being resolved on your side. How did you set up the url of the MediaWIki environment? Temptuousinsolence (talk) 08:31, 19 February 2015 (UTC)
- I have mad short URLs by
- 1. setting in LocalSetting.php the following options:
## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = ""; $wgScriptExtension = ".php"; $wgArticlePath = "/$1"; $wgUsePathInfo = false;
- 2. .htaccess rules
RewriteEngine On RewriteRule ^[^:]*\. - [L] RewriteRule ^[^:]*\/ - [L] RewriteRule ^/*$ /index.php?title=Заглавная_страница [L,QSA] RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
- Probably here is the fix required. Pls, advice. Ektip (talk) 14:18, 22 February 2015 (UTC)
- Your RewriteRules contain a number of problems: The first two will break pages with "." and "/" in the name and the last two can easily run you into an Apache bug.
- Please check Short URLs to see, which RewriteRules are recommended for your scenario! 88.130.115.129 16:47, 22 February 2015 (UTC)
- I have also 404 error when generating pages for different languages like http://kupi-v-kitae.info/Test/en
- Pls. advice. Ektip (talk) 14:18, 22 February 2015 (UTC)
[RESOLVED] Media wiki slow when saving pages - Probablly bug
Hello,
I've been installed media wiki 1.24.1 on my Debian 6 x64 with PHP 5.3.37 and Mysql 5.1.73. All it's working well but when I edit a page and click in "save" it's take about 20 seconds to save the page and in this time media wiki stop to answer and the users can't load another pages in this time.
I already try to edit LocalSetting.php changing runJobRate variable, mysql-tuning-primer.sh script and without results.
The problem looks isn't performance, because my server its with load average 0.00, 0.00 , 0.00 and cpu 1% when saving pages.
What can be the problem and how can I solve this? (My media wiki has only 30 articles and 5 users only). 200.175.3.250 13:02, 19 February 2015 (UTC)
- Hi!
- You should enable profiling in MediaWiki in oder to get more details about which function consumes which amount of time. See [version of Manual:Profiling]! You can save the profiling data in the file specfied in $wgDebugLogFile.
- After you set up profiling, do a page save and have it profiled. Afterwards, please post the resulting log output here. Please note that this log might contain sensitive data like your cookie, which would potentially enable others to (mis)use the account, which was profiled in that request. You might want to edit out the cookie data before posting things here. 88.130.114.156 17:59, 19 February 2015 (UTC)
- Below, the result of profiling the slow action of submit pages:
- 200.175.3.250 12:21, 20 February 2015 (UTC)
Start request POST /index.php?title=Foobar&action=submit HTTP HEADERS: HOST: wiki.nhs.local USER-AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 ACCEPT-LANGUAGE: en-US,en;q=0.5 ACCEPT-ENCODING: gzip, deflate REFERER: http://wiki.nhs.local/index.php?title=Foobar&action=edit COOKIE: nhswiki_nw__session=<MY SESSION>; nhswiki_nw_UserName=<MY USER>; nhswiki_nw_UserID=1 CONNECTION: keep-alive CONTENT-TYPE: multipart/form-data; boundary=---------------------------11114012719236614911958152357 CONTENT-LENGTH: 1921 [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB Connected to database 0 at 127.0.0.1:3306 Fully initialised [ContentHandler] Created handler for wikitext: WikitextContentHandler User: cache miss for user 1 Connected to database 0 at 127.0.0.1:3306 MessageCache::load: Loading pt-br... got from global cache User: loading options for user 1 from database. User: logged in from session EditPage::edit: enter EditPage::importFormData: Passed token check. User: loading options for user 1 from override cache. User::getBlockedStatus: checking... [SpamBlacklist] Spam blacklist validator: [[Foobar]] not a local blacklist IP: 10.0.17.100 ConfirmEdit: user group allows skipping captcha ConfirmEdit: no need to show captcha. Unstubbing $wgParser on call of $wgParser::parse from WikitextContent::fillParserOutput Parser: using preprocessor: Preprocessor_DOM Unstubbing $wgLang on call of $wgLang::getCode from Message::inLanguage [SpamBlacklist] Loading spam regex... [SpamBlacklist] Constructing spam blacklist [SpamBlacklist] got from file https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1 MessageCache::load: Loading pt... got from global cache MessageCache::load: Loading en... got from global cache DatabaseBase::query: Writes done: INSERT IGNORE INTO `nw_page` (page_id,page_namespace,page_title,page_counter,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES (NULL,'X') DatabaseBase::query: Writes done: INSERT INTO `nw_text` (old_id,old_text,old_flags) VALUES (NULL,'X') DatabaseBase::query: Writes done: INSERT INTO `nw_revision` (rev_id,rev_page,rev_text_id,rev_comment,rev_minor_edit,rev_user,rev_user_text,rev_timestamp,rev_deleted,rev_len,rev_parent_id,rev_sha1,rev_content_model,rev_content_format) VALUES (NULL,'X',NULL,NULL) DatabaseBase::query: Writes done: UPDATE `nw_page` SET page_latest = 'X' DatabaseBase::query: Writes done: DELETE FROM `nw_redirect` WHERE rd_from = 'X' Title::getRestrictionTypes: applicable restrictions to [[Foobar]] are {edit,move} DatabaseBase::query: Writes done: INSERT INTO `nw_recentchanges` (rc_timestamp,rc_namespace,rc_title,rc_type,rc_source,rc_minor,rc_cur_id,rc_user,rc_user_text,rc_comment,rc_this_oldid,rc_last_oldid,rc_bot,rc_ip,rc_patrolled,rc_new,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_id) VALUES ('X',NULL) DatabaseBase::query: Writes done: INSERT INTO `nw_logging` (log_id,log_type,log_action,log_timestamp,log_user,log_user_text,log_namespace,log_title,log_page,log_comment,log_params) VALUES (NULL,'X') No bloom filter store 'main'; using EmptyBloomCache.DatabaseBase::query: Writes done: UPDATE `nw_user` SET user_editcount=user_editcount+N WHERE user_id = 'X' DatabaseBase::query: Writes done: UPDATE `nw_user` SET user_touched = 'X') WikiPage::doEditUpdates: No vary-revision, using prepared edit... Saved in parser cache with key nhswiki-nw_:pcache:idhash:35-0!*!*!*!*!*!* and timestamp 20150220103545 and revision id 109 DatabaseBase::query: Writes done: REPLACE INTO `nw_objectcache` (keyname,value,exptime) VALUES ('X') DatabaseBase::query: Writes done: REPLACE INTO `nw_objectcache` (keyname,value,exptime) VALUES ('X') DatabaseBase::query: Writes done: UPDATE `nw_page` SET page_links_updated = 'X' BacklinkCache::queryLinks: got results from DB BacklinkCache::queryLinks: got results from DB DatabaseBase::query: Writes done: DELETE FROM `nw_protected_titles` WHERE pt_namespace = 'X' [cookie] setcookie: "nhswiki_nw_PostEditRevision109", "created", "1424429745", "/", "", "", "" DatabaseBase::query: Writes done: UPDATE `nw_page` SET page_touched = 'X' BacklinkCache::partition: got from full result cache DatabaseBase::query: Writes done: INSERT IGNORE INTO `nw_watchlist` (wl_user,wl_namespace,wl_title,wl_notificationtimestamp) VALUES ('X',NULL) OutputPage::sendCacheControl: private caching; ** DatabaseBase::query: Writes done: UPDATE `nw_site_stats` SET ss_total_edits=ss_total_edits+N,ss_total_pages=ss_total_pages+N Title::getRestrictionTypes: applicable restrictions to [[Foobar]] are {edit,move} DatabaseBase::query: Writes done: REPLACE INTO `nw_searchindex` (si_page,si_title,si_text) VALUES ('X') Request ended normally
- There should still be a table below the output you posted; this table would contain the different times, which were spent inside each function...
- Anyway, I see that you are using Extension:SpamBlacklist. Does the problem go away, when you disable that extension? If so, you might want to adjust its configuration; e.g. a large anti-spam regexp can cause saves to become that slow. See Extension:SpamBlacklist#Performance! 88.130.114.156 12:41, 20 February 2015 (UTC)
- Problem solved!
- Yes, SPAMBlacklist was the problem. I don't know why... but it's very fast now.
- Thanks. 200.175.3.250 12:49, 20 February 2015 (UTC)
Unable to CreateUser with 1.24.1
mw 1.24.1 (updated from 1.23.8 which worked fine) Error message: Catchable fatal error: Argument 1 passed to MailAddress::newFromUser() must be an instance of User, string given, called in /home/content/09/5084009/html/canprint/wiki/includes/User.php on line 3996 and defined in /home/content/09/5084009/html/canprint/wiki/includes/mail/MailAddress.php on line 59
Oddly, emails were received by the "target test account", and the WikiSysop received email notification. L d allan (talk) 18:31, 19 February 2015 (UTC)
- And this error happens when? When you try to create a new user? And is the new account then being created or is it not?
- Do you use any extensions, which change anything with user creation? Or with sending e-mails?
- Note that files from old MediaWiki versions can cause stange errors; see Upgrade and especially the section on old files, which may cause errors! 88.130.114.156 20:10, 19 February 2015 (UTC)
- I reported this same error at phabricator.wikimedia.org/T89862 . And, on the Discussion page for the extension "New User Email Notification," which I call using:
- Set email notification to admin for new account created
- require_once "$IP/extensions/NewUserNotif/NewUserNotif.php";
- $wgNewUserNotifEmailTargets = array( 'me@myemail.net' );
- I am using a new install (not updated) of MediaWiki 1.24.1. The only time I receive the error is when I have the extension enabled. And in those cases Accounts do not get created, but emails are sent to both admin and new user. Willazilla (talk) 19:26, 22 February 2015 (UTC)
[RESOLVED] administrator listed twice in "Groups you can change" within "User rights management"
mw 1.24.1 (and iirc previous versions)
I'm unclear why "administrator" is listed twice in the "Groups you can change" within the "User rights management" page
User rights management Groups you can change o bot o administrator o bureaucrat o administrator
Am I doing something wrong? L d allan (talk) 18:42, 19 February 2015 (UTC)
- Hi!
- I think this might be caused by some kind of oddity in MediaWiki and by your configuration:
- MediaWiki comes with an administrator user group predefined. However, this group internally is not called "administrator", but "sysop". I guess that in LocalSettings.php you have made some configuration in $wgGroupPermissions for a group called "administrator". This then creates a second entry with the same name.
- The fix is to no longer use $wgGroupPermissions['administrator'], but to use $wgGroupPermissions['sysop'] in LocalSettings.php instead. Should you have a user account associated to the wrong "administrator" group, then you should add this account to the "sysop" group instead. 88.130.114.156 20:08, 19 February 2015 (UTC)
Database "ENGINE=MyISAM, DEFAULT CHARSET=binary" help
Hi is it correct that default charset should be binary for MyISAM if not what should it be. My web host MySQL crashed last year and so it broke MySQL for InnoDB they are trying to fix it in the mean time they asked us to use MyISAM. My database shows it as all binary should It be binary. 151.229.250.233 22:59, 19 February 2015 (UTC)
- Yes, binary is what is recommended. The other option would be UTF-8, but if you do not have a charset problem currently, I would just not touch this setting. See Manual:$wgDBTableOptions for more information! Btw: This value is used for new tables/columns, changing it won't change what you already have in the DB. 88.130.114.156 23:13, 19 February 2015 (UTC)
- Thanks and what is the difference between them both is binary better then utf-8 151.229.250.233 19:38, 20 February 2015 (UTC)
- Should searchindex be utf-8 or binary because it was created as utf-8 and everything else as binary. 151.229.250.233 20:11, 20 February 2015 (UTC)
- For MediaWiki, the difference mainly is whether we need to do charset conversions: MediaWiki internally always uses UTF-8, but both, UTF-8 and binary encoding, will make it so that no charset conversion will be needed. Binary has the advantage, that data inside binary fields - from the perspective of MySQL - has no charset. That means MySQL won't even think about doing any conversions on it.
- The table "searchindex" is the only one, which cannot be converted to binary; it should still be UTF-8. Here is the source code for the table creation:
- https://phabricator.wikimedia.org/diffusion/MW/browse/master/maintenance/tables.sql 88.130.92.137 23:12, 20 February 2015 (UTC)
- Should searchindex be utf-8 or binary because it was created as utf-8 and everything else as binary. 151.229.250.233 20:11, 20 February 2015 (UTC)
- Thanks and what is the difference between them both is binary better then utf-8 151.229.250.233 19:38, 20 February 2015 (UTC)
Where is user login input sanitized?
Hey!
Could anybody tell in which file the user login input is sanitized? I can't seem to find it.
Thanks! 195.80.111.109 09:26, 20 February 2015 (UTC)
Notice: Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915[edit source]
i am struggling with this issue more than 2 weeks
please help me.
Notice: Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915[edit source]
I am Using MediaWiki 1.24.1
for getting External Datbase(SQL Server,MYSQL) am data adding
require_once "$IP/extensions/OdbcDatabase/OdbcDatabase.php";
include_once "$IP/extensions/ExternalData/ExternalData.php";
$edgDBServerType ['mydb'] = "odbc";
$edgDBServer ['mydb'] = "my_dsn";
$edgDBName ['mydb'] = "UNUSED";
$edgDBUser ['mydb'] = "sa";
$edgDBPass ['mydb'] = "sa@123";
$edgDBTablePrefix ['mydb'] = "dbo";
and i created my_dsn odbc in my windows wiki server in wiki page
{{#get_db_data: db=mydb |from=Testtable |data=test1=test1,test2=test2}}
now submit the page i got a below error message on top of the page
Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915
In Database.php the line 915 is below bold line
if ( class_exists( $class ) && is_subclass_of( $class, 'DatabaseBase' ) ) {
$params = array(
'host' => isset( $p['host'] ) ? $p['host'] : false,
'user' => isset( $p['user'] ) ? $p['user'] : false,
'password' => isset( $p['password'] ) ? $p['password'] : false,
'dbname' => isset( $p['dbname'] ) ? $p['dbname'] : false,
'flags' => isset( $p['flags'] ) ? $p['flags'] : 0,
'tablePrefix' => isset( $p['tablePrefix'] ) ? $p['tablePrefix'] : 'get from global',
'schema' => isset( $p['schema'] ) ? $p['schema'] : $defaultSchemas[$dbType],
'foreign' => isset( $p['foreign'] ) ? $p['foreign'] : false
);
If i type wrong table name in wiki page it showing Below Errors
Notice: Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915
Warning: odbc_exec(): SQL error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid object name 'Testtable1'., SQL state S0002 in SQLExecDirect in D:\xampp\htdocs\SNWiki\extensions\OdbcDatabase\OdbcDatabase.body.php on line 26
so i think connectivity is not a problem.
Kindly Help me
-- Ragu Ragusathis (talk) 09:55, 20 February 2015 (UTC)
- This is being answered there: Extension talk:OdbcDatabase#Notice: Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915 Ciencia Al Poder (talk) 11:00, 20 February 2015 (UTC)
wikidata site not being updated properly for extension wikidata.
Hi it seems wikidata website is not getting updates for extension wikidata since it shows it as last being updated in may last year when there is a lot of updates in the wikidata extension last time it was updated was on 9 febuary 2015 and wikidata extension has not had a new branch created it is still on wmf 16 when wikidata is on wmf 17 and all other extensions are on wmf 18. 151.229.250.233 13:49, 20 February 2015 (UTC)
- Can you share the link to the page with the outdated information? 88.130.92.137 23:15, 20 February 2015 (UTC)
- Here http://www.wikidata.org/wiki/Special:Version 151.229.250.233 02:37, 21 February 2015 (UTC)
- I'm not sure, if this extension is needed at all, or at least "really used" on wikidata.org. It's "just" a build of wikibase and it's dependencies into an extension. But wikidata.org uses the "standard installation method" with composer i think. Florianschmidtwelzow (talk) 01:17, 29 March 2015 (UTC)
- Here http://www.wikidata.org/wiki/Special:Version 151.229.250.233 02:37, 21 February 2015 (UTC)
Change a red link
How can I change the red link? Еxample:
https://kk.wikipedia.org/w/index.php?title=Any_page&action=edit&redlink=1
to
https://kk.wikipedia.org/w/index.php?title=Any_page&action=edit&redlink=1&preload=Template:Unreviewed_article/preload
Arystanbek (talk) 20:20, 20 February 2015 (UTC)
- Use an external link. 121.220.65.155 22:47, 21 February 2015 (UTC)
Error when setting up database
Hi I get this error when settings up the db.
error
Could not insert main page: Invalid object cache type "none" requested. It is not present in $wgObjectCaches. 151.229.250.233 00:05, 21 February 2015 (UTC)
- I am running mediawiki 1.25 wmf 18 151.229.250.233 00:06, 21 February 2015 (UTC)
- I had this too. Returning to the previous page, then pressing install again fixed it. 121.220.65.155 06:12, 21 February 2015 (UTC)
- When I do that it shows an error that table already exist. or other errors. 151.229.250.233 11:49, 21 February 2015 (UTC)
- Delete the DB in between. 88.130.92.137 12:25, 21 February 2015 (UTC)
- I do delete the tables but problem happends again. 151.229.250.233 20:07, 21 February 2015 (UTC)
- And what are the error messages? 88.130.80.175 22:13, 21 February 2015 (UTC)
- I carnt get error messages now I just had to use a backup of some tables I also used my other website database to help fix this one. 86.135.166.204 11:01, 22 February 2015 (UTC)
- I tried a different web host and the same error comes up this is definatly a bug if it is happening to both webhost. 86.135.166.204 21:55, 22 February 2015 (UTC)
- That's not so clear. There are many things, which happen on two different webhosts and are no bugs. Strange server configuration, a broken PHP setup, incorrect MySQL config for some edge cases just to name a few. And there are plenty more. 88.130.115.129 22:17, 22 February 2015 (UTC)
- I tried a different web host and the same error comes up this is definatly a bug if it is happening to both webhost. 86.135.166.204 21:55, 22 February 2015 (UTC)
- I carnt get error messages now I just had to use a backup of some tables I also used my other website database to help fix this one. 86.135.166.204 11:01, 22 February 2015 (UTC)
- And what are the error messages? 88.130.80.175 22:13, 21 February 2015 (UTC)
- I do delete the tables but problem happends again. 151.229.250.233 20:07, 21 February 2015 (UTC)
- Delete the DB in between. 88.130.92.137 12:25, 21 February 2015 (UTC)
- When I do that it shows an error that table already exist. or other errors. 151.229.250.233 11:49, 21 February 2015 (UTC)
how to show inline images for anymous
visitors get 404 to image page
MediaWiki 1.25alpha (4c228c9)
PHP 5.4.36-0+deb7u3 (apache2handler)
MariaDB 10.0.16-MariaDB-1
BlueSpice for MediaWiki 2.23.0
Lotte.gaebel (talk) 11:47, 21 February 2015 (UTC)
- problem resolved: * must have right to read files Lotte.gaebel (talk) 15:58, 21 February 2015 (UTC)
extension echo problem
Hi when I am using the web updater on mediawiki 1.25 wmf 18 I see this error comes up at top of white box showing the log
...echo_subscription doesn't exist.
How can I fix it. 151.229.250.233 11:50, 21 February 2015 (UTC)
- That's not a problem, that just means, that it doesn't need to be deleted :) echo_subscription needs to be deleted, see . If it was already deleted, the update script just mention it, but does nothing. There should be no problem. Florianschmidtwelzow (talk) 06:41, 17 March 2015 (UTC)
[RESOLVED] Line breaks in php
Hi how can I do line breaks in php because I am trying to do line breaks for global in github.com/paladox/Metrolook/blob/test/MetrolookTemplate.php 151.229.250.233 12:14, 21 February 2015 (UTC)
- The question is unrelated to MediaWiki. See http://php.net/manual/ Malyacko (talk) 13:04, 22 February 2015 (UTC)
- I tried searching on google and none show you how to do it. 86.135.166.204 13:33, 22 February 2015 (UTC)
- Ok. Malyacko (talk) 10:13, 23 February 2015 (UTC)
- Really? Example:
function wtf( $really ) { global $wgWTFOne, $wgWTFTwo, $wgWTFThree; global $wgWTFFour, $wgWTFFive, $wgWTFSix; }
- ->
function wtf( $really ) { global $wgWTFOne, $wgWTFTwo, $wgWTFThree, $wgWTFFour, $wgWTFFive, $wgWTFSix; }
- (sorry for my terms) Florianschmidtwelzow (talk) 17:28, 23 February 2015 (UTC)
- Thankyou. 151.229.250.233 20:16, 25 February 2015 (UTC)
- I tried searching on google and none show you how to do it. 86.135.166.204 13:33, 22 February 2015 (UTC)
Liquid thread problems
Hi when I tried to create a thread today with a link it would reload so that captcha would show but it did not I think that is because mediawiki now puts captcha at the bottom of wikieditor below the edit screen. instead of the top like it used to be please fix it. 151.229.250.233 12:16, 21 February 2015 (UTC)
Can I associate different wikis with different localhost aliases?
I've got a wiki using a short url, so that my wiki's address looks like:
localhost/mywiki/wiki/Main_Page
I've also modified my hosts file (located at C:\Windows\System32\drivers\etc\hosts) to add a second localhost alias with a unique name, so that my wiki's address can look more like a website:
http://www.mywiki.org/wiki/Main_Page
I'd like to have multiple wikis with this website-like address, such that each one would be associated with a different localhost alias.
http://www.mywiki.org/wiki/Main_Page http://www.mywiki2.org/wiki/Main_Page
However, since the wiki's technically located at [localhost name]/wiki/Main_Page, the only way I know of to run multiple wikis is to change the name for "/wiki"
/wiki/Main_Page /wiki2/Main_Page
And while that works, it's a little undesirable for me. Is there a way to associate each wiki with a different localhost alias? Or is there another way to achieve the desired result on a localhost setup?
OS: Windows 8.1
XAMPP-Portable: 5.6.3
MediaWiki: 1.24.1
PHP: 5.6.3 (apache2handler)
MySQL: 5.6.21
URL: N/A, Private wiki on localhost Glameglumps33 (talk) 15:53, 21 February 2015 (UTC)
- You can write in your /etc/hosts file
127.0.0.1 localhost www.mywiki.org www.mywiki2.org
- and configure your web server to serve both. FriedhelmW (talk) 05:39, 22 February 2015 (UTC)
- But if I do that, then www.mywiki.org and www.mywiki.org are both aliases for localhost, right? And with short urls, the wiki's address becomes domainname/wiki/Main_page (as opposed to domainname/mywiki/index.php without using short urls). When using short urls, the only way to distinguish between 2 different wikis seems to be to name them /wiki1 or /wiki2.
- I'm starting to think that what I need to do is use a virtual host, but I'm having trouble setting it up properly. When I write
<VirtualHost *:80> ServerName www.mywiki.org DocumentRoot "E:/XAMPP/htdocs/mywiki" </VirtualHost>
- in my httpd-vhosts.conf file, it makes it so that www.mywiki.org directs to the main page, but I can't navigate to other pages.
- Also, it loads the page as text, without any pictures or formatting. I fixed this by changing
$wgScriptPath = "/mywiki";
- to
$wgScriptPath = "http://www.mywiki.org";
- and that seemed to help, but I still can't navigate away from that one page. Glameglumps33 (talk) 06:07, 22 February 2015 (UTC)
- $wgScriptPath is the location of the script, without including the server name. Please read Manual:$wgScriptPath and Manual:$wgServer to see how to fill those variables.
- Basically, I don't see what's your problem with the domain name here. I also have several development wikis on localhost where each one has it's own domain name (which is an alias of localhost) and they work without problems. Ciencia Al Poder (talk) 10:32, 23 February 2015 (UTC)
- Really? Do you do anything special? Or more likely, am I doing something wrong? lol
- My Windows hosts file looks like this:
127.0.0.1 localhost 127.0.0.1 www.mywiki.org 127.0.0.1 www.mywiki2.org
- I changed my Apache http.conf file to look like this:
RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/mywiki/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/mywiki/index.php [L] RedirectMatch ^/$ http://mywiki/wiki/ RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/mywiki2/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/mywiki2/index.php [L] RedirectMatch ^/$ http://mywiki2/wiki/
- In my LocalSettings.php file for MyWiki, I changed it to:
$wgServer = 'http://www.mywiki.org'; $wgScriptPath = "/mywiki"; $wgArticlePath = "/wiki/$1";
- And in my LocalSettings.php file for MyWiki2, I changed it to:
$wgServer = 'http://www.mywiki2.org'; $wgScriptPath = "/mywiki2"; $wgArticlePath = "/wiki/$1";
- But then, when I typed
http://www.mywiki.org/wiki/Main_Page
- or
http://www.mywiki2.org/wiki/Main_Page
- into my browser, it displayed MyWiki2, but not MyWiki. Glameglumps33 (talk) 02:15, 24 February 2015 (UTC)
- If you're accessing each wiki with its own domain name, why are you also setting different /wiki/ paths?
- You should handle each domain in its own virtual host, that on your setup should point to each physical path of the MediaWiki installation Ciencia Al Poder (talk) 10:27, 24 February 2015 (UTC)
Using DSLR Dashboard with Nikon D3200
I recently purchased a Nikon D3200 and was planning to use the DSLR Dashboard app to control my settings while taking photos and videos. Photo option works great, discovered the video option does not immediately work with the camera model I purchased. Is there a fix for this? Thank you! Tig3rlili (talk) 17:45, 21 February 2015 (UTC)
- Hi!
- This is the support desk for MediaWiki, a software, which is used to run wikis (it is e.g. used by Wikipedia). Your question does not relate to MediaWiki and you maybe came here, because the website, on which you really want to ask, actually uses MediaWiki as well. You should probably go back to that website and ask there!
- (And we should create a template with my answer for simple re-use - e.g. Template:Wrong Wiki or something like that.) 88.130.80.175 22:16, 21 February 2015 (UTC)
Getting intermittent TorBlock warnings during file handling
mw 1.24.1 php 5.3.24 MySQL 5.0.96 www.canprint.org/wiki
I'm seeing the following warning message: Warning: Invalid argument supplied for foreach() in /home/content/09/5084009/html/canprint/wiki/extensions/TorBlock/TorExitNodes.php on line 176
Sorry, but it is quite intermittent, usually during file upload ... perhaps every 5 times or so. If I repeat the file upload, that usually seems to work.
Am I doing something wrong? L d allan (talk) 22:26, 21 February 2015 (UTC)
- It seems to be a problem with the TOR service that checks if the IP is a TOR exit node, if it's temporarily unavailable. It's tracked in T71017 Ciencia Al Poder (talk) 10:28, 23 February 2015 (UTC)
[RESOLVED] Fatal error: Class 'CLDRPluralRuleConverterOperator' not found in /languages/utils/CLDRPluralRuleConverter.php on line 312
Hi,
Just dlded MediaWiki 1.24.1, then unzipped, then uploaded to my server (Infomaniak, php 5.5, MySQL 5.0) I reached page "MediaWiki 1.24.1 / LocalSettings.php not found. / Please set up the wiki first"
then clicked on the link.
I got Fatal error: Class 'CLDRPluralRuleConverterOperator' not found in blahblah/languages/utils/CLDRPluralRuleConverter.php on line 312
Google did not help. What did I do wrong? Thanks. Casablanca1950 (talk) 23:07, 21 February 2015 (UTC)
- Fixed.
- File CLDRPluralRuleConverterOperator.php was 0 bytes size on my server.
- I copied a new version and bug is fixed. Casablanca1950 (talk) 11:59, 22 February 2015 (UTC)
Trying to submit an article into Wiki...
Hi E1,
I have been trying for some months now to work out how to submit an article into Wiki. I submitted an article a couple of weeks ago with referencing and citations however it does not appear to be showing in Wiki.
The article i created is about the fastest recorded trips around australia on a motorcycle performed over the past ten years or so. StropV (talk) 01:56, 22 February 2015 (UTC)
- What is "Wiki"? AKlapper (WMF) (talk) 13:06, 22 February 2015 (UTC)
[RESOLVED] Fatal exception of type MWException after LocalSettings.php upload
Hi,
I just installed 1.24.1 Fr, but after uploading the conf file, I got message: [7461adf7] 2015-02-22 13:18:41: Fatal exception of type MWException
I found this thread: https://www.mediawiki.org/wiki/Extension%20talk%3AParserFunctions#c-96.253.116.193-2013-05-01T01%3A29%3A00.000Z-Fatal_exception_of_type_MWException_Error but it did not help.
If someone wishes to have a look there...
Thanks.
EDIT. I enabled error logging and got this:
- Start request GET /AAT/inventaire/index.php
- HTTP HEADERS:
- HOST: xxxxxxxxxxx.fr
- CONNECTION: keep-alive
- CACHE-CONTROL: max-age=0
- ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
- USER-AGENT: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
- REFERER: http://xxxxxxxxx.fr/AAT/inventaire/mw-config/index.php
- ACCEPT-ENCODING: gzip, deflate, sdch
- ACCEPT-LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
- COOKIE: phpbb3_i7o1b_u=2; phpbb3_i7o1b_k=50d8ec3eed370d2a; phpbb3_i7o1b_sid=90279e58cfa61f946fa260a11aba9f4a; mw_installer_session=677b04e5e024e17c3f45986c4dec6930; PHPSESSID=e71a6ac88b47b717b57dd4c149dfd019
- [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff
- [caches] LocalisationCache: using store LCStoreDB
- Connected to database 0 at mysql.xxxxxxxxxxxxx.fr
- LocalisationCache::isExpired(fr): cache missing, need to make one
- LocalisationCache::recache: got localisation for fr from source
- [exception] [7461adf7] /AAT/inventaire/index.php Exception from line 559 of /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/cache/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/extensions/LocalisationUpdate/i18n/fr.json
- #0 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/cache/LocalisationCache.php(885): LocalisationCache->readJSONFile('/home/www/62585...')
- #1 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/cache/LocalisationCache.php(449): LocalisationCache->recache('fr')
- #2 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/cache/LocalisationCache.php(323): LocalisationCache->initLanguage('fr')
- #3 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/cache/LocalisationCache.php(257): LocalisationCache->loadItem('fr', 'fallback')
- #4 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/languages/Language.php(4287): LocalisationCache->getItem('fr', 'fallback')
- #5 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/languages/Language.php(202): Language::getFallbacksFor('fr')
- #6 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/languages/Language.php(161): Language::newFromCode('fr')
- #7 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/Setup.php(594): Language::factory('fr')
- #8 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/includes/WebStart.php(121): require_once('/home/www/62585...')
- #9 /home/www/62585963bc9e2a5e92eba0113c714f19/web/AAT/inventaire/index.php(47): require('/home/www/62585...')
- #10 {main}
I edited the .json file and found nothing particular inside:
- {
- "@metadata":
- {
- "authors": ["Crochet.david"]
- },
- "localisationupdate-desc": "Maintenir la traduction des messages à jour autant que possible"
- }
EDIT2 : Ok, I do have a few files on my server with size set to 0. As I uploaded the whole install via satellite (MUCH faster than ADSL) I guess something went wrong there. I restart the whole upload and come back soon. Casablanca1950 (talk) 12:58, 22 February 2015 (UTC)
- You need to uninstall mediawiki keep extensions and skins and other files you created and localsettings.php and delete all the other folders for mediawiki then reupload them that what I did and fixed my issue. 86.135.166.204 13:36, 22 February 2015 (UTC)
- The problem is caused by the file extensions/LocalisationUpdate/i18n/fr.json. Try downloading new tanslations to fix this! 88.130.115.129 15:56, 22 February 2015 (UTC)
- This is exactely what I did. I uploaded the whole kit again and the issue is fixed.
- Thanks ! Casablanca1950 (talk) 16:00, 22 February 2015 (UTC)
Can I set different colours for content contributed by different users?
Hi!
Is there a way (perhaps an extension?) of assigning default colours for content contributed by different users? For example, I would like to have content contributed by user A green by default, by user B blue by default etc.
Thanks Johnnybaloney (talk) 14:11, 22 February 2015 (UTC)
- I see you want to have a special text color (an not a background color or something like git blame).
- Honestly I don't know of a way or an extension, which would make that possible. Technically the problem is that the current page text of each page is not saved in several chunks (e.g. one chunk for each change). Instead the whole page text is saved as one piece inside the database table "text". A text, which has once been saved never changes; instead, when someone saves a new revision, a complete new entry in the DB table is created.
- Maybe you could somehow use a MediaWiki hook to on page save manipulate the new page text. E.g. if you had HTML tags around the new parts of the text, you would have a base to work with. Anyway, that would need you to diff the old and new revision and to intelligently insert these tags, also making sure the do not get nested incorrectly. I do not know of an extension or so, which could do that. 88.130.115.129 16:55, 22 February 2015 (UTC)
- Thank you, this sounds like the way to go.
- I also received some answers on Stack Overflow, the question was titled "Can I set different colours for content contributed by different users in MediaWiki?" (I don't seem to be able to post links here) Johnnybaloney (talk) 23:15, 23 February 2015 (UTC)
Scribunto error
Hi I am getting this error 500 internal error in internet explorer. when saving a module on my wiki it brings up that error how can I fix it. 86.135.166.204 22:50, 22 February 2015 (UTC)
- Paladox: Please check the error log of your web server software.
You don't even mention why you put "Scribunto" into the subject line.
AKlapper (WMF) (talk) 10:14, 23 February 2015 (UTC)
access mediawiki from client pc
i have created mediawiki page but when i access it from another pc it shows like a normal html page and black and white 122.163.71.249 09:35, 23 February 2015 (UTC)
- If it shows like a normal html page, how should an unnormal html page look like? Malyacko (talk) 10:17, 23 February 2015 (UTC)
- Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 10:38, 23 February 2015 (UTC)
[RESOLVED] Template & Line Break
Hey, So I recently transitioned from a Wikia to a Mediawiki, imported all my files and everything. Now, everything except one single thing has worked right, and that is I had a template for quotes set up. Just to make quotes look nice without having to go through anything special, and was fairly simple and straightforward. Worked like a dream on wikia.
However, when I imported it to MediaWiki, suddenly it wouldn't allow line-breaks (ie:
) in the quote, beyond having to hit enter. When I hit enter, it'll drop any previous formatting (ie: italics), but line breaks fail to create a new line. Was curious if this was something I might've done, or just some peculiarity of this particular template (which I will attach at the end).
Template is as follows:
{|style="border-collapse:collapse; border-style:none; background-color:transparent; color:inherit;" |width="20" valign="top" style="color:#B2B7F2;font-size:40px; font-family:'Times New Roman',serif;font-weight:bold;text-align:left;padding:10px;"|“ |valign="top" style="padding:4px 10px;"|''{{{1|Insert the text of the quote here, without quotation marks.}}}'' |width="20" valign="bottom" style="color:#B2B7F2;font-size:40px; font-family:'Times New Roman',serif;font-weight:bold;text-align:right;padding:10px;"|” {{#if:{{{2|Anonymous}}}|{{!}}- {{!}} {{!}} colspan="2" style="padding: 0 1em" {{!}} — {{{2|Anonymous}}} |}} |} <noinclude>[[Category:Templates|Quote]]</noinclude>
2601:B:A800:F0:255B:C9E0:70:7FDD 15:42, 23 February 2015 (UTC)
2601:B:A800:F0:255B:C9E0:70:7FDD 15:45, 23 February 2015 (UTC)
Sorry, template is as follows (forgot the <nowiki> tag).Problem exactly is text in the fill-in-the-blank section, new text going in there won't accept a working line break, except hitting enter which loses the formatting (ie: italics). 2601:B:A800:F0:11BE:9A54:971F:3EDA 16:17, 23 February 2015 (UTC)- Instead of formatting it in italics using the '' '' syntax, add
font-style: italic;
afterpadding:4px 10px;
, which would apply to the whole block. Ciencia Al Poder (talk) 10:37, 24 February 2015 (UTC)
- Instead of formatting it in italics using the '' '' syntax, add
2601:B:A800:F0:3D4B:8D02:5609:28B8 05:06, 25 February 2015 (UTC)
- Thank you, Clencia.
- Discovered my problem. The extension I'm trying to use around this doesn't respect line breaks. 2601:B:A800:F0:3D4B:8D02:5609:28B8 05:33, 25 February 2015 (UTC)
- Thank you, Clencia.
- Discovered my problem. The extension I'm trying to use around this doesn't respect line breaks. 2601:B:A800:F0:3D4B:8D02:5609:28B8 05:34, 25 February 2015 (UTC)
Bad parser output text
After wiki upgrade my pages broke down. I get foolowing error while I am logged in:
[b32056b5] /index.php?title=Uchwa%C5%82y_zarz%C4%85du Exception from line 87 of /includes/parser/ParserOutput.php: Bad parser output text.
When I am not logged in the page works correctly. Could you please help me? 195.205.254.66 16:18, 23 February 2015 (UTC)
- Which MediaWiki version are you using? Any special extensions? Do you maybe still have some old files from previous MediaWiki versions in your system?
- The failing code is this:
84 $editsectionPage = Title::newFromText( htmlspecialchars_decode( $m[1] ) ); ... 86 if ( !is_object( $editsectionPage ) ) { 87 throw new MWException( "Bad parser output text." );
- A backtrace would be helpful in order to see, why Title::newFromText() does not return an object... 88.130.67.200 16:55, 23 February 2015 (UTC)
- Please review Manual:Upgrading to see if you missed some point, like unpacking new files on a new directory, or upgrading extensions.
- See also Manual:How to debug to know how to view a full stack trace. Ciencia Al Poder (talk) 10:40, 24 February 2015 (UTC)
How to disable search engines to index api.php pages?
After updating Mediawiki to 1.22.13 I noticed that search engines indexed and put some pages to search results that not should be done. Pages looks like:
api.php?action=parse&summary=Some+[[link]]&prop= api.php?action=query&list=alllinks&alunique=&alfrom=B
So how can I disallow google and other search machines to stop indexing all api.php pages (there are thousand such api.php alike pages)? Fokebox (talk) 20:17, 23 February 2015 (UTC)
- You can prevent indexing by disallowing api.php in your robots.txt file. 88.130.67.200 22:24, 23 February 2015 (UTC)
- And the api documentation page should also output a <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">, which is a bug Ciencia Al Poder (talk) 10:42, 24 February 2015 (UTC)
- Like this?
- 193.200.211.146 14:39, 24 February 2015 (UTC)
User-agent: * Disallow: /api.php
- Exactly like this. 88.130.67.200 15:01, 24 February 2015 (UTC)
[RESOLVED] Inline TOC but push first section below it.
MediaWiki 1.23.5, PHP 5.5.21 (fpm-fcgi), MariaDB 5.5.39
I can make a satisfactory looking left-aligned inline TOC by using the following at the top of a page:
{|align=left |__TOC__ |}
However, for pages with short intro text, it interferes with the first section, e.g. http://oi59.tinypic.com/v2z2hd.jpg. Is there a way to make it so the first section on a page is pushed below the TOC (leaving blank space below the intro text if the TOC is longer)? I'd like it to look like http://oi62.tinypic.com/2cqz9uh.jpg, which I accomplished by using Chrome to add the "clear:both" style to the first sections h2 -- but I'm not sure how to accomplish that effect with wiki code.
Thanks! (Sorry, can't post links, see discussion) 24.47.169.50 03:54, 24 February 2015 (UTC)
- {{Clear}} 121.219.123.17 06:35, 24 February 2015 (UTC)
- Nice! Thanks! 24.47.169.50 17:42, 24 February 2015 (UTC)
searchindex
Hi can I saftly change searchindex from myisam to innodb and keep it at utf8_general_ci 86.135.249.149 10:19, 24 February 2015 (UTC)
How to add a script excerpt to the header of each page to introduce MathJax (without SimpleMathJax extension)
How to add a <script> excerpt to the header of each page to introduce MathJax (without SimpleMathJax extension)
I've tried editing the MediaWiki:Common.js file, adding <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"> </script>
, as I would add to the header of a normal HTML document. This doesn't work, however, perhaps because the javascript isn't inserted verbatim (as far as I can tell, on inspection of the the source of pages afterwards). I've been going through the php files that seem relevant (OutputPage.php, Html.php, WebStart.php) and attempting to have them directly write this code snippet to the header, but I'm new to PHP and my dogged, misguided attempts garner me little success.
I tried the SimpleMathJax extension initially, but including it in LocalSettings.php only crashed the site (though other extensions I've manually added work correctly).
I'd rather use the MathJax formatting ($$...$$
, \(...)\
), so would be more grateful for suggestions on how to get MathJax into the header than mend the SimpleMathJax extension. Any help at all is highly appreciated, of course! 121.223.31.126 10:55, 24 February 2015 (UTC)
- Add this to MediaWiki:Common.js
- Ciencia Al Poder (talk) 10:53, 26 February 2015 (UTC)
$(function() { importScriptURI('http://cdn.mathjax.org/mathjax/latest/MathJax.js'); });
[RESOLVED] Updating from 1.17 not working
My version 1.17 installation recently went into a state where the content of the wiki does not appear, although everythin else does, including menus and the code for the content can be viewed by selecting edit, even if the same content is not displayed when browsing the wiki normally. It is not clear to me what caused this. I don't think I did anything so I suspect an upgrade of some software on the server by the hosting company, the php version or something like that. I am trying to fix this and any help would be greatly appreciated.
It was suggested online that this situation might be amended by upgrading the wiki, but I am having problems with the update process. I have backed everything up and added a sha1 column to table revisions as suggested in the documentation. I copied my old LocalSettings.php to a directory with version 1.24. However, when I run the update script on the server, "php maintenance/update.php", the script exits right away without producing any output. The update process has not been completed successfully as I get a database error if I try to swap the old/new directories and open the new version.
I also tried using the web update. On the second page of the wizard, it seems like the system is supposed to detect my existing wiki, but nothing comes up and I cannot continue.
Because of the lack of error messages, I am unsure what to do. Any ideas? 2A00:C88:4000:A00C:FC9B:3121:3D91:D6F3 12:30, 24 February 2015 (UTC)
- Hi!
- The symptoms that the content, although displayed in editing mode, does not show up in the normal pages, is usually caused by an upgrade of the PCRE package on the server. A MediaWiki upgrade will in fact fix this.
- For the upgrade please follow our upgrading guide at Upgrade!
- You should enable error reporting in PHP and activate error display in MediaWiki to get more information about what is going wrong. See how to debug for more information! 88.130.67.200 12:41, 24 February 2015 (UTC)
- Thanks! I turned on the error reporting and I am now getting the following output. There is indeed no "ScopedCallback.php" in "includes/libs". I should note that I just downloaded and extracted a fresh copy of the version 1.24.1 tar archive. Did I make some mistake in that process?
- Warning: require(/home/linguist/public_html/wiki//includes/libs/ScopedCallback.php) [function.require]: failed to open stream: No such file or directory in /home/linguist/public_html/wikixx/includes/AutoLoader.php on line 1282
- Fatal error: require() [function.require]: Failed opening required '/home/linguist/public_html/wiki//includes/libs/ScopedCallback.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/linguist/public_html/wikixx/includes/AutoLoader.php on line 1282 2A00:C88:4000:A00C:FC9B:3121:3D91:D6F3 13:00, 24 February 2015 (UTC)
- MediaWiki 1.24.1 does contain a includes/libs/ScopedCallback.php file - the version I downloaded back in December 2014 did and the tarball offered for download right now does as well. Can you please double check, why that file is missing for you? Did all files from the new tarball get extracted correctly? This file should be there! 88.130.67.200 15:04, 24 February 2015 (UTC)
- Okay, I figured this out. The file was there, my mistake. The issue arose because I had the old wiki directory selected in the LocalSettings.php file and the file was not found under the old path. The issue went away when I edited the settings file. Thanks for the help! 89.160.129.200 15:08, 27 February 2015 (UTC)
- MediaWiki 1.24.1 does contain a includes/libs/ScopedCallback.php file - the version I downloaded back in December 2014 did and the tarball offered for download right now does as well. Can you please double check, why that file is missing for you? Did all files from the new tarball get extracted correctly? This file should be there! 88.130.67.200 15:04, 24 February 2015 (UTC)
Show 'Last Updated by' and 'Last updated at' values in my theme
18:41, 24 February 2015 (UTC) 88.130.119.64 22:31, 24 February 2015 (UTC) Florianschmidtwelzow (talk) 13:11, 25 February 2015 (UTC)
Show 'Last Updated by' and 'Last updated at' values in my theme
Hi, I am developing a new theme for mediawiki. I want to show the values of 'Last Updated by' and 'Last updated at' values in my theme. I could not find any doc related to these. Can you please help me to find this? Nasir Khan Saikat • talk • 18:41, 24 February 2015 (UTC)
- https://en.wikipedia.org/wiki/Help:Magic_words , Revision data. FriedhelmW (talk) 19:51, 24 February 2015 (UTC)
- Or https://www.mediawiki.org/wiki/Help:Magic_words FriedhelmW (talk) 20:19, 24 February 2015 (UTC)
- If you develope a skin you can use
BaseTemplate::getFooterLinks()
to get an array of footer links including ['info']['lastmod'], or, if you just need the last modified data, you can use$this->data[ 'lastmod' ];
. Florianschmidtwelzow (talk) 13:10, 25 February 2015 (UTC) - Doesn't Vector show these dates? At least one of them? Just take the code from there! 88.130.65.222 13:42, 25 February 2015 (UTC)
- thank u all for your help. :) Nasir Khan Saikat • talk • 11:49, 8 March 2015 (UTC)
Is PHP's latest unserialize() bug dangerous in MW?
Do I need to update PHP ASAP? Sorry, I only have a German article: http://m.heise.de/security/meldung/Wichtige-Sicherheitsupdates-fuer-PHP-2557586.html Subfader (talk) 19:12, 24 February 2015 (UTC)
- I doubt you will get an "official answer" here: Until we know for sure that MediaWiki is not affected, I would assume that it is. If MediaWiki is affected, this would be a security issue, which will not be published until it is fixed.
- It is simple: PHP has a security update. If you use PHP, update it! 88.130.119.64 22:30, 24 February 2015 (UTC)
[RESOLVED] Problem with Bureaucrat permissions
Editing my original message to include new stuff.
I looked at several Manual: pages including the articles on:
MediaWiki version: 1.24.1
PHP Version: 5.5.21 (cgi-fcgi)
SQLite Version: 3.7.9 with full-text search support
I have a site set up that I'm using to test MediaWiki.
I have the newest stable version of MediaWiki set up, using a mysql database. (I think it's my sql. whatever the local one is where it doesn't do a host, all you need is db name and write access.)
It took me a while today to figure out how to use Lockdown and I got that working (wanted it so that sysop's couldn't read a certain namespace; there are other administrative groups that work exclusively in this namespace.)
I have the following code in my LocalSettings.php
file, and I'm trying to make it so that the default bureaucrat group can only add people to the default groups, and not remove anyone from bureaucrat.
I don't want bureaucrat's to be able to add to this other group of 'exclusive administrators', which will be handled by another exclusive group, or stewards.
unset( $wgGroupsAddToSelf['bureaucrat'] );
unset( $wgGroupsRemoveFromSelf['bureaucrat'] );
unset( $wgAddGroups['bureaucrat'] );
unset( $wgRemoveGroups['bureaucrat'] );
$wgGroupsAddToSelf['bureaucrat'] = array( 'bot', 'administrator', 'bureaucrat', 'oversight', 'oversightadmin', 'developer', 'interfaceeditor' );
$wgGroupsRemoveFromSelf['bureaucrat'] = true;
$wgAddGroups['bureaucrat'] = array( 'bot', 'administrator', 'bureaucrat', 'oversight', 'oversightadmin', 'developer', 'interfaceeditor' );
$wgRemoveGroups['bureaucrat'] = array( 'bot', 'administrator', 'oversight', 'oversightadmin', 'developer', 'interfaceeditor' );
Edit: Feel free to reply, or link to the reply, on my non-existant talk page. Please create it :3
Edit 2: If needed, I can copy paste my entire LocalSettings.php
file. NDKilla^^^ 00:10, 25 February 2015 (UTC)
- Okay, you explained what do you want to do and what have you done so far. But what problem have you encountered?
- $wgGroupsRemoveFromSelf doesn't follow the usage described on the manual. Ciencia Al Poder (talk) 10:55, 25 February 2015 (UTC)
- I want bureaucrats to be able to add themselves in some groups.
- According to the GroupsRemoveFromSelf#Changes in 1.14 article, it says I'm using that config properly to make it so bureaucrats to remove themselves from any groups. This is what I want.
- In the line above that, I want bureaucrats to only be able to add themselves to the groups 'bot' 'administrator' 'bureaucrat' 'oversight' 'oversightadmin' 'developer' and 'interfaceeditor'
- On my Special:UserRights page, users in bureaucrat can still add themselves to any group.
- Should 'administrator' be replaced with 'sysop' ? If so, any chance this is causing an issue for the entire line? Or is there something wrong with my 'unset' commands? I saw those somewhere, and they're close to the end of my
LocalSettings.php
file.. NDKilla (talk) 20:21, 25 February 2015 (UTC)- > I want bureaucrats to be able to add themselves in some groups.
- This is possible with the default configuration. Is that not working? It should work.
- One note also because you mentioned the Lockdown extension: Note that MediaWiki is not made for access control! There will most likely alway be a way around whatever retriction you have set up. If you need per-page or per-usergroup permissions, then you should not use MediaWiki. Use a CMS instead! 88.130.65.222 22:22, 25 February 2015 (UTC)
- I don't need my site totally secure, I understand content posted on my site will be accessible by anyone who actually tries hard enough.
- I just don't want some areas easily accessible.
- The "adding themselves in some groups" isn't working.
- Even though I have the following code near the end of my
LocalSettings.php
file, bureaucrats can still add themselves to ALL groups (including those not listed in the array). - $wgGroupsAddToSelf['bureaucrat'] = array( 'bot', 'administrator', 'bureaucrat', 'oversight', 'oversightadmin', 'developer', 'interfaceeditor' ); NDKilla (talk) 12:51, 26 February 2015 (UTC)
- I don't know what I did wrong the first time, but I reinstalled XAMPP and MediaWiki, set up the permissions again, and now it works. Stewards now have CheckUser (which is also a seperate group), Oversight, bureaucrat, and sysop perms.
- And my Bureaucrats can only add themselves to groups I list. Yay!
- Don't know what I did wrong, but thanks for trying to help me, @Ciencia Al Poder: and anon. NDKilla (talk) 19:47, 1 March 2015 (UTC)
- I don't know what I did wrong the first time, but I reinstalled XAMPP and MediaWiki, set up the permissions again, and now it works. Stewards now have CheckUser (which is also a seperate group), Oversight, bureaucrat, and sysop perms.
- I don't need my site totally secure, I understand content posted on my site will be accessible by anyone who actually tries hard enough.
- I want bureaucrats to be able to add themselves in some groups.
how to draw(obtian) users/OU from active directory
hello everyone
i just installed mediawiki and got the active directory authentication to work i can login with the users and it works great
now the question is how can i tell mediawiki to draw/obtain the users and the OU from active directory?
is this doable or i have to make every user login so i can see them?
thanks in advance Asafm14567 (talk) 09:48, 25 February 2015 (UTC)
[RESOLVED] Problem to install Extension:CirrusSearch in Win7 64bit
Hi !
i try to install a better search-tool for our company-wiki in windows7 64bit.
elasticsearch-1.4.4 is download, bat startet and in cmd-window cUrl started in a "simple" cmd-window with following message:
C:\curl>curl -X GET http://localhost:9200/
{
"status" : 200,
"name" : "Ani-Mator",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.4.4",
"build_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",
"build_timestamp" : "2015-02-19T13:05:36Z",
"build_snapshot" : false,
"lucene_version" : "4.10.3"
},
"tagline" : "You Know, for Search"
}
both extensions Elastica-REL1_24-73f840d.tar and CirrusSearch-REL1_24-12eda57.tar are unzip and added to localsettings.php by https://www.mediawiki.org/wiki/Extension:CirrusSearch
after Elestica the page Special:Version listet the Version - after CirrusSearch i get the following message:
Fatal error: Call to undefined function Elastica\Transport\curl_init() in C:\mediawiki\extensions\Elastica\Elastica\lib\Elastica\Transport\Http.php on line 183
this side will open on another client and on the server.
when call phpinfo.php i get the information:
Module Authors Module Authors BC Math Andi Gutmans Bzip2 Sterling Hughes Calendar Shane Caraveo, Colin Viebrock, Hartmut Holzgraefe, Wez Furlong COM and .Net Wez Furlong ctype Hartmut Holzgraefe cURL Sterling Hughes Date/Time Support Derick Rethans DB-LIB (MS SQL, Sybase) Wez Furlong, Frank M. Kromann DBA Sascha Schumann, Marcus Boerger
can someone help to me ?
regards jan JanTappenbeck (talk) 11:00, 25 February 2015 (UTC)
- hi !
- fixed - curl not installed !
- look at: http://elastica.io/faq/
- regards Jan JanTappenbeck (talk) 11:47, 25 February 2015 (UTC)
[RESOLVED] permission for editing text/creating page for normal users that will require authorization by editors
the title might not be so clear i tried my best, but the idea is that when a user(contributor) wants to add text or create a page there will be an authorization stage that will require the editors to agree to the information that the user wants to add and if the editor doesnt authorize the text it wont add it
is this possible in anyway? Asafm14567 (talk) 11:10, 25 February 2015 (UTC)
- Extension:FlaggedRevs is for you. FriedhelmW (talk) 15:37, 26 February 2015 (UTC)
- Or use Extension:Approved Revs. FriedhelmW (talk) 15:44, 26 February 2015 (UTC)
- thank you so much!!! Asafm14567 (talk) 15:56, 26 February 2015 (UTC)
- one thing i cant seem to understand i dont see how do i set who can approve the pages and how to set user groups that needs approval on pages? cant find any explanation on it any where please help 84.95.206.229 13:36, 27 February 2015 (UTC)
How to reenable the sitenotice
I accidentally click the close button on a site, how can I enable it again?--一個正常人 (talk) 17:51, 25 February 2015 (UTC)
- IIrc MediaWiki is somehow saving the state of this notice. Do you see it again, if you remove all cookies related to the according site?
- If not, you can still view the page MediaWiki:Sitenotice inside the according wiki, which will contain the text of the site notice. See Manual:Interface/Sitenotice for more information on the pages, which are used for site notices. 88.130.65.222 18:18, 25 February 2015 (UTC)
- Each time when I need to see the text or find the link in the sitenotice, I need to view the page MediaWiki:Sitenotice, it's really inconvenient.--一個正常人 (talk) 13:12, 26 February 2015 (UTC)
- Have you tried my other tip? 88.130.112.151 15:02, 26 February 2015 (UTC)
- Each time when I need to see the text or find the link in the sitenotice, I need to view the page MediaWiki:Sitenotice, it's really inconvenient.--一個正常人 (talk) 13:12, 26 February 2015 (UTC)
find text for section Template:Q2A:module=homepage
I am working on a site for a client and on one of the pages Template:Q2A:module=homepage is embedded in the page and a block of text is rendered from it. I want to edit the content of that section but I can't find where the text is coming from. Template:Q2A:module=homepage does not exits. On other pages there are Template:Q2A:module=dogs and Template:Q2A:module=cats are embedded and also showing text. How can I debug this? What other options are there for the types of page you can put within {{ }} with this structure Q2A:module=
Thanks LTech (talk) 20:13, 25 February 2015 (UTC)
- Below the edit area there's a section named "templates used on this page" (you may need to hit preview first if you're editing a section). It will give you links to the template.
- However, it could be that the wiki uses a custom extension and Q2A is a sort of parser function that gets the contents from an external source. In that case, you won't find it in the templates used on this page section. Ciencia Al Poder (talk) 10:56, 26 February 2015 (UTC)
Chart not showing the up-to date data in Pchart4mw
Mediawiki version 1.24
pchart4mw latest version
Creating a line chart with data from SQL Server Using ExternalData and ODBCDatabase. charts are working fine but while refreshing the page chart is not showing the up-to date data showing old data only.
while clicking the show preview button we can able to see the up-to date chart.
{{#get_db_data: db=mydb |from=User_Connections t |data=CaptureDate=t.CaptureDate,UserConnections=t.value}}
{{#pLines:ymin=0|ymax=500|axiscolor=888888|colorscheme=purpleblue|cubic|filled|angle=90|legend|plots|data= ,UserConnections {{#for_external_table: {{{CaptureDate}}},{{{UserConnections}}}
}} }}
and disable the below line in pChart4mw.php $wgPChart4mwCacheEnabled= true;
kindly do the needful
-- Ragu Ragusathis (talk) 09:51, 26 February 2015 (UTC)
- Replied in Extension talk:Pchart4mw#Chart not showing the up-to date data Ciencia Al Poder (talk) 11:04, 26 February 2015 (UTC)
Hilfe zur extension:eventcalendar
Hallo, ich versuche es einfachheitshalber zunächst mal auf deutsch: also, ich würde gerne die extension eventcalendar nutzen, komme aber einfach nicht mit der Einrichtung klar. Das SemanticBundle habe ich bereits installiert und in der Localsettings.php eingebunden. Aber wie binde ich nun den Kalender in meine seite ein und wie erschaffe ich neue Termine??? Würde mich riesig über eine einfache Erklärung freuen!!! Danke 92.225.81.221 11:16, 26 February 2015 (UTC)
- Is this about https://www.semantic-mediawiki.org/wiki/Help:Eventcalendar_format ? Malyacko (talk) 12:26, 26 February 2015 (UTC)
- yes it is!!
- And I don´t understand how to make it work in my Wiki???
- PLEAAAAAAAAAAAAAAAAAAAAAAAAASSSSSSSSSSSSEEEEEEEEEEEE Can you explain me??!!! 92.225.81.221 15:10, 26 February 2015 (UTC)
- > PLEAAAAAAAAAAAAAAAAAAAAAAAAASSSSSSSSSSSSEEEEEEEEEEEE
- ??? What is the intention to do that?
- > Is this about https://www.semantic-mediawiki.org/wiki/Help:Eventcalendar_format ?
- > yes it is!!
- Then you should ask there :) Florianschmidtwelzow (talk) 13:32, 27 February 2015 (UTC)
- The intention is... surprise, surprise... to have an eventcalendar!!! I need it for my companies, so we can organize better.
- I would like too ask "there" - but there is no "there"!!
- Can´t anybody just send me some working code that i have to enter into my wiki??
- <eventcalender>
- ????????
- and how to create an event??? 78.52.201.107 14:24, 1 March 2015 (UTC)
- Please read the previous comment again how to receive help. Please also consider fixing your keyboard: it prints certain keys like ? and ! several times instead of only once. Malyacko (talk) 09:10, 2 March 2015 (UTC)
- 'there' is here Arent (talk) 12:57, 2 March 2015 (UTC)
- Just look at the examples given here. Quite self-explanatory, I would say. Temptuousinsolence (talk) 14:37, 2 March 2015 (UTC)
- I´m looking at the examples, but it doesn´t work in my wiki...
- how can i check, if i´ve got correctly installed all needed extensions??
- do i have to install the jquery.fullcalendar plugin manualy?? or do i have to use this bower thing and how does it work?
- i downloaded the extension but i´m using windows and as far as i see it´s only explained for linux - anyone an idea?? 85.179.70.62 15:46, 8 March 2015 (UTC)
- SemanticResultFormats/resources/jquery/fullcalendar should contain the files listed here and here Temptuousinsolence (talk) 09:47, 11 March 2015 (UTC)
- Yes, I know,
- but I don´t know how to install the jquery.fullcalendar plugin!!?? 78.52.225.111 14:42, 14 March 2015 (UTC)
- SemanticResultFormats/resources/jquery/fullcalendar should contain the files listed here and here Temptuousinsolence (talk) 09:47, 11 March 2015 (UTC)
Offline upgrade?
One option appears to be missing from Manual:Upgrading and maybe it is for a good reason, but I'll have to ask first.
If you don't have shell access to the server that hosts your relatively large site, you may still be able to download the files and database that belong to it. If that's the case, I would expect that you can replicate the site on your local desktop computer or whatever (e.g. using a stack that includes PHP, etc.) and do the upgrade from the command line; then, if the upgrade has completed successfully, you can upload the database and files to replace the old ones and the job is done.
Would this imaginary scenario work, or did I just paint a rosy picture that underestimates the complexity of the process? Does it matter, for instance, that the local computer runs Windows, while the remote server is Unix-based, or that the solution stack of your local computer is not as full as the remote installation?
If it does work though, it would be worth considering as an alternative to the web-based updater (which may not work) or the rather more expensive solution of migrating your site (which not everyone can afford) and so as a way out of an impasse. Cavila (MW 1.22, MySQL 5.5.37-0, Php 5.4.4-14 squeeze, SMW 1.9.2, SF 2.7) 14:43, 26 February 2015 (UTC)
- > If you don't have shell access [...] and the job is done.
- Yes, that basiclly is possible. What you are speaking about, technically is a move to your other, local PC. See Manual:Moving_a_wiki for more information on server moves! Then what you do is an upgrade as detailed on Upgrade and then another move back to the original server.
- I have not tested a Windows <-> Unix move myself, but I would expect the following:
- Configured file system paths have to be adjusted (e.g. in LocalSettings.php, but possibly also at other places).
- All caches have to be cleared.
- If the domain name/URL of the server is different both times, that will have to be adjusted as well (e.g. in $wgServer).
- Additionally, the objectcache DB table has to be cleared - otherwise there will be a flood of "file not found" errors.
- It might be possible that you have to adjust some paths somewhere deep inside the DB; I do not know if and where, but that it would be e.g. is the reason for why you have to TRUNCATE the objectcache table.
- Usually it won't be reasonable to go down all that way moving a wiki just to do an upgrade. The few bucks you save for not paying a more expensive hosting will easily be spent for the working time needed to do the server moves. 88.130.112.151 16:09, 26 February 2015 (UTC)
- Thanks for this!
- By the sound of it, it is not unfeasible per se, but the move back and forth might be rather cumbersome and not entirely 'idiot-proof', with a number of issues that could easily become a right pain. Localsettings.php can easily be adjusted, but some of the other, database-related things you mention regarding 'objectcache' and others listed at Manual:Moving a wiki are well outside my 'comfort zone'.
- On the other hand, the alternative is more than 'a few bucks' extra. I might give it a try and see how things work out (or not). Cavila (MW 1.22, MySQL 5.5.37-0, Php 5.4.4-14 squeeze, SMW 1.9.2, SF 2.7) 09:05, 27 February 2015 (UTC)
Creating a custom search bar
Hi all. Is there any way to code a Search Bar that will search pages within a specific category?
I have pages categorized as "Photos" and I would like a search bar that would search through those pages rather than the whole Wiki.
Any help would be appreciated.
Product Version:
MediaWiki 1.19.7
PHP 5.3.15 (cgi-fcgi)
MySQL 5.1.63-community-log 198.103.104.11 18:29, 26 February 2015 (UTC)
External link opens in new window on request but not always :-(
Hello All,
I installed the LaunchExternal extension in my Wiki, and now any URL in a text opens in a new window, BUT the one to MediaWiki. How come ?
Example:
In this page link to Forum de discussions et d'informations does open in a new window, but in that page (4th §), link to MediaWiki does not :-(
Config is
MediaWiki 1.24.1
PHP 5.5.11 (apache2handler)
MySQL 5.0.67-log
Thanks. Casablanca1950 (talk) 12:56, 27 February 2015 (UTC)
- Assuming you're using the script on that page instead of the <ext></ext> tag, it had an issue. I've updated the script on the page and it should work if you update it. Ciencia Al Poder (talk) 10:36, 2 March 2015 (UTC)
- Hi,
- I don't understand. You updated a 20 lines script by a 5 lines one, which does the same?
- I'm using the LaunchExternal script. Should I remove it from Common.js and copy/paste the script from your page instead?
- I was not able to do so as right click and CTRL C are disabled on your page.
- Thanks. Casablanca1950 (talk) 07:05, 3 March 2015 (UTC)
- Yes, replace the old script with the new one and it should work. Be sure to hard-reload the page (CTRL+R) or clear the cache to ensure it gets loaded.
- And yes, I managed to simplify the script by using jQuery, which is loaded by default on MediaWiki and provides a lot of shorthands to do the same in fewer lines of code :) Ciencia Al Poder (talk) 10:34, 3 March 2015 (UTC)
- Clever, Buddy :-)
- I did it, the feature still works, but the link to MediaWiki still opens in the same tab...
- Thanks. Casablanca1950 (talk) 11:54, 3 March 2015 (UTC)
- Ok, the footer icons are special, so I've updated the script to handle them. Ciencia Al Poder (talk) 10:29, 4 March 2015 (UTC)
[RESOLVED] error in update with by web browser in MediaWiki Language Extension Bundle
- We were dealing with a problem during installation MediaWiki Language Extension Bundle in step upadte database with by web browser
[f18f0cca] /mediawiki/mw-config/ Exception from line 341 of /home/.../domains/.../public_html/mediawiki/includes/MagicWord.php: Error: invalid magic word 'babel'
Backtrace:
#0 /home/.../domains/.../public_html/mediawiki/includes/MagicWord.php(264): MagicWord->load(string)
#1 /home/.../domains/.../public_html/mediawiki/includes/parser/Parser.php(5159): MagicWord::get(string)
#2 /home/.../domains/.../public_html/extensions/Babel/BabelStatic.class.php(22): Parser->setFunctionHook(string, array)
#3 [internal function]: BabelStatic::onParserFirstCallInit(Parser)
#4 /home/.../domains/.../public_html/mediawiki/includes/Hooks.php(206): call_user_func_array(string, array)
#5 /home/.../domains/.../public_html/mediawiki/includes/GlobalFunctions.php(3995): Hooks::run(string, array, NULL)
#6 /home/.../domains/.../public_html/mediawiki/includes/parser/Parser.php(279): wfRunHooks(string, array)
#7 /home/.../domains/.../public_html/mediawiki/includes/parser/Parser.php(291): Parser->firstCallInit()
#8 /home/.../domains/.../public_html/mediawiki/includes/parser/Parser.php(5000): Parser->clearState()
#9 /home/.../domains/.../public_html/mediawiki/includes/parser/Parser.php(377): Parser->startParse(Title, ParserOptions, integer, boolean)
#10 /home/.../domains/.../public_html/mediawiki/includes/installer/Installer.php(631): Parser->parse(string, Title, ParserOptions, boolean)
#11 /home/.../domains/.../public_html/mediawiki/includes/installer/WebInstaller.php(676): Installer->parse(string, boolean)
#12 /home/.../domains/.../public_html/mediawiki/includes/installer/WebInstallerPage.php(392): WebInstaller->getInfoBox(string)
#13 /home/.../domains/.../public_html/mediawiki/includes/installer/WebInstallerPage.php(380): WebInstallerExistingWiki->showKeyForm()
#14 /home/.../domains/.../public_html/mediawiki/includes/installer/WebInstaller.php(280): WebInstallerExistingWiki->execute()
#15 /home/.../domains/.../public_html/mediawiki/mw-config/index.php(79): WebInstaller->execute(array)
#16 /home/.../domains/.../public_html/mediawiki/mw-config/index.php(38): wfInstallerMain()
#17 {main}
- in main page show this message:
- A database query error has occurred. This may indicate a bug in the software. Wikimech org (talk) 14:54, 27 February 2015 (UTC)
- As the error is the "invalid magic word 'babel'", is the Babel Extension installed? Malyacko (talk) 09:09, 2 March 2015 (UTC)
- Hi Malyacko
- I'm First upload and Extract MediaWiki Language Extension Bundle in Mediawiki directory then run update by browser. during update I recive top error
- I can not access to shell and me want to wiki multi lang ; please help me
- Thank You
Wikimech org (talk) 07:11, 5 March 2015 (UTC)- Help,Help,Help!!! Wikimech org (talk) 18:30, 29 March 2015 (UTC)
- Truncate (delete all rows of the table, but not the table itself) the l10n table, and the contents of the cache directory (if configured). See Localisation#Caching. Ciencia Al Poder (talk) 09:25, 30 March 2015 (UTC)
- I have the same problem.
- My cache directory is empty, and I tried truncating the l10n_cache table, but it doesn't help. Slashme (talk) 22:04, 30 May 2015 (UTC)
- I didn't remember that I created myself a bug about that, See T69877. I've placed a warning on Extension:Babel telling that the extension is incompatible with the web installer.
- Since the Babel extension doesn't need schema updates, you can safely disable it when running the web updater, and enable it afterwards. Ciencia Al Poder (talk) 09:41, 1 June 2015 (UTC)
- Best Soultion for this problems is creat wiki by XAMPP in your computer,Beacuse you access SSH and update script whit by
php maintenance/update.php
.Then import your all data (LocalSettings.php; image directory, custom skin,custom templates, all contents) from old wiki to new wiki in end upload new files and new database in your shared host. - Note: Before upload new files and new database create full backup from your site. WikiMech (talk) 12:33, 1 June 2015 (UTC)
- I think that seems to be the problem when I tried to upgrade to 1.25, but it has either been about seven years since I done something like that or just haven't done it.
- Just downloaded and installed the XAMPP on my computer and now have no clue whatsoever Nsgaeverine (talk) 08:25, 20 September 2015 (UTC)
- Best Soultion for this problems is creat wiki by XAMPP in your computer,Beacuse you access SSH and update script whit by
- Truncate (delete all rows of the table, but not the table itself) the l10n table, and the contents of the cache directory (if configured). See Localisation#Caching. Ciencia Al Poder (talk) 09:25, 30 March 2015 (UTC)
- Help,Help,Help!!! Wikimech org (talk) 18:30, 29 March 2015 (UTC)
- Hi Malyacko
- As the error is the "invalid magic word 'babel'", is the Babel Extension installed? Malyacko (talk) 09:09, 2 March 2015 (UTC)
[RESOLVED] Enable Anonymous File Upload (v. 1.24.1)
I'm working on a script to convert our old wiki to WikiMedia and it would be really handy to enable anonymous file uploads for it. Is it possible to enable anonymous file uploads? I've found examples of how to restrict logged in users to upload files to only certain groups, but nothing to enable them. 204.209.209.130 16:20, 27 February 2015 (UTC)
- Set
$wgGroupPermissions['*']['upload'] = true;
$wgGroupPermissions['*']['reupload'] = true;
- in LocalSettings.php. If your wiki is publicly available, this will enable spammers to not only write about their junk, but to also upload photos of it. Just as a thought... 88.130.78.37 16:37, 27 February 2015 (UTC)
- Thanks! The wiki isn't publicly available and I plan on disabling anonymous uploads after the script has uploaded the documents from our old wiki. 204.209.209.130 21:34, 27 February 2015 (UTC)
- That's fine! 88.130.78.37 22:37, 27 February 2015 (UTC)
- Thanks! The wiki isn't publicly available and I plan on disabling anonymous uploads after the script has uploaded the documents from our old wiki. 204.209.209.130 21:34, 27 February 2015 (UTC)
[RESOLVED] Mediawiki internal error: Another module has already been registered as oojs (ResourceLoader.php)
I just tried to upgrade Mediawiki from 1.22 to 1.24.1.
Everything seemed to go smoothly till I tried loading the site and got an error about oojs already being registered. Did the requisite googling and didn't find anything that seemed to fit or provide options to fix. I've attached the output below. Things to look at?
MediaWiki internal error.
Original exception: [f164743a] /wiki/index.php?title=Main_Page Exception from line 279 of /usr/local/var/www/mediawiki-1.24.1/includes/resourceloader/ResourceLoader.php: ResourceLoader duplicate registration error. Another module has already been registered as oojs Backtrace:
- 0 /usr/local/var/www/mediawiki-1.24.1/includes/resourceloader/ResourceLoader.php(240): ResourceLoader->register(array)
- 1 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(2730): ResourceLoader->__construct(GlobalVarConfig)
- 2 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(526): OutputPage->getResourceLoader()
- 3 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(552): OutputPage->filterModules(array, string)
- 4 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(624): OutputPage->getModules(boolean, string, string)
- 5 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(3039): OutputPage->getModuleMessages(boolean, string)
- 6 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(3114): OutputPage->getScriptsForBottomQueue(boolean)
- 7 /usr/local/var/www/mediawiki-1.24.1/includes/skins/Skin.php(618): OutputPage->getBottomScripts()
- 8 /usr/local/var/www/mediawiki-1.24.1/includes/skins/SkinTemplate.php(490): Skin->bottomScripts()
- 9 /usr/local/var/www/mediawiki-1.24.1/includes/skins/SkinTemplate.php(274): SkinTemplate->prepareQuickTemplate(OutputPage)
- 10 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(2226): SkinTemplate->outputPage()
- 11 /usr/local/var/www/mediawiki-1.24.1/includes/MediaWiki.php(594): OutputPage->output()
- 12 /usr/local/var/www/mediawiki-1.24.1/includes/MediaWiki.php(435): MediaWiki->main()
- 13 /usr/local/var/www/mediawiki-1.24.1/index.php(46): MediaWiki->run()
- 14 {main}
Exception caught inside exception handler: [23e4344c] /wiki/index.php?title=Main_Page Exception from line 279 of /usr/local/var/www/mediawiki-1.24.1/includes/resourceloader/ResourceLoader.php: ResourceLoader duplicate registration error. Another module has already been registered as oojs Backtrace:
- 0 /usr/local/var/www/mediawiki-1.24.1/includes/resourceloader/ResourceLoader.php(240): ResourceLoader->register(array)
- 1 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(2730): ResourceLoader->__construct(GlobalVarConfig)
- 2 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(526): OutputPage->getResourceLoader()
- 3 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(552): OutputPage->filterModules(array, string)
- 4 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(624): OutputPage->getModules(boolean, string, string)
- 5 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(3039): OutputPage->getModuleMessages(boolean, string)
- 6 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(3114): OutputPage->getScriptsForBottomQueue(boolean)
- 7 /usr/local/var/www/mediawiki-1.24.1/includes/skins/Skin.php(618): OutputPage->getBottomScripts()
- 8 /usr/local/var/www/mediawiki-1.24.1/includes/skins/SkinTemplate.php(490): Skin->bottomScripts()
- 9 /usr/local/var/www/mediawiki-1.24.1/includes/skins/SkinTemplate.php(274): SkinTemplate->prepareQuickTemplate(OutputPage)
- 10 /usr/local/var/www/mediawiki-1.24.1/includes/OutputPage.php(2226): SkinTemplate->outputPage()
- 11 /usr/local/var/www/mediawiki-1.24.1/includes/exception/MWException.php(195): OutputPage->output()
- 12 /usr/local/var/www/mediawiki-1.24.1/includes/exception/MWException.php(238): MWException->reportHTML()
- 13 /usr/local/var/www/mediawiki-1.24.1/includes/exception/MWExceptionHandler.php(45): MWException->report()
- 14 /usr/local/var/www/mediawiki-1.24.1/includes/exception/MWExceptionHandler.php(141): MWExceptionHandler::report(MWException)
- 15 /usr/local/var/www/mediawiki-1.24.1/includes/MediaWiki.php(449): MWExceptionHandler::handle(MWException)
- 16 /usr/local/var/www/mediawiki-1.24.1/index.php(46): MediaWiki->run()
- 17 {main}
216.106.102.12 16:53, 27 February 2015 (UTC)
- I don't know of the exact internals, but this error means that the OOjs module has tried to be registered multiple times. I would guess that this can happen, if you use old extensions or an old skin, which are not properly updated for MediaWiki 1.24. Maybe you still have files from the old MediaWiki version in the way, which are now causing trouble. In this case updating them should solve the issue.
- In order to investigate, which extension might cause this, you might try disabling all extensions and then enabling them one by one until you get the error again! 88.130.78.37 22:52, 27 February 2015 (UTC)
- Thanks, that was it. I need do do a serious cleanup of the extensions directory instead of just bulk copying during the backup. But, I'm up and running now.
- Thanks again. 216.106.102.12 00:56, 28 February 2015 (UTC)
Redirect Categories
It is no problem to redirect a category. The problem is, that the pagename of the redirected category will not appear under the target category. Is there any way to solve this problem? Rbergmann.lat (talk) 11:05, 28 February 2015 (UTC)
- A category redirect only makes sense for cases, in which both, the redirect and its target, are semantically identical. In this case, you should in fact not use the category, which you want to redirect. Instead, use the actual target in your pages! 88.130.78.37 11:17, 28 February 2015 (UTC)
- I operate a Wiki in 3 languages in one, with given categories. At the moment the problem for English or French speaking users is, that they must use the German words for the categories. E.g. one category is Teerose, the English word is Tea and it is difficult for an English user to spell Teerose or other more complicated words. Rbergmann.lat (talk) 11:27, 28 February 2015 (UTC)
- If the users do not understand the category names, which I guess basically only are single words, in how far does it then help the users to have categories pointing to pages they don't understand? I think the problem is not the mixture of languages in category names, but that different languages are mixed at all. If you have different languages for the content, it is only logical to also have different languages for the categories. 88.130.78.37 11:40, 28 February 2015 (UTC)
- I operate a Wiki in 3 languages in one, with given categories. At the moment the problem for English or French speaking users is, that they must use the German words for the categories. E.g. one category is Teerose, the English word is Tea and it is difficult for an English user to spell Teerose or other more complicated words. Rbergmann.lat (talk) 11:27, 28 February 2015 (UTC)