Project:Support desk/Flow/2012/10
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. |
Unable to create the folder "mwstore://local-backend/local-public/f/fc"
Hi guys. I updated my MW 1.16 to 1.19 and run the update.php script from command line. Everything works except displaying of images and uploads. Uploads don't work! I keep getting this error every time I try to upload a file: Unable to create the folder "mwstore://local-backend/local-public/x/XXX"
I didn't set any of these variables $wgTmpDirectory, $wgUploadDirectory, $wgUploadPath. They're all set to their default values. My /includes/DefaultSettings.php is untouched and my LocalSettings hasn't variables regarding file uploads (except EnableUploads set to true). My /images folder is set to 777 as well as its subdirectories (/images/tmp too). It's just weird. Seems a permissions issue but the folder is chmodded to 777, owned by www-data and everything!
After I added $wgShowExceptionDetails = true; I got this results:
Error storing file in '/tmp/phpxdixN7.jpg': Could not create directory "$1". Backtrace:
- 0 /var/www/rockciclopedia.com/htdocs/wiki/includes/upload/UploadBase.php(746): UploadStash->stashFile('/tmp/phpxdixN7', 'file')
- 1 /var/www/rockciclopedia.com/htdocs/wiki/includes/upload/UploadBase.php(757): UploadBase->stashFile()
- 2 /var/www/rockciclopedia.com/htdocs/wiki/includes/upload/UploadBase.php(766): UploadBase->stashFileGetKey()
- 3 /var/www/rockciclopedia.com/htdocs/wiki/includes/specials/SpecialUpload.php(336): UploadBase->stashSession()
- 4 /var/www/rockciclopedia.com/htdocs/wiki/includes/specials/SpecialUpload.php(427): SpecialUpload->showUploadWarning(Array)
- 5 /var/www/rockciclopedia.com/htdocs/wiki/includes/specials/SpecialUpload.php(174): SpecialUpload->processUpload()
- 6 /var/www/rockciclopedia.com/htdocs/wiki/includes/SpecialPageFactory.php(476): SpecialUpload->execute(NULL)
- 7 /var/www/rockciclopedia.com/htdocs/wiki/includes/Wiki.php(263): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
- 8 /var/www/rockciclopedia.com/htdocs/wiki/includes/Wiki.php(593): MediaWiki->performRequest()
- 9 /var/www/rockciclopedia.com/htdocs/wiki/includes/Wiki.php(503): MediaWiki->main()
- 10 /var/www/rockciclopedia.com/htdocs/wiki/index.php(58): MediaWiki->run()
- 11 {main}
Also $wgScriptPath is commented (so default value)! Is this a bug? Please help me! Thx in advance! MultiformeIngegno (talk) 02:44, 1 October 2012 (UTC)
- HI, you can reference this: http://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2012/05#h-%5BRESOLVED%5D_Trouble_uploading_after_installation-2012-05-14T01%3A20%3A00.000Z
- I encountered the same thing, and i found the link above. Finally i solved this by:
- sudo chown -R www-data mediawiki
- Actually we can only "chown" the exact directory for images:
- sudo chown -R www-data mediawiki/images/
- Hope this can help you. 219.133.170.43 08:50, 3 December 2012 (UTC)
- I am having the same issue but running windows server.... added Full Control to permissions no change 24.114.255.83 18:54, 8 March 2013 (UTC)
- Do you have the exact same error (key points does it precisely say Error storing file in '/tmp...) (Asking because the temp file path should not start with /tmp on windows, only on unix-based os's. Bawolff (talk) 04:50, 9 March 2013 (UTC)
- Hi
- I dont have any www-data user and I have tried with apache user. But no success. Any idea please?
- Thanks
- Mahmood 94.175.211.243 09:59, 22 November 2013 (UTC)
- find what's the user running apache. You can usually get that looking at the list of processes running on the machine. Ciencia Al Poder (talk) 10:29, 22 November 2013 (UTC)
- Do you have the exact same error (key points does it precisely say Error storing file in '/tmp...) (Asking because the temp file path should not start with /tmp on windows, only on unix-based os's. Bawolff (talk) 04:50, 9 March 2013 (UTC)
- I am having the same issue but running windows server.... added Full Control to permissions no change 24.114.255.83 18:54, 8 March 2013 (UTC)
How to add onclick attribute?
When I write this in the wikitext:
<span onclick="functionname1()">Blabla</span>
and look into the source code of the page, I only find <pre>Blabla</pre>Where did my onclick go??? Agantacroxi (talk) 17:51, 1 October 2012 (UTC)
Enable MW Suggest
Version: 1.19.2 URL: www.wiki.brutalcraft.org
I tried to put $wgEnableMWSuggest = true; in my LocalSettings.php but it still doesn't enable search suggestions. 109.182.59.153 (talk) 18:49, 1 October 2012 (UTC)
- Looks like you got it working (I just tried visiting www.wiki.brutalcraft.org, works for me). Krinkle (talk) 00:50, 2 October 2012 (UTC)
- yep i got it working by puting this in localsettings:
- require_once( "$IP/extensions/Vector/Vector.php" );
- $wgVectorUseSimpleSearch = true; 109.182.93.132 06:22, 6 October 2012 (UTC)
which mediawiki table for a backup
If i want to backup mediawiki table, which table i have to backup?
i know that mw_objectcache data can not be backed up this is true also for mw_msg_resource, mw_msg_resource_links? Andrea.petrucci.1975 (talk) 22:49, 1 October 2012 (UTC)
- Hi!
- I think that the table objectcache can be backed up; but you do not have to back it up. :-)
- The msg_resource table is a cache table. That means it is enough to back up the table structure and to recreate this structure, when you need the backup. The content will be recreated by MediaWiki as needed.
- After reading the description on Manual:Msg_resource_links_table, I think that this table contains "original" data, that means it does not only cache stuff, which is already stored in some form somewhere else, but that the data is only stored in this table (and might be taken from there to be put somewhere else). So I would include this table with its content in my backup.
- However, why do you want to leave certain tables out? If I were you, I would create a full backup of the whole database, with all tables and everything. 88.130.82.245 23:09, 1 October 2012 (UTC)
- my question start from this problem.
- after a database restore, I realized that that something had gone wrong.
- in mw_Recentchanges table many rows are missing (I immediately restored with a sql query).
- so i used WinMerge to compare my last backup with actual database, and i discovered that also mw_objectcache, mw_msg_resource, mw_msg_resource_links were heavily changed
- from what I read in the manual changes in mw_objectcache are not a problem and my wiki seems to work correctly
- but my doubt is: should i restore mw_msg_resource, mw_msg_resource_links from my backup? 193.193.172.200 07:11, 2 October 2012 (UTC)
- Based on what I wrote above: Yes, restore them.
- That the table recentchanges does not contain all rows, but only the few last hundred/thousand, might be no problem. MediaWiki might remove old rows from that table. See Manual:Recentchanges_table for details.
- However, if you think that your backup is kind of broken, I guess you should better take another backup, which you know is OK. 88.130.110.174 12:05, 2 October 2012 (UTC)
How to upgrade the media wiki
Dear All, Am using older version of media wiki, and mySql as the database.The url is http://onlineconstitution.net As whole server has been upgraded to new PHP version am getting such error. I need a way to how to fix the error without losing my file and data.
It could be great help if i could get help on this as soon as possible.
Thanks and regards 106.203.221.100 (talk) 04:50, 2 October 2012 (UTC)
- Hi!
- You can do an update of MediaWiki; it is not so hard. :-) But before you start, you need to know the exact version numbers of PHP, MySQL and of MediaWiki to determine to which version of MediaWiki you can/should upgrade.
- Then all information you need are on Manual:Upgrading. If you have further questions, don't hesitate to ask! 88.130.110.174 14:57, 2 October 2012 (UTC)
How work the categories?
I'm a novice and I sitll some doubts about how work the categories.
In my MW (1.19.2) I've some little templates, all classified as "Category:Template".
Then I've a "master template" that calls these templates. This master templates is named "Make Software Page" and it is classified as "Category:Software".
Finally, in a page I've a InputBox module che calls "Make Software Page" to create pages Software1, Software2, software3, ...
Correctly every page "SoftwareX" is classified as "Category:Software". If I open the page, in the "SelectCategoryTagCloud" I see only this category, but I see also a big word "Template".
If I open the category Template I see not only the templates, but also the pages Software1, Software2, software3, ....
The strange thing is that I don't see the category "Templates" in the "SoftwareX" pages, only the category "Software" as if the category is inherited from templates.
Why? Where I wrong?
Thanks in advance. ============== Ok, I found the problem. Thanks. WhiteTigerItaly (talk) 06:06, 2 October 2012 (UTC)
- And the problem was? 88.130.110.174 14:49, 2 October 2012 (UTC)
- SelectCategoryTagCloud removes the category Templates from <noinclude>Templates</noinclude> and so the page was classified as Software and also as Templates.
- I removed SCTC and then I had to correct every pages because there was:
- <noinclude></noinclude>
- Category:Templates
- Category:Software
WhiteTigerItaly (talk) 04:17, 3 October 2012 (UTC)- Good to know how you solved it; I guess that might help others in your situation. :-) 88.130.90.233 12:15, 3 October 2012 (UTC)
Lost Source Files
Hi,
This is probably a daft question, but I've just started with a company and am trying to manage their MediaWiki - the problem is I can't find the original source files. It was installed by someone who has now left and no-one seems to know which computer / drive it was installed on.
Is there anything I can do?
Thanks
Elaine 93.107.36.209 (talk) 07:47, 2 October 2012 (UTC)
- Hi Elaine,
- how are you accessing the wiki? Does it have a "real" URL or does it have some internal URL (like http://localhost)? You could try to ping the hostname of that wiki on your PCs command line like so:
- Open the command line and type
ping www.my-hostname.com
- This should at least give you a few rows of text with an IP address. The next step would then be to check, if this is a local IP address (meaning it is somewhere inside your company) or if it is an "international" IP address (meaning it might be anywhere; most likely in a datacenter somewhere). 88.130.110.174 12:14, 2 October 2012 (UTC)
Mediawiki is very slow
After transferring to a new server my wiki become very slow. I tried many things, nothing helped. Then I have installed a clean wiki 1.18.1 result is the same. I tried to turn on the cache, it did not help (I tried CACHE_DB and CACHE_ANYTHING). When I turned on memtsache (CACHE_MEMCACHED) script was executed for another 30 seconds longer, so I disabled it. Now used CACHE_DB.
I have included Profiler. The biggest delay in Resurtseloader (hetmodifiedtime, makeModuleResponse) and in Setup.php. my wiki_profiling: https://dl.dropbox.com/u/70883557/wiki_profiling.png (it is profiling from two page loading)
Can anybody help? Which way to look? What to do?
Server characteristics: - PHP Version 5.3.17 - mysql client API version 5.1.59
Thank You.
P.S.: When I installed wiki 1.19.2 result is the same too :-( Lemk0 (talk) 12:48, 2 October 2012 (UTC)
Special:UserLogin error 500 after upgrade to 1.18.5
Special:UserLogin not work after upgrade to 1.18.5 - error 500. I use Extension:PHPBB/Users Integration and I delete defines of this extension from LocalSetting.php, but error continues to occur. 31.40.70.203 (talk) 13:38, 2 October 2012 (UTC)
- From which version did you upgrade?
- I don't think some defines(); should change much. If you want to disable PHPBB/Users Integration, you should disable the require_once()-line, which includes this extension.
- Apart from that you should find more information in the Apache error log and maybe also in the PHP error log. Check what they tell you! 88.130.110.174 14:48, 2 October 2012 (UTC)
- for disable Extension:PHPBB/Users Integration I delete require_once() line and all related variables 31.40.70.203 15:04, 2 October 2012 (UTC)
15:10, 2 October 2012 (UTC)
- error_log:
- [Tue Oct 02 15:23:40 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined method WebRequest::getIP() in /home/www/************/wiki/extensions/ConfirmEdit/Captcha.php on line 202 31.40.70.203 15:09, 2 October 2012 (UTC)
- That's a bug in ConfirmEdit. It tried to access a function, which is not part of MediaWiki.
- The same problem has been reported here. Try, if the hints you find there, help you. 88.130.110.174 15:14, 2 October 2012 (UTC)
After restore of db to new posgresql server due to failure of old one get Error: 1 ERROR: relation "objectcache" does not exist at character 54
mediawiki version was 1.17.0 now upgraded to 1.19.2
postgresql version 9.1.6
get error:
A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: SELECT value,exptime FROM "objectcache" WHERE keyname = 'my_wiki:messages:en' LIMIT 1 Function: SqlBagOStuff::get Error: 1 ERROR: relation "objectcache" does not exist at character 54 217.132.209.106 (talk) 23:09, 2 October 2012 (UTC)
- Take a backup of the database and run the updater again. 88.130.90.233 12:31, 3 October 2012 (UTC)
Image thumbnails broken
The image thumbnail function on my entire wiki is broken... it can only show images at full size, or previously-created thumbnails. It can't seem to create any new thumbnails of any size.
Any thumbnail only has a grey box that looks like this:
Error creating thumbnail: convert: Unrecognized option (-set). |
The only options related to ImageMagick in my LocalSettings.php file are:
- $wgUseImageMagick = true;
- $wgImageMagickConvertCommand ='C:\mowes\ImageMagick\convert.exe';
(Hiding the $wgImageMagickConvertCommand option changed the error to "Error creating thumbnail: The system cannot find the path specified.")
All other options (relating to SVGs, which never worked: see here) were removed to try and undo this glitch, but it didn't fix anything.
Please help. This problem has crippled my wiki since early August. — Terminator484 (talk) 00:21, 3 October 2012 (UTC)
- Resolved by upgrading to ImageMagick 6.8.0 (even though MoWeS won't recognize the new software, it seems to be working).
- SVGs are still a little glitchy, but not generating crippling errors anymore. — Terminator484 (talk) 02:56, 15 October 2012 (UTC)
Problem with the Question mark at the end of URL
Hi, my site http://wecheck.org is a fact check site and each page is a question. For example: Did Mitt Romney ever work as a garbage collector?
http://wecheck.org/wiki/Did_Mitt_Romney_ever_work_as_a_garbage_collector%3F
The problem is that when I paste the URL for the page into most comment boxes the %3F gets stripped and the url becomes invalid. I guess there may be two approaches to fixing it
1. Wiki Answers pages simply don't use the question mark in the URL
http://wiki.answers.com/Q/How_can_a_kid_learn_computer_programming
It would look strange if the top header text did not have a "?" so they must add it programmatically. Is there an easy way to do this using something like {{pagetitle}} +"?" Although how would it know it was the correct type of page and not apply it to other pages that are not questions? Maybe I could use a pre-built form for the question.
2. Do something with the URL encoding, possibly with mod.rewrite. I am no expert at this so any guidance is most appreciated.
I would really appreciate any help. Thank you for your time Sparkzilla (talk) 06:58, 3 October 2012 (UTC)
- I am no mod_rewrite expert either, but I would definitely do that with mod_rewrite.
- You need a rule which adds a questionmark at the end of the URL, if it does not yet end with one. And you need to exclude all pages, which are not in the main namespace (like Special:Version and so). 88.130.90.233 12:21, 3 October 2012 (UTC)
- I think it's the other way round. I'll need to strip the %3F from the url (so that I can copy and past the Url into a comment box) while still allowing the "?" to appear in the page. Unless the page header text is dynamically populated with the URL:
- Any mode-rewrite experts who think it's possible and know how to do this? My current rules are:
RewriteEngine On
- RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
Sparkzilla (talk) 14:48, 3 October 2012 (UTC)
Chinese type language how to search
The default search assumes a language where there are spaces between words. How does one change the settings so that words without a break show up in the search.
- Example In the sentance 北京是中国的首都。 北京 Beijing 中国 China and 首都 capital are all words but no gaps. Supplying a dictionary of words in not a problem.
Using I am using mediawitki-1.19.2 with a postgresql 9.1.5 databae on a server with mint 13 which is debian based. Johnkn63 (talk) 12:47, 3 October 2012 (UTC)
Padlock icons on HTTPS links. Why? and how to switch off?
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.
- Does anyone know why MediaWiki puts little padlock icons next to HTTPS links e.g: https://twitter.com/harry_wood
- I'm sure the answer is "security" but why? what's this actually guarding against? It used to be a rare thing, but more and more websites these days are switching to be entirely HTTPS (e.g. twitter) It doesn't seem like a particularly significant thing that the user must be aware of when clicking the link. I know there's a security thing around unexpectedly leaving a secure website, but... I would venture to suggest that this padlock decoration is a bit unnecessary these days.
- Also what's this feature called (page about it here somewhere?) and how do I switch it off? Harry Wood (talk) 13:56, 3 October 2012 (UTC)
- Managed to get a very thorough answer to this question here. It seems we have HTTPS padlock icons because some developer back in 2003 thought they were cute :-) I guess I can drop them with CSS customisation. Harry Wood (talk) 02:07, 13 November 2012 (UTC)
Rob Kam (talk) 11:48, 14 September 2013 (UTC)
- I've actually put in a bugzilla, bug to suggest the MediaWiki Vector default should be changed https://bugzilla.wikimedia.org/show_bug.cgi?id=61178 Harry Wood (talk) 10:59, 11 February 2014 (UTC)
- To remove the padlock icon when viewing secure links, add the CSS with no URL to MediaWiki:Common.css
- Krinkle (talk) 04:11, 3 October 2013 (UTC)
div#content a.external[href ^="https://"] { background-image: none; padding-right: 0; }
- Actually removing the 'background-image' is not the desired effect. That would make HTTPS links look like internal wiki links. I want HTTPS links to get the normal external link graphic. I think the only way of doing this in MediaWiki:Common.css is to override the background-image to set it the same like so:
div#content a.external[href ^="https://"] { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC); }
- Tried this for OpenStreetMap wiki: now uses this. It works! Harry Wood (talk) 02:43, 28 December 2013 (UTC)
Harry Wood (talk) 02:43, 28 December 2013 (UTC)
- In fact I'd like the reverse: if a wiki is currently accessed by HTTPS, links going to external sites that are NOT secured, should not display the normal blue arros icon, but some icon with some red alert syaing that we will leave the secure area and that the target link is unchecked, possibly loosing the higher privacy and security level we have in Wikimedia when connecting to it with HTTPS.
- If the wiki is currently viewed in HTTP, the same blue arrow icon could be used for both HTTP and HTTPS targets. Verdy p (talk) 20:09, 18 May 2017 (UTC)
- As well, if users are connecting to the wiki using HTTP, some alert should be shown to them to propose them to use HTTPS instead (this alert could be a notification bar at top, but not displayed multiple times during the same session, and could be permanently dismissed if the user is connected and has saved that preference in their own profile, so that they can continue navigating the wiki privately (and their navigation left private by external third parties is much as possible, notably for readonly sessions) Verdy p (talk) 20:13, 18 May 2017 (UTC)
- Google Chrome browser does this. Rob Kam (talk) 21:28, 18 May 2017 (UTC)
- No. Google Chrome does this AFTER you have connected to the remote site: it's too late for privacy even if you are informed. You may want to have a link filter in your browser that will display a confirmation dialog before moving from HTTPS to HTTP, but this is loosing time for users, and most won't do that. We can inform users long before with a distinctive icon showing that there will be a lower security. That icon would thne be the blue icon with some red or yellow warning sign on top of it, or may be a different blue icon shape. Verdy p (talk) 21:44, 18 May 2017 (UTC)
- Note also that some external links may be inserted in MediaWiki iamges as "link=" parameters containing an URL (starting by "http:" or "https:" rather than just a safe wikilink): there's no icon at all displayed in that case, but MediaWiki could have a confirmation dialog for this specific case. The alert icon could also still be used as well for the "plainlinks" class around external links instead of hiding always the blue arrow icon. Verdy p (talk) 21:47, 18 May 2017 (UTC)
- Also my proposal here is to educate users to use HTTPS as much as possible. I strongly support the "HTTPS Everywhere" initiative. If we didsplay these alert icons for non HTTPS external sites, their indirect promotion on Wikimedia will be impacted and their users will ask these sites to convert them to HTTPS or they will receive less traffic. If a large majority of the web is converted to HTTPS, it will not block the existence of attacks but at least everyone in the world will have the oppotunity to know with which site they are really interacting, and who to blame in case of problems. There will be also a larger confidence on the web, and simple attacks against HTTP websites will be prevented because their certificate won't match (the major browsers already alert users when an HTTPS site has an invalid certificate and prevent visiting them). The HTTPS certificates can be inspected, we can ask to the PKI provider to do something against a milicious certificate emitters, including if a respectable website has been hacked by some blackhat and its certificates changed by certificates emitted for a third party but for the correct domain that was abused.
- HTTPS really helps preventing a lot of frauds (and now there are so many attacks on the web that HTTPS should be a requirement for all serious websites, independantly of the question of pure privacy: HTTPS will not help prevent some privacy abuses by the legitimate website owners, but these abuses cannot be tracked by the protocol when what they do is to send our private data in a background hidden channel to third parties, but at least we know that these sites are directly liable for these background actions).
- So in summary I'd like to see alert icons on all HTTP (non HTTPS) external links (or a confimation dialog in MediaWiki when there's no icon with the "plainlinks" class or with "link=" parameters of images and galleries. Let's compagin too for "HTTPS everywhere" ! Verdy p (talk) 22:03, 18 May 2017 (UTC)
- This has not been resolved. It was open since long, kept voluntarily opened, but nothing has changed since my new comment, related to the fact that there's now no longer any distinction between HTTP and HTTPS. Before there was a distinctive padlock, it has been removed for the standard blue icon for both and in all cases. However this means we equate HTTP and HTTPS in all situations, including when we are currently browsing the wiki in HTTPS and click to an external HTTP (which means reduced security).
- The icon may remain the same blue icon when browsing the wiki in HTTP only (HTTP to HTTP does not reduce the security, and there's still no need for the padlock when going from HTTP to HTTPS or from HTTP to HTTPS).
- But we must preserve the users' privacy as much as possible **BEFORE** they ever try to click a link to a non-authenticated site (possibly hacked or derouted) that this navigation may be unsafe (users browsing the wiki from HTTP are already unsafe, there's nothing we can do for them that will further reduce their security and privacy).
- It is still a major goal of Wikimedia to use HTTPS, and Wikimedia has multiple times reaffirmed its strong supprot for HTTPS, exactly as a preventive measure to help its own users keeping their pricacy when they navigate the wikis via HTTPS (and we have convinced them to do that, not just for logging in, but throughout their navigation on the wiki, but also because it can help prevent some attacks on their visit by various cross site scripting technics or some malwares in their browser plugins: browsers do not correctly isolate plugins that can easily interact with unsecured HTTP sites but have much more troubles doing it when visiting an HTTPS site, where the browser's sandboxing is far more efficient). But HTTPS is definitely protecting them better from monitoring by third parties by some intermediate proxies: their navigation on the wiki remains private (only edits made by them are public, but under only via their wiki account pseudonym, and proxies cannot monitor completely what they have modified or changed in their private user data or preferences and their session cannot be silently injected some spying code inserted by proxies or altered silently).
- So yes I'd like to see distinctive icons when navigating wikis with HTTPS, and clicking to an external unsecure site, which may have been hacked, or changed to become malicious, or whose domain expired and was cybersquatted by malwares: this has already happened in Wikimedia wikis, where external unsecured sites where initially safe, but came down or were hacked by unknown black hat parties.
- We don't need to alert anyone if all allowed external sites are HTTPS, we can assume that because the external site was already evaluated, its identity was verified and is still liable if something goes wrong and their HTTPS certificate is still valid. There are now too many sites on the web that get hacked massively.
- We need some prevention and education of users, informing them preventively BEFORE they follow the link which was evaluated only in some past. We cannot count only on the presence of the padlock in browser's adress bar, because it is already TOOL LATE: privacy has already been breached, and security already compromized (and not everyone will see it, the site may have been hacked for specific ranges of users by attacks on specific routers and we will never be able to detect that if these routers have no public access from elsewhere). That's exactly what HTTPS helps preventing. If we follow any HTTP link from a HTTPS wiki, it's too late for that user, his privacy or security may already have been breached, before the user sees the padlock on their browser bar. Verdy p (talk) 23:28, 18 May 2017 (UTC)
- TLDR Rob Kam (talk) 09:08, 19 May 2017 (UTC)
- TLDR: your uncommented closure was "TOO SHORT TO READ" anything. This required details. My comment is in sync with repeated Wikimedia positions on this issue: Security and privacy is NOT an option in Wikimedia. Verdy p (talk) 11:51, 19 May 2017 (UTC)
Table of Contents: Linking to a Separate Page
I have been working on a page (call it MainPage) and it has grown quite a lot over the past few months. The auto-generated Table of Contents now has about 20 items listed. Some of the sections have grown quite big and I would like to move one of them (call it BigTopic4) off MainPage and onto a page of its own.
Is there a way to have the entry for that new page listed in the Table of Contents of MainPage--but have the link for that entry point to the new page?
For the moment, I have left a small section on MainPage called BigTopic4 solely for the purpose of having it included in the Table of Contents on MainPage. The section's only purpose is to direct visitors to the new page, BigTopic4. I would like BigTopic4 to remain listed in the Table of Contents on MainPage, but when people click on the link, I would like them to go directly to BigTopic4's separate page.
How can this be done? 216.18.10.60 (talk) 15:38, 3 October 2012 (UTC)
- Disable the table of contents and build a new one from scratch? Cavila MW 1.17, MySQL 5.5.23, Php 5.3.10, SMW 1.7.1 20:30, 3 October 2012 (UTC)
Tag cloud
I'm searching for a tag cloud extension.
I've read the page of several extensions, but I don't find one which offers the opportunity to select only a "category parent" for include/exclude the subcategories.
The wiki is dynamic and I cannot see every day if someone has added a category to include into the tag cloud (or to exclude).
So I want to define a Master Category so all its sub categories are automatically added in the cloud and if possible another Master Category for exclusion.
I'm reading about DPL, but the page with an example of TAG implementation is wrong.
http://semeb.com/dpldemo/index.php?title=Test_category_cloud.
Thanks in advance. 79.24.252.227 (talk) 15:50, 3 October 2012 (UTC)
- You could use Semantic MediaWiki to manage tags and Semantic Result Formats for the tagcloud result format (). Cavila MW 1.17, MySQL 5.5.23, Php 5.3.10, SMW 1.7.1 20:27, 3 October 2012 (UTC)
Calendar extensions for 1.19.2
Hi, I'm in need of a calendar extension for Mediawiki 1.19.2. I've already taken a look at the calendar category, but most of aren't really want I'm looking for, and if they are, they are not compatible/stable with 1.19.2. Extension:MKCalendar looks to be what I require, but it is unstable, and therefore I'd rather not install it. Can anyone recommend a extension or a work-around? Thanks, inops. Inops (talk) 21:32, 3 October 2012 (UTC)
- Bump: any help with this would be great. Inops (talk) 13:23, 7 October 2012 (UTC)
- Just to note: I found that Extension: MW Calendar functions fine with 1.19.2, and I've decided to go with that. My wiki's information isn't as mangled to benefit from the semantic extension. Inops (talk) 13:15, 19 October 2012 (UTC)
Inops (talk) 13:15, 19 October 2012 (UTC)
Is it possible to use a single CSS page for multiple wikis?
Is there a way to have a single CSS page control the skin settings on multiple wikis with only a single set of CSS pages? Lieutenant Aleksandr Reznov 02:29, 4 October 2012 (UTC)
- Hi,
- By multiple wikis, you mean totally unrelated, or interwiki related ?
- I am not sure that will answer your question but have a look at this section of the Wiki farm page. This explains how to factor some MediaWiki settings among various InterWiki related Wikis via symbolic links. You may be able to use that to have all your Wikis targeting the same CSS file. Euloiix (talk) 16:04, 4 October 2012 (UTC)
- Isn't that what the guys at WikiMedia are doing e.g. on this wiki, when they let load.php point to another/a central server? 88.130.127.173 21:49, 4 October 2012 (UTC)
CSS not loading when using mediawiki behind apache mod_proxy
Using Chrome inspector on http://{ip}/index.php/home_page i have this:
<link rel="stylesheet" href="http://172.18.139.92/load.php?debug=false&amp;lang=es&amp;modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&amp;only=styles&amp;skin=vector&amp;*" />
<script src="http://172.18.139.92/load.php?debug=false&amp;lang=es&amp;modules=startup&amp;only=scripts&amp;skin=vector&amp;*"></script>
The link to stylesheet points to local IP but when the page loads behind mod_proxy with public IP, the links to the stylesheet points to the local IP causing not load the CSS.
In LocalSettings.php i have this:
$wgServer = WebRequest::detectServer();
$wgCanonicalServer = false;
Any idea why this happens? Thanks! 2.139.230.37 (talk) 06:44, 4 October 2012 (UTC)
Fatal error: Cannot redeclare class HttpError in /<my dir>/deployment/io/DF_HttpDownload.php on line 460
Hi
After login on my media Wiki, I get this error: Fatal error: Cannot redeclare class HttpError in /<my dir>/deployment/io/DF_HttpDownload.php on line 460 on the page http://<my domain>/index.php?title=Special:CheckInstallation If I edit the link to http://<my domain>/index.php
I can access to my pages and work without any problem.
Do you have any idea ?
./smwadmin.sh -l
Connecting to repository...done. [ERROR] ***Could not connect to 'dailywikibuilds.ontoprise.com'***
Connecting to repository...done. [ERROR] ***Could not connect to 'dailywikibuilds.ontoprise.com'***
No bundles found in repositories!
Bundle-ID (title) | Installed | Av. versions | Repository
The following bundles exist only locally:
[1.7.0_0] wikiadmintool [1.7.0_1] wysiwyg [1.20.0_0] mw Asmabulb (talk) 11:29, 4 October 2012 (UTC)
- What do you want to tell us with the information about the repositories and the bundles?
- You say you cannot access the page Special:CheckInstallation on your wiki, because then you get the error "Fatal error: Cannot redeclare class HttpError". Is that correct?
- The file DF_HttpDownload.php, in which you get this error, does not come from MediaWiki. According to Google it seems to come from SMW instead. I don't know how to put these information together... Where do you have the files in the folder io/ from (especially the file DF_HttpDownload.php)? Why is it called when you log in to MediaWiki, although it does not belong to MediaWiki? 88.130.127.173 22:17, 4 October 2012 (UTC)
Restrict wiki pages
Hello,
running wiki 1.19.1. The wiki is for students of my university to share documents, exam questions and other stuff with each other. However, we do not want our teachers to take a look at those files because they tend to change their questions. For this, we thought on each article we add a sub-article as "Addional material". If you are in a certain group, you should be able to see what lies on this page. If you're not, then you'll receive a text like "You are not authorized" or what ever.
Now I searched for an extention like that and found something: Extension:Page_access_restriction. This was a very promising extension. Since I'm new to wiki, I wasn't quite certain how to patch the files, but I eventually I downloaded Cygwin and patched the files. Unfortunatly, the last working patch was for version 1.17.0. Patching my mediawiki-1.19.1 folder didn't work, so I renamed it to 1.17.0. The patch seemed to work but left a bunch of rejected files. I don't know how to fix this rejected files. Uploading my patched mediawiki leaves me with an error on the main page:
- Fatal error: Cannot redeclare Title::isRestricted() in /home/www/cwcity/hosting/b/i/biosbg/htdocs/includes/Title.php on line 1635
Now I do not know how to continue up to this point. What can I do? Do you know another extension like this but perhaps a little easier and more up to date then this one?
Thanks in advance DMR (talk) 12:43, 4 October 2012 (UTC)
- > Patching my mediawiki-1.19.1 folder didn't work, so I renamed it to 1.17.0.
- Whaa! When you bought a dog, but now want a cat, you also cannot just call your dog "cat" and think it will then behave like a cat. No, this won't work. You need to have the right files inside (inside the folder, not inside the dog ;-) ), otherwise patching won't work.
- > The patch seemed to work but left a bunch of rejected files. I don't know how to fix this rejected files.
- Each rejected file means that for this file or for the part which you see in the .rej file (called a hunk or maybe several hunks), the patch did not work. For every part you have in a .rej file, the original file was not patched.
- You could now check, what the changes would do in an installation of Mediawiki 1.17 by checking what exactly the patch changes there. Then you could search exactly the changed pieces of code in MediaWiki 1.19.1 and implement the changes of the patch files in the MediaWiki 1.19.1 source code. I would not do that: You have 45 changed files and more than 1100 lines with changes...
- First you should now overwrite your (partly) changed MediaWiki source code with the source code of MediaWiki 1.19.1 (or even better 1.19.2) to get the wiki running again.
- To solve your problem: I would use another extension or do this differently. Maybe you could do that without any extension; just using namespaces? I am no expert, but I imagine the following could work: Use a special namespace to put the pages which hold the content, which only certain users should be allowed to see. Then only give users of those user groups, which should be allowed to see these pages and their content, the right to view pages in this namespace. 88.130.127.173 22:06, 4 October 2012 (UTC)
[RESOLVED] How to find Displaytitle from $Title via PHP
Can somebody help me or direct me into the right place/direction? I have the $title of a page. How can I get to the DisplayTitle via php. I get lost in all the documentation. (Not a very experienced programmer)
Any help is greatly appreciated! Thanks, greetings Dries Dries (talk) 14:36, 4 October 2012 (UTC)
- I am not very sure what you call the
DisplayTitle
, but I am willing to help. - I will assume that you mean by
DisplayTitle
the part of the page title eventually displayed as the page heading. - Also I am assuming that the
$title
of the page you are talking about is an instance of the Title class from the Title.php file. Please say so if I am wrong. - Then, to achieve your goal, something like
$title->mTextform
should work. - If the result is not what you want, take a look at the class properties of the
Title class
(includes/Title.php file), you might be able to solve your problem. - I hope this helps. Euloiix (talk) 15:56, 4 October 2012 (UTC)
- Hello!
- Thanks for your reply. By displaytitle I mean the alternative title you can set with {{DISPLAYTITLE:This is an alternative title}}. We use that a lot on our wiki so we can keep every page with the corresponding filename of our framework. With {{DISPLAYTITLE...}} we use a more readable title.
- I can get it via the /wiki/api.php but I get very bad reaction times, it really slows down my extension. I was wondering there was a faster way of getting it, by a query on the database or some function but I'm kind of losing my way in all the code docs... Dries (talk) 12:29, 5 October 2012 (UTC)
- It's stored in the page_props table. Assuming $title is an instance Title class you can do something like follows:
- Bawolff (talk) 15:11, 13 December 2012 (UTC)
$dbr = wfGetDB( DB_SLAVE ); $displayTitle = $dbr->selectField( 'page_props', 'pp_value', array( 'pp_propname' => 'displaytitle', 'pp_page' => $title->getArticleId() ), __METHOD__ ); // displayTitle will be the html (aka all wikitext is converted to html) of the field or false if no display title is set for the page
Euloiix (talk) 15:56, 4 October 2012 (UTC)
Use of the ResourceLoaderRegisterModules hook discouraged. Why ?
Hi,
I am about to use the ResourceLoaderRegisterModules
hook to load a javascript file via OutputPage::addModules
on beforePageDisplay
hook. I am doing this writing an API extension. This is exactly how the ArticleFeedback extension does get load.
I was wondering why this was discouraged ? Euloiix (talk) 16:11, 4 October 2012 (UTC)
See contributer's work in percentage?
I would like to add a box below each article which shows who contributed to the article and how much each person contributed.
Is it possible to show the percentage (of bytes or words) a person contributed to an article?
It would be a more meaningful value than showing the number of edits (many edits ‡ many text contributed). Stefahn (talk) 18:32, 4 October 2012 (UTC)
Failed Upgrade to 1.18 or 1.19
Ok I have tried to upgrade my MediaWiki from 1.17 to 1.18 or 1.19 and both times it has failed.
I have all the required versions or higher and after the first failure I built a test server to work on.
Here's my process 1. Stop IIS7 2. Copy the extracted files to the MediaWiki folder 3. run php update.php at an elevated command prompt 4. Start IIS again 5. Browse to the page and I get a http 500.0 Internal server Error Module FastCGIModule
Has anyone else had this problem?
Thanks Mike Havoc64 (talk) 21:01, 4 October 2012 (UTC)
- This error message does not help much. Does the error message say something else additionally to what you wrote? Maybe somewhere in an error log?
- This is what google tells you for that error. 88.130.127.173 21:46, 4 October 2012 (UTC)
- I tried to post a screen shot, but that didn't work here on your forum.
- Here's more of what I get
- HTTP Error 500.0 - Internal Server Error
- An unknown FastCGI error occured
Detailed Error Information
- Module: FastCgiModule
- Notification: ExecuteRequestHandler
- Handler: PHP via FastCGI
- Error Code: 0x00000000
- Requested URL: http://localhost:80/phpinfo.php
- Physical Path: C:\inetpub\wwwroot\phpinfo.php
- Logon Method: Anonymous
- Logon User: Anonymous Havoc64 (talk) 02:02, 5 October 2012 (UTC)
- and what error log do you want me to look at? I did look at the Windows Event log and it did't show anything.
- Thanks Havoc64 (talk) 02:05, 5 October 2012 (UTC)
- Microsoft says: The HTTP error log is located in systemroot\System32\LogFiles\HTTPERR.
- "An unknown FastCGI error occured" with error code 0x00000000? Great... Does the log tell more? 88.130.127.173 02:25, 5 October 2012 (UTC)
- That error log says this
- Software: Microsoft HTTP API 2.0
- Version: 1.0
- Date: 2012-10-04 20:03:35
- Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
- 2012-10-04 20:03:35 ::1%0 49747 ::1%0 80 - - - - - Timer_ConnectionIdle -
- and that's it Havoc64 (talk) 15:16, 5 October 2012 (UTC)
- And here's the complete error 500
- HTTP Error 500.0 – Internal Server Error
- The page cannot be displayed because an internal server error has occurred.
- Module FastCgiModule
- Notification ExecuteRequestHandler
- Handler FastCGI PHP
- Error Code 0×00000000
- Requested URL http://172.16.82.100:80/send_form_email.php
- Physical Path C:\inetpub\CDCISite\send_form_email.php
- Logon Method Anonymous
- Logon User Anonymous
- IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
- IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
- IIS was not able to process configuration for the Web site or application.
- The authenticated user does not have permission to use this DLL.
- The request is mapped to a managed handler but the .NET Extensibility Feature is not installed. Havoc64 (talk) 15:51, 5 October 2012 (UTC)
- That error log says this
- OK I am posting this as I found a solution and want to share to help any others that get the same issue.
- Here's what I did to get it to work.
- Set up a Test Server and installed MySQL, PHP and Mediawiki 1.19.2 on IIS7.
- Ran the initial Setup for MediaWiki
- Then Copied the Database for our production MediaWiki (WIKIDB) over from the Production MySQL Server.
- Copied over the Images Folder from the production Folder
- Compared the LocalSettings.PHP files for both 1.17.1 and 1.19.2. Annotated the differences and then made the changes to the 1.19.2 LocalSettings.php file that were there. I did not add any new lines, just changed the current lines to reflect correct information, i.e. MySQL Account Names and what have you.
- Started IIS and it worked Fine.
- So I went to the Production Server to update the real Web.
- Stopped IIS Services
- First, backed up both the web root folder and the SQL Database, then I moved the LocalSettings.PHP file to the Desktop.
- Copied the MediaWiki 1.19.2 folder over to the server's desktop.
- Removed all the contents of our web's Mediawiki folder (W) except the Images Folder and the LocalSettings.php file.
- Copied all the contencts of hte 1.19.2 folder over to our MediaWiki folder, except the Extensions folder and the local settings file.
- Moved the LocalSettings.php file over to the desktop.
- Copied the 1.19.2 LocalSettings.php file from our test server to the production server.
- Compared the 1.17 and 1.19.2 LocalSettings.php and only had to change the $wgServer line to reflect the correct name of the production Server. For example it did say "http://localhost"; I changed it to "http://wiki";.
- From an elevated command prompt I ran the c:\inetpup\wwwroot\w\maint\update.php script to ensure the database was updated. No errors were observed.
- Started the IIS Service
- Tested the page both from the server and from several other computers on the network. All seemed well.
- Went back and stopped IIS Services again.
- Downloaded the latest version of the three extensions that our office desired.
- Cite
- Embed Video
- Replace Text
- Added the three Extensions that we still wanted to utilize to localsettings.php but only enabled one at a time.
- Then I started IIS after each was enabled to test the extension. Then repeated the process for each subsequent Extension.
- Once each extension was tested and verified we left the server up and then had our local Webadmin test some changes, some new pages and a few file loads and downloads. It all appears to be working fine.
- One of the things I think contributed to this issue was that this MediaWiki had been updated from some of the original versions of Mediwiki. The localsettings.php file had a lot of pollution if you will. When I started to work for this agency last year one of the first things I had to do was move the MediaWiki from the Linux Host to a Windows Server IIS environment. And then update it to 1.17.
- Hope this helps someone else who is getting the HTTP 500 error 0x00000000 errors. Havoc64 (talk) 14:07, 10 October 2012 (UTC)
- Hi,
- great that you could solve it and that you put your solution here as well! :-)
- I read through what you wrote. It all sounds nice and it all makes sense, but I do not really see what now actually has caused the error. Maybe this stays a mystery. ;-) 88.130.125.2 14:11, 10 October 2012 (UTC)
Removing an extension
Ok I have a couple of extension that I would like to remove, for example User Admin
I have looked all over and cant' find the process. There's lots of documentation the installation and update of extensions but nothing on their removal.
Anyone have any ideas? Havoc64 (talk) 21:01, 4 October 2012 (UTC)
- It is actually easy: Extensions are added by adding a line to LocalSettings.php, which basically looks like this:
require_once('extensions/folder/my-extension.php');
- Remove this line and the extension is uninstalled. If you want to, you can (and if you do not want to use this extension in the future you should) remove the files of this extension inside the folder "extensions/".
- Maybe you also have some other lines in LocalSettings.php, which have to do with the extension you want to remove. Most likely this will be lines, which give certain users the right to access pages, which are provided by the extension. These lines contain the variable "$wgGroupPermissions" and make some settings there. As far as they have to do with rights, which come from the removed extension, you can remove these lines as well.
- Maybe your extension also has added columns to your database. I am not sure about how to get rid of them, but it might well be that the updater maintenance/update.php removes them, when you run it, after you have uninstalled the extension. (I am not sure about that, but also leaving some lines in your database won't hurt.) 88.130.127.173 21:35, 4 October 2012 (UTC)
- HEy whatta know, that worked. Thanks Much.
- Someone might want to add that to the MediaWiki page where it talks about installing and updating Extensions..
- Thanks again for the help 88.130.127.173 Havoc64 (talk) 02:06, 5 October 2012 (UTC)
- HEy whatta know, that worked. Thanks Much.
- Someone might want to add that to the MediaWiki page where it talks about installing and updating Extensions..
- Thanks again for the help 88.130.127.173 Havoc64 (talk) 02:06, 5 October 2012 (UTC)
- You're welcome! 88.130.81.230 22:38, 6 October 2012 (UTC)
tables.sql and database default character set question
I'm trying to script mediawiki setup on my linux desktop, bypassing the web setup and using maintenance/tables.sql
In doing that I bumped into following
CREATE FULLTEXT INDEX /*i*/si_title ON /*_*/searchindex (si_title);
ERROR 1283 (HY000): Column 'si_title' cannot be part of FULLTEXT index
after some hunting I deduced this is because my database default character set was set to binary. Dropping the db, and recreating it with
create database my_wiki DEFAULT CHARSET=utf8
enabled the full text index creation for si_title.
I wonder if the tables.sql gets used by the web based creation? How does it get around this issue if the default character set is binary? Hermiti (talk) 21:54, 4 October 2012 (UTC)
Image inside a table - How to Absolute Positioning it outside the table?
In a cell inside a table I have this code to show a small image:
<html><a href="" class="Raw1996"><img src="http://imageshack.us/a/img42/2829/raw1996dvdcompleteseaso.jpg" width="150" height="173"></a></html>
In MediaWiki:Common.css I have the following so that when you rollover the small image, a different image appears which is much larger (it is not the same image as before). However it appears in the table even though I have absolutely positioned it so it should appear at the top left of the page:
.Raw1996:hover { display: block; position:absolute; top: 1em; left: 1em; width: 800px; height: 437px; background-image: url('http://imageshack.us/a/img442/2829/raw1996dvdcompleteseaso.jpg') }
How can I get the rollover image to display in the top left of the page? Holygamer (talk) 09:30, 5 October 2012 (UTC)
I try to download Mediawiki 1.19.2 and I get a "403 Forbidden" error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I go to http://download.wikimedia.org/mediawiki/1.19/mediawiki-1.19.2.tar.gz I get an error and the file does not download.
However, I was able to get it to download not through my web browser but through a remote ssh connection to my server and by sending the command:
wget "http://download.wikimedia.org/mediawiki/1.19/mediawiki-1.19.2.tar.gz"
71.172.140.197 (talk) 11:27, 5 October 2012 (UTC)
- Downloading the file works for me. Maybe some temporary problem. 88.130.127.173 14:00, 5 October 2012 (UTC)
Allow registered users to create/edit talk pages only
I currently have it so that only I can edit pages, like so:
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
However, I would like registered users to be able to use talk pages (to point out errors or express their interest in helping maintain the wiki). How would I go about doing this? Thanks. 31.205.29.162 (talk) 13:21, 5 October 2012 (UTC)
- I don't think you can. (See Manual:User rights) You could see if a feature request has been made at Bugzilla and if not request that the permission "edittalk" be created. Allen4names (talk) 17:06, 5 October 2012 (UTC)
- Thank you for the reply. Someone pointed me towards this extension, which does what I need. 31.205.29.162 21:54, 5 October 2012 (UTC)
Transcluding parts of a page
I've been searching for a solution for this problem as I'm sure someone, somewhere, already has the answer.
I'll give an example of what I want; Lets say I have an XSL-sheet with information on 1000 employees. Things like Name, Address, Phone Number and other information can be found about each person. I've already converted the XSL-sheet to XML and used a templating system to create a new page for each employee, so now I have 1000 wikipages, each containing the information available about this person.
What I would like, is to be able to use a part of this page in a different page. For example, the XSL-sheet also contained a short evaluation on each employee. I'd like to be able to transclude the evaluation of Person, A, B and C on a different page, without having to manually copy the text. So for example: {{PersonA:Evaluation}} would only show the evaluation on Person A.
Is it possible to do something like this? I'm sorry if this has been asked before or even hidden somewhere on the mediawiki, as I couldn't find it.
MediaWiki 1.19.0
PHP 5.3.3-7+squeeze14 (apache2handler)
MySQL 5.1.63-0+squeeze1-log 90.145.71.154 (talk) 14:25, 5 October 2012 (UTC)
- As someone already suggested you on IRC, try http://semantic-mediawiki.org/ Ciencia Al Poder (talk) 14:58, 5 October 2012 (UTC)
- The System Administrator is worried that semantic-mediawiki isn't finished yet. He says/asks if the Wikipedia foundation doesn't think it's ready for use yet, why should he? According to him, the Wikipedia Foundation funded a group to work on this project and they aren't using it yet, which must have a reason.
- edit: After some more talks, we're going to give it a shot. Thanks for the advice. 90.145.71.154 15:05, 5 October 2012 (UTC)
Suggestion: AJAX Login
When a several pages of MediaWiki are opened and you log in using one of them, the rest won't be updated unless you refresh (that doesn't harms editing, but can still be a bit annoying), so my suggestion is to update the page when the window/tab turns visible to the user.
Another nice feature to the login can be that the login will not force moving to another page, but to open a little box at the same page. Again, it will be done using AJAX. That will of course remove the need in a special page in order to perform this action.
And about the star icon (watchlist) appears on the wiki pages - in case when you will open two tabs of the same page and will add it to the watchlist in one, if you'll try to do it on the second window - it will do it as it was done at the first time and won't alert it was already added to the watchlist or update the icon. The same after adding to watchlist, going to another page on the same window, and pressing the back button - the star will appear blank until refreshing or pressing it. Galzigler (talk) 03:10, 6 October 2012 (UTC)
Media Wiki Installed troubles
Im currently setting up two LEMP server's at home for use, mainly just to muck around with. I have set one up with simple machines forum and Mediawiki. However on the second server, when i tried to do it again. I keep getting the error, "Could not find a suitable database driver! You need to install a database driver for PHP. The following database types are supported: MySQL, PostgreSQL, Oracle, SQLite, IBM DB2. If you are on shared hosting, ask your hosting provider to install a suitable database driver. If you compiled PHP yourself, reconfigure it with a database client enabled, for example using ./configure --with-mysql. If you installed PHP from a Debian or Ubuntu package, then you also need install the php5-mysql module."
where from my knowledge i defiantely have mysql installed and php5-mysql.
Im installing mediawiki 1.19.2 I am running it off Ubuntu Server 12.04 LTS (virtual Machine) I'm using a mysql 5.5.24 (for ubuntu) Uncusto (talk) 12:08, 6 October 2012 (UTC)
- You get this error, when PHP MySQL support is not installed/enabled. See http://www.php.net/manual/en/book.mysql.php 88.130.125.67 13:52, 6 October 2012 (UTC)
Blackberry doesn't have "edit" option at top of my MediaWiki
I recently installed MediaWiki on my domain http://www.justadude.ca. Installation info is: MediaWiki 1.19.1, PHP 5.2.17 (cgi), MySQL 5.0.91-log via my webhost http://www.netfirms.com
My hope had been to edit it directly from my Blackberry. Unfortunately, the edit option doesn't appear on my Blackberry 9900 at the top. It's only available for subsections. My blackberry is OS 7.1 bundle 1310, v7.1.0.391 platform 5.1.0.319 on the Rogers Network.
I can work around this by adding "&action=edit" to the URL, but it's a bit annoying.
If anyone has any info on how I can enable the editing option at the top on my Blackberry, I would very much appreciate it!
Here is the link to a screenshot: http://www.justadude.ca/index.php?title=File:Blackberry-9900-no-edit.jpg 99.245.236.221 (talk) 13:59, 6 October 2012 (UTC)
- I guess that the edit tab in fact is there, but since the screen is so small, it has slid behind the tabs "page" and "discussion". If you could zoom the page a bit smaller, you should be able to see the button. 88.130.125.67 14:21, 6 October 2012 (UTC)
- The edit tab is directly after the read tab, so yes, your page tab is covering it. Hazard-SJ ± 04:58, 9 October 2012 (UTC)
- I zoomed in so that only the tab is displayed, but still the "edit" tab is not displayed. 99.245.236.221 00:38, 15 October 2012 (UTC)
- Try zooming out! ;-) You should not see less (like only one tab), but more (from the page and the tabs all next to each other...) 88.130.111.229 21:38, 15 October 2012 (UTC)
- I tried zooming out all the way my blackberry allows, and it still does not display the 'edit' tab. 99.245.236.221 15:55, 21 October 2012 (UTC)
- If nothing else works, add &action=edit to the end of the URL and that will take you to the edit window. For example, http://www.justadude.ca/index.php?title=Main_Page&action=edit If it helps, you can add your own edit link to each page. 24.62.156.219 16:51, 23 October 2012 (UTC)
- I tried zooming out all the way my blackberry allows, and it still does not display the 'edit' tab. 99.245.236.221 15:55, 21 October 2012 (UTC)
- Try zooming out! ;-) You should not see less (like only one tab), but more (from the page and the tabs all next to each other...) 88.130.111.229 21:38, 15 October 2012 (UTC)
- I zoomed in so that only the tab is displayed, but still the "edit" tab is not displayed. 99.245.236.221 00:38, 15 October 2012 (UTC)
- The edit tab is directly after the read tab, so yes, your page tab is covering it. Hazard-SJ ± 04:58, 9 October 2012 (UTC)
Does MediaWiki records IPs of logged in users?
If so, some of the anonymous users can be identified, like in case which the user accidently edited it when not logged in and a few seconds later logged in or registered for the first time after a few edits. The question is, how can we know if during the time between the submit of the edit and logging in the IP wasn't given to another network? Galzigler (talk) 20:39, 6 October 2012 (UTC)
- There is no way to determine if another user got the IP address in the meantime (although I think it is quiet unlikely). 88.130.81.230 22:02, 6 October 2012 (UTC)
- Is there a cookie saved when not logged in? Galzigler (talk) 03:58, 8 October 2012 (UTC)
- Extension:CheckUser stores them in the database. Hazard-SJ ± 05:35, 9 October 2012 (UTC)
- Is there a cookie saved when not logged in? Galzigler (talk) 03:58, 8 October 2012 (UTC)
$wgMaxUploadSize has no effect
Hello,
I would like to upload some technical documentation to my wiki and some files are slightly bigger than the default maximum size of 2 MB. I first changed the settings in php.ini /etc/php5/apache2/php.ini
- Maximum size of POST data that PHP will accept.
- http://php.net/post-max-size
post_max_size = 160M
- File Uploads ;
- Whether to allow HTTP file uploads.
- http://php.net/file-uploads
file_uploads = On
- Temporary directory for HTTP uploaded files (will use system default if not
- specified).
- http://php.net/upload-tmp-dir
- upload_tmp_dir =
- Maximum allowed size for uploaded files.
- http://php.net/upload-max-filesize
upload_max_filesize = 40M
- Maximum number of files that can be uploaded via a single request
max_file_uploads = 20
I applied these changes also to /etc/php5/cli/php.ini
then I appended to the end of
/etc/mediawiki/LocalSettings.php (same as /var/lib/mediawiki/LocalSettings.php)
$wgUploadSizeWarning = 2147483648;
$wgMaxUploadSize = 2147483648;
Restarting Apache or rebooting the computer has no effect. When I upload my 2.327 KB-file, mediawiki shows a warning in the preview, but the output looks fine. When I want to save the page, mediawiki refuses saving.
I use an Ubuntu 12.04 system with apache 2.2.22, mediawiki 1.15.5 and php 5.3.10.
How can I enable uploads >2MB?
Thanks, Martin 451plus (talk) 09:35, 7 October 2012 (UTC)
- Hi Martin,
- have you checked, if the PHP settings you made are actually taking effect? Check what phpinfo() tells you about the values of these variables. 88.130.81.230 12:04, 7 October 2012 (UTC)
- Thanks, but that seems ok:
- php phpinfo.php|grep upload
- file_uploads => On => On
- max_file_uploads => 20 => 20
- upload_max_filesize => 40M => 40M
- upload_tmp_dir => no value => no value
- file_uploads => On => On
- max_file_uploads => 20 => 20
- upload_max_filesize => 40M => 40M
- upload_tmp_dir => no value => no value
- Do you have other ideas? 451plus (talk) 13:27, 7 October 2012 (UTC)
- That is what you have in CLI mode. Did activating these settings also work properly for Apache in non CLI mode?
- If that worked, I would search the MediaWiki source code for the exact error message, which you get. That way you should find the place in the source code, where this error happens. Then check, which conditions must have been true, before getting the error message. This should help you find the reason for the problem. 88.130.81.230 14:31, 7 October 2012 (UTC)
- Thanks,
- I never heard about Apache CLI/ non CLI mode and unfortunately, google does not help. I looked in /var/log/apache2/error.log, but there are no errors related to mediawiki listed. Is there a mediawiki error-log? 451plus (talk) 16:41, 7 October 2012 (UTC)
- When you posted this shell command some posts above I thought you knew about Apache and that stuff, that's why I didn't explain it in detail. ;-)
- When you run a script on the shell like you do with
$php phpinfo.php|grep upload
- then the CLI configuration of your machine is used.
- But when you run a script with your webbrowser, the configuration, which you have provided for that mode will be used. Checking this configuration is rather easy: Upload a file to your webspace with this content:
<?php phpinfo(); ?>
- and view it with your webbrowser. You will then see the PHP settings which apply, when your website (read: MediaWiki) is called with a webbrowser. There the upload sizes must be correct/big enough.
- I don't know of a MediaWiki error log. MediaWiki can write a debug log, but I don't know, if failed uploads would be logged there. But where you could still have a look is the PHP error log, which you should find in the folder php/logs. 88.130.115.189 18:09, 7 October 2012 (UTC)
- Thanks,
- in non CLI-mode the settings are the same. I looked in the source-code and found the message called "longpageerror". This leads to a call in /usr/share/mediawiki/includes/EditPage.php:
if ( $this->tooBig || $this->kblength > $wgMaxArticleSize ) { $wgOut->addHTML( "<div class='error' id='mw-edit-longpageerror'>\n" ); $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgLang->formatNum( $wgMaxArticleSize ) );
- What can I do now? I have no idea of PHP. Can I change the condition to something like
$this->kblength > 10*$wgMaxArticleSize
?- Do you know any work-arounds? Is it possible to post the page directly to the database without using the browser?
- Thanks for your help,
- Martin 451plus (talk) 11:32, 11 October 2012 (UTC)
- Hi!
- If this line cuases you trouble, you could change it to
if ( $this->kblength > 10*$wgMaxArticleSize ) {
- but you should not do this. ;-)
- If the maximum article size is to small, it should be enough to raise $wgMaxArticleSize, e.g. by setting it to
# Raise the maximum article size in kilobytes to 10 times its original value: $wgMaxArticleSize = 20480;
- This might at the same time also prevent $this->tooBig from being set. So that way you kill two birds with one stone. 88.130.120.250 20:44, 11 October 2012 (UTC)
- Thanks,
$wgMaxArticleSize = 20480;
- solved the problem. 451plus (talk) 14:36, 15 October 2012 (UTC)
- Great, nice to hear! :-) 88.130.111.229 16:02, 15 October 2012 (UTC)
mass deletion of Spam
I have a wiki that has filled up with 500 mb of Spam, and my ISP is threatening to shut down my site if I don't reduce the web site in 7 days... The wiki only has a few mb of good stuff, and that was some time ago...
Is there a simple way to do this? I can't find any instructions in the support forum. Sailortom~mediawikiwiki (talk) 17:42, 8 October 2012 (UTC)
- There are some extensions, which can help you to delete spam. I think one of them is "Nuke", anotherone is "DeletePagePermanently".
- However, as you have to reduce the size of your database, you need to make sure that the spam is not only marked as deleted, but that it is actually really removed. 88.130.112.138 23:17, 8 October 2012 (UTC)
db connection refused: 1.15.1 to 1.19 upgrade
Hello, I am trying to upgrade from 1.15.1 to 1.19. I have updated the files from the tar file. Now I'm running "php update.php" from the maintenance directory. First I got the error: DB connection error: No such file or directory (localhost), so I changed localhost to 127.0.0.1. Now I get this error: DB connection error: Connection refused (127.0.0.1). I have the correct database name, username and password (unchanged from before). Any suggestions? Thanks. Julie 108.172.78.33 (talk) 17:58, 8 October 2012 (UTC)
- I have the same problem. Julievancouver (talk) 18:02, 8 October 2012 (UTC)
- I fixed this: I had the wrong path for php5. Julievancouver (talk) 18:14, 8 October 2012 (UTC)
Disable login requirement for users
At the moment our wiki is only viewable for people who create a forum account (phpbb3) and login. New users or guests who only want to look around are forced to create a new account which is is very unpractical. I tried to uninstall our authentication plugin but somehow the users are still forced to login. I've no idea what I could have missed during my research for this problem but I can't find the solution to this problem. Thank you for your help! 90.136.3.114 (talk) 23:07, 8 October 2012 (UTC)
- You have to adjust the settings of the array $wgGroupPermissions in LocalSettings.php.
- The following line added directly in front of the "?>" at the very bottom of LocalSettings.php should allow users, which are not logged in, to view your wiki:
$wgGroupPermissions['*']['view'] = true;
88.130.112.138 23:21, 8 October 2012 (UTC)- IIRC, it is suggested that we not use
?>
in LocalSettings.php. Hazard-SJ ± 04:39, 9 October 2012 (UTC)- I don't know if he uses it, but it is perfectly possible to end the file with these signs. If he does not use it, its fine. But if he does, he in fact does not have to put the mentioned line at the very bottom of LocalSettings.php, but directly in front of the "?>".
- However, whether to use or not to use "?>" is not what he asked. ;-) 88.130.112.138 15:25, 9 October 2012 (UTC)
- IIRC, it is suggested that we not use
bug in mediawiki search
I think I have found a bug in mediawiki scripts search, let me explaim. When you search a name that doesnt have a wiki page like jessica you will get all the photo uploads that have jessica in the title. when you search media or everything or files you will get the same. BUT WHEN THERE IS A WIKI PAGE FOR JESSICA, you cant get all the photo or anything else about her but her wiki. under a everything search you will get "Page title matches" "Page text matches" BUT NOT IMAGE PAGES OR IMAGES! Under a Multimedia or Advanced and choose file you get "There is a page named "jessica" on this wiki." BUT WONT BRING UP ALL THE IMAGES IN THE SYSTEM LIKE IT DOES WHEN THERE IS NO WIKI FOR HER. Frankynbell (talk) 07:47, 9 October 2012 (UTC)
04:00, 10 October 2012 (UTC)
- Still waiting for some answers to a fix over here??????????????????? Frankynbell (talk) 03:42, 14 October 2012 (UTC)
- still waiting??????????????? Frankynbell (talk) 15:27, 21 October 2012 (UTC)
- still waiting??????????????? Frankynbell (talk) 15:27, 21 October 2012 (UTC)
- Hi Frank!
- You only take; start giving and you will be given! :-) 88.130.77.170 19:13, 25 October 2012 (UTC)
- Still waiting for some answers to a fix over here??????????????????? Frankynbell (talk) 03:42, 14 October 2012 (UTC)
Problem
I put specialwords from my company in our companywiki.
When I put a new special word in the wiki, we have a format that contains: - Defenition - Other words - Relation with project
When I put a new special word in the wiki and I put the format behind it, I get the defenition, other words andr relation with project names that I have put in the special word before.
Like this: I first put this word in the wiki:
Special word > NOTE, then I put in the format(links like defenition) > Defenition, other words and relation with project > in defenition I put the word NEW.
Now I'm going to put a new special word in our wiki:
Special Word > NOTE 2, then I put in the format > Defenition, other words and relation with project > in defenition I putt nothing but when I look there is standing NEW just like by the defenition of special word NOTE. But I don't what the word NEW there because NOTE 2 has an other defenition.
How can I manage this? 145.223.201.51 (talk) 09:24, 9 October 2012 (UTC)
- And when I remove(or change) the word NEW, both defenition(form the special word Note & Note 2) are removed(or changed). There is a sort of link.... 145.223.201.51 09:51, 9 October 2012 (UTC)
Blog-text/fr
Please take a look at MediaWiki_talk:Blog-text/fr. Urhixidur (talk) 11:09, 9 October 2012 (UTC)
- You mean a Frnch translation is wrong.
- The right place to fix this is translatewiki, the MediaWiki plattform for translations. 88.130.112.138 15:28, 9 October 2012 (UTC)
Page deleting from official MediaWiki
I accidently added my private page to main mediawiki.org. The content of this page was automatically deleted by Vogone, but the page is still exist on your servers. How I can permanently delete it, or how I can conntact with someone who can delete this? Sorry for a problem and thanks in advance! 78.133.233.210 (talk) 12:58, 9 October 2012 (UTC)
Deleting Language Files
Hi I want to remove all language files from my server except hebrew. What files should I keep in language/messages?
Thanks! 79.181.226.11 (talk) 15:11, 9 October 2012 (UTC)
starting a new Account
I am writing because I tried to start a new account on "Freeenergy.com" When I click on the "login/start a new accunt" it brings up the Login but NO way to start a new account that I could see!
Is there something wrong on my computer or does that Page need to be corrected.
Thank you for your help. Art Whetstone <artwhet1@aol.com> Artwhet (talk) 23:39, 9 October 2012 (UTC)
- The page you mention does not seem to run MediaWiki and I also do not see a "new account" link. Instead the domain shows some adverts; it seems to be parked. 88.130.125.2 08:01, 10 October 2012 (UTC)
- Thank you for your answer. I apologize that I missquoted the address. I meant to be referring to www.freeenergynews.com
- This appears to me to be an active site, but I can't see how to get a message to this, Sterling D. Allen and that is why I am asking for help. Art Whetstone 46.116.18.234 18:23, 13 October 2012 (UTC)
- Sterling D. Allan has put some contact information on his page: http://peswiki.com/index.php/Congress:Member:Sterling_D._Allan#Contact
- I think this should allow you to contact him. :-) 88.130.98.127 19:35, 13 October 2012 (UTC)
I lose the main page with side-by-side preview
When I enable side-by-side preview and I call a preview, then when I save the page this change its name in "Main page" overwriting the real Main Page.
I'm not totally sure about this, but I tried to disable a lot of extensions and I solved the issue only when I disabled this option in my preferences. WhiteTigerItaly (talk) 07:15, 10 October 2012 (UTC)
Search page and result in MediaWiki 1.20beta
[WindowsXP, Mediawiki 1.20beta, PHP 5.4, mySQL 5.5]
US
Hi,
I created a page "Page1" and change the latter.
When I did a search with a word in "Page" I found two results page and edit the original?
Bug / No Bug?
FR
Salut,
J'ai créé une page "Page1" et modifier cette derniere.
Lorsque je fait une recherche avec un mot contenu dans"Page" je trouve deux résultats : La page modifier et l'originale ?
Bug/Pas Bug ?
129.195.0.205 (talk) 10:02, 10 October 2012 (UTC)
- Do you mean that you renamed/moved the page under a new title? In that case the old title will remain as a redirect to the new page, unless your user rights allow you to remove the redirect after the page move. See Help:Moving a page. Ciencia Al Poder (talk) 09:27, 22 October 2012 (UTC)
Permission error: Creating german "Manual:Inde*.php/de"
Hello i have tried to create the page Manual:Index.php/de, but get the following error during the creation process:
Permissions errors
Jump to: navigation, search
You do not have permission to create pages, for the following reason:
The title "Manual:Index.php/de" has been banned from creation. It matches the following blacklist entry: (?:[^\/]+[\/:])?(index\.php|w\/wiki)(?:\/.+)?
Abani79 (talk) 10:52, 11 October 2012 (UTC)
Invalid url gets redirected to a different wiki folder
MediaWiki(1.18.0) PHP (5.2.3) MYSQL (5.0.24) http://www.derivative.ca/wiki088/
1) Above url was created/copied from http://www.derivative.ca/wiki077/. Each has a different database.
2) When you go to an invalid title page in /wiki088/, for example http://www.derivative.ca/wiki088/index.php?title=InvalidTitleName
3) it gets redirected to /wiki077/ search page at http://www.derivative.ca/wiki077/index.php?title=Special:Search/InvalidTitleName
I've checked the /wiki088/localsettings.php and there is no reference to wiki077! I've also looked into the help and documentations but no luck. Any ideas would be greatly appreciated.
Thanks. Derivative~mediawikiwiki (talk) 00:30, 12 October 2012 (UTC)
- MediaWiki doesn't redirect to the search when user request a page that doesn't exist. It seems to be a custom rewrite condition made on the web server.
- In fact, accessing the link you provided, the first response is an HTTP 302 (redirect), which includes the HTTP header
X-Powered-By: ASP.NET
, and when the next page is reached, then the HTTP header changes toX-Powered-By=PHP/5.2.3, ASP.NET
, so the PHP engine isn't touched on the first redirect, confirming it's done by a rewrite rule on the web server. Ciencia Al Poder (talk) 14:00, 12 October 2012 (UTC)
microsoft communicator in mediawiki
Im looking for a way to setup a quick link to open a message from inside mediawiki. Yes i know communicator is a horrid program, but I have no control over this. I want it to work basically like the email tag works. Any ideas would be greatly appreciated. 168.251.2.40 (talk) 16:22, 12 October 2012 (UTC)
- How does a link to a MS communicator message look like?
- I think it should be possible to create such a link as interwiki link... 88.130.84.42 22:42, 12 October 2012 (UTC)
- the link that was given to open a message via a link was <a href="sip:user@ourcompany.com">User</a> but i have been unable to figure out how to format this so mediawiki recognizes it as an actual link since its html format 168.251.2.40 15:55, 15 October 2012 (UTC)
MediaWiki very sluggish
I've just upgraded to MediaWiki 1.19 and the response time has slowed to 3-5 seconds following an edit or opening a page.
- MediaWiki: Version 1.19 (upgraded from 1.15).
- XAMPP Lite:
- Apache 2.4.3
- MySQL 5.5.27
- PHP 5.4.6
- Windows 7
- RAM: 8GB
- CPU: Intel Core i5-2400, 3.10 GHz.
- Browser: Google Chrome Version 22.0.
Everything works as before, it's just terribly slow. I've moved to a faster CPU, more RAM, etc., so that shouldn't be the problem.
There is a message in the browser while it's "thinking": waiting for localhost.
The only thing that is out of the ordinary is that I've created three wikis with separate database. But I had been running two wikis prior to the upgrade and there was no problem. It's no slower or faster if I run one wiki or three.
I've disabled/re-enabled the firewall, edited the localhost file, turned off all competing processes, etc.
I get the feeling that it's a Windows 7 thing but I can't pin it down.
Is the fact that XAMMP Lite uses relative addressing relevant?
Any ideas?
Paul D. Anderson
paul.d.removethis.anderson@comcast.andthis.net 71.231.215.53 (talk) 22:12, 13 October 2012 (UTC)
- That's my post above -- I hadn't created an account prior to posting. 22:16, 13 October 2012 (UTC)
MagicWord which disables all cats on a page?
Hey guys,
I'm wondering if there's a Magicword that disables all cats on a page. Something like {{NOCATS}}
...
So if I have a user page with sort of a draft for a new page on it (e.g. User:123/Draft) and that page contains a template that includes some cats (so I can't just delete them on the page) , this draft will be shown in the cat - which, of course, is kind of undesired. So I'm searching for a MagicWord which prohibits that the page is shown in the cats, or if that's not possible just disables all cats on the page, so that there is no cat shown on the page and the page is not shown in the cat.
So, does anyone know a MagicWord (or another possibility that effects the same) that does that?
Can you help me? Col. sheppard (talk) 07:50, 14 October 2012 (UTC)
Uploading of images not working
After clicking the bar "upload", page reloading without uploading file: http://factografia.com/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:Upload 93.180.244.36 (talk) 12:28, 14 October 2012 (UTC)
- I reinstalled LocalSettings.php and it's working!!! But InstantCommons not working. Is it free service or not? 46.247.183.38 08:53, 15 October 2012 (UTC)
- It's free and may enabled with follow setting in LocalSettings.php:
$wgUseInstantCommons = true;
Starwhooper (talk) 09:18, 16 October 2012 (UTC)- I think I have problem in my server. 95.111.229.247 19:29, 20 October 2012 (UTC)
- It's free and may enabled with follow setting in LocalSettings.php:
Database Error
Not sure what to do. When I type a search query into the search box on my wiki (www.gravestonewiki.com) I get the following message: A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "". Database returned error "144: Table './gra1028305302285/mw_searchindex' is marked as crashed and last (automatic?) repair failed (p50mysql41.secureserver.net)".
Any suggestions? Jaredemyers (talk) 23:39, 14 October 2012 (UTC)
wgUseInstantCommons doesn't seem to cache images
I have enabled wgUseInstantCommons on the wiki I develop (http://practicalplants.org/wiki) but it doesn't appear to cache images, and appear to be requested from the commons each time they are displayed. If I load a page which pulls in images from a number of pages, it's clear from the long wait that they are being requested from the commons each time (eg. http://practicalplants.org/wiki/Search). Also, if I disable commons then none of the images previously loaded are available - I'm assuming that would not be the case if caching was working.
I have tried replacing $wgInstantCommons=true with the $wgForeignFileRepos[] value defined on http://www.mediawiki.org/wiki/Manual:$wgUseInstantCommons#Details to no effect.
Is there something I can do to debug this? Are there folder permissions that need to be checked?
Thanks! Andru Andrujhon (talk) 08:32, 15 October 2012 (UTC)
- Hi, i have the same issue on http://thwiki.org. I use the option "$wgUseInstantCommons = true;" since long time and the mediawiki cache the thumbnails in /image/thumb.
- Since the update from 1.19.0 to 1.19.2 i can found in the folder /image/thumb only the thumbnails of local images.
- Enabling "$wgHashedUploadDirectory" did not change this issue. To set the permissions on /images to 0777, but this has no effect, too. Starwhooper (talk) 06:41, 16 October 2012 (UTC)
Page caching when using external authentication method
I'm using an external authentication plugin for the wiki I develop (http://practicalplants.org/wiki). When page caching is turned on, the page will be cached with the user details of whoever viewed the page first, which is then displayed to both anonymous users and logged in users alike. Is there a way around this? Perhaps a way to enable caching of just the rendered article and not the entire skin? Not having caching enabled for anonymous users is causing quite a performance hit and painful delay in page rendering.
On a similar note, I've noticed an oddity which may or may not be a recognised bug, and which I'm having a hard time finding a pattern to. I have disabled anonymous editing, which sometimes leaves parser replace tags (eg UNIQ-long-hash-string), usually relating to Reference tags or templates, in the page for users who are not logged in. Users who are logged in (and thus have edit permissions) do not experience this problem. As I can't reproduce it reliably, I'm at a loss as to how to debug it. If you've come across anything like this before and have any tips on where to start digging, it'd be a great help.
Thanks in advance for any help you can offer Andru Andrujhon (talk) 08:42, 15 October 2012 (UTC)
Counting rows in a table
Hi,
is there a possibility to count the number of rows in a table?
If yes: is it possible to count the same occuring specific words in a column?
Kind greetings from Germany,
INSERT command denied to user
Hello having problems loading up the pages on a site. Whatever page you go to comes up with the same error:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "MediaWikiBagOStuff::_doinsert". MySQL returned error "1142: INSERT command denied to user 'uwikica_514419_2'@'linweb14.atlas.pipex.net' for table 'trueobjectcache' (cust-mysql-123-01)".
the versions are MediaWiki 1.15.2 php 5.2.16 mysql 5.1.52
I googled this error and found an entry that suggested the database was over the size allowed on the hosting. If this is the case, which tables can I delete from to give back enough space to be able to load up the site? 194.176.105.133 (talk) 15:37, 15 October 2012 (UTC)
- forgot to say, the url of the site is www.wikicamhs.co.uk 194.176.105.133 15:42, 15 October 2012 (UTC)
- Just for the record: Your DB user does have rights to insert rows into the table, right?
- You could truncate (not delete!) the table objectcache for example. But that will not really solve the problem; you will get it again, when some data has been collected in this table again. 88.130.111.229 16:01, 15 October 2012 (UTC)
importDump.php help
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,
- After executing the importDump.php command in terminal, I get this error message:
- Warning: fopen(Test.xml): failed to open stream: No such file or directory in /Users/*/Sites/mediawiki/maintenance/importDump.php on line 240
- Warning: feof() expects parameter 1 to be resource, boolean given in /Users/*/Sites/mediawiki/includes/Import.php on line 1499
- Warning: fread() expects parameter 1 to be resource, boolean given in /Users/*/Sites/mediawiki/includes/Import.php on line 1506
- Warning: feof() expects parameter 1 to be resource, boolean given in /Users/*/Sites/mediawiki/includes/Import.php on line 1499
- Warning: XMLReader::read(): uploadsource://4f78e998b4b2e97b854b0642fd83a24d:1: parser error : Extra content at the end of the document in /Users/*/Sites/mediawiki/includes/Import.php on line 399
- Warning: XMLReader::read(): in /Users/*/Sites/mediawiki/includes/Import.php on line 399
- Warning: XMLReader::read(): ^ in /Users/*/Sites/mediawiki/includes/Import.php on line 399
- Warning: XMLReader::read(): An Error Occured while reading in /Users/*/Sites/mediawiki/includes/Import.php on line 399
- Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.,
- Does anyone know what I am doing wrong, or have to change? User9989 (talk) 20:35, 15 October 2012 (UTC)
- And I've got almost the same and it doesn't work... Атомный трамвай (talk) 00:17, 5 January 2016 (UTC)
- This error happens, when the file, in this case Test.xml, is not found.
- importDump.php uses the filename and path as you specify it in a call to fopen like so:
fopen( $filename, 'rt' );
- So make sure that the specified file does exist and that PHP has access to it. 87.123.52.27 (talk) 01:40, 5 January 2016 (UTC)
- Yes, I type an incorrect name. Thank you! Атомный трамвай (talk) 17:35, 12 January 2016 (UTC)
Error 500 with EasyTimeLine
I'm working all the day to install EasyTimeLine in my WK 1.19.2.
I tried every type of advice existing in the talk of EasyTimeLine Installation page but I get always the same error:
- mod_fcgid: stderr: PHP Fatal error: Call to undefined method FSFileBackend::doQuickOperations() in /my-domain-path/public_html/wk/extensions/Timeline.php on line 167, referer: http://www.common.it/wk/index.php?title=Common_Wiki:Sandbox2&action=edit
I don't think that the problem is about the position of pl command or of the timeline.php, but in the method called.
I also noticed that in the requirements is provided "NConvert", but in any part of the instructions for installation this is mentioned, so I think it is not required for Linux.
Someone can help me to resolve this issue?
Thanks in advance. WhiteTigerItaly (talk) 21:08, 15 October 2012 (UTC)
- I am having this same error. Have you ever figured this out? Thanks. 24.125.184.80 16:27, 27 January 2013 (UTC)
- you need to get the 1.19 version of easytimeline or upgrade mediawiki to 1.20 ☠MarkAHershberger☢(talk)☣ 02:35, 28 January 2013 (UTC)
question on importing dumps
Hello, It seems that I imported the dump file successfully to my wiki, but I don't know where to access from my wiki Can any one add some insight to this problem, Thanks User9989 (talk) 01:59, 16 October 2012 (UTC)
Thumbnail handler (rewrite) doesn't work
My .htaccess:
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
index.php rewrite rule works, but thumbnail doesn't.
If get thumb.php directly, it works:
thumb.php?f=test.jpg&width=180
So, the problem is in rewriting...
there is a web server error when I trying to get http://mysite.com/w/images/thumb/4/45/Chrysanthemum.jpg/180px-Chrysanthemum.jpg:
File does not exist: /home/gregk/public_html/mysite.com/w/images/thumb/4
Why the string is cutted? 46.118.138.22 (talk) 09:22, 16 October 2012 (UTC)
Special: import problem
Hello, When trying to import a page into my wiki via Special: Import, when I have the page ready to be uploaded, I hit the upload button and I am
prompted by this error message : Import Failed; No pages to import, when the page is clearly there. Does any one know of a way of fixing this, or
if I'm doing something wrong?,
How to send sitemap to Google WMT
Hi,
Google WebMaster Tools needs the path of sitemap, but the domain name is already defined.
In other words, if the domain is www.domain-example.com, Google WMT wants only the string "sitemap.xml".
The problem is that with MW we have two domains: the real domain (www.domain-example.com/wk) and the wiki domain (www.domain-example.com/wiki).
If I send the sitemap for this last, Google looking for www.domain-example.com/wiki/sitemap.xml, but then MW search a page with this name and obviously it is not existing and so there is a 404 Error.
I've no way to send /wk/sitemap.xml because in Google WMT it is already defined the path "www.domain-example.com/wiki/".
I should set up Google WMT with the domain www.domain-example.com/wk/ but then the sitemap is wrong because its links are for the "wiki" path, not "wk". Furthermore I want to promote in Google the wiki, not the wk.
And, finally, I could not set up robot and sitemap into root of the domain because I have two independent CMSs in other folders.
How can I send correctly the sitemap?
Thanks in advance WhiteTigerItaly (talk) 06:00, 17 October 2012 (UTC)
Error 500 - problem with uploading files / installation for Windows Server 2008
Have a problem with uploading files with installation for Windows Server 2008 . Files get uploaded (they do exist after upload in \\Server\mediawiki\images folders), but there are few problems with retrieving/using them. One of the problems is that when I try to get list of the files by using Special Pages – File list, the following message pops up: Server Error: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
The same message pops up when I try to do upload .png or .jpeg files (they are enabled in LocalSettings.php permitted file types). However, when I upload a .pdf file, the proper file:nameXYZ.pdf page is created (and links to it work OK from other content pages), but still it can’t be listed by using Special Pages – File list. The same applies to doc, docx, xls, xlsx, ppt, pptx, … (i.e. they are uploaded, page such as file:nameXYZ.doc is created and links to it work OK, but File list doesn't work – I get the above error message).
Everything else which is not related to files works OK. Any suggestion what can be wrong?
I installed: Mediawiki 1.19.2 /PHP5/MySQL5.0
GP 165.228.236.251 (talk) 06:02, 17 October 2012 (UTC)
- I am using Mediawiki 1.26.4 with PHP 5.4 I SOLVED the problem by switching on XMLREADER in the php version via cpanel after seeing the error in the error log which is stored in the Mediawiki directory on my website.
- Hope this helps ! Wobuck (talk) 11:13, 15 July 2018 (UTC)
- But your Mediawiki too old, I suggest you upgrade to 1.31 (currently stable). 星耀晨曦 (talk) 15:55, 16 July 2018 (UTC)
Remove link from parameter?
Hey everybody,
is it possible to call a parameter value, but stripping it of its link? For example:
the parameter value for Country would be [ [Netherlands]]
(without the space), thus showing a link to the article about the Netherlands. I also added [[Category:Person born in {{{Country}}}]]
to the bottom of the info box, thus attempting to add every article using that infobox to the category of their respective country. However, because the value itself is linked, it won't add the article to the category. My question, therefore, is: is it possible to call the value for 'Country', but stripping it of its link?
Kind regards and thanks in advance,
Julian 80.112.134.55 11:19, 17 October 2012 (UTC)
- It's not possible. You should use the parameter without the link syntax, and then add the link inside the template. For parameters like this you should avoid adding unnecessary markup (like this) on the parameters, but add it instead inside the template. Ciencia Al Poder (talk) 19:49, 18 October 2012 (UTC)
- I encounter the same problem as Julian in a semantic media wiki. A property is pointing to a page, so when I call the value for a field from this property, I get the result as a link. And I would need a the bare text without the link elements, so I can reuse as default value in a form. So I need to find a way to remove the [[ and ]] ... 92.151.135.223 21:29, 10 February 2013 (UTC)
- Passing a link to a template parameter to remove the link is a very suboptimal solution.
- As I suggested, you should pass the link contents to the parameter, and make the template put the link: using
[[{{{parameter}}}]]
inside the template, and calling the template withparameter = LinkContent
. - If you need to display a different text on the link, either create a new parameter for that, or pass the text of the link on the same parameter with the {{!}} template. (for example,
parameter = LinkContent{{!}}LinkText
) Ciencia Al Poder (talk) 10:25, 11 February 2013 (UTC)
- I encounter the same problem as Julian in a semantic media wiki. A property is pointing to a page, so when I call the value for a field from this property, I get the result as a link. And I would need a the bare text without the link elements, so I can reuse as default value in a form. So I need to find a way to remove the [[ and ]] ... 92.151.135.223 21:29, 10 February 2013 (UTC)
Database Query Syntax Error
When I attempt to use the search feature on my wiki (www.gravestonewiki.com), I get the following message:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "". Database returned error "144: Table './gra1028305302285/mw_searchindex' is marked as crashed and last (automatic?) repair failed (p50mysql41.secureserver.net)".
What should I do? Jaredemyers (talk) 12:08, 17 October 2012 (UTC)
- If you have a tool like phpmyadmin use this tool and repair the table mw_searchindex in your database.
- If it is not possible to repair the table, you can truncate it and use the maintenance script updateSearchIndex.php to fill it again. 88.130.86.163 14:58, 17 October 2012 (UTC)
client side browser not formatting mediawiki website pages properly
Hi,
I just installed MediaWiki on a WAMP 2003 platform via XAMPP 1.8.1 and everything is ok on the (web) server-side, but when i try to access the webserver from a client PC via IE or Chrome, the MediaWiki does not display properly.
What could I be missing?
Thanks much! Simon Pdit (talk) 16:09, 17 October 2012 (UTC)
- Could you please elaborate "MediaWiki does not display properly"? What should we understand by not displaying properly? i.e. what would you expect and what are you actually encountering... Ciencia Al Poder (talk) 19:46, 18 October 2012 (UTC)
User groups
Hi I've some queries..
Q1: How do I allow only specified group to edit a section of a page?
Q2: How do I make a section in a page be visible to only a specified group?
Q3: How do i create or add custom groups?
Thanks! 2406:3000:22:84:0:0:0:22 (talk) 10:22, 18 October 2012 (UTC)
Is it easy to change from SQLite to MySQL?
I plan to use SQLite for smaller wikis and then use a full database if they become popular. Would it be easy to move the SQLite content to the MySQL database? Lieutenant Aleksandr Reznov 20:49, 18 October 2012 (UTC)
Dirt page only without login
Please, see this page .
It is totally unreadable, but after a login (I have a sysop profile) it is a normal page.
I've a lot of pages like this, but not all pages inserted.
Some advice? Thanks in advance
The problem is related to FileCache, with $wgUseFileCache = false I've no problems, but it's strange that after the login a user can see the page and without login no. WhiteTigerItaly (talk) 06:42, 19 October 2012 (UTC)
- If $wgUseFileCache = true; then filechached pages are only delivered to logged out users. It can create problems with $wgUseGzip. Subfader (talk) 12:08, 19 October 2012 (UTC)
SkinMonoBook::getTitle() in MW 1.15 ?
In an extension I use the SkinTemplateBuildNavUrlsNav_urlsAfterPermalink
hook.
Inside that I use the condition $skintemplate->getTitle()->exists()
.
Works fine in MW 1.16+, but in MW 1.15 (and earlier?) it returns the error "Call to undefined method SkinMonoBook::getTitle()". How can it be fixed to work in old and new MW versions? Subfader (talk) 08:31, 19 October 2012 (UTC)
ResourceLoader: Custom Javascript not applied in edit preview
I have some javascript similar to User:Subfader/vector.js added in my MediaWiki:Common.js.
It affects article content and works fine but not when I preview text. It seems to be fixed in MW 1.19 as it works on mediawiki.org but not on my wiki (MW 1.18.0). How can it be fixed without upgrading? Subfader (talk) 11:25, 19 October 2012 (UTC)
Installation
Can someone help me in figuring out what the last statement means when I try to configure the website:
MediaWiki 1.6.10 Installation Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list. Checking environment... Please include all of the lines below when reporting installation problems. PHP 4.3.9 installed Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities. PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. PHP's memory_limit is 32M. If this is too low, installation may fail! Have zlib support; enabling output compression. Neither Turck MMCache nor eAccelerator are installed, can't use object caching functions Found GNU diff3: /usr/bin/diff3. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Installation directory: /var/www/development/miswebdev/html/Wiki Script URI path: /Wiki Environment checked. You can install MediaWiki. Generating configuration file... Database type: oracle Connecting to SQL server...Oracle functions missing, have you compiled PHP with the --with-oci8 option?
I have to use the older version of MediaWiki because I do not have the latest PHP installed. Any help would be appreciated. thanks. 199.253.128.9 (talk) 19:36, 19 October 2012 (UTC)
- This support desk lacks of support. You might find better help on the IRC chan or http://www.mwusers.com/forums/forum.php Subfader (talk) 14:15, 20 October 2012 (UTC)
Your extension downloads aren't working.
Hi I have been trying to download the following extension (1.19) and your site returns an error each time. Can you please check and fix this pls. thanks.
Download MediaWiki extension Jump to: navigation, search <You are downloading the <b>ConfirmAccount</b> extension. Select your MediaWiki version. Most extensions work across multiple versions of MediaWiki, so if your MediaWiki version is not here, or if you have a need for the latest extension features, try using the current version.> 220.233.43.100 (talk) 00:51, 22 October 2012 (UTC)
- Same here.... I tried it last week too. No luck so far.... PaulSinnema (talk) 07:20, 22 October 2012 (UTC)
- Special:ExtensionDistributor/ConfirmAccount seems to be working fine now. Krinkle (talk) 22:05, 24 October 2012 (UTC)
- This might have been this bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=41081 . It is fixed now. Malyacko (talk) 21:00, 25 October 2012 (UTC)
- This might have been this bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=41081 . It is fixed now. Malyacko (talk) 21:00, 25 October 2012 (UTC)
TEMPLATE
Hello Im playing with templates at the minute and I want to have the infobox in the top right how is this done? 86.146.138.55 (talk) 12:17, 22 October 2012 (UTC)
- Wrap it inside a <div style="float:right; width:300px;"></div>
- Adjust the width to your needs. Ciencia Al Poder (talk) 19:49, 24 October 2012 (UTC)
Forum Style Discussion / Forum Extension
Good day!
I've checked some pages regarding forum extensions. Unfortunately (for me) most, if not all, of these forum extensions are written with mysql. We're running postgeSQL here but would like to use a "forum type" discussion or forum extension (like wikiForum).
I am currently slowly editing the wikiForum php files and transcoding them to postgreSQL. I was just wondering if anyone else has done this or knows of other forum/discussion that are already coded in postgreSQL.
Thanks! Rei fbcl (talk) 16:42, 22 October 2012 (UTC)
- Hi!
- No, I do not know of extensions, which are especially made for Postgres. It would be nice, if everything worked with Postgres, MSSQL and some other DBMSs, but ... theory is lacking practical applicability. If I were you, I would - instead of manually changing the source code, which you btw will have to do after every update, again and again - instead I would change to MySQL and just use the best extensions out there: Which ever you choose, with MySQL it will work. 88.130.115.6 20:29, 13 October 2013 (UTC)
Failing to load - Console: switch to colour frame buffer device 80x30
A wiki site was built by a counter part who has since left the company and over the weekend a power failure occurred.
When the server starts it just hangs at "[1.470371] Console: switching to colour frame buffer device 80x30
I have tried everything I know of and been reading the site for hours but I need some assistance to resolve this and get the wiki back up and running.
Thanks, Wolfsburg18 (talk) 18:10, 22 October 2012 (UTC)
- While it took a while I figured out this issue was related to Apache failing to start. Once Apache started the application would continue to the configuration screen. In my instance the issue was related to SSL configuration and not having the SSL PassPhraseDialog set correctly in the Apache config. Wolfsburg18 (talk) 19:09, 23 October 2012 (UTC)
Upload and links to image files don't work
We used wiki on the stick and everything we tried worked nice (version 1.16) (http://www.mediawiki.org/wiki/Manual:Installing_on_MoWeS_Portable_(Windows)), so we decided to install wiki 1.19 on our server (http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_Windows_Server_2008 ). Now we can’t solve problems with uploading images file (png & jpg) and including images on pages. (Upload and links work OK for many other file types, such as: doc, docx, xls, pdf and zip.)
1st problem: upload of image files interrupted with “500 error” message – however, the file is saved in the image folder, but page with the file is not produced. i.e. there is no page such as file:name.png page as is the case with the wiki on a stick.
2nd problem: link [[file:name.png]] shows as text on a page, but when try to use [[image:name.png]] instead, “500 error” message shows again.
Not experienced with installations of Mediawikis and my guess is that something is not right with parameters used in LocalSettings.php. So here are some parameters that are different between the two installations:
For Wiki on a stick:
$wgSitename = "MoWeS Portable";
(#$wgMetaNamespace not used)
$wgScriptPath = "/mediawiki";
$wgScriptExtension = ".php";
($wgServer not used)
For server installation:
$wgSitename = "Our Wiki";
$wgMetaNamespace = "Our_Wiki";
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgServer = "http://server";
Thanks in advance for any suggestions.
GP 165.228.236.251 (talk) 01:28, 23 October 2012 (UTC)
- Just few more symptoms:
- File list from Special pages yields the infamous “500 - Internal server error.” message
- All Pages with prefix from Special pages produce a list of file pages. But clicking on the listed links to pages supposed to contain image files (png or jpg files) again yields the same error message, while it works OK for other file types. 165.228.236.251 01:50, 23 October 2012 (UTC)
Unexpected breaks in HTML before closing tags
I'm having a small but challenging issue with some HTML elements (like ordered/unordered lists), and couldn't find a thread about it, so I wanted to see if I could get someone's opinion. It happens when I create any list, like so:
Unordered list: * Item 1 * Item 2 * Item 3
At Wikipedia or here in the MediaWiki Sandbox, the resulting HTML looks like this:
<p>Unordered list:</p> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul>
However, on my own Mediawiki installation, identical input produces differently-formatted HTML, like this:
<p>Unordered list: </p> <ul><li> Item 1 </li><li> Item 2 </li><li> Item 3 </li></ul>
Do you know what might be causing this? Normally I wouldn't be concerned about how the HTML tags are arranged, but in this case the difference is complicating some navbox-related horizontal lists I'm trying to set up. Any guidance would be much appreciated!
MediaWiki = 1.19.1, PHP = 5.4.4, MySQL = 5.5.24. Test page: http://eamononline.com/wiki/Test Huwmanbeing (talk) 10:43, 23 October 2012 (UTC)
- I guess that the difference is the use of $wgUseTidy. But anyway, those extra spaces shouldn't be an issue for CSS. Ciencia Al Poder (talk) 19:37, 24 October 2012 (UTC)
- Tidy was a good suggestion, but unfortunately it hasn't corrected the odd markup. Even when $wgUseTidy = true, the problem persists, and seems to affect not just lists but other containing elements too (like paragraphs, where the terminating </p> always gets put on the following line).
- It's very odd; I'm not sure what could be causing it or if there's something I'm overlooking or doing wrong.
- Test page: http://eamononline.com/wiki/Test. Huwmanbeing (talk) 10:09, 5 November 2012 (UTC)
- Some progress: based on further checks, it seems that tidying is not being applied properly, despite $wgUseTidy being enabled and properly pathed in the LocalSettings. Hmmm. Huwmanbeing (talk) 10:47, 5 November 2012 (UTC)
- I still don't see why you should rely on particular whitespace on the HTML markup. But anyway, be sure that you've also set the other related TIDY variables, specially $wgTidyBin, to a working tidy binary. If TIDY is not present in the machine and MediaWiki is unable to locate it, $wgUseTidy is useless. Ciencia Al Poder (talk) 19:59, 5 November 2012 (UTC)
- I have the same issue as Huwmanbeing: HTML end tags are not appearing as one would expect if setting out to write properly formatted code. This isn't a problem for browsers or CSS but it's causing me grief because of the way I'm using our wiki (it's kind of involved, but basically, I'm creating content in the wiki, then using curl to point to wiki URLs with the ?action=render flag. The wiki content has some embedded code that will be parsed after the export process by a perl interpreter (Mason). The perl interpreter DOES rely on on certain whitespace elements (e.g., the perl lines MUST begin with "%" located in column 1 of the line.) The Wikimedia output gets overzealous about putting additional
tags around some elements, adding spurious
tags around others. And there seems to be no way to suppress the conversion of <, >, " characters into HTML entities (e.g, - <%args>
- $thischapter => ""
- gets converted to
- <%args>
- $thischapter => ""
- )
- This forces me to jump through some post processing hoops I'd love to avoid. Any help you give on this would be most appreciated. 71.134.230.120 02:27, 12 February 2013 (UTC)
- The way you're using MediaWiki is, simply put, not supported.
- Instead of parsing an ?action=render, why don't you use the API? You can retrieve the plain content of any page or revision without being parsed (no extra formatting, no extra whitespace, just what you enter in the edit area), something probably more suitable for your needs. The content is formatted according to the selected format (XML, JSON, etc) so you can't extract the contents as if it were plain text.
- If you want the content without any format, use action=raw instead of action=render. Ciencia Al Poder (talk) 10:30, 12 February 2013 (UTC)
- I have the same issue as Huwmanbeing: HTML end tags are not appearing as one would expect if setting out to write properly formatted code. This isn't a problem for browsers or CSS but it's causing me grief because of the way I'm using our wiki (it's kind of involved, but basically, I'm creating content in the wiki, then using curl to point to wiki URLs with the ?action=render flag. The wiki content has some embedded code that will be parsed after the export process by a perl interpreter (Mason). The perl interpreter DOES rely on on certain whitespace elements (e.g., the perl lines MUST begin with "%" located in column 1 of the line.) The Wikimedia output gets overzealous about putting additional
SQL queries for stats
Hello! I need to generate a monthly report of the use of wiki in the company I work for. I'm not allowed to install plugins, I can only make queries (selects) via phpmyadmin. Do you have any suggestions? I do not know well the tables, but I thought the following queries:
-- Registered users per month
SELECT left(user_registration,6) as dt_reg, count(*) as qtde FROM user GROUP BY dt_reg
-- Pages created / edited by month
SELECT left(page_touched,6) as dt_addup, count(*) as qtde FROM page GROUP BY dt_addup
I need numbers to show the importance and use of the wiki. Thanks a lot :D 200.220.180.66 (talk) 13:45, 23 October 2012 (UTC)
Change Anonymous to IP user
On Special:RecentChanges is it possible to change "Hide anonymous users" to "Hide IP users"? IP's are not anonymous. Registered users are far more anonymous than IP's. Any reason for not making this change? I see IP used more often than anon now. 24.62.156.219 16:04, 23 October 2012 (UTC)
- I have tracked it down to MediaWiki:Rclinks (Show last $1 changes in last $2 days). The change needs to be made to "$3" per MediaWiki:Rclist/qqq correct? Hopefully it can be done without changes to the PHP code. – Allen4names (IPv6 contributions) 17:25, 23 October 2012 (UTC)
- The message you need to edit is MediaWiki:rcshowhideanons: $1 anonymous users Ciencia Al Poder (talk) 19:34, 24 October 2012 (UTC)
paths in php.ini
Does it matter which format is used to define paths in php.ini? I.e. is it OK to use either server virtual or physical paths, or should I use physical paths only?
Thanks 165.228.236.251 (talk) 06:29, 24 October 2012 (UTC)
Inherited an old wiki. Unable to change LocalSettings.php and have it register modifications.
I inherited an old wiki. I was told to clean it up (spam, etc). right away I wanted to stop all new user accounts and edits until it's cleaned up. I modified the LocalSettings.php and re-committed the file to the server. Wiki does not change. I modified the LocalSettings.php file to something simple, like a skin modification, but ultimately, the wiki does not change. It acts as if the LocalSettings.php file does nothing, or it's being referenced by a different LocalSettings.php file.
I downloaded the whole wiki and searched for other LocalSettings.php files. I found only the one I was working on.
Any ideas? I have no background on how this wiki was created and how it might have been customized. I have my own MediaWiki site that I've managed and it works fine. I even copy and Pasted the contents of my functioning LocalSettings.php file into the new dysfunctional php file (minus the credential stuff), and it still didn't work. 38.102.5.194 (talk) 20:57, 24 October 2012 (UTC)
- I think I've figured out that the previous owner has a vestigial hosting plan, that contained the wiki or part of the wiki on the hosting plan he gave me. He must have migrated to a different server or hosting plan, and didn't give me the credentials. I figured this out by uploading an image to the wiki (via the wiki upload page), then looked for that image in the direct page for the image. It didn't reside in the folder as stated. So my conclusion is that his wiki is running from a different hosting plan.
- Any way I could determine from where the wiki is running, via the UI? The domain is registering Godaddy as the hosting agency, which is where I'm working from already, but that could just be where the domain is registered, not necessarily where the hosting is coming from. 38.102.5.194 21:42, 24 October 2012 (UTC)
- A ping command to the domain name should tell you the IP address, and a traceroute may tell you the hosting company. Also, any whois domain tools may tell you more info about that. But won't expect a "user account" from any of those tools. Ciencia Al Poder (talk) 09:26, 25 October 2012 (UTC)
importdump.php help (MAMP)
Hello, When trying to use the importdump.php script, I get the error: DB connection error: No such file or directory (localhost) Its resolved by "using specific database credentials". I have no idea how to input the database credentials into terminal. Excuse the newbish question. I am using MAMP to set up my wiki. Thanks User9989 (talk) 00:32, 25 October 2012 (UTC)
Flush [intersection] DynamicPageList's cache?
Hi, most of the changes I make take long time to get reflected via DynamicPageList intersection (not the 3rd party version). After some reading I realized there's a cache that was reduced by Bawolff to 24 hours.
Still.. my main Wiki page lists all available pages via DynamicPageList and when I add a new page, nobody can find it for a long time.
Can anyone tell how could I flush/reset DPL's cache immediately?
(*) I also set $wgDLPMaxCacheTime = 0 in DynamicLinkPage.php and restarted apache, but there's still no change.
(*) I now see that I have allowcachedresults=false in my main page, yet I can't see new/renamed pages.
Thanks.
MediaWiki: 1.19.1
Php: 5.3.6
MySQL: 14.14 SkyDiver (talk) 10:54, 25 October 2012 (UTC)
SkyDiver (talk) 11:10, 25 October 2012 (UTC)
I can not delete nor rename pages on my media wiki
Dear All,
I tried to delete some pages on my installed wiki wiki.bsc.rw I have admin rights and i can easily see the delete tab but after completing the deleting process i can still see the deleted pages. please help me to have them not displayed any more.
Thank you
Solange Sososhamu (talk) 14:27, 25 October 2012 (UTC)
- As an admin you should be able to see deleted pages that have not been deleted by a maintenance script. If you can see the deleted page when you are logged out and have cleared your browser cache you may want to file a bug report. – Allen4names (IPv6 contributions) 17:46, 25 October 2012 (UTC)
Invisible redirections toward mediawiki
Hello, I am trying to set up an invisible redirection toward my mediawiki installation but even though the visible redirection works, the invisible one gives me a blank page but reads the favicon of my wiki. Any idea?
- Redirected URL : wiki.compmonks.com
- Wiki URL : www.adrd.net/dkwiki/
- Product Version : MediaWiki 1.17.0
- PHP : 5.2.5-pl1-gentoo (cgi)
- MySQL : 5.0.44-log
Thanks
Best
P. 79.80.144.5 (talk) 20:51, 25 October 2012 (UTC)
- My first guess would be to look into the .htaccess file of mediawiki if it is not allowing invisible redirections from an external domain but not sure.
- Will post updates if I found out. Anybody else has already encountered this problem? 79.80.144.5 12:06, 26 October 2012 (UTC)
mwdumper help
After importing a file into mediawiki via mwdumper, I try to go to that specific page and it returns as a blank white screen Does anyone know what I am doing wrong, or have to do afterwards to fix this problem? User9989 (talk) 21:19, 25 October 2012 (UTC)
- A blank white screen is usually a fatal PHP error. See the error log of the webserver to locate the source of the error and post the information here in case it's still a problem. Ciencia Al Poder (talk) 15:16, 26 October 2012 (UTC)
Cannot view my media wiki from another computer
PHP 5.3.8 MySQL 5.5.16 media wiki1.19.2
I am not able to view my media wiki from another computer on the same lan. I says object not found. I can see from the computer where it is installed. What could be some possible checks to verify? 63.238.139.239 (talk) 22:06, 25 October 2012 (UTC)
[RESOLVED] NUMBEROFARTICLES and NUMBEROFPAGES showing inflated numbers
Okay, so... I had a wiki that was overrun with spam. I temporarily deactivated the wiki, manually deleted all the spam from the database, and then later reactivated the wiki, upgraded to version 1.19.2, and put in place some anti-spam measures that I should have used in the first place. However, the NUMBEROFARTICLES and NUMBEROFPAGES magic words still seem to count the no longer extant spam pages. The Special:Statistics page correctly shows the number of articles (currently 324 content pages, 491 total pages), but the NUMBEROFARTICLES and NUMBEROFPAGES magic words show hugely inflated numbers (3,602 articles, 135,331 total pages!) I've run every maintenance script that seemed potentially relevant (rebuildall.php, initStats.php, updateSpecialPages.php, updateArticleCount.php (with and without the --update option)), but while, as I said, it's got the Special:Statistics page showing the correct numbers now, the magic words still aren't working correctly. Any ideas?
(Full details: Using MediaWiki version 1.19.2 (just upgraded from 1.15.0), PHP version 5.2.17, MySQL 5.0.96. The URL of the wiki is http://www.rpdia.net. In case it matters, I do not, unfortunately, have shell access; I ran the maintenance scripts via the Maintenance extension.) Smeazel (talk) 23:30, 25 October 2012 (UTC)
How to block adding external links for specific user groups?
I would like to allow anonymous edits unless they add an external link. If they do, the edit should be blocked completely. Non-autoconfirmed users should also be disallowed posting new external links.
autoconfirmed users should be able to post new links, but the SpamBlacklist should still remain in force, disallowing specific links.
Is there an easy way I can achieve this behaviour? Romanski (talk) 12:33, 26 October 2012 (UTC)
- Extension:AbuseFilter is used at enwiki. If you need more help you could ask at en:WT:AF. – Allen4names (IPv6 contributions) 16:43, 26 October 2012 (UTC)
Command line?
Hi. Somewhat of a newbie question, but what is and how do you access the "command line"? I am running a Mowes Portable II installation of Mediawiki 1.19.2, and I want to install ImageMagick and it refers to it a lot - Thanks, inops. Inops (talk) 14:09, 26 October 2012 (UTC)
[RESOLVED] update from version 1.12.0 to 1.19.2 gives an error
Hi, we are running mediawiki for a couple of years now and want to upgrade to a newer version of the wiki. Current version: 1.12.0 PHP: 5.2.6 MySQL 5.051B
So i've set up a test environment to perform the upgrade with the exact same conditions as it is running live on our server. I've secured the files like they are pointed at in the upgrade text file, copied the new version in the right folder and i get this message.
Fatal error: Cannot redeclare wfprofilein() (previously declared in C:\xampp\htdocs\includes\profiler\Profiler.php:14) in C:\xampp\htdocs\includes\ProfilerStub.php on line 12
As far as i can understand, the funtion is double assigned and that is not possible. How can i resolve this problem?
Thnx 4 the help! Dennis 84.246.24.98 (talk) 15:02, 26 October 2012 (UTC)
- You might have a file called StartProfiler.php in the MediaWiki root folder. Delete it and try again. 88.130.69.222 22:10, 26 October 2012 (UTC)
- Thnx for the tip, totaly overlooked the file. It is working fine now! 84.246.24.98 15:07, 29 October 2012 (UTC)
Changing name to media wiki root folder.
Is it possible to change the name of the root media wiki folder to something more meaningful like a department name. I have changed the name but the graphics do not display now. There must be a setting where I can tell it to not look for the old name but the new name I have changed it to. 63.238.139.239 (talk) 17:38, 26 October 2012 (UTC)
- You probably forgot to change $wgUploadBaseUrl or $wgLocalFileRepo. Ciencia Al Poder (talk) 12:06, 28 October 2012 (UTC)
- Apart from what Poder wrote: Maybe you have some caching activated on your server (like an opcode cache), which still shows/showed you old content?
- If you don't find the culprit, you could still grep the source code for the old folder name. That should show you, where it is still set. :-) 88.130.79.25 13:17, 28 October 2012 (UTC)
- If you want to shorten my name, call me Ciencia but no Poder. Thanks! Ciencia Al Poder (talk) 14:04, 28 October 2012 (UTC)
- You can call me "88.130.", if you like. ;-) 88.130.79.25 16:26, 28 October 2012 (UTC)
- If you want to shorten my name, call me Ciencia but no Poder. Thanks! Ciencia Al Poder (talk) 14:04, 28 October 2012 (UTC)
- Note: More likely $wgScriptPath (Other common culprits for images not showing are $wgArticlePath and $wgServer being wrong) since its value determines the default value of $wgUploadBaseUrl / $wgLocalFileRepo - and most people do not modify $wgUploadBaseUrl or $wgLocalFileRepo from their defaults. Bawolff (talk) 16:45, 1 November 2012 (UTC)
I can not upload a picture to my mediawiki,the picture file name contains chinese
my mediawiki version 1.19.2
Upload error
This wiki does not support filenames with special characters. 106.3.103.157 (talk) 16:38, 27 October 2012 (UTC)
- It's a consequence of Bug 1780. A current limitation of PHP and the handling of character sets of NTFS filesystems. There's no fix for that ATM. Ciencia Al Poder (talk) 11:54, 28 October 2012 (UTC)
deleted directory
My wiki will be uploading large files and then deleted the large files after use. I need them completed deleted off the server. When I delete a file it lists the file in a strange name something like: 8clccatibnr0199208039.doc
Is there a maintenance script to remove these deleted files from the deleted folder?
Thanks! User:Amblerllc 66.41.96.6 (talk) 19:02, 27 October 2012 (UTC)
- The delete directory is placed according to the $wgDeletedDirectory setting. I don't recall there's a maintenance script for that, but it should be as easy as manually removing those files from that folder. On a unix environment with shell access you can use the find utility to find all files with size greater than a particular amount and do the remove. Ciencia Al Poder (talk) 12:01, 28 October 2012 (UTC)
Is there a way to add a series of internal wiki links to an article automatically?
I was curious if there is a way to take a bullet pointed list of internal wiki links to other articles (whether they contain content or not) on a single page and have them automatically categorized to the category to same name as the article page.
For example, I have the article page "Snow", and I want to add a list of subtopics on the article page "Snow" to the category "Snow", with subtopics being:
- Flurries
- Hail
- Sleet
My question is if there is a template, extension, or wiki parser expressions I should use to effect this, if possible.
I currently run a localhost MediaWiki 1.19.2 setup with MySQL (5.5.27) with PHP version 5.4.7 (apache2handler) Arcane21 (talk) 01:25, 29 October 2012 (UTC)Arcane21 Arcane21 (talk) 01:25, 29 October 2012 (UTC)
What happens if you get downtime after updating a watched page?
If I update a page that people are watching and they chose to get an email notification of changes to that page then what happens if immediately after I update a page I get downtime? Do the emails just get sent when my site is back up? Holygamer (talk) 13:47, 29 October 2012 (UTC)
Can't contact the database server: Access denied for user 'wikiuser'@'localhost' (using password: NO) (localhost))
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- Hi All,
- I have installed the mediawiki in Redhat linux environment and all the installation with configuration are went fine, but in the end when I tried to access the mediawike i getting below error message:
- Can't contact the database server: Access denied for user 'wikiuser'@'localhost' (using password: NO) (localhost))
- I am not sure what was the problem i was able to login as wikiuser at wikidb (database).
- Can someone help me what will be the issue and where I am wrong.
- thanks in advance.
- best Regards Sriniu (talk) 18:24, 29 October 2012 (UTC)
- The error message states that you're trying to connect to the database in localhost using the 'wikiuser' user account but without specifying a password.
- Be sure you specify a valid password for connecting to the database (configured in LocalSettings.php). Ciencia Al Poder (talk) 10:18, 30 October 2012 (UTC)
- thanks for your reply.
- yes i have give wikiuser password only. i tried to login in mysql with wikiuser and its password and it is working fine.
- but not sure i am getting access denied error for wikiuser. Sriniu (talk) 20:43, 30 October 2012 (UTC)
- Please, be sure that you've configured $wgDBpassword. It's not clear from your reply that you've done that. Ciencia Al Poder (talk) 19:57, 31 October 2012 (UTC)
- Database settings
- $wgDBtype = "mysql";
- $wgDBserver = "localhost";
- $wgDBname = "wikidb";
- $wgDBuser = "wikiuser";
- $wgDBpassword = "wikiuser";
- just want to recheck with you, i have copied LocalSettings.php file under /var/www/devwiki/ path, is it ok?
- because all the mediawiki folder and files are under devwiki. 160.62.13.190 10:08, 2 November 2012 (UTC)
- Those settings seem okay.
- Maybe the problem is the user. Note that on mysql the user is also associated to a host (localhost in this case). Try resetting the password: http://dev.mysql.com/doc/refman/5.0/en/assigning-passwords.html
- You should do that for 'wikiuser'@'localhost', 'wikiuser'@'%' and 'wikiuser'@'yourhost', where "yourhost" is the hostname of the database. Ciencia Al Poder (talk) 10:20, 2 November 2012 (UTC)
- Hi,
- I also get:
- (Can't contact the database server: Access denied for user 'wikiuser'@'localhost' (using password: NO) (localhost))
- The reason is that the LocalSettings.php is not honored.
- I am on a debian wheezy and my version of mediawiki is: 1:1.19.18+dfsg-0+deb7u1
- If I enter the database access information into the /usr/share/mediawiki/includes/DefaultSettings.php file things are working at least for the database connection. Then the next things starts failing. 2A02:8108:2140:3D97:2480:6945:A181:17FA 11:40, 30 August 2014 (UTC)
- Please make sure you are editing the correct LocalSettings.php file! Maybe you also have some symlinks in place, which break the setup: Usually MediaWiki has to be installed somewhere in the webroot folder, which usually is /var/.../www/. You however, seem to use it from /usr/share/, which means that you somehow have to make these files accessable to the outside world. I think the way you do this is part of the problem. 88.130.90.130 12:24, 30 August 2014 (UTC)
- In Debian, LocalSettings.php is apparently installed in
/var/lib/mediawiki/config/LocalSettings.php
or/etc/mediawiki/LocalSettings.php
, or there's a symlink between both. Ciencia Al Poder (talk) 17:27, 31 August 2014 (UTC) - I am getting the same error message. Were you ale to resolve this issue. The mediawiki upgrade is taking more time than actually creating new wiki and getting new domain name :(
- - KT 173.3.55.201 04:16, 7 October 2014 (UTC)
- What solutions have you tried so far? Ciencia Al Poder (talk) 09:17, 7 October 2014 (UTC)
- Thank you for your response. My mediawiki is installed on Dreamhost with PHP5.2. I was trying to upgrade the mediawiki to newer version and so I upgraded my PHP to 5.4 and when I ran the update.php command it gave me error. My Localsettings.php is installed in wiki2\includes folder and I did verified my password and its is correct. KT 02:23, 8 October 2014 (UTC)
- That doesn't seem correct. Your LocalSettings.php is usually placed in the MediaWiki installation folder, not inside "includes". Please check that a LocalSettings.php exists on your installation directory (and not in any subdirectory) and that database settings are correct. Ciencia Al Poder (talk) 09:36, 8 October 2014 (UTC)
- Have you maybe moved the file into the includes/ directory? In this case moving it back might fix your problem... 88.130.94.26 13:04, 8 October 2014 (UTC)
- My apologies but LocalSettings.php is in the MediaWiki installation folder, not inside "includes". I got confused with the DefaultSettting. Also the Dbuser, Dbpassword and server are all correct. I tried them on my SQL and they work fine.
- - KT 173.3.55.201 02:51, 9 October 2014 (UTC)
- Can you check, if the username written in the error message, is the same, like the one you wrote in your LocalSettings.php? (And it's really exact the same error message like the one in the thread title?) Florianschmidtwelzow (talk) 08:37, 9 October 2014 (UTC)
- This is the error I get==> (Can't contact the database server: Access denied for user ''@'ps8293.dreamhost.com' (using password: NO) (mysql.keywords.fordhamitac.org)
- I looked into username in Localsettings and that is the correct one. I am not sure where the update.php is picking ''@'ps8293.dreamhost.com' from since the LocalSettings.php has the correct credentials.
- -KT 150.108.238.53 13:29, 9 October 2014 (UTC)
- Your error message shows that MediaWiki does not(!) use any username. Please check that $wgDBuser is spelled and written correctly!
- When you are at it, please verify that "ps8293.dreamhost.com" is the correct value for $wgDBserver! 88.130.76.114 14:01, 9 October 2014 (UTC)
- Can you check, if the username written in the error message, is the same, like the one you wrote in your LocalSettings.php? (And it's really exact the same error message like the one in the thread title?) Florianschmidtwelzow (talk) 08:37, 9 October 2014 (UTC)
- Have you maybe moved the file into the includes/ directory? In this case moving it back might fix your problem... 88.130.94.26 13:04, 8 October 2014 (UTC)
- That doesn't seem correct. Your LocalSettings.php is usually placed in the MediaWiki installation folder, not inside "includes". Please check that a LocalSettings.php exists on your installation directory (and not in any subdirectory) and that database settings are correct. Ciencia Al Poder (talk) 09:36, 8 October 2014 (UTC)
- Thank you for your response. My mediawiki is installed on Dreamhost with PHP5.2. I was trying to upgrade the mediawiki to newer version and so I upgraded my PHP to 5.4 and when I ran the update.php command it gave me error. My Localsettings.php is installed in wiki2\includes folder and I did verified my password and its is correct. KT 02:23, 8 October 2014 (UTC)
- What solutions have you tried so far? Ciencia Al Poder (talk) 09:17, 7 October 2014 (UTC)
- I had the same issue and what i did is change the password of my user to something else.. oddly it managed to log in with the user. Im feeling its a bug..
- Select your database and make sure you created the account as the people here above said it should (@localhost etc.) then change password and voila.. AlphaCappa (talk) 21:03, 7 November 2015 (UTC)
- Please, be sure that you've configured $wgDBpassword. It's not clear from your reply that you've done that. Ciencia Al Poder (talk) 19:57, 31 October 2012 (UTC)
- Hi there. I am getting this error:
- DB connection error: Access denied for user 'livinhp8_wiki'@'box285.bluehost.com' (using password: YES) (69.89.31.85).
- Check the host, username and password and try again.
- Not sure what I am doing wrong. Username, password and permissions are fine. 2601:9:5900:987:987F:AA76:333D:8875 19:24, 21 November 2014 (UTC)
- Your error message shows that MediaWiki uses the MySQL username "livinhp8_wiki" as $wgDBuser. When you are at it, please verify that "box285.bluehost.com" is the correct value for $wgDBserver! Also the name of the DB must be correct.
- Finally a
GRANT ALL PRIVILEGES ON database_name TO user@host IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
- in MYSQL should give the according rights and clear the priv cache. 88.130.80.152 23:30, 21 November 2014 (UTC)
- hi I have created a wiki via wiki media on local machine but some times it connect properly & sometimes it gives me an error : site cant be reached , localhost refused to connect.
- This error is not permanent , i will not do anything & next time i may reopen my laptop it may work.
- Please help 59.177.75.29 (talk) 09:53, 2 May 2017 (UTC)
- I know this was long ago, any way in case this is useful to anyone, as I was straggling 3 hours with the issue, if you are not able to connect to MySQL server from within the app with an error like:
- = Sorry! This site is experiencing technical difficulties. =
- Try waiting a few minutes and reloading.
- Cannot contact the database server
- and you're sure the credentials and db rights/grants are ok, try checking firewall and SELinux. In centos:
- $ getenforce
- enforcing
- $ setenforce 0
- $ getenforce
- permisive
- This was my particular issue, SELinux was disabling local dir modifications and avoiding the app (mediawiki) connect MySQL server. Salader (talk) 17:23, 7 February 2018 (UTC)
Fatal error when installing
Sorry , How I can install mediawiki?
MediaWiki 1.19.2
LocalSettings.php not found.
Please set up the wiki first.
Fatal error: require_once(): Failed opening required '/home/sites/...
/mw-config/includes/Init.php' (include_path='.:/php/includes:/usr/local/php/lib/php') in /home/sites/p/pc/pcl/...
/includes/WebStart.php on line 94
I don't have in files LocalSettings.php , what's going on? what is it? Tele1234567891 (talk) 12:04, 30 October 2012 (UTC)
- I've splitted the message to a new thread.
- Did you created the wiki from scratch? Or was an upgrade from a previous version? Ciencia Al Poder (talk) 19:37, 30 October 2012 (UTC)
- Download, unpack, put in empty host.
- Open www. ... . and I have
- MediaWiki 1.19.2
- LocalSettings.php not found.
- Please set up the wiki first.
- Click "set up the wiki"
Fatal error: require_once(): Failed opening required '/home/sites/... /mw-config/includes/Init.php' (include_path='.:/php/includes:/usr/local/php/lib/php') in /home/sites/p/pc/pcl/... /includes/WebStart.php on line 94
- I changed the permissions --this same problem.
- ----
- # Get MWInit class
require_once( "$IP/includes/Init.php" );
- In XAMPP I don't have this with wiki.
- " I wrote a post on the forum Hosting
- What version of php there is "
Maybe system requirements is problem.
Tele1234567891 (talk) 09:52, 31 October 2012 (UTC)- I've downloaded a MediaWiki 1.19.2 tarball and unpacked, then browsed the main page, which pointed to the setup script. From there I have no problems.
- Be sure that you installed on a clean directory and not over an old installation. Also see the requirements for installing mediaWiki, specially PHP version. Ciencia Al Poder (talk) 13:41, 1 November 2012 (UTC)
- Note: Not having LocalSettings.php initially when you are just installing is normal.
- It sounds like your wiki is having problems determining what directory it is installed in (The $IP variable gets set to something incorrect instead of to the path to the directory where MediaWiki is installed). [I'm not sure what to suggest to rectify this issue]. Bawolff (talk) 16:42, 1 November 2012 (UTC)
Problems importing
- I managed to get MediaWiki working earlier this morning and everything appears to working fine but I'm having problems trying to import files. These are the errors I'm constantly getting:
- Warning: XMLReader::open() [xmlreader.open]: Unable to open source data in /www/zxq.net/h/e/l/helsinkipedia/htdocs/wiki/includes/Import.php on line 53
- Warning: XMLReader::read() [xmlreader.read]: Load Data before trying to read in /www/zxq.net/h/e/l/helsinkipedia/htdocs/wiki/includes/Import.php on line 399
- I've searched online and through the manual for hours and I can't seem to find a solution to this. The page itself also seem to display properly (the error message kind of sits in the background messing up the layout a bit) and another error pops up saying the upload failed but the wording is incomplete (Import failed: Expected <mediawiki> tag, got). Is there something wrong with Import.php or the XML file itself? I'm running MediaWiki 1.19.2 on the web host Zymic.com who uses the most recent version of PHP. The backup was done by me through Special:Export on Wikkii if that helps any. I'm new to managing MediaWiki software so I apologize if my question seems silly. 99.239.209.93 (talk) 20:22, 30 October 2012 (UTC)
- If you're importing the XML dump through Special:Import, the problem may be that the xml uploaded never gets stored on the server so MediaWiki could open it for reading. Causes may be:
- The XML is too large, larger than the MAX_UPLOAD_SIZE or MAX_POST_SIZE defined in the php.ini
- The temporal folder configured in php.ini for uploads is misconfigured, does not exist, the web server has no permissions to write, etc.
- If the problem is the first one, try to import a small one (an export of a single page, for example). If that works, you could separate the exported XML into smaller parts, or upload it to the server through ftp and use the maintenance script importDump.php on the server (requires shell access). Ciencia Al Poder (talk) 19:49, 31 October 2012 (UTC)
- Thanks for the response!
- It's definitely not the first option as the import I'm doing is only 12 KB (the test file of course was even smaller). How would I go about the second option? Because I'm afraid I don't have access to php.ini. 70.26.31.112 01:02, 1 November 2012 (UTC)
- You can check the temp folder for uplaods by uploading a file to your server, lets say called "p.php" with the following content:
<?php phpinfo(); ?>
- View the file with your webbrowser and you will be able to see all PHP settings and their values. 88.130.67.118 13:18, 1 November 2012 (UTC)
- I have encountered exactly this problem, shortly after Wikipedia enabled Lua scripting through the Scribunto extension. Now importing a template (in my case, Template:Cite web) creates this problem on import. I assume the truncation "tag, got" is referring to a component incorrectly translating/transforming the input in some way, leading to an empty string. Rather than, I presume, a valid import value.
- That's not a lot to go on, particularly as your problem precedes (I think?) the Scribunto extension. .alyn.post. (talk) 22:48, 27 July 2013 (UTC)
- I installed a MediaWiki on my PC (personal wiki). I noticed that this problem happened if I attempted to import a large file and the system timed out. So first I got this message: "Fatal error: Maximum execution time of 30 seconds exceeded in C:\EasyPHP\www\wiki\includes\db\DatabaseMysqli.php on line 39".
- Then each subsequent attempt of importing returned the message "Import failed: Expected <mediawiki> tag, got". The trick was to restart the server after the time out. Which sorted out the "Import failed" message EVERY TIME. 2.122.191.243 22:30, 23 March 2014 (UTC)
- If you're importing the XML dump through Special:Import, the problem may be that the xml uploaded never gets stored on the server so MediaWiki could open it for reading. Causes may be:
- Thanks, simply restarting the server did, in fact, do the trick! Cavila 20:49, 7 August 2015 (UTC)
- I'm on a hosted server and facing the same import-error saying Import failed: Expected <mediawiki> tag, got. I already asked the host for a server restart and then the import actually worked again, but after a couple of minutes the error came up again. Is there a workaround on this?
- According to this post (https://phabricator.wikimedia.org/T86036 ) the only way is to restart the server every time, which is a pitty on a hosted server. Mafi9 (talk) 15:22, 25 August 2015 (UTC)
- If you don't want to restart the server, you can write a php script that calls libxml_disable_entity_loader(false), and execute on the web server (not in command line). Alternatively, apply the patch in that phabricator task.
- It should be fixed in MediaWiki 1.26 Ciencia Al Poder (talk) 17:14, 25 August 2015 (UTC)
- Thanks again Ciencia for your support! I modified the patch a bit for my 1.23 MW and the error is finally gone! :-) Mafi9 (talk) 11:35, 26 August 2015 (UTC)
- Could be a character encoding issue with the XML. Try converting it to UTF-8 before importing.
- (Topic might be dead, but posting this in case others run into the same problem. We did, and making sure the character encoding in the file was correct fixed it for us.) 195.200.76.252 (talk) 15:03, 15 March 2016 (UTC)
MediaWiki horizontal size is too short
MediaWiki 1.17.0 PHP 5.4.8-1~lucid+1 (apache2handler) MySQL 5.1.41-3ubuntu12.10
https://dl.dropbox.com/u/65839275/Public%20Images/wikierror.png
When the browser is shown at half-screen size, items passing the far right have no background. Is there a means to extend the range of the white background? Kajikai (talk) 02:40, 31 October 2012 (UTC)
Your edit has been rejected
How do I resolve this error when trying to make edits to my wiki?
Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service. 108.178.189.46 (talk) 22:05, 31 October 2012 (UTC)
- Here's a link to my wiki:
- http://info.hawaiilife.com/mediawiki/index.php 108.178.189.46 22:08, 31 October 2012 (UTC)
- Editing your wiki works correctly for me. And there also are some other edits - seems like you got it working? 88.130.106.87 22:38, 31 October 2012 (UTC)