Project:Support desk/Flow/2013/01
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. |
Can MediaWiki be set to use a specific domain?
I have a wiki at de.sturmkrieg.com and sturmkrieg.de. Is it possible to set it to use sturmkrieg.de? Lieutenant Aleksandr Reznov 18:07, 1 January 2013 (UTC)
- Yes. For example if you are using Apache with
mod_alias
enabled you could add the following line to the configuration file. - – Allen4names (IPv6 contributions) 18:27, 1 January 2013 (UTC)
Redirect 301 http://de.sturmkrieg.com http://sturmkrieg.de
- Thanks. Will $wgServer also work? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:26, 21 January 2013 (UTC)
- Setting $wgServer to a specific URL will make all internal links generated by MediaWiki to point to that URL, so for example, if you don't have the alias rule in the server, you could access the wiki from another domain but links will point to a different one. Ciencia Al Poder (talk) 10:36, 21 January 2013 (UTC)
- Thanks. Will $wgServer also work? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:26, 21 January 2013 (UTC)
Restricting certain file upload
Is there a way to configure it so that only a certain user group can upload, say, .doc files? 108.231.77.32 (talk) 08:05, 2 January 2013 (UTC)
- You can restrict uploads to a certain user group (see Manual:User rights), but you can't do this for specific file formats. However, if you know PHP you can extend MediaWiki using one of the existing Hooks and code a function that would prevent the upload if the extension is ".doc" and the user is not in the group you define. Ciencia Al Poder (talk) 10:43, 2 January 2013 (UTC)
Warning: wfMkdirParents: failed to mkdir mode 511 in wiki/includes/GlobalFunctions.php on line 2536
I am getting this error on some images that are uploaded: Warning: wfMkdirParents: failed to mkdir "/home/patjk/public_html/speedsolving/wiki/images/thumb/d/d2/Scrble3x3.PNG" mode 511 in /home/patjk/public_html/speedsolving/wiki/includes/GlobalFunctions.php on line 2536
wfMkdirParents() in GlobalFunction.php seems to be trying to make a directory with the name of the file itself. See error posted on here: http://www.speedsolving.com/wiki/index.php/File:Scrble3x3.PNG
What is the best way to resolve this? Thanks. 110.168.125.219 (talk) 13:42, 2 January 2013 (UTC)
- If you view the image url, you'll see that it is http://www.speedsolving.com/wiki/images/thumb/d/d2/Scrble3x3.PNG/114px-Scrble3x3.PNG -- so putting the file name in the directory is expected.
- Is the images directory writable by the web server?
- Does the /home/patjk/public_html/speedsolving/wiki/images/thumb directory already exist? If so, is it writable by the web server? ☠MarkAHershberger☢(talk)☣ 13:56, 2 January 2013 (UTC)
- Actually, http://www.speedsolving.com/wiki/images/thumb/d/d2/ is already there with a couple of sub-directories already. What permissions does /home/patjk/public_html/speedsolving/wiki/images/thumb/d/d2 have? ☠MarkAHershberger☢(talk)☣ 13:57, 2 January 2013 (UTC)
- /thumb/ is 777. /d2 is 755. 115.87.86.30 12:52, 4 January 2013 (UTC)
- Thanks, but who owns /thumb/ and /d2 ? What user does the webserver run as? If /d2 is not owned by that user, then the errors make sense. Maybe try chmoding /d2 to 777? ☠MarkAHershberger☢(talk)☣ 15:56, 4 January 2013 (UTC)
- They are both owned by the user. I CHMOD to 777 and it fixed the error. Why did the error happen only on the /d2 directory but not others? I don't want to have this error come up again and have to CHMOD each time. Thanks. 202.47.230.22 16:11, 8 January 2013 (UTC)
- I don't know why this error happened there. Is it possible you ran some script as a shell user? That may have caused the permission problems.
- If this problem pops up again, then there is another problem.
- You say the it works now. Is the /d2 directory owned by a different user than the /d2/Scrble3x3.PNG directory and file? ☠MarkAHershberger☢(talk)☣ 16:37, 8 January 2013 (UTC)
- They are both owned by the user. I CHMOD to 777 and it fixed the error. Why did the error happen only on the /d2 directory but not others? I don't want to have this error come up again and have to CHMOD each time. Thanks. 202.47.230.22 16:11, 8 January 2013 (UTC)
- Thanks, but who owns /thumb/ and /d2 ? What user does the webserver run as? If /d2 is not owned by that user, then the errors make sense. Maybe try chmoding /d2 to 777? ☠MarkAHershberger☢(talk)☣ 15:56, 4 January 2013 (UTC)
- /thumb/ is 777. /d2 is 755. 115.87.86.30 12:52, 4 January 2013 (UTC)
- Actually, http://www.speedsolving.com/wiki/images/thumb/d/d2/ is already there with a couple of sub-directories already. What permissions does /home/patjk/public_html/speedsolving/wiki/images/thumb/d/d2 have? ☠MarkAHershberger☢(talk)☣ 13:57, 2 January 2013 (UTC)
Customizing Extension:WikiLove
How do I change the icon for WikiLove and change the colors used in the barnstars?
The heart is hardly appropriate for the grimdarkness of the 41st millennium and the default colors are too bright for the dark layout. I tried customizing it the way that it says on the page, but it didn't work. Lieutenant Aleksandr Reznov 17:14, 2 January 2013 (UTC)
- Two questions:
- Are you customizing it for just yourself or an entire wiki?
- Do you have shell access on the server that runs the wiki?
- You can customize it no matter what your answers to these questions are, but they determine what the best way to customize it is. Kaldari (talk) 22:33, 3 January 2013 (UTC)
- I'm trying to customize it for the entire wiki, so that whenever someone adds a barnstar, it will be the colors that I set.
- I have shell access, but I normally just use FTP. Isn't it possible though to change the appearance from the wiki? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:16, 4 January 2013 (UTC)
- What should I do to customize it? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 22:39, 4 January 2013 (UTC)
- Customizing the WikiLove interface and the awards are handled differently. First, the easiest one...
- If you want to change the heart icon to black, for example, add something like the following to your MediaWiki:Common.css (or the specific skin equivalent):
#ca-wikilove.icon a { background-image: url("/extensions/WikiLove/modules/ext.wikiLove/images/heart-icons-black.png"); }
- The exact URL will depend on your wiki's URL scheme. For example, on WMF wikis, there would be a '/w' before the '/extensions'. Since you have shell access, you could also go in and edit the CSS file directly:
- /extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.icon.css
- Other interface components can be changed with a similar approach. Kaldari (talk) 06:08, 5 January 2013 (UTC)
- Thanks. On mouseover, it seems to disappear. Do you know how I fix this? Also, when I add it to common.css on sturmkrieg.de, it causes the vector.css page to stop loading. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 14:38, 5 January 2013 (UTC)
- That probably indicates some conflict or error in your css. Could you point me to your wiki so I can look? ☠MarkAHershberger☢(talk)☣ 14:44, 5 January 2013 (UTC)
- sturmkrieg.de
- The wiki where it works is en.sturmkrieg.com ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 15:24, 5 January 2013 (UTC)
- Thanks. I've tried to create an account there. What do I need to mouse-over to see the problem? ☠MarkAHershberger☢(talk)☣ 15:40, 5 January 2013 (UTC)
- I approved it. You can go to any user page, user talk page, or subpage of either to see the button for WikiLove. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 15:47, 5 January 2013 (UTC)
- The problem is a the following CSS:
#ca-wikilove.icon a:hover, #ca-wikilove.icon a:focus {
background-position: -19px 60%;
}
- I fixed it in my own CSS by using:
#ca-wikilove.icon a:hover, #ca-wikilove.icon a:focus {
background-position: 5px 60% !important;
}
- You should probably do something like that for MediaWiki:Common.css ☠MarkAHershberger☢(talk)☣ 16:38, 5 January 2013 (UTC)
- I'm using this:
#ca-wikilove.icon a, #ca-wikilove.icon a:hover { background-image: url("http://upload.wikimedia.org/wikipedia/commons/3/3a/Feedback_red_star.png"); background-position: 5px 60% !important; }
- And now it doesn't work after clicking on it. It shows the box, but it doesn't show any of the barnstars of any of that stuff. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:25, 5 January 2013 (UTC)
- I think this list needs to be populated in using some modifications to MediaWiki:WikiLove.js like Ryan said. ☠MarkAHershberger☢(talk)☣ 17:59, 5 January 2013 (UTC)
- I'll try it, but it worked before, so it should be able to still get what it needs from the files. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:10, 5 January 2013 (UTC)
- Actually, looking at your WikiLove.js page, you are completely overwriting all the default options. Instead of
$.wikiLoveOptions = {
defaultBackgroundColor: '#151515',
defaultBorderColor: '#FF0000',
}
- you want to use something like
$.wikiLoveOptions.defaultBackgroundColor = '#151515';
$.wikiLoveOptions.defaultBorderColor = '#FF0000';
- In other words, look at MediaWiki:WikiLove.js on enwiki for how to make smaller changes. If you want to overwrite everything, you'll need to refer to the work that commons has done. ☠MarkAHershberger☢(talk)☣ 18:10, 5 January 2013 (UTC)
- I think this list needs to be populated in using some modifications to MediaWiki:WikiLove.js like Ryan said. ☠MarkAHershberger☢(talk)☣ 17:59, 5 January 2013 (UTC)
- I approved it. You can go to any user page, user talk page, or subpage of either to see the button for WikiLove. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 15:47, 5 January 2013 (UTC)
- Thanks. I've tried to create an account there. What do I need to mouse-over to see the problem? ☠MarkAHershberger☢(talk)☣ 15:40, 5 January 2013 (UTC)
- That probably indicates some conflict or error in your css. Could you point me to your wiki so I can look? ☠MarkAHershberger☢(talk)☣ 14:44, 5 January 2013 (UTC)
- Thanks. On mouseover, it seems to disappear. Do you know how I fix this? Also, when I add it to common.css on sturmkrieg.de, it causes the vector.css page to stop loading. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 14:38, 5 January 2013 (UTC)
- To change the items and awards that are available, you have two options. You can use your shell access to edit the file:
- /extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
- ...or you can edit MediaWiki:WikiLove.js on your wiki to change the items from the defaults. For example, if you wanted to change the image for the Original Barnstar, you would add a line like:
mw.loader.using( 'ext.wikiLove.defaultOptions', function() { $.wikiLoveOptions.types.barnstar.subtypes.original.image = 'Star icon.png'; } );
- Instructions for more significant changes can be found at WikiLove#How_to_customize, while an explanation of all the properties that you can set can be found at Extension:WikiLove#Custom configuration. I would also recommend taking a look at some examples of custom WikiLove configurations already in use: Malayalam Wikipedia, English Wikipedia, Wikimedia Commons. Kaldari (talk) 06:31, 5 January 2013 (UTC)
- What should I do to customize it? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 22:39, 4 January 2013 (UTC)
How do I add an additional type?
this is what I have:
// $.wikiLoveOptions.defaultBackgroundColor = '#151515'; $.wikiLoveOptions.defaultBorderColor = '#FF0000'; // Medals $.wikiloveOptions.types.medals = { name: 'Medals', select: 'Select a medal', subtypes: 'example' }; $.wikiLoveOptions.types.medals.subtypes.example = { fields: [ 'header', 'message' ], // fields to ask for in form option: 'Example Medal', // option listed in the select list descr: 'This is an example medal. Glory to the Emperor!', header: 'You have been awarded a medal, glorious adept of the Emperor', // header that appears at the top of the talk page post (optional) image: 'sternkreuz.png', // image for the item imageSize: '120px' // size to display image (optional) }; //
I'm trying to add a section for medals. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:40, 5 January 2013 (UTC)
- You have at least one typo that may be causing this:
$.wikiloveOptions.types.medals = {
- The "l" should be capitalized:
$.wikiLoveOptions.types.medals = {
☠MarkAHershberger☢(talk)☣ 19:54, 5 January 2013 (UTC)- Thanks. How should I do subtypes?
- Should it be
subtypes: { 'example' }
- or
subtypes = { 'example' }
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:05, 5 January 2013 (UTC)- It turns out I had to define each of the subtypes within the code for the type, probably since it's a whole new series of them, and not an alteration to what already exists. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:52, 5 January 2013 (UTC)
- Excellent! Glad you figured it out. Could you update the documentation that Kaldari pointed you to with anything that you find? ☠MarkAHershberger☢(talk)☣ 21:18, 5 January 2013 (UTC)
- It turns out I had to define each of the subtypes within the code for the type, probably since it's a whole new series of them, and not an alteration to what already exists. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:52, 5 January 2013 (UTC)
Gerrit amend remove a file
Hi, I recently added a patch to Gerrit for the BiblioPlus extension. By mistake I added the i18n file, which I shouldn't have. How do I amend the commit to remove this file from the commit? Thanks Karen Eddy (talk) 00:23, 3 January 2013 (UTC)
- See Git/Workflow Ciencia Al Poder (talk) 10:27, 3 January 2013 (UTC)
[RESOLVED] Error generating Thumbnail: Invalid Parameter -95
Hi,
I always get the error "Error generating Thumbnail: Invalid Parameter -95" for any image displayed as a thumbnail (e.g. in the gallery or the file list) If I use the "direct-link" to the file it's all fine and I can use them in articles as an embedded image, but not as Thumbnail. Any ideas?
Thanks! Voege11 (talk) 14:37, 3 January 2013 (UTC)
- url?
- Also, sounds like an ImageMagick problem, so if you have command line access what does "convert -version" give you? ☠MarkAHershberger☢(talk)☣ 14:51, 3 January 2013 (UTC)
- Sorry I forgot to say that the webserver is IIS7.5 on a windows machine.
- I already fixed the problem, that was caused by myself.
- I simply disabled $wgUseImageMagick in the LocalSettings.php (which I obviously enabled before)..
- Now it works fine.
- Thank you for your help anyways! Voege11 (talk) 15:14, 3 January 2013 (UTC)
[RESOLVED] Pages not appearing in Categories
Hi,
Were running a slightly old version of mediawiki
Product Version MediaWiki 1.16.2 PHP 5.1.6 (apache2handler) MySQL 5.0.77
And have been having some issues for a while now, we use Categories as a sole method of organising the wiki pages into a logical structure, adding tags to the bottom of pages such as [[Category:testing_software]], but we have noticed that some pages do not appear within the categories page after saving the page. These new pages only appear to users who have logged into the wiki.
e.g, if i create a new page called "test" and add the tag "[[Category:testing_software]]" to the bottom of the page, you would expect it to appear on the WIKIURL/wiki/index.php/Category:testing_software page with the rest of the pages containing this tag. But if a user is visiting the site as a guest (not logged in), they will not see this page on the WIKIURL/wiki/index.php/Category:testing_software page until they log in. However, they can see the page if they visit the URL directly (e.g. WIKIURL/wiki/index.php/test
Anyone seen this behaviour before, if so any idea how to fix it :)
Regards,
Aaron 151.170.240.10 (talk) 16:00, 3 January 2013 (UTC)
- First, you should definitely consider upgrading to the latest version of 1.19 which will be supported for the next couple of years -- Security fixes are no longer provided for 1.16.
- Second, is there a URL for your wiki? It sounds like you are running a public one and that would help with diagnosing the problems.
- Otherwise, what extensions do you have installed? ☠MarkAHershberger☢(talk)☣ 17:12, 3 January 2013 (UTC)
- Were in the process of upgrading, but its in the hands of our IT Security staff to approve the software before upgrading (slow is the word of the day)...
- Alas, its a private Wiki run only on our internal network, so i cant give anyone external access to check on these things.
- As for installed plugins;
- PdfExport (Version 2.4.1 (2011-01-29))
- SyntaxHighlight (Version 1.0.8.10)
- FCKeditor (Version 1.0.1)
- Thats all... 151.170.240.10 10:00, 4 January 2013 (UTC)
- I agree with Ciencia Al Poder, it sounds like a caching problem.
- Also, if you upgrade, you should be aware that FCKeditor is no longer supported. I'm trying to work with the WMF devs to figure out a solution, though. ☠MarkAHershberger☢(talk)☣ 15:49, 4 January 2013 (UTC)
- This may be a caching problem. Have you tried purging the page while not logged in? Ciencia Al Poder (talk) 10:32, 4 January 2013 (UTC)
- Bingo, Cache purge was the issue... I had no idea MediaWiki even had a cache... time to start looking into that, either disabling it or tuning it to work better. 151.170.240.10 09:38, 7 January 2013 (UTC)
- Are there any better caching solutions out there (plugins) or a way to better tune the cache with a lower TTL, the inbuilt one seems to not re-cache pages for about a month ! 151.170.240.10 11:11, 7 January 2013 (UTC)
- If you really are upgrading, I think you'll see caching improve in newer versions. Otherwise, there is a FAQ: How do I completely disable caching? and documentation for how to improve caching. ☠MarkAHershberger☢(talk)☣ 14:27, 7 January 2013 (UTC)
- Are there any better caching solutions out there (plugins) or a way to better tune the cache with a lower TTL, the inbuilt one seems to not re-cache pages for about a month ! 151.170.240.10 11:11, 7 January 2013 (UTC)
- Bingo, Cache purge was the issue... I had no idea MediaWiki even had a cache... time to start looking into that, either disabling it or tuning it to work better. 151.170.240.10 09:38, 7 January 2013 (UTC)
IPv6 issue
I'm using the latest MediaWiki (tried both 1.20.2 and 1.21alpha from git). I have clients that have IPv6 enabled and cannot turn IPv6 off (e.g. on iPads and Android tablets).
When an IPv6 client connects I get an error: Unable to determine IP with backtrace to WebRequest->getIP() in User.php. I was able to trace it down to the IP::canonicalize() function returning null. When I print the content of the $addr value passed to the function I get a IPv6 address like this: [2001:6a8:2900:5001:...]. I immediately suspected the surrounding square brackets are the culprit, because I did not see them in the regex expressions at the start of IP.php. When I add them to the RE_IPV6_ADD, MediaWiki stops complaining, so it must be related to the square brackets somehow.
In order to make this work I also added lines to IP::canonicalize() to remove the square brackets, because the code that add the ip talk links didn't like the brackets.
Best regards,
Kris Dekeyser Kris Dekeyser (talk) 19:15, 3 January 2013 (UTC)
[RESOLVED] Is it possible to export database tables by prefix?
I'm wondering if I can start wikis under a shared database, and if they get large, export the tables and move them to their own database. Lieutenant Aleksandr Reznov 21:52, 3 January 2013 (UTC)
- yes, that should work. You would, of course, have to update your LocalSettings.php, but that should be all that is required. ☠MarkAHershberger☢(talk)☣ 22:01, 3 January 2013 (UTC)
- Thanks. Do you know what the process would be to export tables by prefix? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 22:04, 3 January 2013 (UTC)
- If you can do a little shell scripting, it shouldn't be that hard. I may be able to help you come up with something if you need that. ☠MarkAHershberger☢(talk)☣ 22:11, 3 January 2013 (UTC)
- A couple of hints:
- If you look at the LocalSettings.php for a wiki, find the setting for $wgDBprefix and then use the following command, substituting the value of $wgDBprefix for PREFIX:
echo "show tables like 'PREFIX%'" | mysql wikidb -u root | tail -n +2 > tables.txt
- Then you can use mysqldump to create a dump file of that wiki's database tables:
cat tables.txt | xargs mysqldump wikidb > dump.sql
- Use the dump file to create a database on the new server:
mysql newWikidb < dump.sql
☠MarkAHershberger☢(talk)☣ 01:17, 4 January 2013 (UTC)- Thanks. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:37, 4 January 2013 (UTC)
- Thanks. Do you know what the process would be to export tables by prefix? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 22:04, 3 January 2013 (UTC)
Thanks for the software, but I'm out. There's just too much spam and hacking.
I've been running MediaWiki for years and really liked the concept, but two weeks ago I had to uninstall it. Even with edits locked down, spammers just keep finding holes and ways of filling up the database with 200,000 keyword pages. (which Google promptly ignores, but chews 3 gigabytes of outgoing bandwidth a day. I shudder to think how much bandwidth is consumed by forgotten installations)
Yes, I was running the latest version (as provided by Dreamhost) and this is actually the third time the Wiki has been destroyed by spam, not including when it was cracked and modified every PHP script on my site.
In short, MediaWiki has chewed up weeks of my time for little reward over static web pages, and isn't getting better. I can't do it anymore. But I figured I at least owed you an explanation why. If you're going to distribute content-management software, a slight focus on security (or at least, detecting and managing common abuse) might be helpful. You have become a major target of attack in the modern software ecology. Evolve. 124.171.195.43 (talk) 22:42, 3 January 2013 (UTC)
- You don't say if you wanted a wiki or a CMS or what configuration changes you made, so I'll assume you just installed it and expected it to remain spam-free.
- There are extensions to help you control spam: Extension:ConfirmEdit and Extension:SpamBlacklist are a couple. The manual page for combating spam also has pointers.
- As far as people hacking into the software, did you keep up to date with the latest security fixes? There have been problems in the past, but they've been fixed.
- Finally, if you want a CMS, it is true that we often advise people that MediaWiki is not a CMS, but we also have a manual page for that use case. I've successfully used MediaWiki as a CMS for a small site that I run.
- If you install a wiki with its default settings, though, you should be aware of the underlying philosophy of the wiki: Anyone can edit. ☠MarkAHershberger☢(talk)☣ 23:40, 3 January 2013 (UTC)
- Spam problems are usually pretty severe with all wikis. Using abuse filter and importing various filters to prevent spam is extremely effective. If you have a really serious problem, you can try installing Confirm Account that allows authorized users approve the account creations of new users. I've been running it on multiple wikis without ConfirmEdit enabled on account requests, and I hardly ever get account requests by spammers.
- @Mark– So are you using MediaWiki as a non-wiki? Basically just using it to create a regular website? I was thinking about using it for sth like that. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:13, 4 January 2013 (UTC)
- Yes, that is just a small site set up to recognize the work of a modern Russian martyr. Sign ups are disabled and I'm the only one who can edit it. ☠MarkAHershberger☢(talk)☣ 00:22, 4 January 2013 (UTC)
- Explain "with editing locked down". If you mean only for anonymous users, that can't do much. If your wiki will not be publicly used much, see Manual:Preventing access. Make sure you have access to LocalSettings.php so you can install the aforementioned extensions. Jasper Deng (talk) 00:10, 4 January 2013 (UTC)
- I was worried about the version of MW that DreamHost is providing in their one-click install, so I went to set up a trial account and test it out: http://mw-test.dreamhosters.com/
- The version they provide, though, is relatively up-to-date: 1.19.2 when the latest 1.19 version (our LTS release) is 1.19.3. ☠MarkAHershberger☢(talk)☣ 00:17, 4 January 2013 (UTC)
- I've stopped using the auto installation features of webhosts. Most website programs aren't that hard to install, and I've frequently had errors result from using the auto installations. Plus they usually don't give nearly as many options, and if they auto create the database, they usually give it a nonsensical name. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:36, 4 January 2013 (UTC)
- But as long as auto-installation is provided (either by web-hosters or people like Debian), MW developers and distributors will still get the blame for what goes wrong. To mitigate this, I've started trying to work with them. ☠MarkAHershberger☢(talk)☣ 00:54, 4 January 2013 (UTC)
- Yeah, it's important to make sure it gets updated. I've noticed though that right after the updates are when it's most likely to fail. They seem to be good about keeping it up to date though. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:34, 4 January 2013 (UTC)
- Perhaps we should add a disclaimer to the top of the support desk page about these. Jasper Deng (talk) 02:36, 4 January 2013 (UTC)
- It might be worth doing, since I noticed that people seem to write crappy reviews on the application installation and information page when it doesn't go right because of the installer, yet works fine manually. Plus there's likely to be people who would just give up and assume that their server can't run if the auto installer doesn't do it right. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:42, 4 January 2013 (UTC)
- But as long as auto-installation is provided (either by web-hosters or people like Debian), MW developers and distributors will still get the blame for what goes wrong. To mitigate this, I've started trying to work with them. ☠MarkAHershberger☢(talk)☣ 00:54, 4 January 2013 (UTC)
- I've stopped using the auto installation features of webhosts. Most website programs aren't that hard to install, and I've frequently had errors result from using the auto installations. Plus they usually don't give nearly as many options, and if they auto create the database, they usually give it a nonsensical name. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:36, 4 January 2013 (UTC)
Ambox and Navbox giving me trouble.
http://innaveria.com/wiki/Template:Aonir
Note how that is so very different from...
http://en.wikipedia.org/wiki/Template:Navbox
...this. I have no idea what I am doing wrong. I imported the templates from Wikipedia, assuming I could just adjust the colors to my liking... but for some reason, it isn't quite working. Almost. Very very close, but it is still missing the border around it, the centering, and the colors. What am I missing here? Is it something in the common.css, or did I forget a template somewhere along the way?
Product Version
MediaWiki 1.20alpha
PHP 5.3.15 (cgi-fcgi)
MySQL 5.5.23-55 70.63.125.2 (talk) 23:45, 3 January 2013 (UTC)
- Well, the template does say it is fairly complex. I looked at http://innaveria.com/wiki/Template:Navbox and http://innaveria.com/wiki/Template:Aonir on your site and it only listed a few templates that you'd imported:
- Template:Fmbox
- Template:Template other
- (I'm excluding all the documentation templates.)
- The enwiki site includes a number of other templates:
- Template:Clear
- Template:Fmbox
- Template:Hatnote
- Template:High-risk
- Template:Loop15
- Template:Main
- ...
- and you'll need to import all of them. Use https://en.wikipedia.org/wiki/Special:Export?pages=Template:Navbox&curonly=1&templates=1&wpDownload=1 to get an xml file that contains all of them that you can then import at http://innaveria.com/wiki/Special:Import ☠MarkAHershberger☢(talk)☣ 00:49, 4 January 2013 (UTC)
- Hello,
- Thanks your assistance. I imported that XML file, but with no change. Any other ideas? <3 74.124.160.211 03:30, 4 January 2013 (UTC)
- Same user here. Not to double-post rudely, but just to check, would this have anything to do with Tidy? I have noticed it being brought up quite a lot, and have never quite understood how to enable it. 74.124.160.211 03:40, 4 January 2013 (UTC)
- I think "Tidy" is already enabled. iXavier (talk) 03:42, 4 January 2013 (UTC)
- No, it looks like it isn't.
- In LocalSettings.php (if you can access it), add
$wgUseTidy = true;
to the end of the file. iXavier (talk) 03:44, 4 January 2013 (UTC)- I can access it. Added it to the end of the file, but nothing. Does some sort of Tidy app have to be installed somewhere? HostGator says they already have it on their servers, which is my host. 74.124.160.211 03:50, 4 January 2013 (UTC)
- Looks like it's the fault of the custom skin.
- http://innaveria.com/wiki/Template:Aonir?useskin=vector
- That works just fine. But your skin doesn't show it right. :/ iXavier (talk) 03:59, 4 January 2013 (UTC)
- I can access it. Added it to the end of the file, but nothing. Does some sort of Tidy app have to be installed somewhere? HostGator says they already have it on their servers, which is my host. 74.124.160.211 03:50, 4 January 2013 (UTC)
- I think "Tidy" is already enabled. iXavier (talk) 03:42, 4 January 2013 (UTC)
- Tidy shouldn't have anything to do with it. I don't see that the file has been imported. I would expect the https://en.wikipedia.org/wiki/Template:Oldid?action=edit to matchs those on http://innaveria.com/wiki/Template:Oldid?action=edit but they don't. ☠MarkAHershberger☢(talk)☣ 04:16, 4 January 2013 (UTC)
- Huh, nice catch that it works fine with the other themes. Odd. This is a custom theme roughly converted from Wordpress, so maybe something is teasing it.
- And yeah, I double-checked on that, Mark. All the missing templates are there, and have the correct code in them. I even redid all the missing ones. They still just don't show up. 74.124.160.211 04:56, 4 January 2013 (UTC)
- Same user here. Not to double-post rudely, but just to check, would this have anything to do with Tidy? I have noticed it being brought up quite a lot, and have never quite understood how to enable it. 74.124.160.211 03:40, 4 January 2013 (UTC)
Will MW 1.16 work on the latest stable PHP version?
I still run on PHP 5.2.4 and want my host to upgrade it so I can install the latest MW version. But will MW 1.16 continue to work in the meantime on latest PHP? Subfader (talk) 11:35, 4 January 2013 (UTC)
- I'm using the following on my Debian box:
$ php -v
PHP 5.4.4-10 (cli) (built: Nov 24 2012 11:21:26)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
$
- and just installed MW 1.16.5. It appears to be running with no problem.
- But, yes, if you can get them to upgrade, you should be running the latest 1.19. ☠MarkAHershberger☢(talk)☣ 15:44, 4 January 2013 (UTC)
What are criterias for article counter?
So I create a new article, but article counter shows always 2, but I have created at least 5 articles. What are criterias for article count. Why doesn't count my new created articles? I use: MediaWiki 1.19.3 PHP 5.2.17 (apache2handler) MySQL 5.1.48-log Fokebox (talk) 22:21, 4 January 2013 (UTC)
- This is what MediaWiki calls "an article": Manual:Article. Ciencia Al Poder (talk) 13:51, 5 January 2013 (UTC)
- Yes I've read this ... but counter works not correct. I used $wgUseCommaCount = true and it showed a correct number of articles (4), than I add new article and it stops to count. I deleted all articles it showed 4 articles! I don't know what to do! Fokebox (talk) 16:16, 5 January 2013 (UTC)
- See $wgArticleCountMethod and note that changing the methods of counting won't change anything retroactively. Maybe you'll need to set up a cron job for maintenance/updateArticleCount.php on a semi-regular basis (though this is just a guess on my part). ☠MarkAHershberger☢(talk)☣ 17:07, 5 January 2013 (UTC)
- Yes I've read this ... but counter works not correct. I used $wgUseCommaCount = true and it showed a correct number of articles (4), than I add new article and it stops to count. I deleted all articles it showed 4 articles! I don't know what to do! Fokebox (talk) 16:16, 5 January 2013 (UTC)
search result can be grouped by category
Hi, i am wondering whether the search result can be grouped by category? or allow user to filter yhe search result by category? Now the result can only filtered by namespace. Please advice. thanks. 59.148.85.23 (talk) 01:28, 5 January 2013 (UTC)
- This is something we critically need as well. Any suggested work-arounds for the MediaWiki search limitations? 137.69.117.58 20:02, 19 February 2013 (UTC)
ImageMagick ignores real max width of image
Tested on 1.15 and 1.17.
- fastpic.ru
- fastpic.ru netsu 02:04, 5 January 2013 (UTC)
- Intended behaviour. ;-) 88.130.123.155 04:46, 5 January 2013 (UTC)
- lol with GD similar behaviour. It is because I'm not specify option thumb
- [[Файл:Tabulat.jpg|900px|thumb]] in image attr "width" = real width (836px)
- [[Файл:Tabulat.jpg|900px]] in image attr width="900px"
- I don't understand why someone need to show image with dimensions more than original. Interesting how developers explain this functional. Netsu (talk) 17:00, 5 January 2013 (UTC)
- There are several use cases for upscaling. I am sure you could also do some upscaling with GDlib or ImageMagick, but it won't improve quality either. ;-) 88.130.123.155 17:15, 5 January 2013 (UTC)
- fixed lol
- Netsu (talk) 19:04, 5 January 2013 (UTC)
$("img").each(function(){ var img = $(this); var pic_real_width, pic_real_height; $("<img/>") // Make in memory copy of image to avoid css issues .attr("src", $(img).attr("src")) .load(function() { pic_real_width = this.width; // Note: $(this).width() will not pic_real_height = this.height; // work for in memory images. if (pic_real_width > 810) { pic_cur_height = Math.floor((pic_real_height * 810) / pic_real_width); pic_cur_width = 810; } else if ($(img).attr("width") > pic_real_width) { pic_cur_width = pic_real_width; pic_cur_height = pic_real_height; } else return true; $(img).attr("width", pic_cur_width); $(img).attr("height", pic_cur_height); }); });
- There are several use cases for upscaling. I am sure you could also do some upscaling with GDlib or ImageMagick, but it won't improve quality either. ;-) 88.130.123.155 17:15, 5 January 2013 (UTC)
MediaWiki 1.20 internal error
- MediaWiki 1.20.2
- PHP 5.3
- MySQL 5.1
- URL : http://www.cinemancie.com
Good afternoon.
Following the update of MediaWiki 1.19 to 1.20.2. I meet minor discomfort. During the installation, MediaWiki informed me that the version of PHP that I did use was obsolete. I use the OVH hosting services, so I added (as described in one of their guides) the following line in the file .htacess: "SetEnv PHP_VER 5_3" which replaces the previous "SetEnv PHP_VER 5".
I also replaced in the LocalSettings.php file, the value "$ wgScriptExtension" that was ".php5" by ".php".
After that, I continued the process of updating which is normally held, then everything worked.
However, following the extension change, access to the site from the search engines or visitors bookmarks no longer work.
So I guess the cause of this problem is the change of extension, I also presented a time, the value of the extension ".php5" the consequences being a call to order on MediaWiki using an outdated version of PHP (because then I would use version 5.2.17. less than recommended by MediaWiki 5.3.2.)
I do not know therefore how to ensure that visitors have access to my site while providing a functional site.
Thank you in advance for your help, Best.
DD Dimitri Dimitriadès (talk) 14:56, 5 January 2013 (UTC)
- It looks like your host is using Apache. Can you create an .htaccess file in your wiki directory with the following line?
Redirect permanent /index.php5 http://www.cinemancie.com/
☠MarkAHershberger☢(talk)☣ 15:25, 5 January 2013 (UTC)- Hi Mark,
- Many thanks for your quick answer,
- The problem is resolved.
- Merci.
- D.D. Dimitri Dimitriadès (talk) 18:31, 5 January 2013 (UTC)
[RESOLVED] Is there a way that I can tell Google to give priority to the main namespace?
I recently added a robots.txt that tells bots not to index the pages with long URLs, and it seems to have helped when I recently did a search for site:en.sturmkrieg.com. Is there a way that I can give priority to pages that are in the main namespace? Lieutenant Aleksandr Reznov 15:29, 5 January 2013 (UTC)
- Yes, use a sitemap. See Manual:GenerateSitemap.php Ciencia Al Poder (talk) 15:36, 5 January 2013 (UTC)
- What do I do?
Creating a sitemap for Google Webmaster Tools:
|
- The second part makes more sense. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:51, 5 January 2013 (UTC)
- I think I got it. The first part is saying to make the folder sitemap. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:53, 5 January 2013 (UTC)
- To keep your sitemap current it might make sense to set that command as cron job and run it once a day. 88.130.123.155 18:00, 5 January 2013 (UTC)
- Thanks, that's a good idea. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:05, 5 January 2013 (UTC)
- I got this in the results email when I tried to setup a cron job:
- Cannot get command line arguments, register_argc_argv is set to false ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:04, 5 January 2013 (UTC)
- It seems to require the register_argc_argv directive to be set to "1" (it's the default) Ciencia Al Poder (talk) 10:29, 7 January 2013 (UTC)
- You should contact your host to see if you can get this changed. ☠MarkAHershberger☢(talk)☣ 14:22, 7 January 2013 (UTC)
- I already set that.
- At the end of php.ini it says
register_argc_argv=1
- There's also a file called php5.ini. Does it also need to go in there too?
- Both files are in the root of the server. Does there also need to be a .ini file in the folder for the subdomain? I don't think so, since none of the subdomains have them. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:48, 7 January 2013 (UTC)
- You already set register_argc_argv? did that fix the problem? If so, sorry, I thought it needed to be set only in php.ini.
- Where did you set it? ☠MarkAHershberger☢(talk)☣ 18:50, 7 January 2013 (UTC)
- I set it in php.ini, but there's also another file called php5.ini. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:56, 7 January 2013 (UTC)
- Is the problem resolved? Do cron jobs work now? ☠MarkAHershberger☢(talk)☣ 18:58, 7 January 2013 (UTC)
- I just added it to php5.ini also and now I'm waiting for the cron job to run to see if it works. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:11, 7 January 2013 (UTC)
- I didn't get an error email, but there's nothing in the sitemap folder.
- Maybe I didn't set the command for the cron job right?
- When I selected the file to run in the cron job setup menu, it created this command:
/web/cgi-bin/php5 "$HOME/html/en/maintenance/generateSitemap.php"
- Then I added this to the end of it for the settings:
--fspath sitemap \ --server http://en.sturmkrieg.com \ --urlpath http://en.sturmkrieg.com/sitemap
- Is that not how it is supposed to be done? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:25, 7 January 2013 (UTC)
- What happens when run this from the command line?
/web/cgi-bin/php5 "$HOME/html/en/maintenance/generateSitemap.php" \
--fspath sitemap --server http://en.sturmkrieg.com \
--urlpath http://en.sturmkrieg.com/sitemap
☠MarkAHershberger☢(talk)☣ 19:30, 7 January 2013 (UTC)- It says:
Cannot get command line arguments, register_argc_argv is set to false
Content-type: text/html
- I added
register_argc_argv=1
- to the end of both php.ini and php5.ini.
- Does it need to be added in a specific place, or does it just need to be set? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:38, 7 January 2013 (UTC)
- Is there another php5 under /usr/bin ? ☠MarkAHershberger☢(talk)☣ 19:52, 7 January 2013 (UTC)
- I don't see that folder. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:57, 7 January 2013 (UTC)
- Is there another php5 under /usr/bin ? ☠MarkAHershberger☢(talk)☣ 19:52, 7 January 2013 (UTC)
- Does there need to be a php.ini file for each subdomain? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:48, 7 January 2013 (UTC)
- I don't know anything about your hoster, but generally they would have a single php.ini. Where is the php.ini file you modified located? ☠MarkAHershberger☢(talk)☣ 19:51, 7 January 2013 (UTC)
- It's in the root of the server (/html/) and the wiki is under the en. subdomain (/en/). ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:58, 7 January 2013 (UTC)
- Run
/web/cgi-bin/php5 --ini
, it should tell you where the php.ini is located Ciencia Al Poder (talk) 20:06, 7 January 2013 (UTC)- Error in argument 1, char 1: no argument for option - ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:17, 7 January 2013 (UTC)
- Read the link I've provided. It describes the php command line arguments. You can either use the
-d
option to define the php.ini directive that's failing or the-c
option to tell what php.ini it should use. Ciencia Al Poder (talk) 10:24, 8 January 2013 (UTC)- How do I include the options?
- I just did
php -c /web/cgi-bin/php5 --ini
- I got
PHP: syntax error, unexpected '(' in /web/cgi-bin/php5 on line 1
Configuration File (php.ini) Path: /web/conf
Loaded Configuration File: /web/cgi-bin/php5
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 16:12, 8 January 2013 (UTC)- When you did
php -c /web/cgi-bin/php5 --ini
- you didn't use the
-c
argument to point to an ini file. Try doing just this: php --ini
☠MarkAHershberger☢(talk)☣ 17:03, 8 January 2013 (UTC)- I got this:
PHP Deprecated: Comments starting with '#' are deprecated in /web/conf/php5.ini on line 1256 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /web/conf/php5.ini on line 1257 in Unknown on line 0
Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
Configuration File (php.ini) Path: /web/conf
Loaded Configuration File: /web/conf/php5.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:07, 8 January 2013 (UTC)- Interesting. Is
/web/conf/php5.ini
where you made your modifications? - What does
type php5
give you? - Whatever it gives you should probably be the php5 you put in your cronjob. Referring back to this, what does
php5 "$HOME/html/en/maintenance/generateSitemap.php" \
--fspath sitemap --server http://en.sturmkrieg.com \
--urlpath http://en.sturmkrieg.com/sitemap
- give you? ☠MarkAHershberger☢(talk)☣ 18:36, 8 January 2013 (UTC)
- When I ran that, it gave
php5: command not found
- When I ran it again with php instead of php5, I got this:
PHP Deprecated: Comments starting with '#' are deprecated in /web/conf/php5.ini on line 1256 in Unknown on line 0 PHP Deprecated: Comments starting with '#' are deprecated in /web/conf/php5.ini on line 1257 in Unknown on line 0 Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 0 () /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_0-0.xml.gz 1 (Talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_1-0.xml.gz 2 (User) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_2-0.xml.gz 3 (User talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_3-0.xml.gz 4 (Sturmkrieg) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_4-0.xml.gz 5 (Sturmkrieg talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_5-0.xml.gz 6 (File) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_6-0.xml.gz 7 (File talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_7-0.xml.gz 8 (MediaWiki) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_8-0.xml.gz 9 (MediaWiki talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_9-0.xml.gz 10 (Template) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_10-0.xml.gz 12 (Help) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_12-0.xml.gz 14 (Category) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_14-0.xml.gz 90 () /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_90-0.xml.gz 100 (Portal) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_100-0.xml.gz 101 (Portal talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_101-0.xml.gz 110 (Sysop) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_110-0.xml.gz 111 (Sysop talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_111-0.xml.gz 120 (Codex) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_120-0.xml.gz 121 (Codex talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_121-0.xml.gz 122 () /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_122-0.xml.gz 130 (Group) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_130-0.xml.gz 140 (Campaign) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_140-0.xml.gz 150 (Datasheet) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_150-0.xml.gz 160 (Army List) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_160-0.xml.gz 161 (Army List talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_161-0.xml.gz 170 (Forum) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_170-0.xml.gz 171 (Forum talk) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_171-0.xml.gz 180 (User Blog) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_180-0.xml.gz 200 () /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_200-0.xml.gz 274 (Widget) /home/content/01/7537801/sitemap/sitemap-stu1115307561944-mw_-NS_274-0.xml.gz
- It looks like it created it in the wrong place or something like that.
- Maybe replacing --fspath sitemap with something that would more clearly specify where the sitemap should go?
- Possibly something like
$HOME/html/en/sitemap/
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 22:12, 8 January 2013 (UTC)- Good to see that you're getting this far. Let me know when you have some success! ☠MarkAHershberger☢(talk)☣ 22:54, 8 January 2013 (UTC)
- The discussion continues below since LQT was getting too small. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:17, 9 January 2013 (UTC)
- Interesting. Is
- Read the link I've provided. It describes the php command line arguments. You can either use the
- Error in argument 1, char 1: no argument for option - ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:17, 7 January 2013 (UTC)
- Run
- It's in the root of the server (/html/) and the wiki is under the en. subdomain (/en/). ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:58, 7 January 2013 (UTC)
- I don't know anything about your hoster, but generally they would have a single php.ini. Where is the php.ini file you modified located? ☠MarkAHershberger☢(talk)☣ 19:51, 7 January 2013 (UTC)
- Is the problem resolved? Do cron jobs work now? ☠MarkAHershberger☢(talk)☣ 18:58, 7 January 2013 (UTC)
- I set it in php.ini, but there's also another file called php5.ini. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:56, 7 January 2013 (UTC)
- Thanks, that's a good idea. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:05, 5 January 2013 (UTC)
- To keep your sitemap current it might make sense to set that command as cron job and run it once a day. 88.130.123.155 18:00, 5 January 2013 (UTC)
- I think I got it. The first part is saying to make the folder sitemap. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:53, 5 January 2013 (UTC)
- The second part makes more sense. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:51, 5 January 2013 (UTC)
- I'm going to try using this extension until I can get the problem resolved. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 23:18, 7 January 2013 (UTC)
- This command was able to run it:
php "$HOME/html/en/maintenance/generateSitemap.php" --fspath $HOME/html/en/sitemap/ --server http://en.sturmkrieg.com --compress=no --urlpath http://en.sturmkrieg.com/sitemap
- It took a lot of fooling around with it until I figured out that I needed to remove the "\" from between the elements of the command.
- It has multiple files. How should I submit it? I use Google Webmaster Tools. There's a file for each namespace, and then there's one that has index in the name. Should I submit the URL to that file? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:16, 9 January 2013 (UTC)
- I would say "yes" but I don't really know that much about sitemaps. Try it and tell us what happens? ☠MarkAHershberger☢(talk)☣ 01:27, 9 January 2013 (UTC)
- I submitted the URL of the index file and it seems to work.
- Thanks for helping. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:22, 9 January 2013 (UTC)
- I would say "yes" but I don't really know that much about sitemaps. Try it and tell us what happens? ☠MarkAHershberger☢(talk)☣ 01:27, 9 January 2013 (UTC)
How to exclude stylesheets when printable=yes?
The printable=yes page (when not being printed/previewed) is still a media="screen" page. It seems like the media="screen" stylesheets should be excluded entirely no?
On second glance it looks like the skin CSS files are excluded when addStyle is handed a 'screen' page. But:
$out->addStyle( self::makeNSUrl( $this->getSkinName() . '.css', $query, NS_MEDIAWIKI ) );
Of includes/Skin.php does not pass a media variable. It seems like since there is a MediaWiki:Print.css page, that the skin override CSS (Eg. MediaWiki:Skin.css) should be 'screen' media.
Anyway, I made this change just now. So this is just a heads up in case this has not been fixed in the newest version. 184.21.215.174 (talk) 22:24, 5 January 2013 (UTC)
- The printable=yes page (when not being printed/previewed) is still a media="screen" page
- Well, the page is still being viewed on a screen, isn't it? :) That's why print preview exists. It just omits some styles to make it more printer-friendly.
- About MediaWiki:Print.css, it's purpose is to overrride styles applied to Common.css and Skinname.css, not to replace them, since most of those styles (on a heavily customized wiki) should apply anyway. Ciencia Al Poder (talk) 10:37, 9 January 2013 (UTC)
elevating my privledges?
I installed mediawiki-1.20.2. After it installed, anybody could add/delete/anything articles. so i created myself an account, but it is just an ordinary account. i want to make this account administrator who can say who is allowed to edit. how do i do this? is there a default admin, or does one have to be manually created? i heard something about adminsettings.php but this was apparently removed a few versions ago. can someone give me the answers i need or point me in the direction i must go? 122.148.86.157 (talk) 04:22, 6 January 2013 (UTC)
- Depending on how the wiki was installed, it should of created "User:Admin" during the install if this is true, the account should have Administrator and Bureaucrat default flags assigned to it. Further user rights can be configured, documentation can be found here: Manual:User rights. Mlpearc (powwow) 05:14, 6 January 2013 (UTC)
- The first username need not be Admin, but automated installers often do that. Jasper Deng (talk) 06:27, 7 January 2013 (UTC)
- If your user doesn't have bureaucrat rights, but you have shell access, the easiest thing to do is use maintenance/createAndPromote.php. ☠MarkAHershberger☢(talk)☣ 17:14, 6 January 2013 (UTC)
Bypassing the account creation rate
In Wikipedia trainings we need to create dozens of accounts for the trainees, and it is better if they can create themselves their account, but it is limited to 6 accounts/24h on WMF wikis.
Is there some way to bypass this limit, in a way which could be implemented on WMF wikis? an IP whitelisting?
Thanks ~ Seb35 [^_^] 23:15, 6 January 2013 (UTC)
- Anyone can request a bypass (example). I can do one on your behalf but I need the following information from you:
- starting date and time
- ending date and time
- IPs
- Wiki projects (enwiki? commons? hiwiki?)
- number of participants expected ☠MarkAHershberger☢(talk)☣ 23:36, 6 January 2013 (UTC)
- Thanks! I ask the IPs. ~ Seb35 11:52, 7 January 2013 (UTC)
Group and user permissions on mediawiki
I am working on setup a wiki which should have users and group having read or write permission. Before that we were using simple write to all methodology.
Now the challenge is this that i have created a 3 users and all of the 3 are able to write to wiki and update the page. Now what i what to do is that 2 users can write and one is able to view only.
I did a little bit R 'n' D but didn't success. Below were the things i did but didn't succeed.
By adding the below code in Localsettings.php 2 user can read [they are not able to edit] but one can write.
$wgGroupPermissions['Trusted'] = $wgGroupPermissions['user']; $wgGroupPermissions['user' ]['edit'] = false; $wgGroupPermissions['Trusted']['edit'] = true; $wgGroupPermissions['sysop' ]['edit'] = true;
Another thing i did.
INSERT INTO user_groups (ug_user, ug_group) VALUES ('3', 'bureaucrat'); INSERT INTO user_groups (ug_user, ug_group) VALUES ('3', 'sysop');
Assign bureaucrat and sysop rights to user whose id is 3 but nothing happen. Again userid 1 is able to edit but users having userid 3 again not able to edit, however both have same groups permissions now.
Please help me to resolve this issue.
Note :- I am using mediawiki 1.9.2 203.100.78.138 (talk) 07:23, 7 January 2013 (UTC)
- You should update your installation of MediaWiki. I recently helped upgrade a wiki from 1.11 to 1.19 and a lot of the things they had been doing to control access are now built into MW itself. If you would like help upgrading, please send me email. ☠MarkAHershberger☢(talk)☣ 14:21, 7 January 2013 (UTC)
- Thanks Mark for your update....
- I need to upgrade my wiki from 1.9.2 to 1.19 to enable these features...right !
- Can you please provide me your email...
- Appreciate for your help... 203.100.78.138 06:22, 8 January 2013 (UTC)
- (while Mark is free to do so, one's e-mail address is generally considered to be private on a wiki).
- Manual:Upgrading might provide a few tips but such a huge jump of versions might be quite complicated (although I have never performed such a huge jump myself so I cannot say how it goes). Jasper Deng (talk) 06:26, 8 January 2013 (UTC)
- The right place to send an email without giving it publicly is Special:EmailUser/MarkAHershberger ;) Ciencia Al Poder (talk) 10:32, 8 January 2013 (UTC)
- Thanks to Ciencia Al Poder for reminding me about Special:EmailUser/MarkAHershberger. But it looks like the original requester doesn't have an MW.o account and, as a result, cannot use that.
- My email address is easy to find, so I don't mind giving it here: mah@everybody.org ☠MarkAHershberger☢(talk)☣ 16:59, 8 January 2013 (UTC)
How to create two language mediawikis?
I want to setup a two lingual mediawiki but I am not sure how to act. At this moment I have two databases and two subdomains, each with a mediawiki install on it:
subdomain 1: English MediaWiki with its own database. subdomain 2: Dutch MediaWiki with its own database.
How must I proceed to let these two MediaWikis communicate with each other? The result that I want is that when you are on the English version you can go to related articles in Dutch and vice versa.
Thank you in advance for responding :-) Macqintosh (talk) 10:27, 7 January 2013 (UTC)
- See Interlanguage links. Ciencia Al Poder (talk) 10:38, 7 January 2013 (UTC)
Who added which section?
I'm looking for a way to find out which user added a certain part to our articles.
I found Extension:Annotation but unfortunately it's obsolete.
Any other ideas of how I can solve this?
Thanks in advance for your help! Stefahn (talk) 11:55, 7 January 2013 (UTC)
- There is always the article history. If you only want to do this once for a handful of pages, that is probably the best thing to do. If this is something you do regularly, then getting Extension:Annotation updated is probably the way to go. ☠MarkAHershberger☢(talk)☣ 14:17, 7 January 2013 (UTC)
Sidebar Usergroup-Permissions
Hi, is there any solution, hide some Quicklinks in the Sidebar, for several UserGroups?
Example:
UserGroup 1:
- Linkgroup 1
- Link 1
- Link 2
- Link 3
- Linkgroup 2
- Link 1
- Link 2
- Link 3
UserGroup 2:
- Linkgroup 2
- Link 1
- Link 2
- Link 3
I using MediaWiki 1.20.2
thx for your help 87.152.231.176 (talk) 13:30, 7 January 2013 (UTC)
- I have used Extension:DynamicSidebar to change what is in the sidebar for certain users or groups or even the page category. ☠MarkAHershberger☢(talk)☣ 14:10, 7 January 2013 (UTC)
- Thx for your help!
- This is i was looking for 87.152.230.27 09:37, 14 January 2013 (UTC)
Rename page title
Hi,
is there any solution, rename the title from an article. I dont want to use the URL-Name.
I using MediaWiki 1.20.2
thx for your help 87.152.231.176 (talk) 13:38, 7 January 2013 (UTC)
- I'm not sure what you mean. A page can be renamed, see Help:Moving a page.
- Does that answer your question? Krinkle (talk) 13:54, 7 January 2013 (UTC)
- Besides moving page, there is also DISPLAYTITLE (see $wgAllowDisplayTitle) which will let you change the case of a title. ☠MarkAHershberger☢(talk)☣ 14:08, 7 January 2013 (UTC)
- Thx for your help,
- i tried the "DISPLAYTITLE" solution. This is i was looking for. It dosen't worked, at the first time. But i feel certain, to find the mistake.
- thx again 87.152.229.83 09:19, 8 January 2013 (UTC)
[RESOLVED] Query for images with multiple titles doesnt work
When i ask Wiki Api to provide images for each title it just returns images for 1st specified title.
returns info for each page but images only for 1st. Why? 213.137.240.147 (talk) 15:40, 7 January 2013 (UTC)
- You need to use the continue information to get more. See this result which I got by adding "&imcontinue=15526|Doom_ingame_1.png" to your query string.
- I found the imcontinue part by looking at the query-continue section from your result.
- You can also get more results per query by adding changing the imlimit parameter. your query with imlimit=500. ☠MarkAHershberger☢(talk)☣ 15:50, 7 January 2013 (UTC)
- Great! Thanks you a lot!
- Not intuitive thing for me ) I thought imlimit related to each title. 213.137.240.147 18:07, 10 January 2013 (UTC)
Main Page
Hi I am exploring Media Wiki to see if it will be useful to my company. I have made a username to further explore Media Wiki before downloading it and wanted to know how I can get my own Media Wiki Main page to edit and how you add different boxes to it? Jasmin1491 (talk) 16:53, 7 January 2013 (UTC)
- The only way to get your own "main page" is to install MediaWiki on your own system.
- If you just want to play around with syntax and the features available here, you can edit Sandbox ☠MarkAHershberger☢(talk)☣ 17:06, 7 January 2013 (UTC)
- Hi, you can have many wiki farms where you can build for free your own MediaWiki-based wiki. Some of them allow you to install yourself the MediaWiki software. As for definition, a "main page" is here to describe the wiki purpose and is not "yours". For that, you have your user page. For editing and adding boxes, see the help pages. Cheers. LIMAFOX76 (talk) 17:09, 7 January 2013 (UTC)
[RESOLVED] Skins not displaying on brand new installation.
I've installed a new MediaWiki instance Version 1.19.3 @ http://ti3wiki.org/wiki I'm using PHP 5.2 and MySQL 5.0 I have to use an older version of MediaWiki and PHP as they are required for some modules that will be installed later. I've not installed any of these modules. As you can see on the site the skin is not displaying correctly. I've tried previewing and and selecting all the default skins to no avail. I'm brand new to MediaWiki and at this point I've no idea what's wrong. I would appreciate any suggestions. GabrielMartin (talk) 21:29, 7 January 2013 (UTC)
- You have not uploaded all files of the MediaWiki installation. At http://ti3wiki.org/wiki/load.php there should be a PHP file, but there is none. Upload it! 88.130.121.154 00:14, 8 January 2013 (UTC)
- ah, yes I uploaded the .gz file and used the hosts ftp management interface. It decompressed into a subfolder and I did not realize there was 2 pages of files to move to the wiki root folder, thus leaving a few files behind. Thx a bunch for pointing me in the right direction. GabrielMartin (talk) 19:19, 8 January 2013 (UTC)
Problem getting Google to find sitemap
I just created a sitemap at en.sturmkrieg.com/sitemap.xml and added it with Google Webmaster Tools, but it gets a 404 error. I tried adding two lines to .htaccess since the problem could be getting redirected by the short url, but it didn't work; I could have just written it wrong.
RewriteCond %{REQUEST_URI} ^/sitemap.xml$ RewriteRule ^.*$ - [L]
I based it off of the code here for fixing the stats page of Dreamhost wikis, since it looks like it's fixing the problem of the URL being treated as a wiki page.
Did I guess the problem right? How would I go about fixing it?
en.sturmkrieg.com/robots.txt seems to be fine. Lieutenant Aleksandr Reznov 00:23, 8 January 2013 (UTC)
- Is the sitemap.xml file in the same directory or folder as the robots.txt file? What else is in your .htaccess file? ☠MarkAHershberger☢(talk)☣ 00:28, 8 January 2013 (UTC)
- Yes.
- I also have this:
RewriteRule .*\.ico$ - [L]
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(skins|stylesheets|images|config)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index|api|load).php
RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
- For the short URLs and enabling the favicon. I remember reading here that it's necessary to have that line to get the favicon to work with short URLs. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:31, 8 January 2013 (UTC)
- It looks like your web server might not even be seeing the rule for sitemap.xml.
- Try this:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
- The line that ends
!-f
should eliminate the need to special-case the ico file, sitemap file, and any other file that actually exists. - As a result, all other requests for page names and such should be handled by MediaWiki.
- In other words, the bit I've posted should be all you need in to handle short urls. ☠MarkAHershberger☢(talk)☣ 00:45, 8 January 2013 (UTC)
![]() |
Thank you! |
![]() |
- Would this make it possible to have another wiki in a subdirectory? Relocating en40k.sturmkrieg.com to en.sturmkrieg.com/40k/Page_title ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:30, 8 January 2013 (UTC)
- No. It would be a start, but you'd probably need another copy of MediaWiki in the 40k subdirectory. ☠MarkAHershberger☢(talk)☣ 01:39, 8 January 2013 (UTC)
- Does excluding pages from the sitemap mean that they won't appear in search results, or does it just make them not rank as high? I'm currently using the extension for sitemaps, at least until I get the problem with the scripts fixed. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:54, 8 January 2013 (UTC)
- I think you want to ask that in Google's webmaster support. I don't know the answer. ☠MarkAHershberger☢(talk)☣ 16:52, 8 January 2013 (UTC)
- Does excluding pages from the sitemap mean that they won't appear in search results, or does it just make them not rank as high? I'm currently using the extension for sitemaps, at least until I get the problem with the scripts fixed. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:54, 8 January 2013 (UTC)
- No. It would be a start, but you'd probably need another copy of MediaWiki in the 40k subdirectory. ☠MarkAHershberger☢(talk)☣ 01:39, 8 January 2013 (UTC)
- Would this make it possible to have another wiki in a subdirectory? Relocating en40k.sturmkrieg.com to en.sturmkrieg.com/40k/Page_title ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:30, 8 January 2013 (UTC)
Preventing certain page creation
I'm a newbie to MediaWiki, and I couldn't find this on the site. How do I make sure that certain pages (e.g. pages that get repeatedly created by spammers) that I delete can't get recreated by anyone (or at least sysops)? Shuvuuia (talk) 05:27, 8 January 2013 (UTC)
- Extension:TitleBlacklist, Extension:AbuseFilter or even Manual:$wgSpamRegex Ciencia Al Poder (talk) 10:30, 8 January 2013 (UTC)
Customize and configuring "create new page"
MediaWiki version: mediawiki 1.20.2 Question: how (if it is possible) to customize the "create new page" page to appear like a form and contains some more mandatory and optional fields and drop down menus ? for example, a drop down menu of the department the employee who posted the article belongs to, or a radio button of wither the article is confidential or not ... etc WGCCC (talk) 06:57, 8 January 2013 (UTC)
- I know of no extension that would provide this functionality. As for whether the article is confidential or not, MediaWiki isn't designed for that. Jasper Deng (talk) 07:27, 8 January 2013 (UTC)
- You're right that we usually discourage this sort of use of a wiki, but people have requested this so much that there is some limited access control in core.
- MW isn't designed for this use case, but it can be used this way if you have the will and the skill. ☠MarkAHershberger☢(talk)☣ 16:49, 8 January 2013 (UTC)
- Extension:Semantic Forms Ciencia Al Poder (talk) 10:33, 8 January 2013 (UTC)
How to incorporate existing skin into new page
Hi,
I have created my own php file and placed it in the mediawiki directory. This file has a simple form and it does some external database updates and lookup. The file is called when you click on a link i put in the wiki page.
I would like to know how i can make my custom page look like the rest of the mediawiki pages. I want to call the skin but don't know how to call it from the php file i created.
Any help would be appreciated.
i am using Mediawiki 1.20.0
Thanks, 117.192.152.25 (talk) 09:59, 8 January 2013 (UTC)
- You can try creating a new Special Page that is integrated into MediaWiki just like any other special page. See Manual:Special pages with instructions as how to create one. Ciencia Al Poder (talk) 10:36, 8 January 2013 (UTC)
my custom skin disappeared after upgrade to 1.20
MediaWiki 1.20.2
PHP 5.3.8 (cgi-fcgi)
MySQL 5.0.51b-community-nt
Server: IIS
- Upgraded from 1.15 to 1.20.2
- Copied existing skins folder to the new folder.
- My customized skin disappeared...looks like monobook replaced it.
- Clicking preferences link gets 500 error.
- $wgDefaultSkin is correct in localSettings (the name is claysterweb, that is the name of a folder within the Skins folder).
- The ClaysterWeb.php file is within the Skins/claysterweb folder.
- Placed requirement in localSettings: require_once( "$IP/skins/claysterweb/ClaysterWeb.php");
- Tried copying he ClaysterWeb.php file to the Skins folder. This broke login.
Can anyone advise me? Thank you very much.
Jeff Freund 85.229.192.213 (talk) 13:47, 8 January 2013 (UTC)
- Hi Jeff,
- normally a skin does not have to be called with require_once(); in LocalSettings.php. Remove that line again. The PHP file of the skin itself must be located in the folder skins/ directly (not in a subfolder like skins/claysterweb).
- What is the exact error message, which you get, when you place the file in the skins folder? You most likely have to do some adjustments to make the skin work with MW 1.20.
- E.g. to be able to use the new resource loader, you have to set $wgResourceModules just as it is done e.g. for Vector in resources/Ressources.php.
- And you will have to update the skin's PHP file; there might well be some functions, which are used in your version, but which are no longer there in MW 1.20.
- Without more information about the error 500 it is hard to say, if it is related to the skin. Check the error log to see the actual error message. 88.130.121.154 14:37, 8 January 2013 (UTC)
- Hi...thank you very much for responding...here's what I did/got:
- Removed line from requires
- Put clayster.php in Skins folder directly
- Ran update php in maintenance folder
- Tried login
- Got 500 error:
- MODULE_SET_RESPONSE_ERROR_STATUS
- ModuleName FastCgiModule
- Notification 128
- HttpStatus 500
- HttpReason MediaWiki exception
- HttpSubStatus 0
- ErrorCode 0
- ConfigExceptionInfo
- Notification EXECUTE_REQUEST_HANDLER
- ErrorCode The operation completed successfully. (0x0)
- Does that give you the info you need to help me??
- PS: Login is restored if I remove the PHP file of the skin from the Skins folder.
- Thanks again
- Jeff 85.229.192.213 17:52, 8 January 2013 (UTC)
- Does MW work if you don't log in? What does your error log show? ☠MarkAHershberger☢(talk)☣ 18:28, 8 January 2013 (UTC)
- What do mean "work if you don't login"...if I try to change pages after placing the PHP file of the skin in Skins folder, I get the 500 error logged as you see above...without the skin.php file...it all works fine but of course I can't get the custom skin.
- Thanks, Jeff 85.229.192.213 18:34, 8 January 2013 (UTC)
- What does your error log show?
- Would you mind posting the source of your skin somewhere (not here)? Maybe pastebin or something? ☠MarkAHershberger☢(talk)☣ 18:38, 8 January 2013 (UTC)
- Hi mark, ...the IIS error log shows only what you see posted above...not mush specifically...unfortunately I cannot share the source of the wiki. I know only that the FastCgiModule handles php requests.
- Unless you mean the actual skin.php file...I can place that somewhere (here?). 85.229.192.213 18:53, 8 January 2013 (UTC)
- I mean the contents of the actual php file for your skin. You could copy it to http://pastebin.com/ ☠MarkAHershberger☢(talk)☣ 19:05, 8 January 2013 (UTC)
- Great idea Mark...I just put it on pastebin...name is Jeff's skin.php file. Would be wonderful to understand what needs to be updated. Thank you. 85.229.192.213 19:37, 8 January 2013 (UTC)
- could you link directly to it here? I can't find any paste with that name. ☠MarkAHershberger☢(talk)☣ 19:43, 8 January 2013 (UTC)
- here you go:
- http://pastebin.com/aWKGsS6a
- does that work? 85.229.192.213 19:53, 8 January 2013 (UTC)
- yes, thanks! ☠MarkAHershberger☢(talk)☣ 19:54, 8 January 2013 (UTC)
- could you link directly to it here? I can't find any paste with that name. ☠MarkAHershberger☢(talk)☣ 19:43, 8 January 2013 (UTC)
- Great idea Mark...I just put it on pastebin...name is Jeff's skin.php file. Would be wonderful to understand what needs to be updated. Thank you. 85.229.192.213 19:37, 8 January 2013 (UTC)
- You could also put it in a sandbox page here, if you wanted. ☠MarkAHershberger☢(talk)☣ 19:06, 8 January 2013 (UTC)
- Mark...I Placed $wgShowExceptionDetails = true; at bottom of localSettings and got a more in depth trace when I tried the broken login (with Skin.php file in Skins folder)
- I posted the trace here (jeff's error trace):
- http://pastebin.com/D5ELZKNF
- Hope that helps.
- Thanks again, Jeff 85.229.192.213 21:25, 8 January 2013 (UTC)
- One of the problems you have is that "tooltipAndAccesskey" no longer exists as a method of the Skin class.
- Replacing it with tooltipAndAccesskeyAttribs should work. 88.130.121.154 21:50, 8 January 2013 (UTC)
- Great. I'll try it tomorrow...I'm on European time and must get to bed... Is there a way for me to check the components of the php file myself to know what is out of date? can't thank you enough for all the help. 85.229.192.213 22:10, 8 January 2013 (UTC)
- I don't know of an automated tool to check all the problems, but -- in addition to the
tooltipAndAccesskeyAttribs
difference -- I have had to add the following my LocalSettiings.php: $wgValidSkinNames['clayster'] = "Clayster";
$wgAutoLoadClasses['SkinClayster'] = "$IP/skins/Clayster.php";
$wgDefaultSkin = 'clayster';
- Note that I also had to change instances of "claysterweb" to "clayster".
- I'm still seeing logging messages like
Class SkinClayster not found; skipped loading
- but at least the login page is working. ☠MarkAHershberger☢(talk)☣ 22:52, 8 January 2013 (UTC)
- Hi mark...here's what I have tried so far:
- Tried changing $wgDefaultSkin = 'clayster'; to $wgDefaultSkin = 'claysterweb'; broke login.
- Changed the name of ClaysterWeb.php to clayster.php…logon is fine (with $wgDefaultSkin = 'clayster';)
- Changed the name of ClaysterWeb folder to clayster …logon is fine (with $wgDefaultSkin = 'clayster'; and ClaysterWeb.php as clayster.php)
- Changed the name of ClaysterWeb.php (in skins/clayster folder) to clayster.php…logon is fine (with $wgDefaultSkin = 'clayster';)
- substituted $wgDefaultSkin = 'clayster'; for $wgDefaultSkin = 'claysterweb'; login was fine but still didn’t get the custom skin up.
- $wgValidSkinNames['clayster'] = "Clayster”
- $wgAutoLoadClasses['SkinClayster'] = "$IP/skins/Clayster.php";
- The 2 above break login with/without ClaysterWeb.php directly in skins folder so I tried them with small letter C’s (after changing ClaysterWeb.php to clayster.php)…login was fine but still didn’t get the custom skin up.
- Preferences page is now restored… but I don’t know at what point that happened.
- I'm wondering two thigs at this point:
- The Main.css file is using Google fonts...perhaps this is incompatible??
- Perhaps I should simply start again with the monobook skin and re-make the custom skin...I would guess the monobook skin with the 1.2 installation would be correctly upgraded with the installation...yes??
- Thanks for all the attention,
- Jeff 85.229.192.213 15:24, 9 January 2013 (UTC)
- When you overwrote the old files with the new ones during upgrading, you might still have old unneeded files in your wiki folder. If you want to start the skin over new, you should take the skin files out of the tar archive, which contains the source code of the new MediaWiki version. If you instead put the new skin files into a new, empty folder, then the skin should not be poluted by unneeded bogus files. 88.130.81.187 22:13, 9 January 2013 (UTC)
- If you are looking at starting over, you might try Daniel Friesen's skin tutorial. ☠MarkAHershberger☢(talk)☣ 00:22, 10 January 2013 (UTC)
- Hi mark...here's what I have tried so far:
- I don't know of an automated tool to check all the problems, but -- in addition to the
- Great. I'll try it tomorrow...I'm on European time and must get to bed... Is there a way for me to check the components of the php file myself to know what is out of date? can't thank you enough for all the help. 85.229.192.213 22:10, 8 January 2013 (UTC)
- I mean the contents of the actual php file for your skin. You could copy it to http://pastebin.com/ ☠MarkAHershberger☢(talk)☣ 19:05, 8 January 2013 (UTC)
- Does MW work if you don't log in? What does your error log show? ☠MarkAHershberger☢(talk)☣ 18:28, 8 January 2013 (UTC)
- Hi...thank you very much for responding...here's what I did/got:
Write permissions error on image file directories
I have recently had problems with adding images to pages on my wiki. The file uploads OK, but the file permission defaults to 644, and so when I include it in a wiki page, it fails to load the page. I get the error message:
"Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/public_html/../XYZ.jpg' for writing: Permission denied in /home/.../includes/media/Bitmap.php on line 508"
If I set the file permission to 777, then it loads OK - but this does present a security risk - so I would rather avoid this if I can.
How can I resolve this?
Sgfoote (talk) 21:28, 8 January 2013 (UTC) Media Wiki version 1.17.2 PHP version 5.3.10 MySQL version 5.1.66-cll Sgfoote (talk) 21:28, 8 January 2013 (UTC)
- If you want to allow uploads and scaling, you need to allow the webserver to write to the directory. This can be accomplished by permissions other than 0777, but that is the easiest thing. Note that these permissions are only needed under /images and that execution of php should be disabled under php.
- But maybe I'm missing an important bit here: How are you including the images in a page? ☠MarkAHershberger☢(talk)☣ 21:54, 8 January 2013 (UTC)
- The problem seems to be that files are assigned permissions of 644 when they are uploaded, but cannot be incorporated in pages unless they are 777.
- To include images in a page, I am using the usual wiki syntax, eg. [[File:filename.JPG|thumb|left|200px]] Sgfoote (talk) 22:40, 8 January 2013 (UTC)
- This doesn't really make any sense to me. The only thing I can think of is scaling of images must be causing a problem, but even that is a stretch. ☠MarkAHershberger☢(talk)☣ 23:52, 8 January 2013 (UTC)
Discussion pages
Product Version MediaWiki 1.20.1 PHP 5.3.10-1ubuntu3.4 (apache2handler) MySQL 5.5.22-0ubuntu1
URL http://prorexwiki.transaxions.co.uk
How do I set up a discussion system with threads, like the page I am now?
We are using this WIKI as an information centre for a project, as it stands it has no discussion pages. I have checked the support docs but cannot find anything 86.167.95.49 (talk) 21:36, 8 January 2013 (UTC)
- This discussion area is managed by Extension:LiquidThreads. ☠MarkAHershberger☢(talk)☣ 21:49, 8 January 2013 (UTC)
ReflectionException: Class LanguageEn_gb does not exist in includes\Init.php on line 16
mediawiki: 1.20.2 php: 5.3.8 mysql: 5.5.15
I get this error when first viewing /index.php prior to installation:
ReflectionException: Class LanguageEn_gb does not exist in includes\Init.php on line 16 83.244.242.194 (talk) 23:36, 8 January 2013 (UTC)
MediaWiki Tabs have space below them in Opera - also in Wikipedia!
A MediaWiki site appears correctly in all browsers apart from the Opera browser. Have a look at the Wikipedia site for example in Opera. Can anyone explain this and is there a fix for it? Holygamer (talk) 02:38, 9 January 2013 (UTC)
- I just downloaded Opera so I could compare it with my usual Firefox. I can see no great difference. Could you provide a screenshot with what you think is wrong? ☠MarkAHershberger☢(talk)☣ 02:49, 9 January 2013 (UTC)
- Browser version information highly welcome, in order to reproduce. Plus screenshot, as Mark already wrote. Malyacko (talk) 09:28, 9 January 2013 (UTC)
Can anyone tell me when will the "actionthrottledtext" showed up?
My editor, especially new editor saw the "As an anti-spam measure, you are limited from performing this action too many times in a short space of time, and you have exceeded this limit. Please try again in a few minutes." message frequently. How can I change the setting or disable this function?
(Looks like more than 1000 words add will cause this problem. How can I solve it?) Deletedaccount4567435 (talk) 03:17, 9 January 2013 (UTC)
- There are several instances of
actionthrottledtext
in the code, but I don't see any that are related to a 1000 word limit. - Instead, I think you want to look at $wgRateLimits and Manual:Edit throttling for your answer. ☠MarkAHershberger☢(talk)☣ 00:16, 10 January 2013 (UTC)
[RESOLVED] Blocking a system message on certain pages?
I have uploaded on my site a ZIP file. Below its download, it says Warning: This file type may contain malicious code. By executing it, your system may be compromised. Is there any way to disable Mediawiki:mediawarning on that certain page, or do I have to abolish that message altogether? Shuvuuia (talk) 03:51, 9 January 2013 (UTC)
- Are you saying you want to block that message on just that file's page but still leave it open in case someone uploads another zip file?
- Something like this could be accomplished using javascript, though it would mean users might see that message briefly when they loaded the page.
- It is probably better to leave the file, blank out the message and then disable .zip uploads. ☠MarkAHershberger☢(talk)☣ 23:31, 9 January 2013 (UTC)
- Well, I don't know how to hide a system message with JavaScript, so if anybody could tell me how, thank you very much. If I can't, I'll use the second version. Thanks, Mark. Shuvuuia (talk) 04:07, 16 January 2013 (UTC)
- But if I disable .zip file uploads, can I upload a new version of the one .zip file I've uploaded? Shuvuuia (talk) 04:17, 16 January 2013 (UTC)
- you can upload a new version now and then disable them. ☠MarkAHershberger☢(talk)☣ 04:42, 16 January 2013 (UTC)
- I'm not sure off the top of my head if this will work (it depends on what context the message is parsed in and stuff) but you can try:
{{#ifeq:{{PAGENAME}}|MyFile.zip| | This file may contain malicious code}}
- (Assuming you have ParserFunctions installed.) Bawolff (talk) 21:36, 17 January 2013 (UTC)
Upgrading MediaWiki
To upgrade MediaWiki, is this what I need to do?
- Backup the files and the database
- Move the MediaWiki files of the old version
- Upload the files for the new version
- Copy LocalSettings and the extension files from the old MediaWiki files that were moved to the new MediaWiki files
- Run update.php to make the changes to the database
- Delete the old files
Will this work for upgrading from MediaWiki version 1.17 to 1.19.2? Lieutenant Aleksandr Reznov 05:00, 9 January 2013 (UTC)
- No answer to the question, but latest 1.19 version is 1.19.3 if you like secure versions. :) Malyacko (talk) 09:27, 9 January 2013 (UTC)
- So what else do I need to do?
- It would be 1.19.3 then. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 15:43, 9 January 2013 (UTC)
- Check out Manual:Upgrading to make sure you have everything. But you've got it covered with your steps.
- That said, in step 4, I would check to see if any of the extensions or skins need to be updated to 1.19-matching versions. ☠MarkAHershberger☢(talk)☣ 20:35, 9 January 2013 (UTC)
- I checked and it looks like I don't have anything left out. I was also going to add checking extension compatibility and replacing the necessary files to it. So it looks like I have everything. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:53, 16 January 2013 (UTC)
HTTP Error 404.0 - Not Found
I set up MediaWiki on PC1 successfully and could browse to the main page via http://localhost/wiki url. I went to PC2, the browser showed "HTTP Error 404.0 - Not Found" when I browsed http://PC1_IP/wiki
I could browse to http://localhost/wiki/test/index.html
The error is below:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Most likely causes: The directory or file specified does not exist on the Web server. The URL contains a typographical error. A custom filter or module, such as URLScan, restricts access to the file.
Things you can try: Create the content on the Web server. Review the browser URL. Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
Detailed Error Information: Module IIS Web Core Notification MapRequestHandler Handler StaticFile Error Code 0x80070002 Requested URL http://localhost:80/wiki2/index.php/Main_Page Physical Path C:\inetpub\wwwroot\wiki2\index.php\Main_Page Logon Method Anonymous Logon User Anonymous
More Information: This error means that the file or directory does not exist on the server. Create the file or directory and try the request again. View more information » Learnerdq (talk) 05:57, 9 January 2013 (UTC)
- As you wrote "I went to PC2, the browser showed "HTTP Error 404.0 - Not Found" when I browsed http://PC1_IP/wiki" - are you able to browse your network to access PC1 from PC2?
- From the "things you can try", which of these things did you try? Malyacko (talk) 09:26, 9 January 2013 (UTC)
- I'm sure IIS doesn't support http://localhost/wiki2/index.php/Main_Page urls. Try http://localhost/wiki2/index.php?title=Main_Page instead Ciencia Al Poder (talk) 10:47, 9 January 2013 (UTC)
- @Malyacko
- Yes. From PC2 I could browse http://PC1_PI/wiki/test/index.html
- @Ciencia Al Poder
- FYI, I am running wiki on XAMPP
- Thanks Learnerdq (talk) 15:38, 9 January 2013 (UTC)
- Then you have a conflict with webservers because the error you provided clearly states IIS Web Core.
- IIS server is listening on port 80, so XAMPP is either on a different port or it's not running at all. If you don't want/need IIS then you should stop it. Ciencia Al Poder (talk) 20:56, 9 January 2013 (UTC)
[RESOLVED] The mediawiki I've just created, doesn't show images
Hello everyone,
I've just created a media wiki, that I hosted in a VM in Vmware.
When I open the main page of my wiki, from the localhost, it works correctly (all the images are shown).
The problem comes when I try to open it from another PC connected to the same LAN, When the Main Page is opened, it appears without images, just text.
Anybody knows why appear this problem? I need to change or add any variable in the LocalSettings.php file?
Thanks in advance.
Regars. 79.152.200.14 (talk) 10:27, 9 January 2013 (UTC)
- Most likely cause is that your webserver or MediaWiki is using "localhost" as the hostname, so accessing it from other machine causes requests to be directed to the own machine instead of the server. Try setting $wgOverrideHostname tho the hostname or IP accessible from other machines in your network. Ciencia Al Poder (talk) 10:55, 9 January 2013 (UTC)
- That's right!
- I changed localhost by IP and it works fine :)
- Thanks a lot! 79.152.200.14 11:21, 9 January 2013 (UTC)
[RESOLVED] mediawiki 1.20.2 not displaying Images tagged as File:
Morning all,
Just upgraded from 1.16 to 1.20.2, many of our existing pages have images published on them in the following syntax;
[[File:Wiki.png]]
But since the upgrade, this no longer works, and to get them working again we have to edit the tag to use the [[Image:Wiki.png]] syntax, this isnt exactly a bug, but more of an annoyance, does anyone have any idea why this isnt working. Id accept it as new enforcing behaviour, except that the official support documents say the syntax to publish an image is to still use 'File:'
Regards. 151.170.240.10 (talk) 11:15, 9 January 2013 (UTC)
- Could you frame your wikisyntax by <nowiki>YOURSYNTAX</nowiki> or <pre>YOURSYNTAX</pre> tags so we can see it in this forum Carchaias (talk) 12:55, 9 January 2013 (UTC)
- Done, whoops... 151.170.240.10 13:20, 9 January 2013 (UTC)
- Its turn out that in 1.16 you have specify in LocalSettings.php the parameter $wgUrlProtocols[] = "file:" in order for the file tag to work. In 1.20 the presence of that in the LocalSettings.php breaks the file tag. On removing it, everything sprang back in to life! 151.170.240.10 15:12, 9 January 2013 (UTC)
- Done, whoops... 151.170.240.10 13:20, 9 January 2013 (UTC)
[RESOLVED] Mediawiki.org Editor feature - add on, extension? (how to?)
Hi all,
When we edit a page on Mediawiki.org the on-line editor has a tool bar with buttons to quickly insert wiki-text. (ex. ([]) , ({{ }}) etc.) The tool bar just bellow the (Save page) and (Show preview) buttons when you edit a post.
So how could I implement this on my Wiki? Is it an extension, a special add-on? How do you go about configuring the enduser's Editing tool?
I looked at the Special:version page but it is a little overwhellming...
Many thanks! Frank
- 205.237.9.121 (talk) 12:46, 9 January 2013 (UTC)
- Extension:WikiEditor is what you want. It is bundled with MW 1.19 and later versions. ☠MarkAHershberger☢(talk)☣ 20:30, 9 January 2013 (UTC)
- I have the extension:WikiEditor installed and that toolbar with those buttons doesn't show up at the bottom.
- Michel-André 206.248.138.152 04:11, 10 January 2013 (UTC)
- How do you have it configured in you LocalSettings.php? ☠MarkAHershberger☢(talk)☣ 04:15, 10 January 2013 (UTC)
- 206.248.138.152 14:53, 10 January 2013 (UTC)
# WikiEditor require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ); // Enables use of WikiEditor by default but still allow users to disable it in preferences $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; // Displays the Preview and Changes tabs $wgDefaultUserOptions['wikieditor-preview'] = 1; // Displays the Publish and Cancel buttons on the top right side $wgDefaultUserOptions['wikieditor-publish'] = 1; // Displays a navigation column (summary) on the right side $wgDefaultUserOptions['usenavigabletoc'] = 1;
- that set up works for me when I'm not logged in. Maybe you're logged in and have the toolbar disabled? ☠MarkAHershberger☢(talk)☣ 20:47, 10 January 2013 (UTC)
- How do you have it configured in you LocalSettings.php? ☠MarkAHershberger☢(talk)☣ 04:15, 10 January 2013 (UTC)
- I think you're talking about Extension:CharInsert. Pocket lint (talk) 15:03, 14 January 2013 (UTC)
- Right on.
- Pocket lint, you're the greatest!
- Michel-André 206.248.138.152 01:54, 15 January 2013 (UTC)
Use the Validator extension in MediaWiki 1.19
As initially reported on Bugzilla (bug 43067), Fabrice LÉCAUDÉ would like to run the Validator extension on the following configuration:
- MediaWiki 1.19.2/3
- PHP 5.2.17
- SemanticMediaWiki 1.8.0
MediaWiki 1.19 is our LTS version, and so still supported. For SemanticMediaWiki and LTS support issues, see this thread.
Solution offered in the bug
Upgrade PHP to 5.3.
The bug indicates this is not a factor under control.
You really should consider to move to a hosting company offering you the choice of the PHP version or consider to move to a VPS / dedicated server.
New solutions offered
First, consider if it's opportune to upgrade SemanticMediaWiki to 1.9, this version is still compatible with MediaWiki 1.19.
Then, to fix your bug, upgrade Validator to 0.5.1 or Git version. As noted in the bug reports, this instruction doesn't exist anymore in the code. Dereckson (talk) 14:53, 9 January 2013 (UTC)
- Actually, I did upgrade to the last SMW version on MediaWiki 1.19.2. Semantic MediaWiki 1.8.0 (latest SMW version) requires Validator 0.5 minimun to work. I have no issue with the Semantic MediaWiki 1.7.1 (previous version)/Validator 0.4.13 duet (see here for the wiki and here for the version page). For the server, I have advanced hosting (I can install whatever MW version and/or extension I want) but I do not control PHP and MySQL. The main avantage is that's free. The main issue is that noboby seems to answer our requests since the wiki farm has been bought by a biggest company. LIMAFOX76 (talk) 15:20, 9 January 2013 (UTC)
- And as SemanticMediaWiki 1.9 requires PHP 5.3, this wouldn't be a real solution either.
- You so have three solutions:
- someone accepts to create a patch resolving a bug not anymore in the Validator extension code;
- make your provider aware MediaWiki current development use PHP 5.3 and not PHP 5.2;
- move to another provider. Dereckson (talk) 15:37, 9 January 2013 (UTC)
- I would prefer the second choice so I could upgrade to MW 1.20.x, but for now, there is no answer yet. LIMAFOX76 (talk) 15:41, 9 January 2013 (UTC)
- It seems like a quicker fix would be to make the code compatible with php 5.2. I haven't looked at it and don't know if that is possible, though. ☠MarkAHershberger☢(talk)☣ 17:42, 9 January 2013 (UTC)
- The issue is that the compat function is broken. Would be awesome if someone fixed that Jeroen De Dauw (talk) 21:30, 9 January 2013 (UTC)
- (Again, keep in mind I haven't actually looked at the code yet.)
- I'll try to poke at it this weekend. I'd love to get stuff like this fixed. ☠MarkAHershberger☢(talk)☣ 23:27, 9 January 2013 (UTC)
- The issue is that the compat function is broken. Would be awesome if someone fixed that Jeroen De Dauw (talk) 21:30, 9 January 2013 (UTC)
- Today I installed the following:
- PHP 5.2.9 (part of Fedora 9)
- MediaWiki 1.19.3 (downloaded today)
- SMW 1.8 (downloaded today)
- Validator 0.5.1 (part of SMW download today)
- But I'm not seeing the problem.
- This seems to indicate that Validator 0.5.1 works where Validator 0.5 doesn't. Is that right?
- Note that I just installed it and initialized the SMW tables. Maybe there is something wikitext I need to see the problem? ☠MarkAHershberger☢(talk)☣ 22:15, 10 January 2013 (UTC)
- Indeed, you need datas inside the tables. I give you all the processes I did before giving up and coming back to Validator 0.4.13 and SMW 1.7.1.
- I upgraded Validator up to 0.5.0 and SMW 1.8.0 and I already had this issue on the main page.
- I ran the two scripts on the SMWAdmin special page, nothing better.
- I came back on SMW1.7.1 with Validator 0.5.0, nothing better.
- I installed Validator 0.5.1 and SMW 1.8.0, deleted all the SMW tables, and restarted the two scripts, nothing better.
- I ran the update.php maintenance script to accelerate the process and made again the previous point. Even in the line event process, I can see the same error message several times and quite often.
- Then, I came back to the previous version (Validator 0.4.13 and SMW 1.7.1), ran once again the scripts (with the update.php maintenance script) and all came back to normal.
- I created a test wiki where I put a duplicate of the same database with Validator 0.5.1 and SMW 1.8.0.1 in order to fix the issue.
I forgot to tell one thing, there is no cache on this wiki. LIMAFOX76 (talk) 07:43, 11 January 2013 (UTC)- Could you give me some sample pages that are failing for you?
- Hrm... Since I'm working on the SMW installation at wiki.mozilla.org right now, maybe I can do something with the data there. ☠MarkAHershberger☢(talk)☣ 14:43, 11 January 2013 (UTC)
- Go here and you will have access to the wiki. Just declare yourself, I will give all admin rights. For now I'm running again a refresh from scratch with runJobs.php (I was mistaken on the previous message).
- See this snapshot from the runJobs.php running script. LIMAFOX76 (talk) 15:09, 11 January 2013 (UTC)
- I've created a user now. ☠MarkAHershberger☢(talk)☣ 15:48, 11 January 2013 (UTC)
- You have full privileges now. LIMAFOX76 (talk) 15:55, 11 January 2013 (UTC)
- I'm was able to use Special:Export to get some pages that I can use on my own test wiki. After importing them, I saw the problem. Thanks! ☠MarkAHershberger☢(talk)☣ 17:06, 11 January 2013 (UTC)
- Has there been any solution for this issue? I would be really interessted in finding one!
- -- Dominique 141.35.213.221 13:35, 6 June 2013 (UTC)
- I'm was able to use Special:Export to get some pages that I can use on my own test wiki. After importing them, I saw the problem. Thanks! ☠MarkAHershberger☢(talk)☣ 17:06, 11 January 2013 (UTC)
- You have full privileges now. LIMAFOX76 (talk) 15:55, 11 January 2013 (UTC)
- I've created a user now. ☠MarkAHershberger☢(talk)☣ 15:48, 11 January 2013 (UTC)
- Indeed, you need datas inside the tables. I give you all the processes I did before giving up and coming back to Validator 0.4.13 and SMW 1.7.1.
- It seems like a quicker fix would be to make the code compatible with php 5.2. I haven't looked at it and don't know if that is possible, though. ☠MarkAHershberger☢(talk)☣ 17:42, 9 January 2013 (UTC)
How can I prevent removal of certain wikitext from pages with Abuse Filter?
I would like to create a filter that will prevent removal of {{commentbox}}, {{gwipdisclaimer}}, and possibly [[Category:Fanfiction]] and [[Category:Data]]. Those templates provide a comment box for users and readers to provide commentary on articles and also includes the trademark/copyright information about the content of the article.
Also, do you know how I can prevent adding email addresses to articles, user pages, or talk pages? I saw there was a filter on Wikipedia but it was private so I couldn't import it. Lieutenant Aleksandr Reznov 17:43, 9 January 2013 (UTC)
- I thought there was an extension that allowed you to protect a given section from editing. I can't find it now, but even if I could, I would still have to warn you that MW isn't really meant to do that. ☠MarkAHershberger☢(talk)☣ 20:25, 9 January 2013 (UTC)
- You mean is not supposed to be protecting sections? I could just uninstall it since it hasn't really been used for anything other than one time when a troll kept blanking his talk page and I didn't feel it was necessary at that point to block him. Protect Section is useless for the purpose I described since it requires someone with the protect section right to place it, and so it can't be preloaded on article creation, otherwise no one can save new articles. We'd have to have someone add the tags to every new article. That isn't doable because I restricted it to sysadmins since there's no way of tracking it and it could easily be overused. I might just go ahead and uninstall it. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:49, 9 January 2013 (UTC)
- I was looking through some of the filters on other wikis, and I haven't learned enough from it to write filters. Are there any good guides? There was a filter I saw to prevent posting email addresses, which could be useful for preventing meatpuppetry and other coordinated forms of misuse and harassment. It was set as private though. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:10, 11 January 2013 (UTC)
- You'll need to know a bit about regular expressions to create good filters like for email addresses. How much do you think you know? Jasper Deng (talk) 01:55, 11 January 2013 (UTC)
- I don't really know that much. I know how to use * to show that there might be more additional letters at the beginning or end, and that parts can be substituted as in (t|g)old for gold or told. I remember that Wikipedia or Wikibooks has a useful article on them. Is there anything specific for Abuse Filter, since I'm not sure on the terms to add to in for instructions. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:06, 11 January 2013 (UTC)
- You can always use the regex tester site to test things you come up with. There are links to documentation there, also. ☠MarkAHershberger☢(talk)☣ 02:09, 11 January 2013 (UTC)
- Thanks. That will be useful. Is there anything that explains how to enter the instructions into abuse filter? I mean for instructing it to do various actions, in addition to knowing what to look for. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:28, 11 January 2013 (UTC)
- The actions are pretty simple - they're checkboxes in the filter editing window. Jasper Deng (talk) 03:49, 11 January 2013 (UTC)
- Extension:AbuseFilter/Rules format Ciencia Al Poder (talk) 10:46, 11 January 2013 (UTC)
- Thanks. That will be useful. Is there anything that explains how to enter the instructions into abuse filter? I mean for instructing it to do various actions, in addition to knowing what to look for. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:28, 11 January 2013 (UTC)
- You can always use the regex tester site to test things you come up with. There are links to documentation there, also. ☠MarkAHershberger☢(talk)☣ 02:09, 11 January 2013 (UTC)
- I don't really know that much. I know how to use * to show that there might be more additional letters at the beginning or end, and that parts can be substituted as in (t|g)old for gold or told. I remember that Wikipedia or Wikibooks has a useful article on them. Is there anything specific for Abuse Filter, since I'm not sure on the terms to add to in for instructions. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:06, 11 January 2013 (UTC)
- You'll need to know a bit about regular expressions to create good filters like for email addresses. How much do you think you know? Jasper Deng (talk) 01:55, 11 January 2013 (UTC)
Installed SpamBlacklist Extension, Gives me an error message and no one can edit anymore
I installed Extension:SpamBlacklist because we were getting an overwhelming amount of spam, and the spam has stopped... only because no one can edit anymore. The edit window opens fine, but every time I press submit I get an error message reading:
Warning: require(/home/fh14/public_html/chibisandate/__DIR__/SpamBlacklistHooks.php) [function.require]: failed to open stream: No such file or directory in /home/fh14/public_html/chibisandate/includes/AutoLoader.php on line 1007
Fatal error: require() [function.require]: Failed opening required '/home/fh14/public_html/chibisandate/__DIR__/SpamBlacklistHooks.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fh14/public_html/chibisandate/includes/AutoLoader.php on line 1007 FH14 (talk) 07:51, 10 January 2013 (UTC)
- That extension uses the
__DIR__
constant, added in PHP 5.3.0. Your PHP version is older and doesn't support it. - You can try replacing
__DIR__
bydirname(__FILE__)
in the code (other incompatibility problems may arise), or upgrade your PHP to 5.3.0 or newer. Ciencia Al Poder (talk) 10:30, 10 January 2013 (UTC)
How to control the editors in one particular organization
Hello,
I need create one new portal, but it cannot be editable by readers, only by internal team of my organization.
How can I control or limit the editions possibilities in a particular wikimedia installation?
Thanks for your helping. 201.49.164.123 (talk) 17:16, 10 January 2013 (UTC)
- See Manual:Preventing_access for more information. ☠MarkAHershberger☢(talk)☣ 17:20, 10 January 2013 (UTC)
[RESOLVED] How to insert discussion widget from Facebook or VK.com to discussion page?
Hello all! I could not find how to do it. 1) Are there some extensions that allow to do that? 2) So I know how to insert some javascript of a widget to discussion page, but I need also to insert some javascript between <head> tags! How can I do it? Fokebox (talk) 17:17, 10 January 2013 (UTC)
- For inserting some JS, see ResourceLoader/Migration guide (users).
- If VK.com acts the same as Facebook, you could probably adapt Extension:Facebook. ☠MarkAHershberger☢(talk)☣ 17:26, 10 January 2013 (UTC)
- How to insert JS I have done it already! I cannot adapt Facebok extension, 'cause I am not good at progamming in php ). I want to try to do it myself but I do need how to insert code between <head></head> tags in all pages of wikimedia Fokebox (talk) 18:02, 10 January 2013 (UTC)
- You want to use something like MediaWiki:Common.js on your site. ☠MarkAHershberger☢(talk)☣ 19:38, 10 January 2013 (UTC)
- Well I know how to insert other js script to some page! Now I need to find out how to insert some script between head tags in html in all pages, because there are some rules that are neccessary to follow, for example:
- Put this script tag to the <head> of your page
<script type="text/javascript" src="//vk.com/js/api/openapi.js?75"></script> <script type="text/javascript"> VK.init({apiId: API_ID, onlyWidgets: true}); </script>
- and Put this div tag to the place, where the Comments block will be
<div id="vk_comments"></div> <script type="text/javascript"> VK.Widgets.Comments("vk_comments", {limit: 10, width: "496", attach: "*"}); </script>
- So I know how to put the second script to the page and need to know how to be with first one! Fokebox (talk) 20:04, 11 January 2013 (UTC)
- It looks like you want to work develop your own skin. Here is a good tutorial to use. ☠MarkAHershberger☢(talk)☣ 20:20, 11 January 2013 (UTC)
- No ... it is not a skin!!! I try to put VK widget to discussion page of the wikipages Fokebox (talk) 20:33, 11 January 2013 (UTC)
- If you don't want to use a skin, then you'll have to use MediaWiki:Common.js to dynamically inject the necessary elements. ☠MarkAHershberger☢(talk)☣ 14:38, 12 January 2013 (UTC)
- Well I tried to use Mediawiki:Common.js! I put this script there
<script type="text/javascript" src="//vk.com/js/api/openapi.js?75"></script> <script type="text/javascript"> VK.init({apiId: API_ID, onlyWidgets: true}); </script>
- But I could not see this scipt anywhere. I did not appear in html in all pages! I set $wgAllowUserJs to true, but I doesn't work at all!
- Here is the link to my common.js http://www.wikijournal.ru/index.php/MediaWiki:Common.js
- What should I do? And There is no result ( Fokebox (talk) 17:28, 12 January 2013 (UTC)
- Mediawiki:Common.js is a script, not an HTML file. So you should write there as if that's the contents of a <script></script>.
- Try putting this instead:
- Ciencia Al Poder (talk) 19:55, 12 January 2013 (UTC)
$.getScript("//vk.com/js/api/openapi.js?75", function(data, textStatus, jqxhr) { VK.init({apiId: API_ID, onlyWidgets: true}); });
- Thnks, I tried, but it doesn't make sense! Well If you would like to see what I want to do is here: http://www.wikijournal.ru/vk.html
- I put second part of the scipt using htmlet, but I don't know what to do with the first part that should be in head of the html ( Fokebox (talk) 20:53, 12 January 2013 (UTC)
- I guess it doesn't work because you need to change API_ID with some code. I've actually didn't saw your wiki because your domain isn't known to my DNS...
- But for you to understand, I'll explain the code:
- $.getScript() loads a JavaScript URL, and when it's loaded, it executes the function passed as the second parameter. You need to do this because, as I said, you can't put <script> tags inside Common.js because it's not HTML but directly a JS file. But $.getScript() will load the script as if it was called by a script tag.
- The VK.init part is inside of the callback function because it depends on the script being loaded, so it's execution should wait until the script has been loaded, since that load is done asynchronously (because it's not a script tag).
- Following those instructions you should be able to insert a facebook widget as well. Ciencia Al Poder (talk) 21:09, 12 January 2013 (UTC)
- Thank you for explaination. I changed API_ID to my own, so it was like this in Mediawiki:Common.js:
$.getScript("//vk.com/js/api/openapi.js?75", function(data, textStatus, jqxhr) { VK.init({apiId: 3354880, onlyWidgets: true}); });
- but it didn't work! ( I tried to have the whole code of the widget inserted using htmlet to discussion page in my wiki:
<head> <!-- Put this script tag to the <head> of your page --> <script type="text/javascript" src="//vk.com/js/api/openapi.js?75"></script> <script type="text/javascript"> VK.init({apiId: 3354880, onlyWidgets: true}); </script> </head> <body> <!-- Put this div tag to the place, where the Comments block will be!!! --> <div id="vk_comments"></div> <script type="text/javascript"> VK.Widgets.Comments("vk_comments", {limit: 20, width: "800", attach: false}); </script> </body>
- And widget started to work fine! Well I am not good at javascripts, but I guess that there is something wrong when I have the code in mediawiki:common.js
- So could you help me please? Fokebox (talk) 21:44, 12 January 2013 (UTC)
- Thnks, I tried, but it doesn't make sense! Well If you would like to see what I want to do is here: http://www.wikijournal.ru/vk.html
- You should really be using a tool to look at your browser's console. When I load a page on your site, I see this in the console:
Error: JavaScript parse error: Parse error: Missing operand in file 'MediaWiki:Common.js' on line 1
- You should only have javascript in Common.js. You can load js using
mw.loader.load
. I tried putting the following in MediWiki:Common.js: mw.loader.load("//vk.com/js/api/openapi.js?75");
VK.init({apiId: API_ID, onlyWidgets: true});
- but that failed with VK being undefined. ☠MarkAHershberger☢(talk)☣ 21:40, 12 January 2013 (UTC)
- I tried too
mw.loader.load("//vk.com/js/api/openapi.js?75"); VK.init({apiId: 3354880, onlyWidgets: true});
- It didn't help. Is there anyway to put the code that I need directly between <head> tags in some php files of the wikimedia? Fokebox (talk) 21:53, 12 January 2013 (UTC)
- Since your code is essentially the same as mine, I'm sure it failed the same way.
- I've pointed Krinkle to this discussion. He was responsible for a lot of the ResourceLoader bits and can probably be more help here. ☠MarkAHershberger☢(talk)☣ 22:03, 12 January 2013 (UTC)
- If you don't want to use a skin, then you'll have to use MediaWiki:Common.js to dynamically inject the necessary elements. ☠MarkAHershberger☢(talk)☣ 14:38, 12 January 2013 (UTC)
- No ... it is not a skin!!! I try to put VK widget to discussion page of the wikipages Fokebox (talk) 20:33, 11 January 2013 (UTC)
- It looks like you want to work develop your own skin. Here is a good tutorial to use. ☠MarkAHershberger☢(talk)☣ 20:20, 11 January 2013 (UTC)
- <script type="text/javascript" src="//vk.com/js/api/openapi.js?82"></script>
- <script type="text/javascript">
VK.init({apiId: API_ID, onlyWidgets: true});
- </script>
- <script type="text/javascript">
- VK.Widgets.Comments("vk_comments", {limit: 10, width: "496", attach: "*"});
- </script> 212.109.27.31 18:14, 18 March 2013 (UTC)
- You want to use something like MediaWiki:Common.js on your site. ☠MarkAHershberger☢(talk)☣ 19:38, 10 January 2013 (UTC)
- How to insert JS I have done it already! I cannot adapt Facebok extension, 'cause I am not good at progamming in php ). I want to try to do it myself but I do need how to insert code between <head></head> tags in all pages of wikimedia Fokebox (talk) 18:02, 10 January 2013 (UTC)
- Ciencia Al Poder already gave the solution a while ago.
mw.loader
isn't relevant here since this isn't using ResourceLoader. UsejQuery.getScript
with the callback it provides (since it is asynchronous).- Open MediaWiki:Common.css:
- Edit
- Select everything in the edit area
- Replace with this:
- Krinkle (talk) 22:41, 12 January 2013 (UTC)
jQuery.getScript('//vk.com/js/api/openapi.js?76', function () { VK.init({apiId: 3354880, onlyWidgets: true}); });
- Thanks for your attention on this topic, did you mean open MediaWiki:Common.js instead of MeidaWiki:Common.css?
- Anyway your code doesn't work. Widget do not appear on the page!
<head> <!-- Put this script tag to the <head> of your page --> <script type="text/javascript" src="//vk.com/js/api/openapi.js?75"></script> <script type="text/javascript"> VK.init({apiId: 3354880, onlyWidgets: true}); </script> </head> <body> <!-- Put this div tag to the place, where the Comments block will be!!! --> <div id="vk_comments"></div> <script type="text/javascript"> VK.Widgets.Comments("vk_comments", {limit: 20, width: "800", attach: false}); </script> </body>
- But I tried another way which works perfectly! I created html page and inserted the whole script there and I used htmlet to link this page! And widget started to work! ) ... I guess it is not correct because there are head tags in the midle of html. Fokebox (talk) 09:36, 13 January 2013 (UTC)
- Did you put
<div id="vk_comments"></div>
on the page you wanted the widget to appear? Because maybe you forgot to do that and that's why it wasn't working. - Well, in that case the script should be adapted a little:
- Ciencia Al Poder (talk) 10:47, 13 January 2013 (UTC)
jQuery.getScript('//vk.com/js/api/openapi.js?76', function () { VK.init({apiId: 3354880, onlyWidgets: true}); $(function() { if ($('#vk_comments').length) { VK.Widgets.Comments("vk_comments", {limit: 20, width: "800", attach: false}); } }); });
- The code Ciencia and I posted should go on MediaWiki:Common.js. And no HTML (no
<head>
,<script>
,<body>
or<div>
), just the snippet we posted, nothing more. - The solution you're opting now for I highly discourage, but do whatever you want. Krinkle (talk) 15:44, 18 January 2013 (UTC)
- Did you put
- Thanks for your attention on this topic, did you mean open MediaWiki:Common.js instead of MeidaWiki:Common.css?
[RESOLVED] upgrading from 1.19.2 to 1.20.x Error: invalid magic word 'speciale'
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.
- Redhat Enterprise 6.3
- PHP 5.3.3
- MYSQL Ver 14.14 Distrib 5.1.66
- I can update from 1.19.2 to 1.19.3 just fine. But when I attempt to update to 1.20.0/1/2 I get this same error when I try to load a page:
- Error: invalid magic word 'speciale'
- Backtrace:
- 0 /var/www/html/web/wikitest/includes/MagicWord.php(236): MagicWord->load('speciale')
- 1 /var/www/html/web/wikitest/includes/parser/Parser.php(4765): MagicWord::get('speciale')
- 2 /var/www/html/web/wikitest/includes/parser/CoreParserFunctions.php(74): Parser->setFunctionHook('speciale', Array)
- 3 /var/www/html/web/wikitest/includes/parser/Parser.php(253): CoreParserFunctions::register(Object(Parser))
- 4 [internal function]: Parser->firstCallInit()
- 5 /var/www/html/web/wikitest/includes/StubObject.php(79): call_user_func_array(Array, Array)
- 6 /var/www/html/web/wikitest/includes/StubObject.php(99): StubObject->_call('firstCallInit', Array)
- 7 /var/www/html/web/wikitest/includes/cache/MessageCache.php(829): StubObject->__call('firstCallInit', Array)
- 8 /var/www/html/web/wikitest/includes/cache/MessageCache.php(829): StubObject->firstCallInit()
- 9 /var/www/html/web/wikitest/includes/cache/MessageCache.php(807): MessageCache->getParser()
- 10 /var/www/html/web/wikitest/includes/Message.php(618): MessageCache->transform('$1 - {{SITENAME...', true, Object(Language), Object(Title))
- 11 /var/www/html/web/wikitest/includes/Message.php(436): Message->transformText('$1 - {{SITENAME...')
- 12 /var/www/html/web/wikitest/includes/Message.php(476): Message->toString()
- 13 /var/www/html/web/wikitest/includes/OutputPage.php(790): Message->text()
- 14 /var/www/html/web/wikitest/includes/OutputPage.php(833): OutputPage->setHTMLTitle(Object(Message))
- 15 /var/www/html/web/wikitest/includes/Article.php(485): OutputPage->setPageTitle('Home')
- 16 /var/www/html/web/wikitest/includes/actions/ViewAction.php(37): Article->view()
- 17 /var/www/html/web/wikitest/includes/Wiki.php(427): ViewAction->show()
- 18 /var/www/html/web/wikitest/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
- 19 /var/www/html/web/wikitest/includes/Wiki.php(536): MediaWiki->performRequest()
- 20 /var/www/html/web/wikitest/includes/Wiki.php(446): MediaWiki->main()
- 21 /var/www/html/web/wikitest/index.php(59): MediaWiki->run()
- 22 {main}
- This is a clean installation with no extensions and the default vector skin. I overwrite my old files like so:
- tar xvzf mediawiki-1.20.2.tar.gz -C /path/to/your/wiki/ --strip-components=1
- Then run "php update.php" in the maintenance directory. Then when I go to the home page (or any page) I get the above error. I can overwrite the files back to 1.19.3 and then run update.php and it will go back to working again, but any 1.20.x version will not work. Bc619 (talk) 19:54, 10 January 2013 (UTC)
- This looks similar: https://bugzilla.wikimedia.org/show_bug.cgi?id=32762 ☠MarkAHershberger☢(talk)☣ 20:06, 10 January 2013 (UTC)
- I actually read that before I posted. There's no solution presented there. Bc619 (talk) 21:05, 10 January 2013 (UTC)
- In this file wiki-folder/languages/messages/MessagesEn.php the line exists in the magic words array:
- 'speciale' => array( 0, 'speciale' ),
- So I'm not sure why this error (Error: invalid magic word 'speciale') even comes up. Bc619 (talk) 21:27, 10 January 2013 (UTC)
- I finally figured out the solution. Since the files in the /languages/messages folder are cached, I tried running /maintenance/rebuildLocalisationCache.php. Upon running this, I noticed that it rebuilt all the languages except for 'en'!!!!??? (I guess maybe because that was my default language so it felt it didn't need to be rebuilt???) But in 1.20, I believe this line was added to MessagesEn.php: "'speciale' => array( 0, 'speciale' )," and since 'en' was not getting rebuilt, the wiki was never seeing the new value 'speciale'. So I ran rebuildLocalisationCache.php again but this time with the --force parameter to force a rebuild off all languages:
- php rebuildLocalisationCache.php --force
- The above command took a while to complete but...Now my website works after updating!!!! Bc619 (talk) 22:05, 10 January 2013 (UTC)
- I don't know if gerrit:43280 is a fix for this. Ciencia Al Poder (talk) 10:47, 11 January 2013 (UTC)
- Thanks a lot, man, your solution helped me with my problem here: Project:Support desk/Flow/2012/12#c-Abagnale-2013-01-28T07:05:00.000Z-Deletedaccount4567435-2012-12-30T05:12:00.000Z. Abagnale OS Ubuntu 11.04; MW 1.20.2; MySQL 5.1.61; PHP 5.3 09:46, 28 January 2013 (UTC)
- I actually read that before I posted. There's no solution presented there. Bc619 (talk) 21:05, 10 January 2013 (UTC)
- This looks similar: https://bugzilla.wikimedia.org/show_bug.cgi?id=32762 ☠MarkAHershberger☢(talk)☣ 20:06, 10 January 2013 (UTC)
- Reply to "[RESOLVED] upgrading from 1.19.2 to 1.20.x Error: invalid magic word 'speciale'"
- How to fix it? 107.167.109.77 (talk) 06:34, 27 February 2016 (UTC)
- If you use memcached, clear all the memcached data (for example, restarting the memcached service)
- Also, run rebuildLocalisationCache.php --force Ciencia Al Poder (talk) 11:40, 27 February 2016 (UTC)
Misconfigured layout page
Hi!
I nee help to solve this problem. I installed the lastest version of mediawiki and when i go to index page, the layout images and css is not showing correct.
See the wiki: http://help.rezendesistemas.com.br/ Elvanineto (talk) 19:58, 10 January 2013 (UTC)
- Check your error log. load.php (which is responsible for CSS/JS) is returning server errors. ☠MarkAHershberger☢(talk)☣ 20:13, 10 January 2013 (UTC)
- Where can i get this errorlog? Elvanineto (talk) 15:42, 14 January 2013 (UTC)
- i had the same problem earlier this day, checkout the solution
- http://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/01#h-%5BSOLVED%5D_Wiki_doesn%27t_not_show_correct_on_client-2013-01-14T11%3A00%3A00.000Z 93.50.166.46 18:38, 14 January 2013 (UTC)
- i tried to load the file load.php on webrowser and show this:
- Internal Server Error
- The server encountered an internal error or misconfiguration and was unable to complete your request.
- On mysql, the user create to manage the wiki database has FULL PRIVILEGES on the wiki database. What more i need to check? Elvanineto (talk) 19:48, 14 January 2013 (UTC)
- Your solution will be likely be different.
- I don't know where your error logs are, but look for a folder or directory on your web host called "logs" and, in that, a file named "error.log" or "error_log" ☠MarkAHershberger☢(talk)☣ 20:03, 14 January 2013 (UTC)
- Where can i get this errorlog? Elvanineto (talk) 15:42, 14 January 2013 (UTC)
[RESOLVED] site_stats damaged or missing on slave
Hi everyone,
some month ago I've updated our company wiki from 1.15.4 to 1.18.2. I added some Extensions (LDAP_Auth, other Extensions, etc...) and did some minor system modifications like adding an additional <div> tag to the Table of Contents.
The wiki is running on a CentOS Linux machine (Apache, MySQL db).
About one month ago I checked the "Special:Statistics" page as I always did in the morning and there it was:
Active Users: -1
I know that the default value for ss_active_users in the site_stats table is -1 but the value displayed in the database was 66. I checked this value via api and Special:ActiveUsers. I added $wgDebugDumpSql = true; $wgShowDebug = true; to the LocalSettings.php and reloaded the Special:Statistics page.
Here the output:
SiteStats::loadAndLazyInit: reading site_stats from slave Query 17 (slave): SELECT /* SiteStats::doLoad ... */ * FROM `wiki_site_stats` LIMIT 1 SiteStats::loadAndLazyInit: site_stats damaged or missing on slave Query 18 (slave): SELECT /* SiteStats::doLoad ... */ * FROM `wiki_site_stats` LIMIT 1 SiteStats::loadAndLazyInit: initializing damaged or missing site_stats Query 19 (slave): SELECT /* SiteStatsInit::edits ... */ COUNT(*) FROM `wiki_revision` LIMIT 1 Query 20 (slave): SELECT /* SiteStatsInit::edits ... */ COUNT(*) FROM `wiki_archive` LIMIT 1 Query 21 (slave): SELECT /* SiteStatsInit::articles ... */ COUNT(DISTINCT page_id) FROM `wiki_page`,`wiki_pagelinks` WHERE page_namespace = '0' AND page_is_redirect = '0' AND (pl_from=page_id) LIMIT 1 Query 22 (slave): SELECT /* SiteStatsInit::pages ... */ COUNT(*) FROM `wiki_page` LIMIT 1 Query 23 (slave): SELECT /* SiteStatsInit::users ... */ COUNT(*) FROM `wiki_user` LIMIT 1 Query 24 (slave): SELECT /* SiteStatsInit::files ... */ COUNT(*) FROM `wiki_image` LIMIT 1 Query 25 (slave): SELECT /* SiteStatsInit::views ... */ SUM(page_counter) FROM `wiki_page` LIMIT 1 DatabaseBase::query: Writes done: DELETE FROM `wiki_site_stats` WHERE ss_row_id = '1' Query 26 (slave): DELETE /* SiteStatsInit::refresh ... */ FROM `wiki_site_stats` WHERE ss_row_id = '1' Query 27 (slave): INSERT /* SiteStatsInit::refresh ... */ INTO `wiki_site_stats` (ss_total_edits,ss_good_articles,ss_total_pages,ss_users,ss_images,ss_row_id,ss_total_views) VALUES ('v1','v2','v3','v4','v5','v6','v7') Query 28 (slave): SELECT /* SiteStats::doLoad ... */ * FROM `wiki_site_stats` LIMIT 1 SiteStats::loadAndLazyInit: site_stats persistently nonsensical o_O Query 29 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:statistics-header-views' LIMIT 1 Query 30 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'linkPrefixExtension' LIMIT 1 Query 31 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:statistics-views-total' LIMIT 1 Query 32 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'separatorTransformTable' LIMIT 1 Query 33 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'digitTransformTable' LIMIT 1 Query 34 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:statistics-views-total-desc' LIMIT 1 Query 35 (slave): SELECT /* LCStore_DB::get ... */ lc_value FROM `wiki_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:statistics-views-peredit' LIMIT 1 LoadBalancer::getConnection: using server localhost for group SpecialStatistics Query 36 (slave): SELECT /* SiteStatsUpdate::cacheUpdate ... */ COUNT( DISTINCT rc_user_text ) FROM `wiki_recentchanges` WHERE (rc_user != 0) AND rc_bot = '0' AND (rc_log_type != 'newusers' OR rc_log_type IS NULL) AND (rc_timestamp >= '20121212143454') LIMIT 1 Query 37 (slave): UPDATE /* SiteStatsUpdate::cacheUpdate ... */ `wiki_site_stats` SET ss_active_users = '66' WHERE ss_row_id = '1'
There you can see "site_stats damaged or missing on slave" and other debug messages from SiteStats.php. How is it possible that the correct value of 66 is not displayed on the Special:Statistics page?
For testing I've set up a clean 1.18.2 installation with the current database and I got the same problem. So I think it is a database problem but I don't know if that's right.
Regards,
schrotteh Schrotteh (talk) 15:48, 11 January 2013 (UTC)
- The stats are checked before displaying and the checks would fail if any of these conditions are met :
- ss_total_pages < ss_good_articles
- ss_total_edits < ss_total_pages
- Any of the fields is less than 0 or greater than 2000000000
- I highly doubt the third one would would apply, since it's doing a count() and it would never return -1. And the upper limit shouldn't be reached (since even en.wp hasn't reached it yet)
- The first one also shouldn't be the problem, since as how are constructed both queries, ss_good_articles would contain always less rows or the same as ss_total_pages.
- The problematic one should be ss_total_edits < ss_total_pages, if there are inconsistencies like entries in the page table with no corresponding entries on the revision table. If that's the case, have you used any experimental extension to mass-delete pages or something like that? Ciencia Al Poder (talk) 17:39, 11 January 2013 (UTC)
- Hey, thanks for that quick answer and sorry for my late one!
- I checked my site_stats table and noticed that ss_admins is -1 (default) cause it is deprecated since MW version 1.5.
- Should I set ss_admins to 1 in the database or should I remove the "admins" string in the SiteStats.php isSane() function?
- (Setting ss_admins to 1 per default solved the problem on my test system)
- I know what caused the problem. It is the maintenance/initStats.php script I used. It sets the ss_admins value to -1.
- And yes, I used the MassEditRegex extension for external link modification on multiple pages but not for mass-delete.
- But as I can see, everything is allright with the revisions/pages and the numbers in the database are correct, too.
- Regards
- Schrotteh Schrotteh (talk) 09:00, 14 January 2013 (UTC)
- Well, if that solves that for you, then apply that change. "admins" is no longer used on that file as you can see, maybe it's a bug with 1.18 but that version of MediaWiki is now no longer supported. Ciencia Al Poder (talk) 10:27, 14 January 2013 (UTC)
- Yes, I think that's a pretty easy way to fix that.
- Thanks alot for your help and the tip with the isSane() function!
- Ps: I know that 1.18 is no longer supported but as I said I use mediawiki in a huge global company and its not that easy to just update whenever I want :) Schrotteh (talk) 11:38, 14 January 2013 (UTC)
- Well, if that solves that for you, then apply that change. "admins" is no longer used on that file as you can see, maybe it's a bug with 1.18 but that version of MediaWiki is now no longer supported. Ciencia Al Poder (talk) 10:27, 14 January 2013 (UTC)
Image Authorization not working in Mediawiki 1.20.2
I have the latest version of Mediawiki (1.20.2) installed on a bluehost shared server. I did what was given at Manual:Image_Authorization#Apache_Instructions_without_PATH_INFO_with_mod_rewrite:
1. Downloaded this file and put it in public_html/w/images folder.
2. Added the line "Deny from All" to the .htaccess file that came with installation in the folder public_html/w/images.
3. Added $wgUploadPath = "/wiki/cgi_img_auth.php"; in public_html/w/LocalSettings.php. Also tried the line $wgUploadPath = "cgi_img_auth.php" as suggested by someone on the discussion page.
4. Added following lines in public_html/w/images/.htaccess:
- RewriteEngine on
- RewriteRule ^/wiki/images(.*)$ /wiki/cgi_img_auth.php/$1 [R]
- RewriteRule ^wiki/cgi_img_auth.php/(.*) wiki/cgi_img_auth.php?path=/$1
- <Directory [server home path]/public_html/w/images>
- Options -Indexes
- </Directory>
Public listing of images directory is gone (throws 500 server error when w/images is accessed directly through browser) but all the images on all the pages are broken. Uploading works fine; it does upload the images into images directory though. Tried adding the above lines in public_html/.htaccess too, but that breaks the whole thing - throws an internal server error when I try to access any page. Are there any simple/standard/clearer steps or an extension to achieve this? Pardhu (talk) 04:17, 12 January 2013 (UTC)
- With the RewriteRules you have there, each call to wiki/images/* will be redirected to your cgi_img_auth.php script. Normally, without this script, you can just access the image files with your webbrowser. Now you say they are "broken". What exactly do you get, when you try to open an image file with your webbrowser? Any output in the webbrowser? An error in the PHP error log? 88.130.110.243 13:56, 12 January 2013 (UTC)
Can I have two MediaWiki installations on one Linux machine (2 domains)?
Hi, I have a Linux machine with 2 domain names runing. I already installed MediaWiki on one domain, now I want to install it on another domain.
Is this safe?
I need to have two completely separate wikis because the purpose is totaly different.
Thanks. Danijel~mediawikiwiki (talk) 13:01, 12 January 2013 (UTC)
- Yes, that is possible.
- If you are using Apache, you should set up two different Vhosts to handle the two domains. They can point to two different directories on the machine so that the files are completely separated. For the databases just set up two different databases on the same MySQL server and give each MediaWiki installation only access to that one database with its own data in it.
- Apart from that you can use different users/groups on a file system level to restrict the linux user of the one wiki to access the files of the other wiki and vice versa. You can also modify the MySQL rights of the MySQL users: They surely should not be allowed to change "the other" DB. But additionally you can also disallow certain operations inside the DB like DROP, TRUNCATE and the like to improve security.
- Also see Manual:Security. 88.130.110.243 13:45, 12 January 2013 (UTC)
Can't use both frame and resizing (px) when displaying images
- Using MediaWiki 1.15.5, it seems that the "frame" and "px" tags for image display can't
- be used simultaneously, i.e., either framing works or the resizing works, but not both.
- This produces a framed full-size image:
- This produces an unframed, resized image:
- This should produce a framed, resized image but does not:
- Thanks. 76.119.235.218 (talk) 09:15, 13 January 2013 (UTC)
- This is by design. "frame" renders the image at the actual size. If you specify a size and want the same "frame" style you should use "thumb" instead of "frame". See Help:Images. Ciencia Al Poder (talk) 11:02, 13 January 2013 (UTC)
- You can refer https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2011/04#h-framed_image_resize_does_not_work-2011-04-03T07%3A18%3A00.000Z, which has a workaround for this. Soumya.sadanandan (talk) 10:16, 13 January 2017 (UTC)
- No, you want to use thumb instead of frame. Ciencia Al Poder (talk) 10:32, 13 January 2017 (UTC)
I edit databse mdw_user and delete every user except admin, now i have a problem...
Hi I edit databse mdw_user and delete every user except my own user. after doing this i can't see login bar in top of mediawiki page and when i try to enter login's page it tells me there isn't any page with this name and you can create this page!!! what should i do now? "no i don't have backup" 188.245.80.112 (talk) 10:21, 13 January 2013 (UTC)
- Uh... you definitively screwed that up. MediaWiki uses a relational database. All entries in page history have relation with the user table. If you delete all users, those entries won't have a matching user in the user table and most likely the won't be accessible.
- If you are using MySQL and you have the binary log enabled, you may recover your database to the point before you deleted those users as you can see here. But be sure to take a database backup before performing this action.
- Alternatively, you may try to insert all the deleted rows of the User table by looking at the id's of Manual:Revision table (rev_user filed).
- Anyway, that shouldn't be the cause of the login page. maybe you're not accessing to the Special:Userlogin page but a [[userlogin]] page?. Try accessing through Special:Specialpages.
- PD: Also, for removing users you can use Extension:User Merge and Delete. Ciencia Al Poder (talk) 11:14, 13 January 2013 (UTC)
Review restrictions
As far as I understood, in a corporate wiki it's possible to restrict permissions for editing pages, but can we hide some pages so that separate groups cannot see them at all? Rizossa (talk) 13:08, 13 January 2013 (UTC)
- Here is a reference with all the warnings about what is possible and why you should be careful with it: Category:Page_specific_user_rights_extensions ☠MarkAHershberger☢(talk)☣ 16:26, 13 January 2013 (UTC)
Unable to completely download file from wikimedia
Hi, I am Nikhil. I am an art student, basically who is practicing sketch and painting. Recently i am working on leonardo da vinci painting..(working with his techniques)....i was downloading this file http://en.wikipedia.org/wiki/File:Saint_Jean-Baptiste,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg#globalusage so that i will be able to work on it. This file is copyright free. Whenever i try downloading this file (the full resolution, 90.13 mb file), the download does not goes beyond 5.8%. I tried downloading this from many different places but the result is same. As wikipedia provides the most detailed and exact copy of this painting, i am left with no other option. Please help... - Thanks 182.237.169.219 (talk) 07:54, 14 January 2013 (UTC)
- Assuming that you refer to http://upload.wikimedia.org/wikipedia/commons/5/56/Saint_Jean-Baptiste%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg I don't have problems here to download it. Try a different browser and/or internet connection? AKlapper (WMF) (talk) 13:26, 14 January 2013 (UTC)
Forbid directly Page call
Hi,
is there any way, to forbid a directly page-call from URL? i want that the user can only open the pages over the navigation.
i use MediaWiki 1.20.2
thx for your help 87.152.230.27 (talk) 09:45, 14 January 2013 (UTC)
[SOLVED] Wiki doesn't not show correct on client
Hi everyone,
i have a issue with the visualization of my wiki on the clients. I've installed the wiki on a virtual machine, and in the virtual machine everything works fine, but when i access the index.php page from a client it shows only text page.
this is the image of the error: http://i28.photobucket.com/albums/c227/raimo85/Snap510_zps0a928cc0.jpg
can you give me a little help please? i don't understand why this is happening
wikimedia: mediawiki-1.20.2 running on win2003 server , apache and mysql 62.241.28.18 (talk) 11:00, 14 January 2013 (UTC)
- All styles are missing. What happens when you try accessing load.php with your webbrowser? Make sure you can access the file and you do not get an error when you do so. 88.130.98.6 13:11, 14 January 2013 (UTC)
- Looks like the CSS do not get loaded. Sure that you can access them? AKlapper (WMF) (talk) 13:30, 14 January 2013 (UTC)
- first of all: thx for the replies.
- wiki = name of my testing mediawiki.
- i've tried to access the load.php writing this url: http://hostname/wiki/load.php
- and my browser ask me to download it. no errors.
- about accessing the CSS, i'm administrator of the LAN and i'm using 1 server (win2003) and 1 client (win7) logged in both with my account. i shouldn't have any problem accessing files from the server, i usually don't.
- Right after the installation, without changing anything, if i try to open the index.php from the client i get that page without the css. 83.221.114.244 13:42, 14 January 2013 (UTC)
- > i've tried to access the load.php writing this url: http://hostname/wiki/load.php and my browser ask me to download it.
- Your browser should display the contents of that file. You actually should see some CSS code. Or if you just open the file without any parameters in the URL, there should be one line of text saying something like "Max made me put this here" or so. 88.130.98.6 14:14, 14 January 2013 (UTC)
- Thanks again for the help,
- luckly i've found the solution. the users didn't have the privileges to open mysql. I granted all privileges to all the users and now everything works fine.
- http://localhost/phpmyadmin/
- At least we have a previous case now :) 62.241.24.18 14:32, 14 January 2013 (UTC)
Multilevel Sidebar
Hi,
there are several discussions about a multilevel sidebar in MediaWiki. But i havent seen any solutions. I readed that's possible to modified the skin.php But there wasn't any description how.
can you help me?
thx 87.152.230.27 (talk) 13:10, 14 January 2013 (UTC)
- See Category:Sidebar_extensions -- it may have what you need.
- (fixed) ☠MarkAHershberger☢(talk)☣ 00:57, 15 January 2013 (UTC)
- That is the page, which Mark has linked: Category:Sidebar_extensions. :-) 88.130.82.6 05:01, 15 January 2013 (UTC)
- Thanks for your help!
- do you have any experience with one of these extension? Which on can you recommend?
- thx a lot 87.152.229.104 09:22, 15 January 2013 (UTC)
- The only one I have experience with is Extension:DynamicSidebar. But I don't think that would do anything for your multi-level need.
- In fact, from my limited experience with the sidebar and skins, I would say you'll probably end up writing some code to do what you want. ☠MarkAHershberger☢(talk)☣ 19:54, 15 January 2013 (UTC)
- That is the page, which Mark has linked: Category:Sidebar_extensions. :-) 88.130.82.6 05:01, 15 January 2013 (UTC)
[RESOLVED] 1.20.2 tar does not contain mw-config folder
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I can't see the mw-config folder in the 1.20.2 tar distrib kit. As it is required - with an index.php in it - to install Mediawiki, I'm wondering how to make it appear in order to proceed to the installation process. Thanks for any help. Godint (talk) 14:20, 14 January 2013 (UTC)
- Maybe you did not download MediaWiki from the official servers or your download was broken?
- However: This file is the official download and it contains the mw-config folder. 88.130.98.6 16:04, 14 January 2013 (UTC)
- Thanks for your reply. But I don't see the mw-config folder in the file from the link you gave either (http://img22.imageshack.us/img22/5716/mw1202kitcontent.jpg). BTW, it is the file I downloaded already. Godint (talk) 16:23, 14 January 2013 (UTC)
- That is ... interesting. I used WinRar to open the file (just like you obviously do) and I do see all folders...
- In your screenshot it seems like the file would be named "...tar" and not ...tar.gz. Does it change anything when you add that ".gz" again? It might be that WinRar determines the compression mechanism depending on the file type (at least I cannot open the file [at all], when the ".gz" is missing). 88.130.98.6 16:54, 14 January 2013 (UTC)
- Really strange !!! I just used 7-ZIP instead of WinRAR and all folders appear now ... including mw-config !!! I have no explanation, but I got it !!! Thanks for your help. Godint (talk) 17:37, 14 January 2013 (UTC)
- Sometimes computer programs do strange things - just like humans. ;-) 88.130.82.6 05:04, 15 January 2013 (UTC)
- Really strange !!! I just used 7-ZIP instead of WinRAR and all folders appear now ... including mw-config !!! I have no explanation, but I got it !!! Thanks for your help. Godint (talk) 17:37, 14 January 2013 (UTC)
- Thanks for your reply. But I don't see the mw-config folder in the file from the link you gave either (http://img22.imageshack.us/img22/5716/mw1202kitcontent.jpg). BTW, it is the file I downloaded already. Godint (talk) 16:23, 14 January 2013 (UTC)
Problems with Events Extension
Hi everyone,
I updated a Mediawiki 1.12.x running on Windows/Apache/MySQL 5.0.67/PHP 5.2.17 to MediaWiki 1.18.6 with the result that the Events Extension (http://www.mediawiki.org/wiki/Extension:Events) 0.2 doesn't work anymore. It was not possible to create new events and all older events are at 22. August 1970.
I downloaded the new extension 3.1 and installed it. First I received you must define aliases for English. Loaded files are: en.specialalias.php, fr.specialalias.php
than I reloaded the page and I receive a database error: 1146: Table 'mediawikidb.user_tables' doesn't exist.
I transfered the Wiki to a Testsystem Linux/Apache/MySQL/PHP with the same result:
you must define aliases for English. Loaded files are: en.specialalias.php, fr.specialalias.php.
Aliases = Array
(
)
Tmp = Array
(
)
Backtrace:
- 0 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/LocalisationCache.php(408): include()
- 1 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/LocalisationCache.php(569): LocalisationCache->readPHPFile('/homepages/13/d...', 'aliases')
- 2 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/LocalisationCache.php(355): LocalisationCache->recache('de')
- 3 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/LocalisationCache.php(259): LocalisationCache->initLanguage('de')
- 4 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/LocalisationCache.php(205): LocalisationCache->loadItem('de', 'fallback')
- 5 /homepages/13/d76221041/htdocs/Wiki-Testsystem/languages/Language.php(3333): LocalisationCache->getItem('de', 'fallback')
- 6 /homepages/13/d76221041/htdocs/Wiki-Testsystem/languages/Language.php(189): Language::getFallbackFor('de')
- 7 /homepages/13/d76221041/htdocs/Wiki-Testsystem/languages/Language.php(140): Language::newFromCode('de')
- 8 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/Setup.php(436): Language::factory('de')
- 9 /homepages/13/d76221041/htdocs/Wiki-Testsystem/includes/WebStart.php(157): require_once('/homepages/13/d...')
- 10 /homepages/13/d76221041/htdocs/Wiki-Testsystem/index.php(53): require('/homepages/13/d...')
11 {main}
and than:
1146: Table 'db123456789.user_tables' doesn't exist (db123456789.db.1and1.com)
I don't understand the error message. The table Events exsists, but why the extension is looking for the table user_tables and who create this table in normal case?
Someone who can help me, please?
regards Stephan 193.197.148.126 (talk) 14:23, 14 January 2013 (UTC)
upgrading and migrating media wiki
Hi ,
i would like to upgrade and migrate media wiki, Media wiki details: Media wiki version: 1.14 Os: RHEL5 SQL VERSION: 5.0 PHP: 5.1
I would like to upgrade to: Media wiki: 1.20 Os: RHEL 6
Can you please send me if you have any How to's or step by step document.
Thanks
Vikram Vikramv9 (talk) 14:42, 14 January 2013 (UTC)
- Hi Vikram,
- Manual:Upgrading contains all the steps you need to know. 88.130.98.6 15:57, 14 January 2013 (UTC)
Autoincrement extension
Hi, I'm using the Autoincrement extension, and it works great, but I'd like to alter the file so that instead of outputting 1, 2, 3, etc., it'll output group1, group2, group3, etc. However, I don't seem to have enough knowledge of php to do this, even though it should be pretty simple. Can anyone provide me with some code? Pocket lint (talk) 15:15, 14 January 2013 (UTC)
How to change link to registration page?
Hi all! I have made other registration page with some other sequrity principles! So now i need to change the link to this registration page! How can i do it? Fokebox (talk) 20:30, 14 January 2013 (UTC)
- I would like to know that as well. I use a special login page and I found out how to modify the link in the menu.
- But on pages, which are restricted to logged-in users, e.g. on Special:Upload, the login link is still pointing to the MediaWiki default page.
- Does MediaWiki offer a way to change that? 88.130.79.72 19:55, 17 January 2013 (UTC)
- In case of the upload page the language label named "uploadnologintext" is used. This label just contains a normal wiki link like so: [[Special:UserLogin]]. Now one could obviously override this text in MediaWiki:Uploadnologintext, but this does not seem to be ideal: Message texts might change after MediaWiki updates, so that you always have to invest time in checking them again and again. And you still run in danger of either no longer having the current text or of having forgotten to change a link, which was added in the new MW version. Also there are possibly hundreds of messages, which contain a link to Special:UserLogin. It is not practible to override each single one of them - and that in all different languages!
- To me it seems to be better to change a call to the ...Special:UserLogin page so that the server (not MediaWiki) returns another page (the one you want). That is possible with some small RewriteRules in .htaccess. You need to take care to preserve any parameters you might need (like the information on which page the user was before he triggered the login so that you can redirect him back there after successful login).
- Am I missing something important? Is there a better idea? A hook maybe? 88.130.106.98 03:33, 18 January 2013 (UTC)
Id-Number in table
Hi,
i need a table with several of lines. This lines have an index.
Example:
ID Name 1 Name1 2 Name2 3 Name3
and so on...
when i want change the position of a line, i have to edit all these Id's
now my question:
Is it possible to set the ID's automaticly?
thx for your help! 87.152.229.104 (talk) 09:34, 15 January 2013 (UTC)
- This has been requested before on bugzilla:10433 and bugzilla:40618. Although there was no current impementation inside MediaWiki, you can find some solutions there. Ciencia Al Poder (talk) 10:29, 15 January 2013 (UTC)
designing an own skin
I know this is not really an urgent topic. But after trying for months, I want to ask if somebody knows how to design a new skin for my latest MediaWiki installation 1.19.0 .
I tried to copy/rename a default skin, renaming and updating the 2 PHP files in skins root with new class and lib names etc. But all what I get is a skin without any styles etc. I checked 2 internet pages for help, but they are showing the content for the skin and not what to do if I want to copy and modify a skin. I don't want to destroy one of my default skins and the help page for Skinning are old in here (it's ok because not many users want to change a skin).
Can please somebody give me a hint what I maybe do wrong and should do to start with a complete new skin or modifying a copied skin.
thanx a lot Mike greetings Mike (talk) 10:53, 15 January 2013 (UTC)
- You should check out Daniel Friesen's Tutorial: Creating a custom skin for MediaWiki 1.18+. ☠MarkAHershberger☢(talk)☣ 19:56, 15 January 2013 (UTC)
- i imagine what happened is that you copied the skin, changed the name, but didn't account for the fact that your new skin with the new name doesn't have entries in the ResourceLoader for it's styles and stuff. Bawolff (talk) 21:38, 17 January 2013 (UTC)
upgrade and DLP/intersection issue
So i've upgrade a very old wiki/db setup to soemthing a bit more current. old system was
Product Version MediaWiki 1.15.4 PHP 5.3.20 (apache2handler) PostgreSQL 8.1.23
new setup is
Product Version MediaWiki 1.20.2 PHP 5.3.20 (apache2handler) PostgreSQL 8.4.15
The wiki seems to be installed ok ie it loads and i can view pages and hte search function works but i'm having problems with DPL as most of the wiki is built around dynamic pages. the new wiki just says "No pages meet these criteria." I'm pretty sure i've followed the upgrade instruction correctly, Can anyone shed any light on where i might have gone wrong and how to rectify it? i'm using this dpl code
<DynamicPageList> category = Tools ordermethod=sortkey order=ascending </DynamicPageList>
Atemoya (talk) 11:42, 16 January 2013 (UTC)
- Hi.
- DynamicPageList isn't very well tested on postgress (since most the users that use it are on mysql), so there's a possibility that there is a compatibility issue somewhere.
- Just to confirm:
- After upgrading your wiki, you also upgraded your version of extension:DynamicPageList (Wikimedia).
- When you updated your wiki you ran either the update.php script or the web upgrader (I imagine you did this, or everything would be broken)
- Viewing the page category:Tools displays all the articles in that category
- Even after making a dummy edit to the page containing the <DynamicPageList> the issue is still present. Bawolff (talk) 21:32, 17 January 2013 (UTC)
- long deley due to work,
- i's not an upgrade it's a new install, i exported the data form the old wiki and ran though the steps to convert it into the format for newer postgres, viewing the page category:Tools just says This category currently contains no pages or media. even after a dummy edit. 62.232.66.142 09:32, 13 February 2013 (UTC)
- There is a maintenance script called rebuildall.php. This script is supposed to flush and re-fill empty/broken database tables. Maybe this helps.
- (I just noticed that you are not only speaking of broken categories, but also of DynamicPageList. rebuildall.php won't help there. Maybe what you see is not a configuration issue, but a bug?) 88.130.103.121 13:57, 13 February 2013 (UTC)
- refreshLinks.php is probably the script needed for that (rebuildAll might work too).
- Note, that script can take a long time to run on bigger wikis Bawolff (talk) 19:31, 14 February 2013 (UTC)
Alternative for Extension Events?
Hi,
the Extension:Events (http://www.mediawiki.org/wiki/Extension:Events) doesn't work anymore and it seems there is no fix (http://www.mediawiki.org/wiki/Project:Support_desk#Problems_with_Events_Extension_22553).
Is there any alternative with such functions? I need an extension or funktion that collect events all over the wiki on a seperate page.
regards Stephan 212.9.170.194 (talk) 16:43, 16 January 2013 (UTC)
Can you convert from MediaWiki to Wordpress
I'm wondering if there are any tools to export the data that is currently in mediawiki to a word press format? 198.140.211.77 (talk) 17:17, 16 January 2013 (UTC)
- MediaWiki already has export features. Someone wrote a script that allows you to import the export to WordPress. ☠MarkAHershberger☢(talk)☣ 19:43, 16 January 2013 (UTC)
- you may convert your mediawiki website data to wordpress with cms2cms migration tool. For more detailed info check this http://www.cms2cms.com/supported-cms/mediawiki-to-wordpress-migration 92.52.129.82 15:52, 17 September 2013 (UTC)
CSS - Pages have moved to 0px and I can't change the Common.css
I made a change to my Common.css at WOIweb.com and I no longer can see my pages (I'm sure it was a dimension change that shows 'none'). I don't know how to change it back since I can't see the pages (see pic below).
Running current everything: http://i.imgur.com/12ccy.png Woiow (talk) 18:44, 16 January 2013 (UTC)
- You have
#content { display:none; }
- in your MediaWiki:Common.css. If you remove that, you should be able to see the content. ☠MarkAHershberger☢(talk)☣ 19:40, 16 January 2013 (UTC)
- Where do I find this on FTP or where/how can I change it when I can't see it? Woiow (talk) 20:15, 16 January 2013 (UTC)
- If you have firebug, you could delete the rule and then edit the page. ☠MarkAHershberger☢(talk)☣ 20:16, 16 January 2013 (UTC)
- There is no file that you can get at for MediaWiki:Common.css.
- However, you have css files that you can get to on disk. In your installation, if you edit the file at http://www.wheelsofitaly.com/wiki/extensions/SlimboxThumbs/slimbox/css/slimbox2.css and add
#content { display: block !important; }
- to the top of the file, you should then be able to reload a page and get at your Common.css on-wiki and edit it to fix the problem. ☠MarkAHershberger☢(talk)☣ 20:25, 16 January 2013 (UTC)
- Where do I find this on FTP or where/how can I change it when I can't see it? Woiow (talk) 20:15, 16 January 2013 (UTC)
blank start page after new installation and configuration
Hi,
Installed the version 1.20.2 completely new and configured it. Then, it says I should save the LocalSettings.php file - as expected. I copied it in the wiki directory.
But whe I go to the wiki-page it is blank, except for some warnings:
http://www.menschen-gerechte-gesellschaft.de/wiki
What's the matter here? I installed and configured two times, same result. Pls help...
kind regards Christoph 94.216.136.166 (talk) 22:01, 16 January 2013 (UTC)
- Hi Christoph,
- you need to make a PHP setting. Basically the first error message says it all: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
- You can make that setting in a php.ini file.
- This should solve all the errors, which you see currently. No idea, why you get no ouput apart from that - maybe that also changes after having solved the timezone problem. 88.130.79.72 01:45, 17 January 2013 (UTC)
- If you don't have access to php.ini (because shared webhost or whatever), you could apply the patch gerrit:38650 (bugzilla:43594) Ciencia Al Poder (talk) 10:42, 17 January 2013 (UTC)
- Only the first warning is related to the timezone thing. This shouldn't cause any badness other then an ugly warning message (The ugly warning should not be displayed, its a bug from when MediaWiki is used with php 5.4 or greater. It should be fixed next version. The previous comments in this bug give work arounds. An even easier work around is putting something like
$wgLocaltimezone = 'Europe/Berlin';
at the bottom of LocalSettings.php. See manual:$wgLocaltimezone for details on what that does) - The other warnings are due to whitespace in the beginning of your LocalSettings.php file. Make sure that there are no newlines (or anything else) between the start of that file and
<?php
. If it looks like there's nothing there, you may also have to check for BOM's, but the error message said line 3, so unlikely to be a BOM - In this case, the no output might be an issue with redirection (since http://www.menschen-gerechte-gesellschaft.de/wiki/index.php/Hauptseite works fine). I suspect the warnings being output (headers already sent) prevent MediaWiki from being able to do redirection. I think once they are all cleared up, your site will probably work fine (Well it also looks like you need to run update.php/ the web upgrader to fix the survey extension). Bawolff (talk) 22:03, 17 January 2013 (UTC)
- Well, indead I don't have access to php.ini.
- So I downloaded and installed the patch - with not much result.
- Still error messages and a blank page.
- Could it be the problem tha t the memory max is set too low or something like that?
- Dokuwiki runs well on the server but it has no sufficient right management... 84.56.39.180 22:18, 20 January 2013 (UTC)
- The error isn't caused by memory, but by a lack of timezone setting. See $wgLocaltimezone as Bawolff suggests. ☠MarkAHershberger☢(talk)☣ 22:30, 20 January 2013 (UTC)
- Only the first warning is related to the timezone thing. This shouldn't cause any badness other then an ugly warning message (The ugly warning should not be displayed, its a bug from when MediaWiki is used with php 5.4 or greater. It should be fixed next version. The previous comments in this bug give work arounds. An even easier work around is putting something like
- If you don't have access to php.ini (because shared webhost or whatever), you could apply the patch gerrit:38650 (bugzilla:43594) Ciencia Al Poder (talk) 10:42, 17 January 2013 (UTC)
- Visit http://www.menschen-gerechte-gesellschaft.de/wiki/index.php/Main_Page?action=edit , this is interesting and maybe the problem is not caused by mediawiki, try to figure it out somewhere else. Good luck. Cusion89 (talk) 11:03, 21 January 2013 (UTC)
- You should set a correct timezone in your php.ini. It's currently "CET/1.0/no DST", as the error message says. I think Setup.php is called before LocalSettings.php, so setting it in LocalSettings.php won't make any effect. Ciencia Al Poder (talk) 10:31, 22 January 2013 (UTC)
- No. Setup.php is called after LocalSettings.php. Setting $wgLocaltimezone at the bottom of LocalSettings.php will prevent the relevant code in Setup.php from executing.
- Note: Fixing the setting in php.ini, while may be a good idea, is not required to fix your issue.
- -----
- "So I downloaded and installed the patch - with not much result"
- Then you did it wrong :P. The patch will prevent outputting that error. I can still see that error on your wiki. Bawolff (talk) 16:03, 23 January 2013 (UTC)
- You should set a correct timezone in your php.ini. It's currently "CET/1.0/no DST", as the error message says. I think Setup.php is called before LocalSettings.php, so setting it in LocalSettings.php won't make any effect. Ciencia Al Poder (talk) 10:31, 22 January 2013 (UTC)
I suspect a problem with my installation...
Sorry for the vague subject, I'm not that experienced.
MediaWiki: 1.20.2; PHP: 5.4.10 (cgi-fcgi); MySQL: 5.5.29-log URL: http://privat.mohsart.se/mats/tbwiki/index.php?title=Kategori:%C3%85%C3%A4%C3%B6
There is a bug affecting all Swedish Wikis in that the collation is faulty (ÄÅÖ instead of ÅÄÖ), and a fix for that is available. See https://bugzilla.wikimedia.org/show_bug.cgi?id=29788 for details.
After much ado I have verified most everything about implementing the fix (code in place, updateCollation.php run and collation is changed in the database - which should mean that the code is running) Still, it doesn't work in my installation.
Since the fix was verified to be working by others, I suspect a problem elsewhere than in the actual fix, ie in my installation.
Any tips on where to look is most welcome (ie which files/DB tables...) and how to best verify that my installation is OK.
Thanks!
mats@mohsart.se 83.226.84.183 (talk) 08:57, 17 January 2013 (UTC)
- I don't know enough about that change to help you. I've asked someone who knows more to chime in from over there. ☠MarkAHershberger☢(talk)☣ 16:31, 17 January 2013 (UTC)
- Thanks.
- As you may have seen, I have got a lot of help about the bug and the fix.
- What I would like is some hints about what files etc could cause the switch to a addon collation (not one of the ones available in a clean install) to not come into effect.
- That is, with any extra collation chosen, the standard collation is still the one used.
- (I don't know if this is the case, so if someone knows of another addon collation - or what to call it - that would also be very helpful so that I could test if that one is working.) 83.226.84.183 19:51, 17 January 2013 (UTC)
PHP Notice: Undefined offset: 0 in /srv/www/vhosts/wiki/extensions/LdapAuthentication.php on line 1208
I see this error in my error log file when doing a ldap login on my local wiki:
PHP Notice: Undefined offset: 0 in /srv/www/vhosts/wiki/extensions/LdapAuthentication.php on line 1208, referer: http://mywiki.mydomain:82/index.php?title=Special:UserLogin&returnto=Main_Page
Although the error is showd, it seems that login works properly. But just out of curiosity I think it's better to solve the problem.
Any suggestions would be really appreciated.
Thanks 192.198.151.44 (talk) 11:48, 17 January 2013 (UTC)
- Some version information would be helpful here. The LdapAuthentication extension has probably had that bug fixed since you installed it. In the current code, I don't see anything on that line that would cause this. ☠MarkAHershberger☢(talk)☣ 14:39, 17 January 2013 (UTC)
- Hi, this is my current version:
MediaWiki 1.15.1
PHP 5.2.14 (apache2handler)
MySQL 5.0.95
- Other
- LDAP Authentication Plugin
- (Version 1.2a (beta)) LDAP Authentication plugin with support for multiple LDAP authentication methods Ryan Lane
- NamespacePermissions
- (Version ) flexible access management for custom namespaces Petr Andreev
- I suppose that I should get the last LDAP Authentication Plugin version, but I don't know if it will work with my current options:
require_once( "$IP/extensions/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array("DO1","DO2","DO3"); $wgLDAPServerNames = array("DO2"=>"do2.corp.company.com","DO1"=>"do1.corp.company.com","DO3"=>"do3.corp.company.com"); $wgLDAPSearchStrings = array("DO2"=>"DO2\\USER-NAME","DO1"=>"DO1\\USER-NAME","DO3"=>"DO3\\USER-NAME"); $wgLDAPUseLocal = true; $wgLDAPEncryptionType = array("DO2"=>"clear","DO3"=>"clear","DO1"=>"clear"); $wgLDAPUseSSL = false; $wgLDAPEncryptionType = array( "DO2"=>"false", "DO1"=>"false", "DO3"=>"false" ); $wgLDAPBaseDNs = array("DO2"=>"dc=corp,dc=company,dc=com","DO1"=>"dc=corp,dc=company,dc=com","DO1"=>"dc=corp,dc=company,dc=com"); $wgLDAPProxyAgent = "CN=iNNL NIS robot,OU=Services,OU=Accounts,OU=Dev research,OU=Resources,DC=do2,DC=corp,DC=company,DC=com"; $wgLDAPProxyAgentPassword = "proxypass"; $wgLDAPSearchAttributes = array("DO2"=>"sAMAccountName","DO1"=>"sAMAccountName","DO3"=>"sAMAccountName");
- So:
- How do I download and replace the LdapAuthentication.php extension?
- Will my current options work with the new extension version?
- Thanks so much. 192.198.151.43 09:23, 18 January 2013 (UTC)
- The extension is available from Extension:LDAP Authentication. Just follow the download link in the box in the top right corner.
- I don't know, if you have to change some settings. Just update and try out. Maybe the extension has a Readme or a ChangeLog coming with it. Read them to see, if there are changes you need to do! :-)
- Btw: I just noticed that your MediaWiki version is really old. The extension LDAP Authentication only supports MediaWiki 1.19 and newer. So if you only update the extension and not also MediaWiki, I would not guarantee that it is actually working correctly. :-( 88.130.95.173 07:06, 19 January 2013 (UTC)
- You can upgrade your site to MediaWiki 1.19 -- I don't think 1.20 will work with your version of PHP. ☠MarkAHershberger☢(talk)☣ 16:21, 19 January 2013 (UTC)
- Alright, I've gone back to the version of LdapAuthentication.php that is marked "1.2a (beta)" but line 1208 contains only a closing brace, nothing that would cause "Undefined offset: 0".
- What do you see on line 1208 of your copy of LdapAuthentication.php? ☠MarkAHershberger☢(talk)☣ 01:17, 20 January 2013 (UTC)
- I see this line:
$userdn = $info[0]["dn"];
192.198.151.36 09:28, 21 January 2013 (UTC)- if you just want to get rid of the messages, then change that line to
$userdn = (isset($info[0]) ? $info[0]["dn"] : "";
- But, really, the code you're using looks pretty old. I would upgrade. ☠MarkAHershberger☢(talk)☣ 14:09, 21 January 2013 (UTC)
[RESOLVED] Upgrading from 1.16.4 to 1.19.2 - rc_timestamp error
- Hi,
- I've been trying to update my version of mediawiki, when I go through the command prompt I am getting this error.
- I'm doing this at work and don't know a huge amount about this so any help would be appreciated. To help I found a forum where someone has had the same error and posted the error messages, I think they found a solution but I couldn't make any sense of it.
- Link to forum: http://www.gossamer-threads.com/lists/wiki/mediawiki/283414
- Thanks in advance! 81.144.199.142 (talk) 13:37, 17 January 2013 (UTC)
- Could you post the output of what you're seeing? If that post has your error, could you add
$wgShowExceptionDetails = true;
- to the end of your LocalSettings.php file and try again? ☠MarkAHershberger☢(talk)☣ 14:32, 17 January 2013 (UTC)
- Hi Mark,
- Thanks for your swift response, the output I am getting now:
Missing rc_timestamp field of recentchanges table. Should not happen. Backtrace: #0 [internal function]: MysqlUpdater->doIndexUpdate() #1 C:\xampp\htdocs\millipedia\includes\installer\DatabaseUpdater.php(281): call_ user_func_array(Array, Array) #2 C:\xampp\htdocs\millipedia\includes\installer\DatabaseUpdater.php(244): Datab aseUpdater->runUpdates(Array, false) #3 C:\xampp\htdocs\millipedia\maintenance\update.php(121): DatabaseUpdater->doUp dates(Array) #4 C:\xampp\htdocs\millipedia\maintenance\doMaintenance.php(105): UpdateMediaWik i->execute() #5 C:\xampp\htdocs\millipedia\maintenance\update.php(151): require_once('C:\xamp p\htdocs...') #6 {main}
- Hope this helps.
- Ta 81.144.199.142 14:48, 17 January 2013 (UTC)
- I'll try an upgrade from 1.16.4 myself, but I think that should work.
- Since you're using XAMPP, could you paste the create the structure of the recentchanges table that you see in in phpmyadmin? ☠MarkAHershberger☢(talk)☣ 16:02, 17 January 2013 (UTC)
- Hi Mark,
- This is the table structure from the database dump:
CREATE TABLE `tda_recentchanges` ( `rc_id` int(11) NOT NULL auto_increment, `rc_timestamp` varbinary(14) NOT NULL default '', `rc_cur_time` varbinary(14) NOT NULL default '', `rc_user` int(10) unsigned NOT NULL default '0', `rc_user_text` varbinary(255) NOT NULL, `rc_namespace` int(11) NOT NULL default '0', `rc_title` varbinary(255) NOT NULL default '', `rc_comment` varbinary(255) NOT NULL default '', `rc_minor` tinyint(3) unsigned NOT NULL default '0', `rc_bot` tinyint(3) unsigned NOT NULL default '0', `rc_new` tinyint(3) unsigned NOT NULL default '0', `rc_cur_id` int(10) unsigned NOT NULL default '0', `rc_this_oldid` int(10) unsigned NOT NULL default '0', `rc_last_oldid` int(10) unsigned NOT NULL default '0', `rc_type` tinyint(3) unsigned NOT NULL default '0', `rc_moved_to_ns` tinyint(3) unsigned NOT NULL default '0', `rc_moved_to_title` varbinary(255) NOT NULL default '', `rc_patrolled` tinyint(3) unsigned NOT NULL default '0', `rc_ip` varbinary(40) NOT NULL default '', `rc_old_len` int(11) default NULL, `rc_new_len` int(11) default NULL, `rc_deleted` tinyint(3) unsigned NOT NULL default '0', `rc_logid` int(10) unsigned NOT NULL default '0', `rc_log_type` varbinary(255) default NULL, `rc_log_action` varbinary(255) default NULL, `rc_params` blob, PRIMARY KEY (`rc_id`), KEY `rc_timestamp` (`rc_timestamp`), KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), KEY `rc_cur_id` (`rc_cur_id`), KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), KEY `rc_ip` (`rc_ip`), KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) ) ENGINE=InnoDB AUTO_INCREMENT=56828 DEFAULT CHARSET=binary;
- Hope that helps.
- Ta 81.144.199.141 09:41, 18 January 2013 (UTC)
- weird. The error is "Missing rc_timestamp field of recentchanges table" and yet, there it is:
CREATE TABLE `tda_recentchanges` (
`rc_id` int(11) NOT NULL auto_increment,
`rc_timestamp` varbinary(14) NOT NULL default
- That is strange. What versions do you have of php, mysql and mediawiki?
- What OS is this mediawiki running on? ☠MarkAHershberger☢(talk)☣ 05:54, 19 January 2013 (UTC)
- And apart from Mark's questions: Are you really, really sure that for the table structure you have checked the same database as the one which MediaWiki uses? 88.130.95.173 06:55, 19 January 2013 (UTC)
- Hi Mark,
- Just to confirm I am using the correct database.
- Also the versions are:
PHP: 5.4.4
mySQL: 5.5.25a
Apache: 2.4.2
- Just to add a bit more information, the database that millipedia is currently looking at is the old database version that we are trying to update aswell.
- Ta 81.144.199.141 10:27, 21 January 2013 (UTC)
- You didn't give the OS, but I'll assume it is some sort of linux.
- Could you paste your $wgDB* (except the pasword) settings from LocalSettings.php? ☠MarkAHershberger☢(talk)☣ 17:41, 21 January 2013 (UTC)
- Apologies, my OS is Windows 7 pro
- db settings: ## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "milliwikidb2";
$wgDBuser = "root";
- Ta 81.144.199.141 09:17, 22 January 2013 (UTC)
- hrm... I don't see a $wgDBprefix but you clearly need one.
- If you add
$wgDBprefix = "tda_";
- to your LocalSettings.php does that solve the problem? ☠MarkAHershberger☢(talk)☣ 22:23, 23 January 2013 (UTC)
- Hi Mark!
- I did in fact have a $wgDBprefix var but it was an empty string. So I added that and it went through update process perfectly.
- Thank you very much for your help. 81.144.199.141 10:19, 24 January 2013 (UTC)
- I had to add the underscore to the "tda_" in LocalSettings.php 174.125.89.129 01:27, 9 December 2014 (UTC)
- Another potential reason for getting this is if you try to update a non-existing database. See T236671. [[kgh]] (talk) 20:23, 11 March 2023 (UTC)
[RESOLVED] Failing at Infoboxes - Please Help
MediaWiki 1.19.0
PHP 5.2.17 (cgi-fcgi) MySQL 5.0.96-log
Online game I help with is based around pro-wrestling, and I got bored, wanted to throw a ton of information up presented fifty billion ways which lead to the creation of my wiki. Everything is going fine, learning tons, but then I try to figure out how to give it that Wikipedia look with infoboxes, and I don't know, it just fails. Did a Special:Export/Import, copied over the "template:infobox professional wrestler". When that had missing templates, went and tracked them down. Got as many as I could find to try and piece it together. Fails. I've got Extension:ParserFunctions installed and setup, that's fine. I just.. I'm not sure what exactly I'm missing and any help would be much appreciated.
For a demonstration of the page (don't mind the mess, in between making layout sets for everyone, it's on the top) my wiki page being used is at.. http://ewazone.com/wiki/index.php?title=Lone_Jobber Lone Jobber (talk) 15:11, 17 January 2013 (UTC)
- Look at en:MediaWiki:Common.css and copy the infobox styling to your own Common.css. ☠MarkAHershberger☢(talk)☣ 16:43, 17 January 2013 (UTC)
- Thank you very much, fixed it right up. Lone Jobber (talk) 16:50, 17 January 2013 (UTC)
php update.php error
hi
when i try to update wiki it is giving me below error.
MediaWiki 1.20.0 Updater
DB connection error: Access denied for user 'wikiadmin'@'localhost' (using password: YES) (localhost)
in my Localsettings.php file i have other user, from where it is checking wikiadmin user. please help
Thanks
Vik Vikramv9 (talk) 15:15, 17 January 2013 (UTC)
- Could you post your LocalSettings.php (make sure to remove any passwords and other private information) to and link to it here? ☠MarkAHershberger☢(talk)☣ 16:35, 17 January 2013 (UTC)
- Also, you should use the latest 1.20 version instead of 1.20.0 -- there have been a couple of security updates. ☠MarkAHershberger☢(talk)☣ 16:35, 17 January 2013 (UTC)
- Hi,
- I have fixed by removing StartProfiler.php, it working fine now,
- but i have installed 1.20 .
- do i need to update againg for 1.20.
- how to upgrade extension on 1.20.
- please assist.
- Thanks
- Vik Vikramv9 (talk) 17:01, 17 January 2013 (UTC)
- Ah... another instance of bugzilla:32760.
- Now that you have 1.20 installed, updating to 1.20.2 should be easy. Just download the latest and go.
- As far as extensions, which ones do you have installed? Have you updated them to 1.20 compatible versions? ☠MarkAHershberger☢(talk)☣ 17:32, 17 January 2013 (UTC)
- i have upgrading from 1.14 to 1.20 , confused which and how to upgrade the extensions. Vikramv9 (talk) 09:56, 18 January 2013 (UTC)
- Look at your Special:Version page. It lists the extensions you have installed. You may not need to upgrade them, but if something isn't working like you expect, then you'll need to upgrade the extension that provides that function.
- You could use Special:ExtensionDistributor to download a version of the extensions that match your version of MediaWiki. ☠MarkAHershberger☢(talk)☣ 06:11, 19 January 2013 (UTC)
- i have upgrading from 1.14 to 1.20 , confused which and how to upgrade the extensions. Vikramv9 (talk) 09:56, 18 January 2013 (UTC)
mediawiki display issue
We are trying to setup a local wiki, but when the installation was finished, the wiki is display completly unstyled when we try to access from another PC, on the host itself its displayed correctly.
Displaying another example .php file (with phpinfo) is diplayéd correctly also on extrenal PCs.
We are using:
OS: Win XP SP3 32-bit PHP: 5.4.10 Apache: 2.4.3 MySql: 5.5.29 Mediawiki: 1.20.2 91.143.110.156 (talk) 15:50, 17 January 2013 (UTC)
- What are the values of $wgServer and $wgStylePath? ☠MarkAHershberger☢(talk)☣ 16:48, 17 January 2013 (UTC)
- See Project:Support desk/Flow/2013/01#h-[RESOLVED]_The_mediawiki_I've_just_created,_doesn't_show_images-2013-01-09T10:27:00.000Z and Project:Support desk/Flow/2012/11#h-[RESOLVED]_Mediawiki_displays_as_printable_version_via_network-2012-11-27T14:32:00.000Z Ciencia Al Poder (talk) 10:21, 18 January 2013 (UTC)
[RESOLVED] Strange result about number paramter in template
Information:
Mediawiki: the lastest version 1.20
PHP: 5.3.10-1ubuntu3.4
OS: Ubuntu 12.04
I've create a template named box, which will set both color and background-color to a paragraph of text, the template is like below:
<includeonly><div class="box" style="background-color:{{{3|transparent}}};color:{{{2|inherit}}};">{{{1}}}</div></includeonly><noinclude>
I want to use like below:
{{Box |The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those! |white |black }}
But the result is, the color and bg color doesn't set to the paragraph. Then I lookup the html code, the style attributer of div is very strange:
<div class="box" style="background-color:black ;color:white ;">The Zen of Python, by Tim Peters .... </div>
The value of parameter contains an extra space(before the colon), so the css is invalid.
I want to known why does it? 42.120.72.32 (talk) 04:15, 18 January 2013 (UTC)
- That's because the newline between white and black. You should put it without whitespace between them.
- Alternatively, put the parameter inside a parser function, which trims whitespace. For example:
- Ciencia Al Poder (talk) 10:33, 18 January 2013 (UTC)
<includeonly><div class="box" style="background-color:{{#if: {{{3|}}} | {{{3|}}} | transparent }};color:{{#if: {{{2|}}} | {{{2|}}} | inherit }};">{{{1}}}</div></includeonly><noinclude>
- Yes, that works, thank you very much! :) 58.101.172.200 14:50, 19 January 2013 (UTC)
.patrollink is not visible in vector and monobook style
I have recently updated to version 1.20.2 and turned on the patrol-mechanic (which I had previously disabled).
While testing, I realised, that there isn't a link to "Mark as patrolled" when I look at the differences. However, looking at the HTML Source, there is supposed to be a link. The HTML reads:
This seems to be the proper link, and if I follow it, the page is marked as patrolled. However, I have no clue, as to why the link doesn't show in the page. I figured that the whole
There is no mw-diff-ntitle4 class defined, as far as I can find and there isn't any visibility change for class="patrollink" (there isn't even span.patrollink only div.patrollink in the CSS files of monobook, and no reference I could find in the vector css files).
Any ideas about how this happens ?
Best regards, Heinrich
ps.: Sorry, that I can't provide access to the wiki or the patrol user rights. Heinrich krebs (talk) 09:55, 18 January 2013 (UTC)
- You can try to inspect the styles applied to it. Major browsers (for example Firefox) have developer tools for inspecting elements of the page and displaying all CSS rules applied to them. Ciencia Al Poder (talk) 10:36, 18 January 2013 (UTC)
- I tried that, but I'd have to hover the mouse over it, which I can't do, since the element isn't there...
- Couldn't figure it out to do so in the source code. Heinrich krebs (talk) 11:04, 18 January 2013 (UTC)
- Ok, I found a option to get the CSS info from the source code. The problem is that load.php5 sets display:none; instead of inline (or not adjusting it at all).
- I guess there is some switch I need to change the behaviour of load.php5, but where ? Heinrich krebs (talk) 11:33, 18 January 2013 (UTC)
- There are no rules in MediaWiki core that set "patrollink" to "display: none;". What extensions do you have installed? Krinkle (talk) 15:27, 18 January 2013 (UTC)
- That would be:
- Admin Links (Version 0.1.7)
- CategoryTree (bf1c3be)
- Maintenance (Version 2.1.1)
- Patroller (Version 1.0rc3)
- anysite extension (Version 1.1)
- Babel (Version 1.8.0)
- CategoryTree
- Cite
- CSS (Version 3.1, 2012-01-15)
- Header Tabs (Version 0.9.2)
- ImageMap
- Lingo (Version 0.4)
- Parser i18n tags (Version 2012-08-16)
- ParserFunctions (Version 1.4.1)
- Authors (Version 0.1)
- Gadgets
- GoToCategory (Version 1.0)
- New User Email Notification (Version 1.5.2)
- Vector (Version 0.3.0)
- WikiEditor (Version 0.3.1)
- WikimediaMessages
- That would be all. Heinrich krebs (talk) 15:46, 26 March 2013 (UTC)
- Load the page adding
?debug=true
at the end of the URL (or&debug=true
if the URL already contains a "?" character). That will load each CSS file on a separate request, and you'll see the name of the CSS file so we could figure out which extension adds that style. Ciencia Al Poder (talk) 10:27, 27 March 2013 (UTC)
- Load the page adding
- That would be:
Language stays English
Language
After finish the the installation the language was still english. I configured ist to german and in my profile I'm configured as well as germn language.
DOnt know what I can do - help :)
Regards Uli 91.3.216.108 (talk) 11:40, 18 January 2013 (UTC)
- What is
$wgLanguageCode
set to in LocalSettings.php? - It should look like:
$wgLanguageCode = "de";
☠MarkAHershberger☢(talk)☣ 05:40, 19 January 2013 (UTC)
![]() Editor 08:07, 21 January 2013 (UTC) |
Können wir ein Link haben? Viellicht würde einen Browser-Cache-Löschen die Sprache-Änderung machen? Manchmal die Änderungen zu das Wiki sind von dem Browser versteckt. Ist $wgLanguageCode = "de"; in LocalSettings.php? |
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector |
Contents is not at the right place
Hi
I found an article at wikivoyage where the contents is not placed right. Now I installed my onw wiki to play a little bit with it and fix this article (and become familar with wiki) But my suprise was thate if I copy the hole article to my wiki everything is fine. How can that be?
Here is a link:
http://de.wikivoyage.org/wiki/Dalmatien
Regards Uli 91.3.216.108 (talk) 12:11, 18 January 2013 (UTC)
- Hi Uli,
- I see the contents displayed correctly on the wikivoyage link, which you posted.
- If the same content causes problems on another installation, which uses the same skin(?), the reason might be that they have added special styles for certain elements. That can be done in the wiki pages MediaWiki:Common.css, MediaWiki:Vector.css or - which would be a dirty hack - in the MediaWiki CSS files directly. 88.130.106.98 14:05, 18 January 2013 (UTC)
How to reorder links in the footer and include HTML?
Site info:
MediaWiki 1.20.0
PHP 5.3.15 (cgi-fcgi)
MySQL 5.5.23-55
I followed the guide on Manual:Footer to add a new link to the footer, but it is shown at the end of the links, rather than at the start where I would like it to be, is there anyway I can reorder them?
I have also noticed that MediaWiki:Wikimedia-copyright uses HTML to add a link, however, when I try and do this it does not work, is anything specific needed to be able to use HTML in the footer?
Thanks, NeedAGoodUsername (talk) 14:32, 18 January 2013 (UTC)
- I haven't tried putting html in MediaWiki:Wikimedia-copyright, but what happens when you do that?
- I'm going to guess that it isn't displayed.
- Otherwise, look at the wikipage you want to modify and then add ?uselang=qqx to the URL. This will show you what messages you need to modify to change the text. ☠MarkAHershberger☢(talk)☣ 05:36, 19 January 2013 (UTC)
- Ohh, I never knew I could do that.
- I feel that what I have done is not that understandable, so I shall explain it here:
- In LocalSettings.php I have added:
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink'; function lfTOSLink( $sk, &$tpl ) { $tpl->set( 'copyright-notice', $sk->footerLink( 'copyright-notice', 'copyright-noticepage' ) ); $tpl->data['footerlinks']['places'][] = 'copyright-notice'; return true; }
- On the page MediaWiki:Copyright-notice, I added the text "test" which shows on the footer (image on commons)
- I added the text what is on MediaWiki:Wikimedia-copyright to MediaWiki:Copyright-notice and it produced this: Image on commons
- I would like that footer to do what MediaWiki:Wikimedia-copyright does and for it to be in a different position.
- Hopefully that made sense. NeedAGoodUsername (talk) 19:31, 21 January 2013 (UTC)
- Try using wiki text?
- ☠MarkAHershberger☢(talk)☣ 02:27, 22 January 2013 (UTC)
Text is available under [//url this license]
- Tried it and it did not work (Image).
- Should I send an email to the mailing list? NeedAGoodUsername (talk) 11:27, 24 January 2013 (UTC)
- Yes, send an email. ☠MarkAHershberger☢(talk)☣ 14:31, 24 January 2013 (UTC)
Mediawiki asks to save a .gz file instead of opening links
Hi there,
I'm experiencing an issue on a wiki i've installed several months ago.
the addresses: http://it.opencrafts.org/wiki http://en.opencrafts.org/wiki
the issue: When clicking any url to navigate through the wiki pages, sometimes the browser asks to save a .gz file. The filename depends on the page that has been clicked, f.eg "Main_Page.gz". Inside the archive there is a file Main_Page.html of 1KB.
other notes: The issue occurs on SRWare Iron (Chromium) Version 23.0.1300.0 (170000) Firefox does not seem to suffer from this problem, and so it's for Chrome 24.0.1312.52 m
Does anybody know why this happens? Frafor (talk) 15:38, 18 January 2013 (UTC)
- I'm confused. Does it occur with "Chrome 24.0.1312.52" ?
- I think this would be an issue you need to report to SRWare, not here. It sounds like a problem with compression handling with that browser. ☠MarkAHershberger☢(talk)☣ 05:26, 19 January 2013 (UTC)
- It does not happen with chrome. I'll try to contact SRWare, despite the fact that it's happening since january, before i couldn't notice it, maybe it's due to a browser upgrade... the weird thing is that on the "pool" installation used as repository (mediafiles.opencrafts.org) i can't replicate the behaviour.
- However i'm slightly relievied by the fact that Iron is not such a widespread browser, so users won't notice this issue. Frafor (talk) 08:07, 19 January 2013 (UTC)
- It IS happening to me on Chrome, Version 29.0.1547.66 m. I'm not sure if it's the browser or the specific MediaWiki install, but it tends to happen if you click a link before the page is done loading? 75.80.146.216 18:04, 10 September 2013 (UTC)
- I've clicked around on your wiki and can't duplicate this at all. ☠MarkAHershberger☢(talk)☣ 16:39, 13 September 2013 (UTC)
- This has been happening to me for the past two weeks now. Masked Turk (talk) 20:01, 26 September 2013 (UTC)
- On the opencrafts wiki or another one? In Chrome 29.0.1547.76 (Official Build 223446), I don't see this even on http://mediafiles.opencrafts.org/wiki/Special:NewFiles which does multiple requests. ☠MarkAHershberger☢(talk)☣ 20:23, 26 September 2013 (UTC)
- It happens on my wiki site, with Chrome but also with Mozilla 129.104.247.2 13:15, 25 October 2014 (UTC)
- On the opencrafts wiki or another one? In Chrome 29.0.1547.76 (Official Build 223446), I don't see this even on http://mediafiles.opencrafts.org/wiki/Special:NewFiles which does multiple requests. ☠MarkAHershberger☢(talk)☣ 20:23, 26 September 2013 (UTC)
- This has been happening to me for the past two weeks now. Masked Turk (talk) 20:01, 26 September 2013 (UTC)
- I've clicked around on your wiki and can't duplicate this at all. ☠MarkAHershberger☢(talk)☣ 16:39, 13 September 2013 (UTC)
- It IS happening to me on Chrome, Version 29.0.1547.66 m. I'm not sure if it's the browser or the specific MediaWiki install, but it tends to happen if you click a link before the page is done loading? 75.80.146.216 18:04, 10 September 2013 (UTC)
Wiki page as HTML?
How do I generate an HTML rendering of a wiki page, along the lines of the Toolserver homepage? WikiPuppies bark dig 17:12, 18 January 2013 (UTC)
- "Along the lines of the toolserver"? No idea what you mean with that.
- What MediaWiki creates by default are HTML pages. So: Just take its default output and you have an HTML rendering... 88.130.81.134 01:47, 19 January 2013 (UTC)
- Don't know about the toolserver, but check out Extension:DumpHTML. ☠MarkAHershberger☢(talk)☣ 05:20, 19 January 2013 (UTC)
- Thank you both, but what I'm looking for is something that would dynamically generate a static HTML page from a wiki page when that page is edited. For example, sysops on the Toolserver wiki can edit a project page, which triggers some sort of flag that results in the HTML-based home page being updated. What I'm looking for is the identity of that flag. WikiPuppies bark dig 17:09, 21 January 2013 (UTC)
- You should contact the toolserver admins to figure out what they've done. ☠MarkAHershberger☢(talk)☣ 17:38, 21 January 2013 (UTC)
- You can manually request the page and save it with wget, for example.
- If you only want the contents and not the entire skin, append ?action=raw to the URL (or &action=raw if a ? is already present in the URL) Ciencia Al Poder (talk) 10:41, 22 January 2013 (UTC)
- Thank you both for your help! I'll email the Toolserver admins later today. WikiPuppies bark dig 17:23, 22 January 2013 (UTC)
- Thank you both, but what I'm looking for is something that would dynamically generate a static HTML page from a wiki page when that page is edited. For example, sysops on the Toolserver wiki can edit a project page, which triggers some sort of flag that results in the HTML-based home page being updated. What I'm looking for is the identity of that flag. WikiPuppies bark dig 17:09, 21 January 2013 (UTC)
MediaWiki 1.20.2 installation
Am trying to install MediaWiki 1.20.2
I create a new db called db_wikimedia via my web host and set up an admin user called db_wiki_admin and put these details in the install script but at the final step it fails with:
Setting up database... A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: CREATE DATABASE `db_wikimedia` from within function ‘MysqlInstaller::setupDatabase.’ Database returned error ‘1044: Access denied for user 'db_wiki_admin'@'%' to database 'db_wikimedia' (localhost).’ Backtrace: #0 /var/www/vhosts/smoketest.info/wiki/includes/db/Database.php(916): DatabaseBase->reportQueryError('Access denied f...', 1044, 'CREATE DATABASE...', 'MysqlInstaller:...', false) #1 /var/www/vhosts/smoketest.info/wiki/includes/installer/MysqlInstaller.php(469): DatabaseBase->query('CREATE DATABASE...', 'MysqlInstaller:...') #2 [internal function]: MysqlInstaller->setupDatabase(Object(MysqlInstaller)) #3 /var/www/vhosts/smoketest.info/wiki/includes/installer/Installer.php(1454): call_user_func(Array, Object(MysqlInstaller)) #4 /var/www/vhosts/smoketest.info/wiki/includes/installer/WebInstallerPage.php(1161): Installer->performInstallation(Array, Array) #5 /var/www/vhosts/smoketest.info/wiki/includes/installer/WebInstaller.php(269): WebInstaller_Install->execute() #6 /var/www/vhosts/smoketest.info/wiki/mw-config/index.php(50): WebInstaller->execute(Array) #7 /var/www/vhosts/smoketest.info/wiki/mw-config/index.php(18): wfInstallerMain() #8 {main}
Why should it be trying to create a database that I've already created and told it about. What am I missing? Should I be configuring this some other way?
Thanks
David
PS Since I am new to Wikis, how do I embed code (or, rather, the error message as pasted in above) to make it render correctly? I was looking for some tags but don't know where to start. :o( 86.7.22.164 (talk) 00:02, 19 January 2013 (UTC)
- Hi David!
- MySQL error 1044 points to missing permissions. You have to give the MySQL user (in your case "db_wiki_admin") permission to manipulate the database "db_wikimedia". That is possible with the following SQL query:
GRANT ALL ON db_wikimedia.* TO 'db_wiki_admin'@'localhost' IDENTIFIED BY 'password';
- where "password" is the user's password. If you have phpmyadmin available, you can also use its interface to set the permissions.
- Manual:Errors_and_symptoms has more information on MySQL errors. 88.130.81.134 01:43, 19 January 2013 (UTC)
- Thanks but a SHOW GRANTS from phpMyAdmin shows that the db user I have configured already has all the permissions granted:
GRANT USAGE ON *.* TO 'db_wiki_admin'@'%' IDENTIFIED BY PASSWORD
'*5B1CB32E845DFF8B8CE8EBCEC2B5265E53652A88'
GRANT ALL PRIVILEGES ON `db\_mediawiki`.* TO 'db_wiki_admin'@'%'
86.7.22.164 09:56, 19 January 2013 (UTC)
- Just to add a bit more info...
- The error says Access Denied but I feel that this is a red herring since I can only create databases through Plesk and I don't have permission to CREATE DATABASE but I can pretty much do everything else. In fact, I can get into my database via phpMyAdmin and create tables in the db without problem.
- Looking at the code (and I am just a novice at PHP), it seems to be falling over at the function setupDatabase() in MysqlInstaller.php. If getConnection() results in success, the funtion appears to return but, if not, it tries to create the database with CREATE DATABASE. So, I assume that MediaWiki think my connection credentials are wrong but I've double-checked these - my host is localhost and I specify the correct database name and the database username and password are the same as those I use in Plesk and phpMyAdmin to administer the database.
- If I deliberately set a wrong password in the Connect to database setup screen, it gives me a DB connection error and won't let me proceed to the next screen but the correct password takes me to the Database settings screen suggesting that the connection is valid. So, why does it then appear to fail later on in the setup script?
- Any thoughts? 86.7.22.164 08:32, 19 January 2013 (UTC)
- Maybe you're running into some sort of connection limit so that the connection before it tries to create the database fails?
- That sounds really strange to me, but I can't think of any other reason it would fail like that. Have you tried contacting your web host about this?
- Since it sounds like you can read code well enough, try modifying it by putting var_dump() in various places so you can see what is actually being returned and why it thinks it needs to create the database. ☠MarkAHershberger☢(talk)☣ 16:19, 19 January 2013 (UTC)
- Thanks Mark. I've done a little probing in the code with print_r and it's failing in the function setupDatabase() in MysqlInstaller.php. It seems to be looking for selectDB in the $conn array and not finding it. $conn is set by the $value field returned by getConnection() and it appears to be missing selectDB although $this->getVar( 'wgDBname' ) returns the correct db name. So, it has the right database name, just not having the name set in all the right places it seems.
- I'm afraid I'm not php savvy enough to probe further. :o(
- I don't think it's anything to do with connection limits. I had TikiWiki up and running on this server fine and everything else I've tried installs dead easy. I might have to knock MediaWiki on the head and try phpWiki next. I'm just trying to find some easy-to-use Wiki system with user permissions just to get a documentation project off the ground and I don't have a lot of time to tinker around.
- Thanks
- David 86.7.22.164 17:07, 19 January 2013 (UTC)
- Thanks for the digging! I'll look at the code and try and see why it wouldn't return selectDB in $conn.
- I'd like to help you get this fixed so that you can use MW. Feel free to contact using the "E-mail this user" feature or ping me -- hexmode -- on IRC. ☠MarkAHershberger☢(talk)☣ 20:59, 19 January 2013 (UTC)
Short URL vs. https
I have a MediaWiki 1.19.1 installation configured to use short URLs, which in general works great. However, I'm now also trying to enable secure logins and browsing (similar to Wikipedia) and am running into difficulties:
When trying to reach a page using https, it's works fine only so long as I provide the standard, non-shortened form, like so:
- https://somedomain.com/w/index.php?title=Main_Page
However, if I try to reach the same page using https and the shortened form, it returns a 404 error:
- https://somedomain.com/wiki/Main_Page
Short URLs without https work perfectly well.
I've checked my $wgServer and wgCanonicalServer and based on what I've read they seem to be set properly ($wgServer=//somedomain.com
, $wgCanonicalServer=https://somedomain.com
), though I'd be glad to have that verified. Does anyone know if there's further configuration that needs to be done in order to allow https to coexist nicely with short URLs? 98.223.230.125 (talk) 12:27, 19 January 2013 (UTC)
- It sounds like you have your rewrite rules under /etc instead of in a .htaccess file (I had that happen to me last week). If that is the case you need to make sure the rewrite rules are there for SSL.
- If that isn't the case, then could you please share your specific setup here? ☠MarkAHershberger☢(talk)☣ 16:08, 19 January 2013 (UTC)
![]() Editor 07:43, 21 January 2013 (UTC) |
Showing what your .htaccess looks like would help. If you have anything in it that says http://, changing it to https:// should help. |
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector |
[RESOLVED] Having trouble running update.php
Okay so here's the situation. My Mediawiki was being spammed by spambots so I put in ConfirmAccount extension in order to let the bureaucrats confirm all account creations by the people I knew were actual users (it's a small time wiki). I installed the plugin but when I tried to run update.php I get this:
-bash-3.2$ php maintenance/update.php Content-type: text/html You are using PHP version 4.4.9 but MediaWiki needs PHP 5.3.2 or higher. ABORTING. Check if you have a newer php executable with a different name, such as php5. -bash-3.2$
I figured I needed to update to the next version of MediaWiki and PHP so I did install MediaWiki 1.20, but my hosting provider (Godaddy) only has PHP 5.3.14, and when I run update.php now it still gives me that same error saying I'm using PHP version 4.4.9 (which is false because when I go to the Special:Version page on my MW it says that I'm using PHP 5.3.14).
Any way to fix this? I can't do anything on my MW until it is fixed. Gobadgers77 (talk) 20:04, 19 January 2013 (UTC)
- Accessing your webserver with a browser and with a shell are two different things. When you access your webserver with a browser, you can see one PHP version, while on the shell you see another one.
- In your case the command "php" executes PHP 4.4.9. The text you got as a response basically tells the solution: Execute the updater with PHP 5.3. All you need to know is the command to execute the PHP 5.3 files on the shell. This might be php5 or php53. So try
php5 maintenance/update.php
- or
php53 maintenance/update.php
- to run the updater. 88.130.95.173 20:45, 19 January 2013 (UTC)
- Thanks for the reply. I tried your suggestion, and now it says
-bash-3.2$ php5 maintenance/update.php -bash: php5: command not found -bash-3.2$ php53 maintenance/update.php -bash: php53: command not found
- Is it because I have a Mac and I'm trying to use Terminal application to access with ssh? Is it possibly a totally different command for the Terminal application? Gobadgers77 (talk) 22:57, 19 January 2013 (UTC)
- No, not that I know of. Since with the shell you are not accessing your local Mac, but you are accessing the server, the command you need to know depends on what is available on the server. I would suggest asking Godaddy what the command is to run PHP 5.3 on the shell. 88.130.95.173 23:52, 19 January 2013 (UTC)
- Specifying which php.ini to use might help, it did for me (I had exactly the same problem), ie php -c /path/to/php.ini update.php 83.226.84.183 08:15, 20 January 2013 (UTC)
- I'm kind of an amateur at this stuff. How do I find out that information? Gobadgers77 (talk) 18:34, 20 January 2013 (UTC)
- You don't even know, if there is another php.ini to define in your case and -if there was one- if using that one would help; chances are it does not at all.
- Ask Godaddy what the command is to run PHP 5.3 on the shell. 88.130.119.203 19:56, 20 January 2013 (UTC)
- I've found running maintenance scripts with GoDaddy to be extremely difficult. The cron jobs default to php5, and I think it specifies a file path, but it doesn't work at all. I tried:
cd /path/to/wiki/maintenance/
php update.php
- instead of php5. That worked. It seems that MediaWiki 1.20 requires php 5 to run the maintenance script.
- Are you on a Windows or Linux server? It makes a small difference with the file path since UNIX OSs don't start with a drive.
- Try taking your absolute hosting path (available on the hosting server control panel home page), adding the server root (should be /html/), followed by the file path from the root of your server to the wiki maintenance script, and using that to run the script. It might be something like:
/home/file/path/to/html/subDomainFolder/w/maintenance/update.php
- As for the php instruction before it, try php or php5.
- The php.ini file should be in the root folder (/html/) of your server. You can try adding the absolute hosting path to it. Possibly something like:
/home/file/path/to/html/php5.ini
- I think php5 uses a different .ini file.
- If you've used Terminal before, the command line on Linux is fairly similar to Mac OS.
- Another thing that maintenance scripts need is for
register_arc_argv
- to be enabled.
- I don't know if this was part of the problem here, but I've noticed that the autoinstallers from webhosts often can cause problems. I put a notice on the installation instructions page recently because we had a problem with one.|07:32, 21 January 2013 (UTC)
- Thanks for your replies. Godaddy responded with an "answer" to my queries, and this is what they said.
- I understand that you are concerned about the PHP version on your hosting account. Your hosting account is using PHP 5.3. This does not necessarily mean that your MediaWiki scripting is using the same version. We do not support the inner functionality of third party applications and have no control over what PHP version the application is using. I recommend that you review this issue with MediaWiki support or do some research on your favorite search engine or support forum. You will need to review your question about the specific command with a support forum as well. We are not able to provide commands for third party applications.
- I've asked them what the command is before, but this is the first time they said anything in response to it. They have nothing and told me to look elsewhere, which I have been, I just haven't found a solution that works.
- @Inquisitor Ehrenstein:
- I have a Windows server. I used the absolute hosting path to try to run the update.php, and it said the same thing as before.
-bash-3.2$ php /home/content/79/9779079/html/wiki/maintenance/update.php Content-type: text/html You are using PHP version 4.4.9 but MediaWiki needs PHP 5.3.2 or higher. ABORTING. Check if you have a newer php executable with a different name, such as php5.
- I tried that with the commands php, php5, and php53.
- Godaddy definitely says I'm running PHP 5.3 on my server but every time I try to do anything, it says I have 4.4.9. I'm so lost right now. Is there a way I should be using shell to install PHP onto my server? Gobadgers77 (talk) 02:16, 22 January 2013 (UTC)
- Hi Gobadgers,
- this is no MediaWiki problem. Obviously the support did not understand what you want. However, no need to write them that.
- All you need to know is the command, with which you can run PHP 5.3 on the shell. This question does not depend on a special PHP script, which you want to run with that command. So ask them again and do not mention a special application at all.
- So maybe you can write the support something like:
- I have a PHP script, which I want to execute from the shell. You say PHP 5.3 is available on my account. That is great! What is the shell command to run a PHP script with PHP 5.3?
- And then see what they write. I think asking that way is really idiot-proof. Tell us what they answer (I fear I already have an idea...). 88.130.74.218 14:03, 22 January 2013 (UTC)
- Thank you. I said something like what you said, and they finally gave me a somewhat useful response. Here it is, if this helps you to help me:
- Thank you for your response. If you're running a phpinfo command via SSH, the PHP version given will be the PHP version of the parent server, not your hosting plan. Anything running on your hosting plan would be PHP 5.3. So there wouldn't be a shell command to force PHP 5.3 within SSH. If you're seeing an error when attempting to run the shell command provided by MediaWiki, please provide that information so that we can test further. Gobadgers77 (talk) 02:35, 24 January 2013 (UTC)
- It sounds like you just need to give them the error message. From above:
-bash-3.2$ php /home/content/79/9779079/html/wiki/maintenance/update.php Content-type: text/html You are using PHP version 4.4.9 but MediaWiki needs PHP 5.3.2 or higher. ABORTING. Check if you have a newer php executable with a different name, such as php5.
- If you write them back with that, what do they do? ☠MarkAHershberger☢(talk)☣ 06:06, 24 January 2013 (UTC)
- I have just googled that problem for you.
- Here I found one workaround, of which the author says it would be working for him:
cd /home/content/79/9779079/html/wiki/
/usr/local/php5/bin/php maintenance/update.php
- No idea, if it works on your hosting package as well.
- Another idea: Why do you not run the web updater? You can reach it with your browser by navigating to http://URL-of-your-wiki/mw-config. Or does that in the end internally run a shell command as well? 88.130.117.206 01:29, 25 January 2013 (UTC)
- Okay @MarkAHershberger here is what they said:
- Thank you for your reply. Due to the nature of shared hosting, SSH will not be able to access PHP 5.3 as SSH runs off the parent server. You would need to upgrade your application using a different method other than SSH. Otherwise, if you require this ability, you would need to use a virtual private or dedicated server.
- It appears that I can't do what I'm supposed to do do on shell. That seems strange because I figure a large company such as Godaddy would have many MediaWiki on their servers.
- @88.130.117.206
- I'll try to do that, thanks.
- Edit: 88.130.117.206 I don't know who you are but you saved my MediaWiki with that web uploader. I could swear I tried it before I came here for help and it didn't work. This time it did and everything is working perfectly fine. Thank you so much. I'll try to install my extension (the reason I was upgrading to 1.20.2) and hopefully everything will work fine.
- Edit #2: Okay now the extension I'm trying to install (Confirm Account http://www.mediawiki.org/wiki/Extension:ConfirmAccount) is requiring me to run update.php again which, obviously, I cannot do. Do you guys know of any work arounds? An extension such as this is vital to my MW because of the flood of spam robots we get editing pages. Gobadgers77 (talk) 16:32, 25 January 2013 (UTC)
- So Godaddy tells you that you should either buy a more expensive package from them or do the update not via the shell (but via the web updater). Interesting that they are unable to provide you with a current PHP version on the shell. 4.4.9 is like stone age.
- I am glad that my comment with the web updater helped you! :-)
- The page Extension:ConfirmAccount tells you to run update.php, but ... does the web updater not do the same? (I mean that is exactly what you did instead of running it from the shell when you did the upgrade.)
- Check your wiki before you run the updater and note where/if you see a database error from ConfirmAccount (probably when you try to create an account). Then run the web updater and see if the error is gone... 88.130.69.150 18:37, 25 January 2013 (UTC)
- Well when I run the web updater, this error pops up:
Fatal error: Class 'ConfirmAccountUISetup' not found in /home/content/79/9779079/html/wiki/extensions/ConfirmAccount/ConfirmAccount.php on line 42
- This is what line 42 is in that file:
- ConfirmAccountUISetup::defineResourceModules( $wgResourceModules ); Gobadgers77 (talk) 19:21, 25 January 2013 (UTC)
- Looks like the autoloader doesn't know about the ConfirmAccountUISetup. Let me check... ☠MarkAHershberger☢(talk)☣ 19:24, 25 January 2013 (UTC)
- Got that error fixed, but now the updater is saying
Call to undefined method MysqlUpdater::dropExtensionIndex()
- Hang on while I check this out. ☠MarkAHershberger☢(talk)☣ 19:42, 25 January 2013 (UTC)
- I also have the same problem.
Call to undefined method MysqlUpdater::dropExtensionIndex()
- I couldn't find any solution. Hope someone does. EczaWiki (talk) 21:31, 3 March 2013 (UTC)
- Still no solution? I'm having this same problem. 2602:306:C5AE:1E30:5D0D:2407:D8E1:562A 23:54, 26 January 2014 (UTC)
- I am not Godaddy, I don't know what they do. Maybe they have become better, maybe they haven't; I don't know. 88.130.77.56 00:00, 27 January 2014 (UTC)
- I'm not on GoDaddy. I'm on DreamHost. 2602:306:C5AE:1E30:5D0D:2407:D8E1:562A 01:53, 27 January 2014 (UTC)
- So DreamHost is nothing better than Godaddy (at least in this regard). 88.130.84.250 02:54, 27 January 2014 (UTC)
- I'm not on GoDaddy. I'm on DreamHost. 2602:306:C5AE:1E30:5D0D:2407:D8E1:562A 01:53, 27 January 2014 (UTC)
- I am not Godaddy, I don't know what they do. Maybe they have become better, maybe they haven't; I don't know. 88.130.77.56 00:00, 27 January 2014 (UTC)
- Still no solution? I'm having this same problem. 2602:306:C5AE:1E30:5D0D:2407:D8E1:562A 23:54, 26 January 2014 (UTC)
- Actually, I was testing 1.19. It may work on your version. Try adding this line just before the current line 42:
require( __DIR__ . '/frontend/ConfirmAccountUI.setup.php' );
☠MarkAHershberger☢(talk)☣ 19:50, 25 January 2013 (UTC)- yep, tested the above line on 1.20 and it worked. ☠MarkAHershberger☢(talk)☣ 19:59, 25 January 2013 (UTC)
- That worked. Thank you all so much, you're all great help. Gobadgers77 (talk) 00:07, 26 January 2013 (UTC)
- Worked for me too, thank you! 24.210.245.66 01:17, 12 March 2013 (UTC)
- Hi, I'm having a similar problem running SSH commands in my Go Daddy Hosting Accout. I am on a Linux shared server, and when I put
php indexer.php info
- I get something like
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION
- When I put either
php5 indexer.php info
- or
php53 indexer.php info
, it just says "Command not found".- I called Go Daddy and they said those commands are not going to work on a shared hosting account, which doesn't makes sense to me. I'm trying to run this commands to make common process that has to be done once in a while in Stores based on Magento, which is the framework I'm using.
- Any ideas about how can I solve this? Thanks!
- Thanks! 181.168.192.110 02:57, 24 September 2013 (UTC)
- Hi!
- Godaddy does not offer PHP 5.3 on the shell. That basically means: You cannot use the shell to execute PHP commands with your Godaddy account. You can call that bad support, but that's the way it is with Godaddy.
- I don't know how other applications (like Magento) work, but as far as MediaWiki is concerned you can still use the web updater to update your site (which then works without the shell). 88.130.119.131 11:30, 24 September 2013 (UTC)
- please fix the issue please 86.135.248.99 14:09, 5 January 2014 (UTC)
- Please go away from Godaddy, please!
- Honestly: If you had read the thread you would have noticed that this is not a problem in MediaWiki... 88.130.87.150 14:34, 5 January 2014 (UTC)
- Issue has been fixed in extension localisation update because I found it fixed the issue 86.173.52.65 19:46, 13 April 2014 (UTC)
- please fix the issue please 86.135.248.99 14:09, 5 January 2014 (UTC)
- Worked for me too, thank you! 24.210.245.66 01:17, 12 March 2013 (UTC)
- That worked. Thank you all so much, you're all great help. Gobadgers77 (talk) 00:07, 26 January 2013 (UTC)
- yep, tested the above line on 1.20 and it worked. ☠MarkAHershberger☢(talk)☣ 19:59, 25 January 2013 (UTC)
- I'm kind of an amateur at this stuff. How do I find out that information? Gobadgers77 (talk) 18:34, 20 January 2013 (UTC)
- Specifying which php.ini to use might help, it did for me (I had exactly the same problem), ie php -c /path/to/php.ini update.php 83.226.84.183 08:15, 20 January 2013 (UTC)
- No, not that I know of. Since with the shell you are not accessing your local Mac, but you are accessing the server, the command you need to know depends on what is available on the server. I would suggest asking Godaddy what the command is to run PHP 5.3 on the shell. 88.130.95.173 23:52, 19 January 2013 (UTC)
[RESOLVED]Can not access local mediawiki, url always redirects to en.wikipedia.org
Version information: mediawiki: 1.20.2 PHP: 5.3.10-1ubuntu3.4(apache2handler) MySQL: 5.5.28-0ubuntu0.12.04.3
Problem short description: I can't access my local mediawiki after i imported the wikipedia datadumps using mwdumper.jar, whenever i enters ip/mediawiki in my browser, the url would always changes into en.wikipedia.org.
Problem detailed description: I installed mediawiki on my local server(ubuntu server 12.04LTS), and then tried to import wikipedia data dumps into my local mediawiki using importDump.php command, during the process of importing, i tried to access local mediawiki only to find it redirected to en.wikipedia.org. I guessed maybe when the process is done, this kind of redirection might disappear, however, when i eventually found importDump.php really too slow, I brutally stopped the process using Ctrl+c, and then dropped database, removed LocalSettings.php to start over again, after i finally used mwdumper.jar to get the import task finished, i was very pleased to see it worked well. However, days after that, when i came back to access local mediawiki, the redirection things happened again and i still do not know how to fix it right now. I have tried many ways and even tried to look into the index.php code, but due to my limited knowledge, I only find it may have something to do with the includes/WebStart.php code, hope some one could finally help me out of this, thanks! Cusion89 (talk) 05:34, 20 January 2013 (UTC)
- Can I see the site if the public can access it? iXavier (talk) 05:55, 20 January 2013 (UTC)
- What is $wgServer set to in your LocalSettings.php?
- If you visit http://yourSite/wiki/Main_Page?action=edit, are you editing your own site? ☠MarkAHershberger☢(talk)☣ 18:03, 20 January 2013 (UTC)
- I checked $wgServer before, it is my local address. When I visit http://mysite/mediawiki/Main_Page?action=edit, the result shows "The requested URL /mediawiki/Main_Page was not found on this server", but I find http://mysite/mediawiki/index.php/Main_Page?action=edit could actually edit the main page, however, because of the failure of my previous effort, now i am installing another mediawiki on my PC using the same database of the old one, and now the installation is stucked on some sort of upgrading works, cause the setup page shows "find mediawiki database tables, upgrade them to MediaWiki 1.20.2, click continue". Would it be safe if i edit the Main_Page of the old one? Cusion89 (talk) 10:45, 21 January 2013 (UTC)
- Since your site is there, it doesn't seem to need re-installing. What happens if you try to save an edit on the Main_Page? ☠MarkAHershberger☢(talk)☣ 13:47, 21 January 2013 (UTC)
- Thank you, i have already resolved it, the problem has something to do with interwiki links which i am not quite familiar with, according to what somebody told me on the IRC, the solution is to add a line $wgMetaNamespace="Wikipedia" in LocalSettings.php, and it works for me. Cusion89 (talk) 07:52, 25 January 2013 (UTC)
- Since your site is there, it doesn't seem to need re-installing. What happens if you try to save an edit on the Main_Page? ☠MarkAHershberger☢(talk)☣ 13:47, 21 January 2013 (UTC)
- I checked $wgServer before, it is my local address. When I visit http://mysite/mediawiki/Main_Page?action=edit, the result shows "The requested URL /mediawiki/Main_Page was not found on this server", but I find http://mysite/mediawiki/index.php/Main_Page?action=edit could actually edit the main page, however, because of the failure of my previous effort, now i am installing another mediawiki on my PC using the same database of the old one, and now the installation is stucked on some sort of upgrading works, cause the setup page shows "find mediawiki database tables, upgrade them to MediaWiki 1.20.2, click continue". Would it be safe if i edit the Main_Page of the old one? Cusion89 (talk) 10:45, 21 January 2013 (UTC)
MediaWiki 1.20.0: Error creating thumbnail: Shared object "libpcre.so.1" not found, required by "liblqr-1.so.3"
When I upload an image to my wiki, the image is uploaded, but instead of the tumbnail image I get a box with following error message:
Error creating thumbnail: Shared object "libpcre.so.1" not found, required by "liblqr-1.so.3"
The Thumbnails are not available, the folder /images/thumb is empty. This happens with .jpg and .png files. I think, there is something wrong configured or missing, but I don't know if the problem is within the mediawiki package or on the webserver. As I use a webserver offered by a provider, I cannot look that up.
Can someone please tell me how to find out what the problem is and how to solve it? 82.220.74.38 (talk) 14:36, 20 January 2013 (UTC)
- That is no MediaWiki error. MediaWiki is written in PHP, so if a command by MediaWiki failed, you would most likely get a PHP error; but this is no PHP error. It looks like an error message from the server. Possibly a missing dependency for ImageMagick, so that ImageMagick does not work correctly. Ask your host to fix their broken setup. 88.130.119.203 15:21, 20 January 2013 (UTC)
- Installing PCRE should solve the problem, but as 88.130 suggests, in case you can't install packages on the server you should contact your provider. Ciencia Al Poder (talk) 10:34, 21 January 2013 (UTC)
- Yes, after your posts i contacted my provider and he confirmed a problem with these libraries. They know it since the 22. Jan. and work on the fix.
- Thank you guys. 193.135.44.7 13:24, 25 January 2013 (UTC)
Corrupted database - where to from here?
RESOLVED | |
eight-year-old topi; hopefully resolved by now |
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.
A recent server move at my host ended up corrupting my database. So, I've come to grips with the fact that my written content is gone (or at least, horribly mangled - working on that separately). All the uploaded materials appear to be in order, however.
Does anyone have suggestions as to the easiest way to go about a fresh install, given that part of the old install is there? I've never encountered an issue of this magnitude, so any suggestions as to the easiest path forward would be appreciated. 220.244.174.211 (talk) 12:37, 21 January 2013 (UTC)
- Things would be far easier for you, if you had a backup - even if it was a few days or weeks old. Do you have one?
- Another idea I have right now would be to fix the "mangled characters". Maybe your host copied the database and "only" changed the charset of the DB? So that basically your content is fine, but MySQL displays it incorrectly? 88.130.117.234 13:20, 21 January 2013 (UTC)
- Nope, sadly no backup. Lesson learnt, etc. The database is completely wrecked, to the point where my host is refusing to even speak about it any more. Regular pages are filled with junk between the words, and all forms of punctuation have been stripped:
- "theu800 8thu800 episode ofu800 poor andu800 weird features kenu800 andu800 jimu800 ether covering takin' itu800 offu800 andu800 takin' itu800 allu800 offu800. poor andu800 weird poor andu800 weird poor andu800 weird inu800 au800 rare moment ofu800 loquaciousness jimu800 informs usu800 that nothing much hasu800 been going onu800 lately. file pwe8-nothingu82emp3u800 theu800 show show'su800 rssu800 feed doesn'tu800 work."
- I can get everything back eventually, I suppose. Going to save what's there and try and recreate the wiki as best I can. Fresh install time? 220.244.174.211 13:29, 21 January 2013 (UTC)
- Yes, I would dump the current wiki (if you can still do that) and then install fresh. If you can dump it, you may be able to see some usable revisions. ☠MarkAHershberger☢(talk)☣ 13:44, 21 January 2013 (UTC)
- So, install as per the directions as if I were doing it the first time? But don't delete the images, extensions, etc. folders?
- Just want to make sure I'm doing this right. 220.244.174.211 13:48, 21 January 2013 (UTC)
- right... though, the images will not magically re-appear on the wiki till you re-upload them. ☠MarkAHershberger☢(talk)☣ 17:35, 21 January 2013 (UTC)
- If it is not too much content, I think doing a new install would be faster than trying to fix the broken characters...
- However, what exactly should the original text of what you posted above look like? Maybe one of the experts here can then tell, what the hoster might have done to get it broken exactly that way.
- You sometimes have "u800" inserted inbetween words.
- Some other characters are broken: "file pwe8-nothingu82emp3u800 theu800 show" What was that before? 88.130.117.234 13:46, 21 January 2013 (UTC)
- It was a lot of content. But I think the database is ruined beyond just the characters - I can only see tables for hitcounter and searchindex. I'm pulling the pages from searchindex.
- The text should, obviously, not have u800 between words. I can't recall exactly what that filename should be - I think pwe8-nothing.mp3. So it looks like files have u82e inserted instead of a dot. It's going to be rough, but I should be able to get things to a vaguely workable state in a word processor. Unfortunately, looks like pretty much all the formatting - capital letters, tables, etc - is gone. 220.244.174.211 13:51, 21 January 2013 (UTC)
- The structure of tables and so are not inside the searchindex table. The search is not case sensitive, so there are no capital letters...
- hitcounter and searchindex are the only tables, which use the storage engine MyISAM or HEAP. All others are set up to use InnoDB. Did they uninstall InnoDB or what?
- If you want to proceed that way, you should do a row of search and replace operations for each page, e.g. "u800" => space, u82e => dot and so on.
- When you start with the wiki all over again, do the installation and before you insert any content into the DB check the following:
- The character set for the DB and for the tables should be utf8_...something (e.g. "utf8_general_ci" or "utf8_unicode_ci"). If it is different from that remove everything from the new DB again and fix the charset first.
- Check that the tables are using InnoDB as storage engine. (hitcounter and searchindex should use something else, that's fine).
- Btw: Have you considered moving to another provider? Seems like a good time to think about that. 88.130.117.234 14:01, 21 January 2013 (UTC)
- I have no idea what they did, sadly. I think they uninstalled InnoDB. I don't know why, though.
- Yep, search and replace was the idea. Slow work, but at least I've still got part of what I had.
- Thanks, I'll make sure to check the tables as suggested. 220.244.174.211 14:06, 21 January 2013 (UTC)
- As for moving providers, this one has been quite good, up until the last three weeks. Plus (and this is the real killer) I've still got a year's worth paid for. 220.244.174.211 14:07, 21 January 2013 (UTC)
- It's always the same: When you just paid them, they screw up. Sometimes I think that cannot be unintentional.
- As for the images: MediaWiki has a script, which allows you to do a mass import of images. I would put my images in a folder on the server and then run that script. See Manual:importImages.php for the details. 88.130.117.234 14:11, 21 January 2013 (UTC)
- It's certainly taught me to keep backups. If I'd backed up the database just once I could have saved all this messing about.
- Thanks for the suggestion. Most of the content is not images, but rather audio files. So I'll just install MSupload again and do them page by page. 220.244.174.211 14:17, 21 January 2013 (UTC)
- Another option, which I just found is to go therough the possibilities on this page: Manual:Restoring wiki code from cached HTML.
- That might give you the possibility to save a part of your content. 88.130.102.253 01:09, 27 January 2013 (UTC)
- Yes, I would dump the current wiki (if you can still do that) and then install fresh. If you can dump it, you may be able to see some usable revisions. ☠MarkAHershberger☢(talk)☣ 13:44, 21 January 2013 (UTC)
Multiple Image Sizes
How can I get images with other sizes to display links to these other sizes on their file description pages, like on Wikipedia:
http://en.wikipedia.org/wiki/File:Wikipedia-logo-v2.svg
Is there some kind of extension that does this or what? Pocket lint (talk) 21:12, 21 January 2013 (UTC)
- I don't see a link to "the other sizes" on the description page. 88.130.74.218 21:22, 21 January 2013 (UTC)
- I believe Pocket lint means "This image rendered as PNG in other sizes: 200px, 500px, 1000px, 2000px.". ☠MarkAHershberger☢(talk)☣ 02:23, 22 January 2013 (UTC)
- See the documentation and links off of $wgUseImageResize. ☠MarkAHershberger☢(talk)☣ 02:22, 22 January 2013 (UTC)
Error when trying to watch pages
I'm trying to setup a MediaWiki site and have been playing around with some of the features. I've been trying to get the Watch feature working, but everytime I click on the link in the tab I get the following message:
An error occurred while changing your watchlist settings for <page name>.
Would there be something in the configuration that is blocking this feature. Or if anyone has any pointers as to commonly made errors, it would be helpful. 130.220.71.24 (talk) 05:36, 22 January 2013 (UTC)
- Hmmm I've just done a more in depth search... seems the problem is apart of the 1.18.1 release (which I have). Is there a patch for this currently or will I have to update (probably a more lengthy process that I have to handball off) 130.220.71.24 06:10, 22 January 2013 (UTC)
- Strange error, I have not seen that one before. But: I found a patch for it: See here. However, MediaWiki 1.18 is older and no longer supported. You could use MediaWiki 1.20 instead of 1.18. The patch, which I linked you is part of MediaWiki since version 1.19, so the problem will be solved with an upgrade to 1.20 as well.
- I would recommend doing an update. See Upgrading for everything you need to know. :-) 88.130.74.218 14:13, 22 January 2013 (UTC)
- Okay, I've updated to 1.20 but for some reason watching still doesn't work, I click the watch link and this time nothing happens. The only way I can get watchlist to work is editing the raw watchlist. This will become a great hassle when I roll this out to my colleagues.
- Interesting... right clicking the link and opening in a new window brings up the "do you want to add this page to your watchlist"
- And disabling AJAX also seems to get it working...
- Still I'd rather have AJAX enabled so does anyone have any ideas? 130.220.71.25 23:22, 23 January 2013 (UTC)
- I have the same issue here: . Were you able to fix it or at least identify the code responsible for this? Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 08:57, 7 March 2013 (UTC)
- We need to reproduce the problem first, something that doesn't happen on the current version of MediaWiki.
- If your wiki is public, a link to it will really help. As said on the forum thread you linked, it seems to be a conflicting JS error.
- Are you using a custom skin? Ciencia Al Poder (talk) 10:39, 8 March 2013 (UTC)
- I now have a reproducible case in which this occurs, at least on 1.19.3. I recently added the following lines to our LocalSettings.php:
$wgGroupPermissions['*' ]['writeapi'] = false;
$wgGroupPermissions['user' ]['writeapi'] = false;
$wgGroupPermissions['bot' ]['writeapi'] = true;
- This caused the Watch/Unwatch feature to break, as documented in the OP, though editing the raw watchlist worked fine. Reverting the changes fixed the problem. My first suspicion is that there's an incorrect permissions check somewhere in the MediaWiki software. – RobinHood70 talk 20:05, 7 June 2013 (UTC)
- I now have a reproducible case in which this occurs, at least on 1.19.3. I recently added the following lines to our LocalSettings.php:
$wgGroupPermissions['*' ]['writeapi'] = false;
$wgGroupPermissions['user' ]['writeapi'] = false;
$wgGroupPermissions['bot' ]['writeapi'] = true;
- This caused the Watch/Unwatch feature to break, as documented in the OP, though editing the raw watchlist worked fine. Reverting the changes fixed the problem. My first suspicion is that there's an incorrect permissions check somewhere in the MediaWiki software. – RobinHood70 talk 20:05, 7 June 2013 (UTC)
- Well, that's the problem: The ajax watch feature is using the api to save the watch settings, so it requires the writeapi permission.
- Apparently, if you click the watch tab and "open it in a new window/tab" it will work, without using the api.
- This is tracked at bugzilla:47480 Ciencia Al Poder (talk) 20:20, 7 June 2013 (UTC)
- Yeah, I found that right after posting here and poked at it. It seems to have attracted some attention, and someone has offered to work on patching it. – RobinHood70 talk 22:47, 7 June 2013 (UTC)
- I have the same issue here: . Were you able to fix it or at least identify the code responsible for this? Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 08:57, 7 March 2013 (UTC)
Collapse Header Section
Hi all,
is there any way, to coallaps the contant beetwen the headers?
I know the solution with div classes "mw-collapsible". But i need the collapse button nearly to the edit button
Like this:
Header 1_______________________________________show edit
Header 2_______________________________________hide edit
This is an example text.
Header 3_______________________________________show edit
thx for your help! 87.152.227.19 (talk) 11:56, 22 January 2013 (UTC)
- like this? . Ciencia Al Poder (talk) 10:28, 23 January 2013 (UTC)
- That is fantastic! Do you have a link to instructions?
- thanks! 67.166.78.18 06:34, 22 January 2014 (UTC)
- You can edit the page to view the source wikitext.
- This was doing following the documentation at ResourceLoader/Default modules#jquery.makeCollapsible Ciencia Al Poder (talk) 10:34, 22 January 2014 (UTC)
- That works great! Thanks for the info & quick reply! Jaroch7 (talk) 00:04, 23 January 2014 (UTC)
- Is there a way to keep the "Show/hide" from being listed alongside the headers in the Table of Contents? Jaroch7 (talk) 01:11, 23 January 2014 (UTC)
- No, since it's being part of the header text. A possible workaroud would be to make the entire header text part of the custom toggle. Another option would be to put the custom toggle before the header, and make it float to the right. Ciencia Al Poder (talk) 10:26, 28 January 2014 (UTC)
- One method you could do is to put it after the header, but to then play with the DIV's...
- Ex:
- User:Curtiplas Curtiplas (talk) 17:09, 2 May 2019 (UTC)
- (sorry double post) Jaroch7 (talk) 01:11, 23 January 2014 (UTC)
- 1) This is great!
- 2) I'm seeing that if this is used on multiple section all section will show / hide simultaneously instead of just the one selected. Any thoughts? 108.92.152.130 00:43, 16 July 2015 (UTC)
- That's probably because you use the same class="mw-customtoggle-0" and id="mw-customcollapsible-0". You should use different suffix for each section. Ciencia Al Poder (talk) 09:55, 16 July 2015 (UTC)
- Is there a way to keep the "Show/hide" from being listed alongside the headers in the Table of Contents? Jaroch7 (talk) 01:11, 23 January 2014 (UTC)
- That works great! Thanks for the info & quick reply! Jaroch7 (talk) 00:04, 23 January 2014 (UTC)
MWdumper not working in Mediawiki Api
I am currently using Mediawiki 1.19.3 and set up all the necessary database connections.It was working perfectly fine till I Dumped data from MWDumper in the same database which I was using for Mediawiki. I used this command: java -jar mwdumper.jar --format=sql:1.5 pages_full.xml.bz2 |mysql -u <username> -p <databasename> Now my local mediawiki is redirecting to http://en.wiktionary.org/wiki/Main_Page?rdfrom=http://mysite.com/
The same thing happened for Mediawiki 1.20.2 also. I really cann't find any solution for this. I am using Ubuntu 12.04 ,PHP 5.3, Mysql 5.5
Thanks in advance,
Megha paul 123.236.99.192 (talk) 13:40, 22 January 2013 (UTC)
- It doesn't sound like mwdumper isn't working. If you go to the Main_Page of your site with ?action=edit on the url do you stay on your own site?
- Actually, looking over MediaWiki:Common.js for Wiktionary, it looks like there is some js that is redirecting you to that site. Maybe blank your own Common.js and see if that fixes the problem? You really want to adapt the js to your site, though. ☠MarkAHershberger☢(talk)☣ 22:19, 23 January 2013 (UTC)
- I think you just ran across the same problem as i did before, try adding a line $wgMetaNamespace = "Wikipedia" in LocalSettings.php and see if it works, or maybe you should change "Wikipedia" to "Wikitionary". Good luck. Cusion89 (talk) 08:05, 25 January 2013 (UTC)
Approved Revs +Translate extension=Not working?
- Hi,
- I am using Mediaiwki ver 1.19.2 with both Approved revs and Translate extension installed.
- I am having problem that unapproved changes are being published. All changes made on source page are being published regardless if its approved or not.
- It seems like Translate extension "blocks" Approved revs functionality.
- Anyone having the same problem? Can you use these two extensions together? 195.234.150.70 (talk) 14:23, 22 January 2013 (UTC)
- Given that ApprovedRevs has some input from the TWN team, I would think that the extensions would work together. ☠MarkAHershberger☢(talk)☣ 22:07, 23 January 2013 (UTC)
- Hi, I have the same issue. Even if this topic is very old, I would love some input on it :) Tuxxic (talk) 15:46, 27 June 2016 (UTC)
Category and groups Mediawiki
Hi! i need some help asociating groups to specific categories in mediawiki to give rights to edit for the members of that group.
I´ve tried doing this with the extension CategoryPermissions, but without luck. I can get access into any category after ive done the modifications to LocalSettings.php.
Is there any other way to do it?
Thanks!! Ahackbartt (talk) 17:00, 22 January 2013 (UTC)
- Hi!
- The last version of CategoryPermissions is years old; it might just not work correctly with current versions of MediaWiki anymore.
- You basically can try to prevent people from accessing or editing certain pages. However, you have a fundamental problem here: MediaWiki is not made for access control.
- See Extension:CategoryPermissions, Security_issues_with_authorization_extensions or Preventing_access. What you want better can be achieved with a CMS like Drupal or TYPO3.
- Sorry that I can't tell you anything more helpful. 88.130.74.218 17:36, 22 January 2013 (UTC)
- The most granular restrictions you can do AFAIK is restrict per namespace. Create a new namespace and only allow users form a specific group to edit them. Ciencia Al Poder (talk) 10:32, 23 January 2013 (UTC)
After upgrading two wikis to 1.20, can't upload on one but can on the other
I am upgrading several wikis (all running on the same virtual server) from 1.15/1.16 to 1.20. After the upgrade, I can no longer upload files to one of the sites, but can to the other.
On the site I am unable to upload, I get the following message:
Could not create directory "mwstore://local-backend/local-public/archive/b/b4".
Both upgraded wikis have the images directory (and all subdirectories) owned by apache and all are world-writable (777).
Both upgraded wikis have the same settings in their LocalSettings.php for uploads:
$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgUploadDirectory = "$IP/images"; $wgUploadPath = "$wgScriptPath/images";
I also note that the directory it references as being unable to create is actually created (I tested this by removing it, then running the upload again). However, it is created with an owner:group of webusername:psacln and a permissions of 755 (it's a Plesk-based system, and "webusername:psacln" is the owner of the all the other files on the wiki.) This seems to be consistent with what was done in previous versions.
The original ("unupgraded") versions of both wikis (Wiki A at 1.15 and Wiki B at 1.16) can also both upload documents with no problems. (I upgraded the wikis by creating new versions of each by creating a new directory populated with MW 1.20 code and the images directory of the original wiki, restoring the original wiki's SQL data to a new database, then running the upgrade procedure.)
Software versions:
MW 1.20.2; PHP 5.3.3; MySQL 5.1.61 on a CentOS 6 virtual server.
Any ideas or suggestions would be most appreciated.
Michael mgreis@comcast.net Mgreis (talk) 19:54, 22 January 2013 (UTC)
Mediawiki 1.11 to 1.20.2
Hi I've done an upgrade of a media wiki install - unfortunately I haven't got all the data some of the bigger pages are missing
Old machine - Windows Server MediaWiki 1.11.0 Php 5.2.2 Mysql 4.1.14
New Machine Ubuntu linux MediaWiki 1.20.2 Php 5.3.10 Mysql 5.5.28
The update went fairly well I used the most recent stable version (not sudo apt-get) and ran the update script most of the database seems there.
Any ideas on how I might proceed ?
Thanks
Steve Steveabrahall (talk) 05:25, 23 January 2013 (UTC)
- Could you elaborate a bit on what the problems are? Maybe there also is some helpful information on mw:Manual:How to debug? AKlapper (WMF) (talk) 10:18, 23 January 2013 (UTC)
- I recently handled an upgrade from 1.11 to 1.19, so I can probably tell you how to fix any problems that you can tell us about.
- Is the wiki public? Could you post a URL? Is the old wiki still around so we can compare?
- What, exactly, are the problems you're seeing? ☠MarkAHershberger☢(talk)☣ 18:55, 23 January 2013 (UTC)
- Unfortunately the wiki is not public
- The problem is we had a page
- /wiki/index.php?title=client_Monthly_Email_Creative
- In the new wiki when I click on the link for that page or type the url I get to a page that just has a redirect page on it
- client_Monthly_Email_Creative
- Redirect page
- Which directs to a new blank page
- I had a quick look at the back end of the datbase (mysql) and I can see evidence of the page existing (well at least the page tittle) - I just don't know the wikimedia schema that well and how to check for content.
- Any ideas?
- Thanks for your time
- Steve Steveabrahall (talk) 22:12, 23 January 2013 (UTC)
- That is odd. Is that the only page that has a problem or do more have that problem? Do they all have this problem?
- Do you have a backup of the database for the wiki from before the upgrade? ☠MarkAHershberger☢(talk)☣ 23:11, 23 January 2013 (UTC)
- At this point we know of at least 2 pages that are behaving in the same way (I'm going to prpbably do an audit from the all pages page or at least keep both wikis running untill I can sort this )- I do have a backup of the original database I'm thinking this may be mysql 4-5 issue? Although the update.php script ran without any errors - ! Steveabrahall (talk) 22:51, 24 January 2013 (UTC)
- I could see it being a 4-5 issue. If it is only two pages, that isn't a big deal. You could try dumpping the old site and then import it to the new db if it turns out to be a lot. ☠MarkAHershberger☢(talk)☣ 02:25, 25 January 2013 (UTC)
- At this point we know of at least 2 pages that are behaving in the same way (I'm going to prpbably do an audit from the all pages page or at least keep both wikis running untill I can sort this )- I do have a backup of the original database I'm thinking this may be mysql 4-5 issue? Although the update.php script ran without any errors - ! Steveabrahall (talk) 22:51, 24 January 2013 (UTC)
InstantCommons quit working (and bogged down my wiki)
MediaWiki | 1.18.1 |
PHP | 5.3.13 (apache2handler) |
MySQL | 5.1.66-cll |
Wiki URL | http://wiki.pathfindersonline.org |
I've been running MW 1.18 since about June, and up until this weekend, it was doing great. I don't know what happened, but over the weekend, the InstantCommons feature just quit working. All the WM-hosted image files became red links and the site really bogged down. For example, I waited seven minutes for a page edit to display the new page before I gave up and canceled the page load. The edit did show up in RC, (which takes half a minute or so to load). I turned InstantCommons off as an experiment, and the wiki started behaving responsively again. My first thought was that this was related to the move to Ashburn, but perhaps that is just a coincidence. If that were the case, I would have expected to find reports of similar behavior, but my site seems to be the only one affected. Any help is greatly appreciated. Jomegat (talk) 06:26, 23 January 2013 (UTC)
[RESOLVED] Search for special characters like {{
How can I use the standard MW search to search for special characters like {{
or :bla
(with the colon)?
I already checked and tried search terms like {{
but didn't succeed yet.
Thanks for any help on this! Stefahn (talk) 11:28, 23 January 2013 (UTC)
- I highly doubt the search engine would search for those characters. It's (or should be) optimized for searching words and word variations, so the most probably thing is that spaces and special characters aren't indexed at all.
- If you need that to search special markup for doing text replace or something, you should try to query the database directly, or better, extract the text to a file and search from there if your database is large and you don't want to overload your database server. Ciencia Al Poder (talk) 10:28, 24 January 2013 (UTC)
Possible to make images scale automatically depending on screen resolution?
Hi! I'm here from Wikivoyage. We're currently trying to brighten our Main Page with some large images, but could do with them scaling automatically according to the user's screen resolution. Is there any way of doing this? Thanks,
Nick Nicholasjf21 (talk) 16:32, 23 January 2013 (UTC)
- You would probably have to use JavaScript but you should be aware of the current discussion on wikitech-l about the proliferation of thumbnails.
- Which begs the question: what do you mean by "scaling automatically"? Do you mean fetching a size that is just right for the user's screen (which would produce a lot of extra thumbnails) or choosing a close approximate and using the browser's scaling ability to handle the rest? ☠MarkAHershberger☢(talk)☣ 18:52, 23 January 2013 (UTC)
- Really which-ever was easiest to achieve and produced the cleanest result. The latter suggestion sounds perfectly good to me - I'm just not yet sure how to achieve it! Nicholasjf21 (talk) 20:09, 23 January 2013 (UTC)
- With css you can have in browser scaling. This can be accomplished by putting a width on the img tag that's specified in relative units.
- With js you can do either type of scaling. Or even a combination. This is done by adjusting the width, height and possibly src tag of the image (if you are not familar with js/html that probably doesnt mean much to you).
- I wouldn't worry too much about the wikitech-l topic. Its not the first time it has came up. No one did anything last time, im doubtful anything will come of it this time. bawolff unlogged in 21:25, 24 January 2013 (UTC)
- Thanks very much! I have a little experience of html, so I get the gist of what you're saying. In order to sort this out, would I have to access either Common.css or Common.js? Nicholasjf21 (talk) 23:52, 24 January 2013 (UTC)
- You should test it with your own CSS/JS first but, after that, yes. ☠MarkAHershberger☢(talk)☣ 02:24, 25 January 2013 (UTC)
- Thanks for your help! Nicholasjf21 (talk) 14:28, 26 January 2013 (UTC)
- You should test it with your own CSS/JS first but, after that, yes. ☠MarkAHershberger☢(talk)☣ 02:24, 25 January 2013 (UTC)
- Thanks very much! I have a little experience of html, so I get the gist of what you're saying. In order to sort this out, would I have to access either Common.css or Common.js? Nicholasjf21 (talk) 23:52, 24 January 2013 (UTC)
- Really which-ever was easiest to achieve and produced the cleanest result. The latter suggestion sounds perfectly good to me - I'm just not yet sure how to achieve it! Nicholasjf21 (talk) 20:09, 23 January 2013 (UTC)
[RESOLVED] Pipes in templates that break tables
Compare http://is.wikipedia.org/wiki/Notandi:Bjarki_S and https://no.wikipedia.org/wiki/Bruker:Bjarki_S
Does anyone know why | in the template breaks the table syntax on is.wiki but not no.wiki? I have no idea whether this is because of a different extension setups or different javascript configurations or something else. Bjarki S (talk) 18:07, 23 January 2013 (UTC)
- Have you asked in the wikis' village pumps? At first glance, that does look odd. If you find an answer, could you follow up here? ☠MarkAHershberger☢(talk)☣ 23:06, 23 January 2013 (UTC)
- is.wiki is quite small and it is usually me who is dealing with the technical stuff so I don't expect any feedback there. The table doesn't break with the same setup on most larger wikis that I have tried so something seems out of order on the Icelandic one. Bjarki S (talk) 02:23, 24 January 2013 (UTC)
- Here you go: https://is.wikipedia.org/w/index.php?diff=1348255&oldid=1347770 Hoo man (talk) 14:58, 24 January 2013 (UTC)
- is.wiki is quite small and it is usually me who is dealing with the technical stuff so I don't expect any feedback there. The table doesn't break with the same setup on most larger wikis that I have tried so something seems out of order on the Icelandic one. Bjarki S (talk) 02:23, 24 January 2013 (UTC)
I can't access the Appearance tab.
I can't access the Appearance tab. In preferences I can only change setting on the User Profile. No other tab is accessible. My User ID: 1 and Member of groups: Administrators, Autoconfirmed users, Bureaucrats, Users
Product Version
MediaWiki 1.20.2
PHP 5.3.21 (cgi-fcgi)
MySQL 5.1.66-0+squeeze1
www.vcel.be/ccvswiki www.vcel.be is a Joomla 2.5 site 141.135.51.112 (talk) 20:46, 23 January 2013 (UTC)
- Are you blocking JavaScript?
- I have NoScript installed and couldn't see multiple tabs when I first visited your site. After allowing JS from vcel.be, I could see the tabs. ☠MarkAHershberger☢(talk)☣ 21:58, 23 January 2013 (UTC)
- Thanks for the tip !
- I use Internet Explorer 9.
- With IE9 goto Internet Options/Security/Internet reset to Standard Level.
- When in your mediawiki Press the "broken page/website for old browser" button and select Appearance tab again.
- You should have access now
- Or modify the Standard Level : Set Allow Scriplets to enable.
- Then you should have access without pressing the "broken page/website for older browser" button.
- PS : None of these problems occurs with Google Chrome. 141.135.51.112 09:55, 24 January 2013 (UTC)
- Might be https://bugzilla.wikimedia.org/show_bug.cgi?id=41792 AKlapper (WMF) (talk) 13:16, 24 January 2013 (UTC)
Extension:InputBox for MW 1.17
I also can't find the buttons for adding discussions or replies. I eventually found this URL.
http://www.mediawiki.org/w/index.php?title=Project:Support_desk&lqt_method=talkpage_new_thread
It's back.
- Question
Where can I get the 1.17 version? It is not in the distributor, and the page goes back far enough that it would exist. Normally I would upgrade, but Extension:WYSIWYG says it only works with 1.17. Lieutenant Aleksandr Reznov 01:48, 24 January 2013 (UTC)
- Extension:WYSIWYG points here ☠MarkAHershberger☢(talk)☣ 05:19, 24 January 2013 (UTC)
- Thanks. I was asking for the version of InputBox. I should have made that more clear. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 05:49, 24 January 2013 (UTC)
- Clicking snapshot on this page should get you code from around 1.17. ☠MarkAHershberger☢(talk)☣ 06:04, 24 January 2013 (UTC)
- Thanks. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 06:15, 24 January 2013 (UTC)
- It says there's a problem on line 55 of this one:
Fatal error: Call to undefined method MediaWiki::getAction() in /home/content/01/7537801/html/en/extensions/InputBox/InputBox.hooks.php on line 55
- On the other one it said line 52.
- EDIT
- There seems to be a problem with this:
- ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 06:21, 24 January 2013 (UTC)
if( $wiki->getAction( $request ) !== 'edit' ){ # not our problem return true;
- Download 1.17.5. I tried 1.17.0 and it didn't have the method. 1.17.5 did. ☠MarkAHershberger☢(talk)☣ 14:30, 24 January 2013 (UTC)
- Thanks. I just upgraded to 1.17.5 and I still get this:
Fatal error: Call to undefined method MediaWiki::getAction() in /home/content/01/7537801/html/en/extensions/InputBox/InputBox.hooks.php on line 55
- Is there a particular version of the extension that I should use? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 16:11, 24 January 2013 (UTC)
- I don't think so. Could you look in
includes/Wiki.php
and see if there isfunction getAction
in there? - When I looked, there was. ☠MarkAHershberger☢(talk)☣ 18:02, 24 January 2013 (UTC)
- I searched for function getAction and didn't find it. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:47, 24 January 2013 (UTC)
- This revision of the file worked:
- http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/InputBox/InputBox.hooks.php?revision=78260&view=markup ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:36, 24 January 2013 (UTC)
- good. Glad it is working now. ☠MarkAHershberger☢(talk)☣ 21:04, 24 January 2013 (UTC)
- I searched for function getAction and didn't find it. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 18:47, 24 January 2013 (UTC)
- I don't think so. Could you look in
- Download 1.17.5. I tried 1.17.0 and it didn't have the method. 1.17.5 did. ☠MarkAHershberger☢(talk)☣ 14:30, 24 January 2013 (UTC)
- Thanks. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 06:15, 24 January 2013 (UTC)
- Clicking snapshot on this page should get you code from around 1.17. ☠MarkAHershberger☢(talk)☣ 06:04, 24 January 2013 (UTC)
- Thanks. I was asking for the version of InputBox. I should have made that more clear. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 05:49, 24 January 2013 (UTC)
How can I disable Extension:WikiEditor when Extension:WYSIWYG is enabled?
By enabled, I mean when users have it enabled. I want WikiEditor to display for anyone who doesn't have WYSIWYG enabled. Would something like this do it?
if (display-wysiwyg==yes) {display-wikieditor==no}
I imagine to figure that out, it should include code to get the setting about whether WYSIWYG is enabled from the user's preferences. I have WikiEditor enabled by default. Lieutenant Aleksandr Reznov 02:04, 24 January 2013 (UTC)
Templates aren't working
Hi, I'm using the templates from The Vault (with attribution) to create my own wiki forum for our community. I'm having a problem. On Template:Forumintro, only the default content for Template:Intro is displaying. I am using similar content to that wiki and the image Sternkreuz.png, yet WikiLogo.png displays instead. Does anyone know what the problem is? Is the template and parser functions somehow tied to the URL of that wiki and breaks with a different URL? Lieutenant Aleksandr Reznov 04:38, 24 January 2013 (UTC)
- I think I figured it out. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:49, 24 January 2013 (UTC)
Single log on with Joomla using jFusion
Hi everyone,
I'm a Joomla web developer, now for the first time I was asked to establish a single logon for MediaWiki and Joomla. I used jFusion for this purpose (see http://www.jfusion.org). I was a bit surprised that this extension is not mentioned anywhere on MediaWiki.org
Unfortunately I've run into some trouble with this Joomla - jFusion - MediaWiki setup. The folks at jFusion think this has something to do with cookies management, but they cannot put their finger on it. Maybe there's someone around here who is willing to take a look at it? In short, the problem is that some pages are blank when logging in through Joomla, while they are full of content when logging in directly. I have not found a pattern yet as to which pages are shown correctly and which ones are blank. All I can say is that it seems unpredictable to me.
I am not yet familiar with MediaWiki ins and outs, so I do apologize for any misunderstandings to come ;-)
Kind regards,
Frits Jongbloets Oorzaak (talk) 14:31, 24 January 2013 (UTC)
- If your site is public? If so, providing the link to the site would allow us to look at the site and maybe help you diagnose the problem. ☠MarkAHershberger☢(talk)☣ 14:45, 24 January 2013 (UTC)
- Thanks for your reply. I've created a test page for you so you take a look while we keep the link to MediaWiki away from the users:
- http://www.stichtingvertellen.nl/index.php?Itemid=54
- In the left column, below the menu, there's a login module. Please log in using these details:
- user name: oorzaaktest2013
- password: test12
- After you're logged in, there will be one more menu item in the left column, called: Wiki (TEST)
- When you click this item, the Wiki opens in a new window.
- There's virtually no content in the Wiki yet, but you can for instance click Special Pages > User List, this results in a blank page while the page is displayed correctly when I log on to the Wiki directly at this url:
- http://www.stichtingvertellen.nl/mediawiki
- You can of course use the same login details here.
- I hope you can help me,
- Frits Oorzaak (talk) 19:23, 30 January 2013 (UTC)
- They are using framing and the list users page isn't allowing it. You can see this if you open the js console. In FF, I see:
Load denied by X-Frame-Options: ...Special:ListUsers does not permit framing.
☠MarkAHershberger☢(talk)☣ 21:51, 30 January 2013 (UTC)
- Oh and could you please tell me if it's possible to subscribe to this support topic?
- Frits Oorzaak (talk) 19:26, 30 January 2013 (UTC)
- The thread's page has a star at the top. Click that to "watch" the page. You can set your preferences for how to be notified on your preferences page.
- You'll also see a "New messages" link at the top of the page. ☠MarkAHershberger☢(talk)☣ 21:42, 30 January 2013 (UTC)
Download a file from an image.
I'm trying to make it so that I can click on an image and download an audio file, but I'm not having very much success.
Essentially, I want to take the functionality of MEDIA namespace that allows you to download a file rather than visit the file's page:
[[Media:Audio.ogg]]
And combine it with the LINK option of the IMAGE namespace which allows you to use an image to link to a file page.
[[Image:Image.png|link=File:Audio.ogg]]
However, when you put the MEDIA namespace in an IMAGE link:
[[Image:Image.png|link=Media:Audio.ogg]]
It still takes you to the file page rather than downloading the file. Anyone know how to fix this? I'm using MediaWiki v1.18.3 TheAlmightyGuru (talk) 21:45, 24 January 2013 (UTC)
- Something like the following?
- ☠MarkAHershberger☢(talk)☣ 22:05, 24 January 2013 (UTC)
[[Image:Wild Turtle.jpg|100px|link={{filepath:AmicusMeus.ogg}}]]
- Yes! That worked. Thank you! TheAlmightyGuru (talk) 19:52, 9 December 2013 (UTC)
MediaWiki error : mcrypt_create_iv()
Hello, I am new to mediawiki, I purchased MediaWiki Hosting from Hostpaedia
Default installation works well but if i install new Media wiki on another directory than i got this error
Warning : mcrypt_create_iv() on file : cryptRand.php on line 285.
I got to know from Hostpaedia Team that the Mediawiki hosting is hosted on Windows Server.
One of my friend using Windows Azure hosting and having the same problem.
Is there any bug in mediawiki for Windows? Please guide us. 58.146.104.214 (talk) 06:29, 25 January 2013 (UTC)
- What is the exact Warning error?
- It seems another instance of bugzilla:35894 Ciencia Al Poder (talk) 10:26, 25 January 2013 (UTC)
- I tested windows hosting and saw this problem with mcrypt_create_iv() on Windows. Can you modify includes\CryptRand.php in your installation? If not, can you point Hostpaedia to the bug report? ☠MarkAHershberger☢(talk)☣ 17:28, 25 January 2013 (UTC)
How to change theme in mediawiki
How to give custom theme and css in a skin? and,if possible how to create a custom skin also in mediawiki? Ksanjeet 10:01, 25 January 2013 (UTC)
- Use the search on this site!
- This question came up multiple times in the last four weeks. The answers include a link to a blog post by Daniel Friesen, where he explains exactly that. :-) 88.130.69.150 16:28, 25 January 2013 (UTC)
How can I add something on the top of every page ?
- Hi
- Is it possible call a custom php script to add HTML or Wiki text on the top of every page ?
- If necessary, I can make my own extension for this, but all the examples are either for SpecialPages or Templates. Is there examples or explanations to only output ?
- Thanks for help ! Gastounet (talk) 15:03, 25 January 2013 (UTC)
- That depends on where exactly you want to have the output of your PHP script:
- Maybe you can add it using a hook. That would be a clean way.
- You can modify the skin or create your own one and modify the skin file (like Vector.php for the Vector skin). In that case you should not change the files of the Vector skin, but instead create an own skin to have a clean solution. 88.130.69.150 16:27, 25 January 2013 (UTC)
- What about Manual:Interface/Sitenotice? Ciencia Al Poder (talk) 16:46, 25 January 2013 (UTC)
- That depends on where exactly you want to have the output of your PHP script:
- use the hook "ArticleViewHeader". 167.220.24.7 (talk) 02:46, 12 January 2019 (UTC)
Wiki not loading up properly anymore
Go an annoying problem with my wiki after transfering from another webhost that was giving problem with ini_set among other issues.
So moved the database and everything, now I have this
http://kraftzone.tk/wiki/index.php/Main_Page
It barely loads (hardly any css or images load up, it seeems to spend more time loading, and doesn't load up anything properly
However if you goto some of the links like: http://kraftzone.tk/wiki/index.php?title=Main_Page&action=history
Things load up nicely like they used to..
php,mysql versions are same (and the database should be setup the same) apache however might have some config differences...not sure what though any ideas? Koolio~mediawikiwiki (talk) 04:10, 26 January 2013 (UTC)
- This seems a bit strange, when I go to "/index.php/Main_Page" it won't look correct, but "/index.php?title=Main_Page" will.
- When you moved webhosts, did you always have "kraftzone.tk" or did you switch to that while moving? iXavier (talk) 07:14, 26 January 2013 (UTC)
- yeh I had kraftzone.tk same
- I did some more digging, in the /skins/ folder and the skins file I made, I had plenty of links like src="../forum/image.gif" etc this is how they were setup on the previous host... now I've gone and change them all to src="../../forum/image.gif" and its rendering the site properly.. strange how that would fix things.
- I can't figure out what has caused that change.. but when I hosted the site locally on my machine I had the same problem using xampp for windows.
- now just to fix the images, honestly thinking this mediawiki is more trouble than its worth in setting it all up, breaks so easily with stuff. Koolio (talk) 07:32, 26 January 2013 (UTC)
- You shouldn't use "../forum" there, but "/forum" instead, since when you access "/index.php/Main_Page" it's 2 levels deep (being index.php the first level and Main_Page the second) while "/index.php?title=Main_Page" is only one level deep.
- If you rewrite those files to start with a slash "/" it will start at the top level, independently of how many folder levels are on the current URL (even if they're "virtual", the browser doesn't know that). Ciencia Al Poder (talk) 13:47, 26 January 2013 (UTC)
[RESOLVED] Maintenance Scripts and Sqlite
I've found this problem here and there on the web, but couldn't find a solution.
I've changed from MySQL to Sqlite; the wiki works;
but when I want to run "php update.php
" or any other maintenance script including those of extensions, I get the error:
DB connection error: Cannot return last error, no db connection
What's wrong here? I just can't google a solution.
I am running Uniserver on Windows 8 and am testing to set up another small wiki as kind of a pim.
Thanks 79.232.50.15 (talk) 07:35, 26 January 2013 (UTC)
- Are you sure that the PHP version of the CLI is the same as the webserver, and are using the same php.ini settings? It's common that the PHP version on the webserver is different from the CLI, so different settings apply and maybe it's missing some extensions (like sqlite) or have some compatibility issues with MediaWiki. Ciencia Al Poder (talk) 13:50, 26 January 2013 (UTC)
- PHP Version is 5.4.11 both in phpinfo and cli.
- pdo, pdo_sqlite 3.7.7.1 and sqlite 3.7.7.1 are loaded
- MediaWiki is 1.20.2 and Special:Version is also stating the above mentioned versions
- The sqlite database is placed where the mediawiki-installer suggested: "C:\Uniserver\data"
- This is included in Localsettings.php:
$wgSQLiteDataDir = "C:\\UniServer\\data";
- This is included in Localsettings.php:
- MediaWiki is in "C:\Uniserver\www\mediawiki\"
- I can go to "http:localhost:8081/mediawiki" an the wiki works just fine.
- I can go to "http:localhost:8081/mediawiki/mw-config" and update.
- I can import a dumped.xml.
- But the scripts cannot connect from command line to the sqlite-database.
- I have another mediawiki in the same folder with the same server using a mysql-database and the scripts work.
- Is there a way to find out which path a script is assuming the sqlite-file to be? 79.232.36.159 15:13, 26 January 2013 (UTC)
- Do you have permissions to access the file? Your webserver probably uses a different user than the one you're running the script as. ☠MarkAHershberger☢(talk)☣ 03:29, 27 January 2013 (UTC)
- OK, first of all, I have now moved the files from my windows 8 notebook to an iMac, and I can access the database from both browser and cli.
- I learned that $wgSQLiteDataDir has to be the absolute file path ("/Applications/.../data"); anything else didn't work. (I had that set in windows, just post it here in case...)
- Now back to my problem, I'm afraid to ask, but: what file permissions must be set under windows? I have set all the permissions checked ("full access"), I can delete the sqlite-file from the cmd command line, can move it, but can't connect to the db via php cli. 79.232.58.127 19:36, 29 January 2013 (UTC)
- I just installed mw+sqlite on windows. After giving the group "Users" the "Full control" permissions for both the directory containing the sqlite file and the sqlite file itself, using sqlite on the cli worked. I was also able to run a maintenance script with no problems.
- Maybe the permissions on the containing directory or one of its parents is not correct?
- What does the following command output when you execute it in your mw directory?
php -r 'var_dump(realpath("."));'
☠MarkAHershberger☢(talk)☣ 18:21, 30 January 2013 (UTC)- I have it working.
- Although I had it all set in "UniServer" via the graphical interface, "sqlite3.dll" and "pdo_sqlite.dll" where not in the
php-cli.cfg
. - I don't know, probably it was my fault in that I uncommented these dlls manually in php.cfg and thus had them checked in the gui.
- After adding them to php-cli.cfg the scripts run.
- Thanks for your help, though. 79.232.28.55 19:42, 31 January 2013 (UTC)
- Looks like we need better error handling for this problem. Thanks! ☠MarkAHershberger☢(talk)☣ 21:43, 31 January 2013 (UTC)
- Bug filed: https://bugzilla.wikimedia.org/44564 ☠MarkAHershberger☢(talk)☣ 21:55, 31 January 2013 (UTC)
- At least it should report the real error:
MediaWiki 1.24alpha Updater DB connection error: Cannot return last error, no db connection Backtrace: #0 S:\PHP\EasyPHP-12.1\www\mw\includes\db\LoadBalancer.php(754): DatabaseBase->reportConnectionError('Unknown error (...') #1 S:\PHP\EasyPHP-12.1\www\mw\includes\db\LoadBalancer.php(477): LoadBalancer->reportConnectionError() #2 S:\PHP\EasyPHP-12.1\www\mw\includes\GlobalFunctions.php(3649): LoadBalancer->getConnection(-2, Array, false) #3 S:\PHP\EasyPHP-12.1\www\mw\maintenance\update.php(135): wfGetDB(-2) #4 S:\PHP\EasyPHP-12.1\www\mw\maintenance\doMaintenance.php(109): UpdateMediaWiki->execute() #5 S:\PHP\EasyPHP-12.1\www\mw\maintenance\update.php(205): require_once('S:\PHP\EasyPHP-...') #6 {main}
- Note the reportConnectionError('Unknown error - that should be reported and not that it Cannot return last error Rillke (talk) 16:53, 26 May 2014 (UTC)
- Do you have permissions to access the file? Your webserver probably uses a different user than the one you're running the script as. ☠MarkAHershberger☢(talk)☣ 03:29, 27 January 2013 (UTC)
MessagesEn.php is missing. on new mediawiki install on windows home server 2011
Hi I am having an issue (similar to another member but his/her thread is RRESOLVED)
i installed mediawiki on a Z drive (not on my C: drive) and i'm assuming this is the issue. when i go to http://localhost/mediawiki/ I am present with the localsettings.php not found and cick setup to start. So i do, but then i receive the below message
MessagesEn.php is missing.Backtrace:#0 Z:\ServerFolders\Downloads\mediawiki\includes\LocalisationCache.php(283): LocalisationCache->initLanguage('en')
- 1 Z:\ServerFolders\Downloads\mediawiki\includes\LocalisationCache.php(218): LocalisationCache->loadItem('en', 'namespaceNames')
- 2 Z:\ServerFolders\Downloads\mediawiki\languages\Language.php(338): LocalisationCache->getItem('en', 'namespaceNames')
- 3 Z:\ServerFolders\Downloads\mediawiki\includes\search\SearchEngine.php(327): Language->getNamespaces()
- 4 Z:\ServerFolders\Downloads\mediawiki\includes\User.php(1215): SearchEngine::searchableNamespaces()
- 5 Z:\ServerFolders\Downloads\mediawiki\includes\User.php(2160): User::getDefaultOptions()
- 6 Z:\ServerFolders\Downloads\mediawiki\includes\context\RequestContext.php(274): User->getOption('language')
- 7 Z:\ServerFolders\Downloads\mediawiki\includes\StubObject.php(160): RequestContext->getLanguage()
- 8 Z:\ServerFolders\Downloads\mediawiki\includes\StubObject.php(105): StubUserLang->_newObject()
- 9 Z:\ServerFolders\Downloads\mediawiki\includes\parser\ParserOptions.php(334): StubObject->_unstub()
- 10 Z:\ServerFolders\Downloads\mediawiki\includes\installer\Installer.php(360): ParserOptions->__construct()
- 11 Z:\ServerFolders\Downloads\mediawiki\includes\installer\CliInstaller.php(44): Installer->__construct()
- 12 Z:\ServerFolders\Downloads\mediawiki\mw-config\index.php(36): CliInstaller->__construct('MyWiki', 'administrator', Array)
- 13 Z:\ServerFolders\Downloads\mediawiki\mw-config\index.php(20): wfInstallerMain()
- 14 {main}
When i go into my localisation settings and change a value, i can see i now get http 500 error. So i know th issues is the server cannot find the file. so i'm assuming its lookiing for it on the c: drive and not ym z: correct path.
What do i need to change here?
thanks in advance 174.117.67.87 (talk) 16:19, 26 January 2013 (UTC)
- Is there a file at Z:\ServerFolders\Downloads\mediawiki\languages\messages\MessagesEn.php ? ☠MarkAHershberger☢(talk)☣ 03:24, 27 January 2013 (UTC)
- yes there is a file there 174.117.67.87 22:02, 27 January 2013 (UTC)
- Why do you think it is looking on the c: drive? Every message indicates it is looking on the z: drive.
- Is there anything under your cache directory? Is the cache directory writable by the webserver? At this point, I don't know what else to ask. ☠MarkAHershberger☢(talk)☣ 02:40, 28 January 2013 (UTC)
- yes there is a file there 174.117.67.87 22:02, 27 January 2013 (UTC)
I got caught in the spam filter
Hi giys,
I just tried to fix the broken link in the link section on that page. It has a space between the letters "http". The page it links to doesn't look like spam; it contains contents on the page topic. Would be great, if someone could fix that! 88.130.102.253 (talk) 00:48, 27 January 2013 (UTC)
- I don't see any links using "http" in the external links section. Jasper Deng (talk) 06:14, 27 January 2013 (UTC)
- Because it was removed ;) Ciencia Al Poder (talk) 11:13, 27 January 2013 (UTC)
- The page www.tutorialspoint.com/mysql/mysql-database-import.htm doesn't look like spam; it contains contents on restoring a MySQL backup, which is a useful addition to the page topic. I consider it helpful. 88.130.69.170 17:04, 27 January 2013 (UTC)
- tutorialspoint.com is blocked on Spam_blacklist, a cross-wiki blacklist. If you want to contest it, you should discuss it on that talk page, not here. ☠MarkAHershberger☢(talk)☣ 01:00, 28 January 2013 (UTC)
- The page www.tutorialspoint.com/mysql/mysql-database-import.htm doesn't look like spam; it contains contents on restoring a MySQL backup, which is a useful addition to the page topic. I consider it helpful. 88.130.69.170 17:04, 27 January 2013 (UTC)
- Because it was removed ;) Ciencia Al Poder (talk) 11:13, 27 January 2013 (UTC)
$wgForeignFileRepos and relative image URLs
I'm using interwiki transclusion with a bunch of content on a remote wiki. Linking to content on that wiki works fine, as does transcluding articles or manually embedding images. However, the transcluded articles all use relative paths for the images, so they don't show up on my wiki. I've looked around a bit and have not seen a clear way to address this.
Is there a setting I need to change, or is there a known hack or patch that I could add to my MW installation to resolve this issue? I'm only transcluding images from one wiki, so I can hard code something if necessary. 72.205.51.228 (talk) 01:20, 27 January 2013 (UTC)
Mediawiki Database abstraction layer wrapper functions: how to CREATE TEMPORARY TABLE
I need to be able to run a query which joins to a temporary table which I create during the query.
I cannot see a wrapper function that enable's this.
Is there a way to do this currently?
Paul Techserver1511 (talk) 12:27, 27 January 2013 (UTC)
- Looks like
duplicateTableStructure
has what you want, but the temporary table bit should be abstracted out. ☠MarkAHershberger☢(talk)☣ 13:46, 27 January 2013 (UTC)- Thanks for that,
- It was the way to go, this is what I did:
- pre-created a permanent template in the database
- used duplicateTableStructure to create a new table before the main query (made sure that the temporary flag was set to true)
- ..ran the query that needs to join to the temp table
- Et viola! the temporary table (along with the un-needed data) disappears after the query,leaving the empty permanent template ready for the next query. 46.233.64.128 15:51, 28 January 2013 (UTC)
- If that works, great! Still, seems a little heavyweight. Could you share the code that you used? ☠MarkAHershberger☢(talk)☣ 16:03, 28 January 2013 (UTC)
- Bug filed to get createTemporaryTable ☠MarkAHershberger☢(talk)☣ 15:12, 1 February 2013 (UTC)
[RESOLVED] Errors when uploading svg files
RESOLVED BY ADDING $wgMaxShellMemory = 202400; http://www.mediawiki.org/wiki/Manual_talk:Image_administration#Error_creating_thumbnail:_SVG_Error_creating_thumbnail
MW 1.9.3 (fresh test install) Apache version 2.2.23 PHP version 5.3.21 MySQL version 5.1.66-cll
When I uploaded a svg file I got:
- Warning: wfMkdirParents: failed to mkdir "...public_html/wiki19/images/temp/e/ed"
- mode 511 in ...public_html/wiki19/includes/GlobalFunctions.php on line 2536
- Internal error
- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
When added $wgShowExceptionDetails = true; and repeated I got:
- Error creating thumbnail: ERROR: meta.c (179): wmf_header_read: this isn't a wmf file
- convert: Delegate failed `"wmf2svg" -o "%o" "%i"'.
- convert: unable to open image `/tmp/magick-XX0voRfA': No such file or directory.
- convert: unable to load module `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/svg.la': libdbus-1.so.3: failed :to map segment from shared object: Cannot allocate memory.
- convert: unable to open file `/tmp/magick-XX0voRfA': No such file or directory.
- convert: missing an image filename `PNG://tmp/transform_5d52111-1.png'.
In Local settings I have:
- $wgFileExtensions[] = 'svg';
- $wgShowExceptionDetails = true;
- $wgSVGConverter = 'ImageMagick';
Mime type on the server for svg is
- image/svg+xml svg svgz
When I added $wgSVGConverterPath = "/usr/bin/convert";
And tried again, I got this error
- Thumbnail: ...public_html/wiki19/bin/ulimit4.sh: line 4: /usr/bin/convert/convert: Not a directory
468 × 60 (2 KB)
When changed path to $wgSVGConverterPath = "/usr/bin/";
Got again:
- Error creating thumbnail: ERROR: meta.c (179): wmf_header_read: this isn't a wmf file
- convert: Delegate failed `"wmf2svg" -o "%o" "%i"'.
- convert: unable to open image `/tmp/magick-XX7yt7Hj': No such file or directory.
- convert: unable to load module `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/svg.la': libdbus-1.so.3: failed to map segment from shared object: Cannot allocate memory.
- convert: unable to open file `/tmp/magick-XX7yt7Hj': No such file or directory.
- convert: missing an image filename `PNG://tmp/transform_4d7b2a0-1.png' 87.202.28.216 (talk) 21:41, 27 January 2013 (UTC)
Frames like on mediawiki frontpage
- Hello I am new to this and wondering how mediawiki has done the frames like on the front page I have linked a image for reference
- http://imgur.com/kkf8tBl
- Thank you. 86.128.197.93 (talk) 22:33, 27 January 2013 (UTC)
- They're just using CSS. Granted, finding out how the front page is formatted isn't simple, but if you edit this template, you'll see that they html ids like "
mainpage_topbox
" are used so that CSS from MediaWiki:Common.css (since moved to MediaWiki:Gadget-site.css) can create a box using: - ☠MarkAHershberger☢(talk)☣ 00:51, 28 January 2013 (UTC)
#mainpage_topbox { background: #f9f9f9; padding: 0px; border: 1px solid #aaaaaa; margin: 0.2em 10px 10px; }
- I have got the same question. Could anybody explain step by step how to crate main page like on MediaWiki? 84.204.22.130 09:16, 24 June 2013 (UTC)
- Quick and dirty way:
- Type {{:MediaWiki}} in the "Input text" box on Special:ExpandTemplates.
- Copy the result to your own main page
- Copy everything from MediaWiki:Gadget-site.css on mediawiki.org to MediaWiki:Common.css on your own Mediawiki installation
- The page will now be filled with tons of broken links, redlinks and broken file links; it will look like crap, but it will be easy to replace the content with your own
- Cleanup
- A few things you should know:
- Special:ExpandTemplates will substitute ALL templates, parser functions and variables, destroying the original code. The code of the main page and all used templates can be kept intact if exported using Special:Export, but a lot cleanup will be needed (e.g. cleaning up tons of templates and even installing extensions).
- Much of the css from MediaWiki:Gadget-site.css can be removed. The rest may either be kept in your MediaWiki:Common.css or moved to your new main page (use inline css for this). jonkerz ♠talk 22:37, 24 June 2013 (UTC)
- Thanks! I have created beautiful main page))) 84.204.22.130 09:32, 25 June 2013 (UTC)
- Hi, trying to do the same thing. When trying to do the:
Type {{:MediaWiki}} in the "Input text" box on Special:ExpandTemplates.
- I get no result at all. What am I doing wring? Jonas 08:56, 9 December 2013 (UTC)
- Go to Special:ExpandTemplates (on mediawiki.org, not your local installation), enter "{{:MediaWiki}}" in the large text box labelled "Input text:" (not the small one labelled "Context title..."). Press OK. Did that work for you? jonkerz ♠talk 14:56, 26 May 2014 (UTC)
- Where to move the Gadget-site.css? I've just put it in my mediawiki main folder but my main page still looks ugly. 80.149.194.70 11:05, 31 October 2014 (UTC)
- Quick and dirty way:
- They're just using CSS. Granted, finding out how the front page is formatted isn't simple, but if you edit this template, you'll see that they html ids like "
- I also want to put boxes on my front page (se testpage here: http://sp.føniks.nu/Forside4). I tried to follow the above instructions but somehow the CSS is not active even though I copied the content of MediaWiki:Gadget-site.css to my own wiki's http://sp.føniks.nu/MediaWiki:Common.css. Any suggestions about what is missing to get the boxes? Thanks in advance. Degn (talk) 01:42, 24 August 2019 (UTC)
- At the very least, Extension:TemplateStyles is now required with the new Template:Main page code too. And then you'll need to appropriately copy Template:Main page/styles.css too. AhmadF.Cheema (talk) 06:41, 24 August 2019 (UTC)
- Thanks AhmadF.Cheema. I installed Extension:TemplateStyleswith no problems. But I get an error when creating Template:Main page/styles.css. In Danish versions the page is automatically converted to Skabelon:Main page/styles.css, and input of the code Template:Main page/styles.cssproduce an internal error (see below). Any idea what went wrong?
- [b9f976641f9b2485d88ddf4a] /index.php?title=Skabelon:Main_page/styles.css&action=submit Error from line 78 of /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/extensions/TemplateStyles/includes/TemplateStylesContent.php: Class 'Wikimedia\CSS\Parser\Parser' not found
- Backtrace:
- #0 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/extensions/TemplateStyles/includes/TemplateStylesContent.php(135): TemplateStylesContent->sanitize(array)
- #1 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Revision/RenderedRevision.php(239): TemplateStylesContent->getParserOutput(Title, NULL, ParserOptions, boolean)
- #2 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(TemplateStylesContent, boolean)
- #3 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
- #4 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
- #5 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
- #6 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
- #7 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Storage/DerivedPageDataUpdater.php(1265): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- #8 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/Storage/PageUpdater.php(707): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
- #9 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/page/WikiPage.php(1886): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)
- #10 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/EditPage.php(2285): WikiPage->doEditContent(TemplateStylesContent, CommentStoreComment, integer, boolean, User, string, array, integer)
- #11 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/EditPage.php(1574): EditPage->internalAttemptSave(array, boolean)
- #12 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/EditPage.php(677): EditPage->attemptSave(array)
- #13 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/actions/EditAction.php(60): EditPage->edit()
- #14 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/actions/SubmitAction.php(38): EditAction->show()
- #15 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/MediaWiki.php(501): SubmitAction->show()
- #16 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- #17 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/MediaWiki.php(860): MediaWiki->performRequest()
- #18 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/includes/MediaWiki.php(517): MediaWiki->main()
- #19 /storage/content/45/1007945/sp.xn--fniks-vua.nu/public_html/index.php(42): MediaWiki->run()
- #20 {main} Degn (talk) 20:20, 24 August 2019 (UTC)
- Do you have SSH access on your server?
- You probably need to run
composer install --no-dev
in the extension directory. This step should be needed only when installing Extension:TemplateStyles through git, however there appears to be some bug for the time being. AhmadF.Cheema (talk) 01:58, 25 August 2019 (UTC)- Hi AhmadF.Cheema. Yes. I tried but with "command not found". Any idea what to do?
- -securelve_sh-4.1$ ls
- CategoryTree ConfirmEdit Interwiki Nuke Poem SpamBlacklist WikiEditor Cite Gadgets LocalisationUpdate OATHAuth README SyntaxHighlight_GeSHi CiteThisPage ImageMap MobileFrontend ParserFunctions Renameuser TemplateStyles CodeEditor InputBox MultimediaViewer PdfHandler ReplaceText TitleBlacklist
- -securelve_sh-4.1$ composer install --no-dev
- -securelve_sh: composer: command not found
- -securelve_sh-4.1$ cd TemplateStyles
- -securelve_sh-4.1$ composer install --no-dev
- -securelve_sh: composer: command not found
Degn (talk) 19:35, 25 August 2019 (UTC)
- This will depend on your website host. You'll have to ask their support, how to make composer available for your account. AhmadF.Cheema (talk) 20:37, 25 August 2019 (UTC)
- Hello AhmadF. I tried again after help from support but get this error:
- -securelve_sh-4.1$ composer install --no-dev
- Loading composer repositories with package information
- Updating dependencies
- Your requirements could not be resolved to an installable set of packages.
- Problem 1
- - Installation request for mediawiki/mediawiki-codesniffer 24.0.0 -> satisfiable by mediawiki/mediawiki-codesniffer[v24.0.0].
- - mediawiki/mediawiki-codesniffer v24.0.0 requires php >= 5.6.99 -> your PHP version (5.6.33) does not satisfy that requirement.
- Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
- Any suggestions? Update PHP-version? Degn (talk) 15:30, 27 August 2019 (UTC)
- Looks like your MediaWiki installation is using PHP v7.0.32, but the command for composer is using PHP v5.6.33.
- You'll probably have to ask your host how to make use of the newer PHP version in the command line, in order to be able to run the composer command. AhmadF.Cheema (talk) 15:44, 27 August 2019 (UTC)
- My host referred me to this page: https://www.semantic-mediawiki.org/wiki/Help:Installation/Using_Composer_with_MediaWiki_1.25%2B
- This process seems indeed very complicated. Isn't the a more easy way ex. direct CSS-scripts? I only need the 4 boxes on the front page.
- Thanks. Degn (talk) 17:36, 29 August 2019 (UTC)
- I'm pretty sure what your host referred to is irrelevant here. They just needed to provide the command/path that will make use of the newer PHP version on the command line.
- In any case, I haven't used Extension:TemplateStyles, but I suppose copying the contents of Template:Main page/styles.css to your MediaWiki:Common.css should work. Also, you would no longer need the "templatestyles" line from Template:Main page. AhmadF.Cheema (talk) 19:32, 29 August 2019 (UTC)
- I think the problem started because I used DANISH settings. When I changed to english language the correct formatting works fine. Thank you AhmadF.Cheema for the inspiration! Degn (talk) 16:43, 3 September 2019 (UTC)
- hi everybody,
- what about the mobile view? I know this post is three years old but maybe someone has a answer.
- I have the boxes on my site but can´t see them on mobiel view.
- any ideas? 31.17.255.177 (talk) 06:35, 28 May 2022 (UTC)
- now as logged in user.
- to my question above my site is antibiotika-fibel.de
- thanks Docmasen (talk) 06:44, 28 May 2022 (UTC)
Need help with skin customization directions
Hi, could someone please help clarify what I'm supposed to to here to make the changes? I've done what I think I need to do, and it hasn't worked.
http://www.mediawiki.org/w/index.php?title=User_talk:Dantman&offset=20130127195526#Problem_with_modified_Vector_skin_23244 Lieutenant Aleksandr Reznov 05:09, 28 January 2013 (UTC)
- Not positive, but I think you need:
$wgResourceModules['skins.sturmkrieg'] = array( 'styles' => array( 'sturmkrieg/screen.css' => array( 'media' => 'screen' ), ), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory'], 'dependencies' => 'skins.vector' );
- See $wgResourceModules. ☠MarkAHershberger☢(talk)☣ 14:01, 28 January 2013 (UTC)
- So dependencies goes after all that stuff? Thanks. I looked at that and added something like that but dependencies wasn't last, if it needs to be.
- EDIT
- It didn't work. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 16:38, 28 January 2013 (UTC)
- It wouldn't matter if it was last or not.
- I assume you've posted everything I need to test it in that other thread? I'll have time to test later and get back to you. ☠MarkAHershberger☢(talk)☣ 17:00, 28 January 2013 (UTC)
- I'll repost everything with a few small updates.
- EDIT
- Here:
- User:Inquisitor Ehrenstein/Sandbox/Sturmkrieg skin ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:04, 28 January 2013 (UTC)
- I don't think putting skin.vector in the dependencies is going to make a bit of difference -- because I don't see any module that is named 'skin.vector'.
- I did notice, using Firebug, that your styles were not overriding the vector ones, but that adding
!important
to the declarations would help. I see you have !important on some others, so here is what I did for div#content for example: div#content {
background: #2E2E2E !important;
border: 1px solid #000000;
color: #D8D8D8;
}
☠MarkAHershberger☢(talk)☣ 01:40, 31 January 2013 (UTC)- Thanks. I'll remove the skins.vector part. So adding !important should override the Vector settings? Do I need to add it to all of the lines for each class or just the first one like above? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:09, 31 January 2013 (UTC)
- Really, we should find out how to get this to load in a way so that it is used instead of Vector's declarations.
- And you won't need it for every line -- only those where there are conflicts. That is, if you see a line isn't being used, then you can add !important to override it. ☠MarkAHershberger☢(talk)☣ 02:19, 31 January 2013 (UTC)
- That would be a better solution, though I did add it to all the lines for now. I can remove it to test it though.
- I am having a problem though where the magnifying glass in the search by does not show up for the Sturmkrieg skin. I had another issue with contents in TOC, but I seem to have fixed it. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:47, 31 January 2013 (UTC)
- I'm getting the magnifying glass in the search button again, but I'm getting something else odd behind it. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:31, 31 January 2013 (UTC)
- I seem to have fixed it by copying the images folder from /vector/ to /sturmkrieg/. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:42, 31 January 2013 (UTC)
- Thanks. I'll remove the skins.vector part. So adding !important should override the Vector settings? Do I need to add it to all of the lines for each class or just the first one like above? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:09, 31 January 2013 (UTC)
Git setup a nightmare (on Windows)
Do you really think current situation is a good way to attract new developers? Kozuch (talk) 08:59, 28 January 2013 (UTC)
- Please, use other channels (Project:Current issues, talk pages about Git, etc) to discuss that. This is not a issue to talk about in the Support desk. Ciencia Al Poder (talk) 10:39, 28 January 2013 (UTC)
file_put_contents failed to open stream ForeignAPIRepo.php on line 217 (svg)
MW 1.16.5 Apache version 2.2.23 PHP version 5.3.21 MySQL version 5.1.66-cll
I get this error:
Warning: file_put_contents(.../public_html/w/mediawiki-1.16.5/images/ele/thumb/7/7c/Coat_of_arms_of_Greece.svg/30px-Coat_of_arms_of_Greece.svg.png) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in .../public_html/w/mediawiki-1.16.5/includes/filerepo/ForeignAPIRepo.php on line 217
You can see a similar issue here: http://www.thegunwiki.org/thegunwiki/File:Map_of_current_Interstates.svg Spiros71 (talk) 10:00, 28 January 2013 (UTC)
- Looks like the webserver doesn't have permissions to create or write on ../public_html/w/mediawiki-1.16.5/images/ele/thumb/7/7c/Coat_of_arms_of_Greece.svg/30px-Coat_of_arms_of_Greece.svg.png
- Check file permissions. Ciencia Al Poder (talk) 10:40, 28 January 2013 (UTC)
[RESOLVED] bad presentation, no image
Hi everyone, I installed Mediawiki in a local network. I got a problem when i try to access to my wiki from any computer except from the server where MediaWiki is installed.
Server This is the configuration : Server Debian Squeeze, Apache 2.2, PHP 5.3, MySQL 5.1. The installation is ok, no error. From the server in the web browser (Iceweasel 3.5) i type http://127.0.0.1/index.php/Accueil and everything is fine :)
Computers But, from any computer in my local network (with Firefox, Chrome or IE) i reach the server with http://192.168.254.15, first the web browser redirect to http://127.0.0.1/index.php/Accueil with a blank page. I replace 127.0.0.1 with 192.168.254.15 to get http//192.168.254.15/index.php/Accueil, but i get a bad presentation with no image, just the text.
Files
Vhost (/etc/apache2/sites-enabled/societewiki)
<VirtualHost *:80>
DocumentRoot /var/www/w <Directory /var/www/w> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>
/etc/hosts 127.0.0.1 localhost 127.0.1.1 debian.societe.local debian
/etc/apache2/ports.conf NameVirtualHost *:80 Listen 80
Rights /var/www/w/LocalSettings.php -rw----r-- 1 brian brian
All files in /var/www/w/* are set to brian:brian ; brian is member of Sudo and www-data groups.
It's been two days i try to resolve it with no success :( Could you help me please? Thank you :) 82.228.94.8 (talk) 10:22, 28 January 2013 (UTC)
- Set $wgServer manually to a IP/hostname accessible from everywhere.
- Your server probably isn't resolving properly the current hostname and is serving 127.0.0.1 for remote machines Ciencia Al Poder (talk) 10:43, 28 January 2013 (UTC)
- Thank you this is it ! clap clap clap :) :)
- I had $wgServer = "http://127.0.0.1"; i replace it with $wgServer = "http://192.168.254.15";
- Thank you again ;) 82.228.94.8 11:21, 28 January 2013 (UTC)
Collapable rows in a table
Hi,
i know the way to collaps a table in MediaWiki. (class=collapsable) Now i need a second function. Is it possible to collap the rows?
Like this:
Header1 | Header2 | Header3 | |
---|---|---|---|
Entry1 | show all rows show all rows show all rows |
show all rows show all rows show all rows |
hide |
Entry2 | show only the first row | show only the first row | show |
Entry3 | show all rows show all rows show all rows |
show all rows show all rows show all rows |
hide |
thanks for your help 87.152.232.70 (talk) 11:16, 28 January 2013 (UTC)
- It doesn't look like you're collapsing rows, but lines of text. That isn't built into MediaWiki like class=collapsable. ☠MarkAHershberger☢(talk)☣ 14:03, 28 January 2013 (UTC)
[RESOLVED] How do I Edit Text in the ArticleFeedback Section?
Hi, I was asked by a wiki site owner to change the text in the article feedback. The article feedback section is at the bottom of every wikipedia page where it says "Rate this Page". For example at the bottom of http://en.wikipedia.org/wiki/Katy_perry where it says Rate this Page. By default the article feedback shows the text: Trustworthy, Objective, Complete, Well-written but the wiki site owner wants different text than these. He wants me to put Real-estate topics in place of these items. I searched the ArticleFeedback php files but couldn't find anywhere to edit these. I also posted on the ArticleFeedback extension page asking for an answer but I got no answer so I thought I might try here. Is this text edit done through toolserver or the dashboard?? Please advise because the instructions at are not clear. If you know how to do this, please reply with detailed instructions. Thank you. 23.16.61.152 (talk) 06:12, 29 January 2013 (UTC)
- See the list of messages here.
- Please note that you shouldn't edit that file, but instead edit the message on the MediaWiki namespace. For example, MediaWiki:articlefeedback-field-trustworthy-label, unless you have $wgUseDatabaseMessages set to false. Ciencia Al Poder (talk) 10:36, 29 January 2013 (UTC)
- Thank you so much for your help. I am now able to change the text in the "Rate this Page" section. Have a great day! 23.16.61.152 06:03, 30 January 2013 (UTC)
[RESOLVED]Fatal error CustomTitle extension
Hi
I need using CustomTitle extension, and I have read that it is outdated, patched as suggested in the talk of the extension's page to make it work with my mediawiki 1.19.
It works in most cases, but with the patch there is a fatal error when the title contains a simple quote.
Parse error: syntax error, unexpected T_STRING in /**********/mediawiki/extensions/CustomTitle/CustomTitle.php(107) : regexp code on line 1 Fatal error: preg_replace(): Failed evaluating code: in /**********/mediawiki/extensions/CustomTitle/CustomTitle.php on line 107
Line 107 is the line with preg_replace :
function onSkinTemplateOutputPageBeforeExec(&$m_skinTemplate, &$m_tpl) { if (isset($this->customTitle)) { $m_tpl->set('title', $this->customTitle); $m_tpl->set('pagetitle', $this->customTitle); $text = $m_tpl->data['headelement']; $regex = "#(\<title\>)(.*)(\<\/title\>)#e"; $customtitle = $this->customTitle; $title = "'<title>'.'$customtitle'.'</title>'"; $text = preg_replace($regex,$title,$text); $m_tpl->set('headelement', $text); } return true; }
Did someone solved this issue, or knows how ?
Or is there a replacement for this very useful extension ?
Thanks. Gastounet (talk) 14:15, 29 January 2013 (UTC)
- It looks fixed like this :
function onSkinTemplateOutputPageBeforeExec(&$m_skinTemplate, &$m_tpl)
{
if (isset($this->customTitle))
{
$m_tpl->set('title', $this->customTitle);
$m_tpl->set('pagetitle', $this->customTitle);
$text = $m_tpl->data['headelement'];
$regex = "#(\<title\>)(.*)(\<\/title\>)#e";
$customtitle = $this->customTitle;
#####
$customtitle = str_replace ( "'", "\'", $customtitle );
#####
$title = "'<title>'.'$customtitle'.'</title>'";
$text = preg_replace($regex,$title,$text);
$m_tpl->set('headelement', $text);
}
return true;
}
Gastounet (talk) 17:56, 29 January 2013 (UTC)
Two general usage problems
Hello --
I completed the installation of the Wiki2Latex extension onto our MediaWiki server, and had our users interact with the system. I received the following e-mail concerning two reported problems:
Creating an account went smoothly, and it seems like the core functionality works fine. I'm not sure about the extensions though. I tried adding a math formula to the main page, and it just displays the original formula source rather than the rendered formula. I copied the formula straight from the manual page for the Math extension, so I think the formula is fine. Maybe the extension is disabled?
Also, I see the "latex/pdf" tab, which I guess is provided by Wiki2Latex, but when I download a PDF from there, it has no text, just a few bullet points. If I download the .tex file and compile it locally with pdflatex, it works fine, so maybe there's something wrong with the installation of pdflatex.
The server is a Turnkey linux installation that is based on the Ubuntu 11.00 distribution. The w2l-2011-02-22 Aegaeon.zip file was used in the installation. I had some problems with unzipping the file due to the name space. To facilitate matters, I renamed the file from its original w2l-2011-02-22 Aegaeon.zip to w2l-2011-02-22_Aegaeon.zip format.
I checked the version of pdflatex on the server, and here is the output:
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) kpathsea version 5.0.0 Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.2.44; using libpng 1.2.44 Compiled with zlib 1.2.3.4; using zlib 1.2.3.4 Compiled with poppler version 0.12.4
What steps do I need to take to correct the above problems?
Thanks. Ahk71 (talk) 14:59, 29 January 2013 (UTC)
- To the first problem: If you use math-tags and they are not rendered correctly, there is something wrong with the math extension. Check Special:Version on your wiki to see if it is installed. If it is not, go through the installation process as shown on Extension:Math. 88.130.109.95 17:02, 29 January 2013 (UTC)
- Hello --
- Thanks for the reply. The Extension:Math was not present on the server, so I went through the motions of installing it on the system. Once the installation and configuration was completed, the intended format appeared to be present on the main page.
- I noticed a discrepancy with the syntax for the latex/pdf tab and Extension:Math configuration parameters. I applied the syntax used on the latter to that of the
- former, and I am having the users try it out again. I'll keep you apprised of any developments. Ahk71 (talk) 18:01, 29 January 2013 (UTC)
- Sounds good. :-) At least the first step should be done so far! 88.130.116.108 21:54, 29 January 2013 (UTC)
- Hello --
- I heard back from our users, and the first issue has been resolved. The second issue which concerns the download of the PDF file is still present. Does anyone have insight into this latter problem?
- Thanks. 132.183.12.230 17:29, 30 January 2013 (UTC)
- I'm not really a LaTeX guy, but the first thing that pops into my head is to check the fonts you have installed. ☠MarkAHershberger☢(talk)☣ 18:24, 30 January 2013 (UTC)
- I installed the texlive-full package onto the server. Is there anything else that I need to install or do here?
- Thanks. Ahk71 (talk) 21:06, 30 January 2013 (UTC)
- If you compile the .tex file to a pdf at the command line on the server, do you see the same problem? ☠MarkAHershberger☢(talk)☣ 21:54, 30 January 2013 (UTC)
- Hello --
- I am not familiar with the command syntax and interactive procedure. Could you provide an example?
- Thanks. Ahk71 (talk) 14:27, 31 January 2013 (UTC)
- Follow-up:
- I ran the command pdflatex trial.tex, and generated a trial.pdf file. When I downloaded the pdf file onto my workstation, and opened it, the file appeared in what I believe is its intended format. Ahk71 (talk) 14:33, 31 January 2013 (UTC)
- So the system is capable of producing a correct PDF. It sounds like a bug in Wiki2Latex, but I notice that the extension doesn't support MediaWiki 1.20. You didn't mention what version of Mediawiki you're using. Is it 1.20?
- If it isn't, then you should talk to the extension developers. ☠MarkAHershberger☢(talk)☣ 16:27, 31 January 2013 (UTC)
- The version that is installed is the following:
- 1.15.5-2squeeze4 Ahk71 (talk) 16:31, 31 January 2013 (UTC)
- That version of MW doesn't appear to be supported for the Wiki2Latex extension.
- Since you're running Debian's package, you should try out the Wheezy package that we've helped them develop. If you really need it, I'll try to get it back-ported to your version. ☠MarkAHershberger☢(talk)☣ 21:39, 31 January 2013 (UTC)
- Hello --
- Here is the command that is run from the web interface along with the output:
- Creating file Main.tex with 566 Bytes
- Command: /usr/bin/pdflatex -interaction=batchmode Main
- Path: /tmp/w2ltmp-1359649180-1692251597
- == Run #1 ==
- This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
- entering extended mode
- == Run #2 ==
- This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
- entering extended mode
- == Run #3 ==
- This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
- entering extended mode
- When I downloaded the pdf file via sftp, the intended format was not present. Could there be a problem with the command syntax? Ahk71 (talk) 16:27, 31 January 2013 (UTC)
- a person with a similar issue that may provide a hint. ☠MarkAHershberger☢(talk)☣ 21:58, 30 January 2013 (UTC)
- If you compile the .tex file to a pdf at the command line on the server, do you see the same problem? ☠MarkAHershberger☢(talk)☣ 21:54, 30 January 2013 (UTC)
- I'm not really a LaTeX guy, but the first thing that pops into my head is to check the fonts you have installed. ☠MarkAHershberger☢(talk)☣ 18:24, 30 January 2013 (UTC)
- Sounds good. :-) At least the first step should be done so far! 88.130.116.108 21:54, 29 January 2013 (UTC)
Gadget "Orange color of the blocked users"
Give to me if you please gadget "Orange color of the blocked users" on my project! User 1024 (talk) 05:56, 30 January 2013 (UTC)
- Does this exist already? The only way we can give it to you is if it exists. If you need to create it, you might need to do it yourself, or find someone who would be interested in writing it. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 14:45, 30 January 2013 (UTC)
- Which gadget are you talking about? Which project do you want it on? ☠MarkAHershberger☢(talk)☣ 18:11, 30 January 2013 (UTC)
Linking to section from category
Hello everyone, my question has to do with the link to a page from a category page to which it belongs. Is there an extension/technique (sort of like how specifying a sortkey works) that would allow me to include a page in a category but specify that the page's listing on the category page links to a certain anchor (or section you might say) on that page? For example, to make it so when clicking Extension:ParserFunctions on Category:Parser function extensions, it would link to Extension:ParserFunctions#Installation? Thank you! 72.196.24.209 (talk) 07:23, 30 January 2013 (UTC)
- You can't do that directly. Links from categories always go to the page.
- There's a workaround: Create a redirect page that redirects to the section you want, and put the category on that redirect. Ciencia Al Poder (talk) 10:54, 30 January 2013 (UTC)
New extension
I just created an extension for adding tags to the wiki. Could someone please review it to make sure it is secure? I added the htmlspecialchars() to the code to help ensure that. Is there anything else that it needs?
Extension:Sarcasm Lieutenant Aleksandr Reznov 07:38, 30 January 2013 (UTC)
- Looks good to me (I compared with Cite), but you should really put this in a git repo where you could get more reviews. ☠MarkAHershberger☢(talk)☣ 18:09, 30 January 2013 (UTC)
Warning: xml_parse() [function.xml-parse]: Unable to call handler out ... Import.php
I get this when trying to import xml (even a file with a few articles) from current wikipedia content export to MW 1.16.5.
Warning: xml_parse() [function.xml-parse]: Unable to call handler out_() in .../public_html/w/mediawiki-1.16.5/includes/Import.php on line 437
- MW 1.16.5
- Apache version 2.2.23
- PHP version 5.3.21
- MySQL version 5.1.66-cll Spiros71 (talk) 11:48, 30 January 2013 (UTC)
- Your MediaWiki version is rather old and outdated. Does it work with a current version? Wikipedia uses something like 1.20.2 (in fact they use something even newer). 88.130.116.108 14:20, 30 January 2013 (UTC)
- Besides being old (you really should upgrade), is that actually the error message? ☠MarkAHershberger☢(talk)☣ 17:59, 30 January 2013 (UTC)
- Yes, that is the error message.
- No such error is displayed when importing content exported from the same wiki (or a wiki using the same version), which makes me think that there is some element in the xml of current version wikipedia sites which is not compatible with that version. Spiros71 (talk) 19:30, 31 January 2013 (UTC)
- Yes, sounds reasonable.
- You find all information on how to update on the page Upgrade. Go ahead! 88.130.113.26 21:15, 31 January 2013 (UTC)
External login
Hi
I'd like to enable users to have their usernames and password checked from another source.
In Hooks#Writing_an_event_handler there is an interesting example for authentication with a LDAP.
It refers to a hook UserLogin but I do not find it in the list of available hooks.
Nothing changes When I make a function and add it's name to the $whHooks array as shown. Why ? Is it possible to use it or is it obsolete ?
On the other hand, I have seen the AuthPlugin documentation which could suit. Is there some examples somewhere ?
Thanks Gastounet (talk) 17:16, 30 January 2013 (UTC)
- See User identity extensions for several extensions that you can use as examples. ☠MarkAHershberger☢(talk)☣ 17:55, 30 January 2013 (UTC)
- Which extensions ??? Gastounet (talk) 11:44, 1 February 2013 (UTC)
- Sorry, I screwed up my link and forgot to preview the posting. I've updated it to point to User identity extensions. ☠MarkAHershberger☢(talk)☣ 14:41, 1 February 2013 (UTC)
- Which extensions ??? Gastounet (talk) 11:44, 1 February 2013 (UTC)
mw 1.20.2 thumbs not displayed but while uploading
Hej there,
I upgraded and switched from
MediaWiki: 1.8.2 PHP: 5.2.17 (cgi-fcgi) MySQL: 4.0.27--maxd0-log
to
MediaWiki 1.20.2 PHP 5.4.11 (cgi-fcgi) MySQL 5.0.96-log
I face the problem that thumbs of uploaded pics don't show. Interestingly they are shown in the uploading process (> div id="mw-upload-thumbnail" class="thumb tright"<) but not later.
When I expect a thumbnail to be shown the debug log shows
File::transform: Doing stat for mwstore://local-backend/local-thumb/Bruell-viersen06.jpg/90px-Bruell-viersen06.jpg FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/Bruell-viersen06.jpg/90px-Bruell-viersen06.jpg does not exist.and
the page shows "Fehler beim Erstellen des Vorschaubildes: Die Miniaturansicht konnte nicht am vorgesehenen Ort gespeichert werden".
What can I do to get the thumbs back?
Which additional information should I provide?
thanks in advance cheers Nutt
ps for test purposes I also changed the location from one domain to a subdirectory of another domain, stuff is in a hosted environment no shell. Nutt (talk) 19:29, 30 January 2013 (UTC)
- First, if you're really upgrading from 1.8 and not 1.18, THANK YOU!!! Even if you are upgrading from 1.18, thank you.
- Next what are the permissions on your images directory? It sounds like you're webserver can't write to the thumb sub-directory. ☠MarkAHershberger☢(talk)☣ 22:23, 30 January 2013 (UTC)
- Yes, missed one or another version. Had that MySql 4. Version and dared to dump because of the possibility to smash my latin1 with utf-8 during the dump. Didn't happen but still it's latin1 and utf-8 mixed. Will sort that out later, hopefully.
- The permissions in the images-directory are like that:
w/images 755
w/images/archive 755
w/images/lockdir 755
w/images/temp 755
w/images/thumb 755
pictures there 644
- Can I trust filezilla or do directories have different names nowadays?
- As I wrote I can upload pictures, they will be there but only as a full version, nothing thumbed. As the old ones they are accessable but only fullsize. The old thumbnails are in thumb and ok when I download them manually. A fresh uploaded pic doesn't get a thumb saved.
- N
- Edith:
If in localsettings is $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
There should be in that dir also tmp and _not_ temp!
- Think it solved my problem, thumbs are back in the game! Wonder why it worked before?!
- Could you tell me perhaps if I should care about the latin1 / utf-8 stuff or should i open a new thread for that? Nutt (talk) 02:05, 31 January 2013 (UTC)
- Can you see who owns those files? What if you change them to 777 instead of 755? ☠MarkAHershberger☢(talk)☣ 02:09, 31 January 2013 (UTC)
- c my edit above.
- Can't see owners, tried that before.
- I started to look at the names when I read that https://bugzilla.wikimedia.org/show_bug.cgi?id=42730 which I found before when I tried to figure out, what's going on.
- n8 n
- ur fast as lightning! Nutt (talk) 02:24, 31 January 2013 (UTC)
- sorry for talking to myself.
- Not all are ok, some thumbs still don't show.
- index.php?title=Spezial:Dateien is blank!
- Where to look for? Nutt (talk) 02:38, 31 January 2013 (UTC)
- Do you mean "blank" as there's no HTML output at all? see Blank page Ciencia Al Poder (talk) 10:33, 31 January 2013 (UTC)
- yes, Blank page!
- I set
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
$wgDebugToolbar = true;
- unfortunately still blank.
- It concerns
index.php?title=Spezial:Dateien index.php?title=Spezial:Neue_Dateien index.php?title=Spezial:Unbenutzte_Dateien whereas this is working index.php?title=Spezial:Meistbenutzte_Dateien
- from info.php I get
memory_limit 90M 90M
- in localsettings there was nothing, I inserted
ini_set( 'memory_limit', '60M' );
- I can't see errorlogs on the server, will ask if it is somehow possible.
- edit1:
index.php?title=Spezial:Hochladen
- will turn blank as well, so this was working before!
- Still something wrong with temp-files or location?
- edit2:
- images/temp is still in use, the pics I intended to upload are there with random names
- images/tmp now has only various transform_71c6a52a7d32-1.jpg (differing after the "_") with zero bytes
- except one which is a real thumb
- puzzled! Nutt (talk) 16:32, 31 January 2013 (UTC)
- Could you enable $wgDebugLogFile and see if it gives you an idea of what might be happening? ☠MarkAHershberger☢(talk)☣ 21:28, 31 January 2013 (UTC)
- Currently my locals...php looks like
<?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); $wgDebugToolbar = true; $wgDebugLogFile = "/w/logs/wiki-{$wgSitename}.log";
- but no logs Nutt (talk) 21:59, 31 January 2013 (UTC)
- I put the whole stuff local on my machine and found:
- the pages threw
Warning: wfMkdirParents: failed to mkdir "/w/images/thumb/20120311_163324-c.jpg" mode 0777 in /w/includes/GlobalFunctions.php on line 2546 Warning: copy(/w/images/thumb/20120311_163324-c.jpg/180px-20120311_163324-c.jpg): failed to open stream: No such file or directory in /w/includes/filebackend/FSFileBackend.php on line 213
- nothing happened on these pages until I gave
sudo chmod a+w /w/images/thumb
then really a lot of thumb-dirs were generated, which were not there before- so probably it dies silently on the webserver because of the load?
- or it's not possible to write 0777?
- but if it is done one by one, it seems to function
- should I set thumb to 0777? Nutt (talk) 01:00, 1 February 2013 (UTC)
- Yes, set thumb to 0777 if you can. ☠MarkAHershberger☢(talk)☣ 02:57, 1 February 2013 (UTC)
- set thumb 0777, no change. 87.187.40.168 16:13, 1 February 2013 (UTC)
- I missed you saying you did
sudo chmod a+w /w/images/thumb
. Try: find /w/images -type d | xargs sudo chmod a+xwr
- which is one level up and should get all the sub directories ☠MarkAHershberger☢(talk)☣ 17:00, 1 February 2013 (UTC)
- I don't have shell-access.
- I used filezilla and put 777 from images downwards on all directories.
- blank:
- Spezial:Dateien/Special:FileList
- Spezial:Neue_Dateien/Special:NewFiles
- whereas these are working like
- upload is working
- Spezial:Meistbenutzte_Dateien/Special:MostLinkedFiles (there are only may be 20 pics)
- Spezial:Unbenutzte_Dateien/Special:UnusedFiles (first page with 50 pics next page is blank)
- Edit:
- Isn't there something too refresh the whole pic-stuff? Nutt (talk) 20:06, 1 February 2013 (UTC)
- Why did you say you used sudo if you don't have shell access?
- In any case, I don't know of any way to fix the problem you're having without shell access. Perhaps you can ask your hoster to help you? ☠MarkAHershberger☢(talk)☣ 21:05, 1 February 2013 (UTC)
- I put the whole stuff local on my machine and found: local I do have shell access, my admin was that friendly :)
- I could ask but I don't know what to ask. Nutt (talk) 21:55, 1 February 2013 (UTC)
- Ask your hoster to run the find command I gave you:
find /w/images -type d | xargs sudo chmod a+xwr
☠MarkAHershberger☢(talk)☣ 22:54, 1 February 2013 (UTC)- I used ur command thru php-shell with no change.
- I transferred my local installation to the final destination. Without changes everything works fine. But when I try to upload a new image the process fails silently and the page goes blank. The other a.m. special pages also go blank then.
- So I digged more into thumbs and found
2109 /** 2110 * Allow thumbnail rendering on page view. If this is false, a valid 2111 * thumbnail URL is still output, but no file will be created at 2112 * the target location. This may save some time if you have a 2113 * thumb.php or 404 handler set up which is faster than the regular 2114 * webserver(s). 2115 */ 2116 $wgGenerateThumbnailOnParse = true;
- So i set $wgGenerateThumbnailOnParse = false;
- Everything works fine now.
- I found messages concerning thumb-probs and reverting to mw 1.19.x which solved the problems.
- Should i try this? Nutt (talk) 01:34, 3 February 2013 (UTC)
- Yes, that sounds like the thing to do. ☠MarkAHershberger☢(talk)☣ 23:35, 3 February 2013 (UTC)
- finally I talked to the support and
- got the php-error-log
- when it silently dies
- PHP Fatal error: Out of memory (allocated 29622272) (tried to allocate 10240 bytes) in /w5/includes/media/Bitmap.php on line 555
- what is when gd silently dies
- switched to image magick convert
- everything (? not tested all the features) works!
- from support if im dies add "putenv("MAGICK_THREAD_LIMIT=1");" right after "<?php"
- dunno why gd dies but with im it works.
- Hope this is solved now, will report later.
- n8 n Nutt (talk) 02:26, 6 February 2013 (UTC)
- finally I talked to the support and
- Yes, that sounds like the thing to do. ☠MarkAHershberger☢(talk)☣ 23:35, 3 February 2013 (UTC)
- I missed you saying you did
- set thumb 0777, no change. 87.187.40.168 16:13, 1 February 2013 (UTC)
- Yes, set thumb to 0777 if you can. ☠MarkAHershberger☢(talk)☣ 02:57, 1 February 2013 (UTC)
- Could you enable $wgDebugLogFile and see if it gives you an idea of what might be happening? ☠MarkAHershberger☢(talk)☣ 21:28, 31 January 2013 (UTC)
- Do you mean "blank" as there's no HTML output at all? see Blank page Ciencia Al Poder (talk) 10:33, 31 January 2013 (UTC)
- Can you see who owns those files? What if you change them to 777 instead of 755? ☠MarkAHershberger☢(talk)☣ 02:09, 31 January 2013 (UTC)
I cant get Admin rigths
Hello,
I installed a wiki via our web-services provider, I registered as admin there. But I am not an administrator, so I can edit the side bar, change other user's rights, etc. The address of my wiki is odohertylab.org/mediawiki I am the only user. Is there any way I can become admin??
- Wiki version: 1.19.2-5
- PHP version: 5.2.3
- MySQL version: 5.0.83 131.215.23.241 (talk) 00:44, 31 January 2013 (UTC)
- If you have shell access, you can run CreateAndPromote.php. ☠MarkAHershberger☢(talk)☣ 01:25, 31 January 2013 (UTC)
- The server is running on Win NT. Can this be done on such server as well? 131.215.23.241 21:15, 31 January 2013 (UTC)
- Yes, if you can use php from the command line. You would need to get at cmd.exe somehow. You may be able to get your provider to do this for you if you cannot do it.
- It may be quicker to just set up a new wiki with a user and password that you have admin rights for. ☠MarkAHershberger☢(talk)☣ 21:23, 31 January 2013 (UTC)
- The server is running on Win NT. Can this be done on such server as well? 131.215.23.241 21:15, 31 January 2013 (UTC)
how to hide the subsections of sidebar of Mediawiki 1.20
how to hide the subsections of sidebar of Mediawiki like on Mediwiki.org homepage, the subsections User help,Technical manual,FAQ,Support desk are hidden within Support and they they are visible only on clicking Support. how to do this? PLease reply ASAP Ksanjeet (talk) 10:29, 31 January 2013 (UTC)
- What skin are you using? This is a Vector feature - see Extension:Vector#CollapsibleNav.
- There seems to be a workaround for Monobook as well. Qgil (talk) 19:45, 31 January 2013 (UTC)
Different main pages from a skin to another
Hello everyone, I'm developing a wiki site using MediaWiki v1.19.2, with the Monobook skin for desktop and the WPTouch skin for mobile devices, and I need help with one thing: is there a way to make the main page content of the mobile version be different from the desktop version? If so, how can I do it? Thanks and sorry for any english mistakes. Gmalonso (talk) 16:40, 31 January 2013 (UTC)
- You should ask in this IRC channel: #wikimedia-mobile connect ☠MarkAHershberger☢(talk)☣ 22:15, 31 January 2013 (UTC)
Page links in bold - how to fix it?
Hello everybody, i have found a bug or a feature in my wiki, the page or article links on the top of any page are bold, instead like standard links. What can i do, to make each link unbold? Is this a posssible css error? I've upload an screenshot of the concerned problem, that show this bug.
Abani79 (talk) 17:21, 31 January 2013 (UTC)
- I recall seeing something similar to this on Wikipedia for a day or two before they fixed it. Where did you get your theme from? ☠MarkAHershberger☢(talk)☣ 21:19, 31 January 2013 (UTC)
- It is alike to that of Wikipedia, including AzaToots Twinkle and drop down menus of Haza-w. Twinkle I already had all files about Internet browser - of the customary method updates, however, unfortunately, neither the menu is properly shown, nor the shading (the CSS style in the menu) are applied not. Resourceloader or the parametre ($wgResourceLoaderValidateJS = false;) to load from scripts I have also deactivated because nothing more was loaded on Java/CSS-Script based any more.
- Oh and sorry for the worst english, if you want to read it in my native language, please let or translate it;
Es ist ähnlich dem von Wikipedia, inklusive AzaToots Twinkle und Drop down menüs von Haza-w. Twinkle hatte ich bereits alle Dateien über Internetbrowser - also der herkömmlichen Methode aktualisiert, doch leider wird weder das Menü richtig dargestellt noch die Schattierung (also der CSS-Stil im Menü) werden nicht angewendet. Resourceloader bzw. den Parameter ($wgResourceLoaderValidateJS = false;) zum laden von Skripten habe ich ebenfalls deaktiviert, weil nichts auf Java/CSS-Skript basierend mehr geladen wurde.
Abani79 (talk) 22:37, 31 January 2013 (UTC)- I'm confused about JS. Did you disable a particular script or just set $wgResourceLoaderValidateJS to false? Do you see any errors in the web browser's console? If your site is publicly available, could you provide a link to it so that we might help you more? ☠MarkAHershberger☢(talk)☣ 23:00, 31 January 2013 (UTC)
CSS for Wikivoyage Main Page
Hi! I'm desperately trying to sort out this propose new Main Page for Wikivoyage. I've been using CSS (here) (of which I have no real knowledge or experience) to make the large images scale depending on the user's screen resolution. Unfortunately this has come at a cost: none of the images now fit into the frame that surrounds the page (a result of the 'absolute' positioning?) meaning that some other elements are obscured. Really, I feel that I'm waaay out of my depth with this so any help would be very appreciated - please feel free to edit either my CSS or the proposed page. If that's not possible any advice pointing me towards a solution would be very gratefully received! Thanks, Nicholasjf21 (talk) 21:42, 31 January 2013 (UTC)
- I had to copy your CSS page to see the problem, but I think it is a good problem to have -- I like what you're doing.
- I'm not able to help to right now, but maybe someone else can. Have you tried asking for help on StackOverflow? ☠MarkAHershberger☢(talk)☣ 22:11, 31 January 2013 (UTC)
- Thanks very much for your help - I'll head over there now! Nicholasjf21 (talk) 22:31, 31 January 2013 (UTC)
Short URLs when not in root directory
Hi, I am new to working with MediaWiki and was having some trouble setting up short URLs.
I have my wiki configured in the /wiki folder, and would like the short URL to look like /wiki/Wiki_Page. So basically:
- domain.com/wiki <-- location of MediaWiki index.php
- domain.com/wiki/Wiki_Page <-- desired short URL format.
Right now my .htaccess in the /wiki folder looks like this:
RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L]
But all I get is a 404 on my root site. I should also mention that the root site also has short URLs turned on, which look something like domain.com/product/widget. I'm not sure if that affects what I am trying to do or not, but I could post that .htaccess as well, if it helps.
Anyway, I've tried everything I can think of in the RewriteRule, it may be a simple solution but my knowledge is limited. Is there someone that is able to help? 50.92.159.206 (talk) 22:24, 31 January 2013 (UTC)
- Try this:
- ☠MarkAHershberger☢(talk)☣ 22:40, 31 January 2013 (UTC)
RewriteEngine On RewriteBase /wiki RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /wiki/index.php?title=$1 [L,QSA]
- Beautiful, thanks so much!!!!!!! 50.92.159.206 23:15, 31 January 2013 (UTC)
- I must say that having /wiki/index.php AND the short url configured as /wiki/PAGENAME is a very bad choice. They must be on different paths.
- For example, you won't be able to access now pages with titles like "index.php", "images", "README"... Ciencia Al Poder (talk) 10:23, 1 February 2013 (UTC)
- True, but most people don't care about those page names. Still, I'll try to push people to use /w/ from now on. ☠MarkAHershberger☢(talk)☣ 14:38, 1 February 2013 (UTC)
- Beautiful, thanks so much!!!!!!! 50.92.159.206 23:15, 31 January 2013 (UTC)
Position of WikiLove link in Sturmkrieg skin
In the Vector skin, the WikiLove link was a red star in the location it is normally in on Wikimedia wikis. In the new Sturmkrieg skin, it is under the arrow/tab drop down menu next to the View history. Does anyone know how to get it back to where it was before? It seems to still work, but it would be better to have it in the usual place.
en.sturmkrieg.com Lieutenant Aleksandr Reznov 23:48, 31 January 2013 (UTC)