Project:Support desk/Flow/2013/06
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. |
New install of MediaWiki does not function
Im using NGINX with PHP 5.4.15 and are unable to load the Wiki after installation.
The following shows in my error log.
2013/06/01 00:42:11 [error] 8518#0: *1761 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Argument 1 passed to ScopedCallback::__construct() must be an instance of Closure, unknown given, called in /var/nasutek/services/nasutek/ndn/public_html/service/ndn_wiki/includes/cache/MessageCache.php on line 344 and defined in /var/nasutek/services/nasutek/ndn/public_html/service/ndn_wiki/includes/ScopedCallback.php on line 33" while reading response header from upstream, client: 71.95.39.124, server: ndn.nasutek.com, request: "GET /service/ndn_wiki/ HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "ndn.nasutek.com" 71.95.39.124 (talk) 00:53, 1 June 2013 (UTC)
- Could you file a bug report for this? ☠MarkAHershberger☢(talk)☣ 14:50, 1 June 2013 (UTC)
[RESOLVED] Most links don't work, and special pages don't load?
Most links aren't links at all - they are just text, without the protocol or domain. Such as user:Liam - that is the link, just that plain text.
As well as that, non of my special pages are loading at all. They just aren't recognised at all.
The site is http://wiki.ingressexperts.com - I installed it today.
EDIT: This is me. (Liamwli (talk) 18:09, 1 June 2013 (UTC))
- From your Special:Version page, it looks like your Manual:$wgScriptPath is set up incorrectly and the short url information in .htaccess is wrong.
- How did you install the wiki? ☠MarkAHershberger☢(talk)☣ 18:15, 1 June 2013 (UTC)
- I used the graphic install, and then I followed the guide to get clean URL's.
- My .htaccess looks like this:
RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
- This is this line:
$wgScriptPath = "w";
- Mediawiki is in the 'w' folder (I just changed it). Liamwli (talk) 20:29, 1 June 2013 (UTC)
- You need to adjust $wgScriptPath, $wgUsePathInfo and $wgServer in your LocalSettings.php.
- Something like the following:
- ☠MarkAHershberger☢(talk)☣ 03:29, 2 June 2013 (UTC)
$wgServer = "http://wiki.ingressexperts.com"; $wgScriptPath = "/w"; $wgUsePathInfo = true; $wgArticlePath = '/$1';
- The links on page aren't right either... Liamwli (talk) 20:34, 1 June 2013 (UTC)
AccessControl extension can't be used on Medawiki 1.2x or later version
MediaWiki 1.9x seems the last version that can use AccessControl (v2.1). Is there any alternative extension? or is there any news about this extension to upgrade? Oruggt (talk) 03:08, 2 June 2013 (UTC)
Person Name and Name person
how to insert a name as Glenn John but have an equivalent John Glenn, and how to do for insert automatically this name into a biography for example but also in an other category ? Lunablues (talk) 08:14, 2 June 2013 (UTC)
- Do you say that you cannot have two articles, one called "Glenn John" and the other one called "John Glenn"? I don't see a problem here. That should work... 88.130.80.241 11:53, 2 June 2013 (UTC)
- no, i want to put an entry Glenn John but also know as John Glenn Lunablues (talk) 12:10, 3 June 2013 (UTC)
- So what you want is a redirect from "John Glenn" to "Glenn John"? 88.130.115.143 12:45, 3 June 2013 (UTC)
- yes manually it's not difficult, but hot to do automatically and how to insert this entry automaticaly in a other list, for referring all the name taken in template biography for example ? Lunablues (talk) 12:53, 3 June 2013 (UTC)
- I don't think there already is a way to do that automatically. But you could try write one on your own. Hooks are your friend. You could pick a hook, which is executed when someone has succesfully created a new page, then inside that hook check the page object, take the page title out of it, create another page with flipped name and set the page content to #REDIRECT[[<old name here>]].
- In the above idea you might need some more code, if this stuff should not be applied to all pages; maybe do it only if the new page is in a certain namespace or so... 88.130.115.143 14:29, 3 June 2013 (UTC)
- good idea, thank you Lunablues (talk) 23:44, 3 June 2013 (UTC)
- You're welcome. If you have further questions, just ask. :-) 88.130.98.228 00:49, 4 June 2013 (UTC)
- good idea, thank you Lunablues (talk) 23:44, 3 June 2013 (UTC)
- yes manually it's not difficult, but hot to do automatically and how to insert this entry automaticaly in a other list, for referring all the name taken in template biography for example ? Lunablues (talk) 12:53, 3 June 2013 (UTC)
- So what you want is a redirect from "John Glenn" to "Glenn John"? 88.130.115.143 12:45, 3 June 2013 (UTC)
- no, i want to put an entry Glenn John but also know as John Glenn Lunablues (talk) 12:10, 3 June 2013 (UTC)
not working
I just installed mediawiki and I noticed that after opening a <code> tag I can't close it anymore with </code>... What can I do? RickyB98 (talk) 09:33, 2 June 2013 (UTC)
- Can you link to an example? I've never seen this before. ☠MarkAHershberger☢(talk)☣ 17:40, 2 June 2013 (UTC)
- it is a fresh mediawiki installation... I just type in <code>, when I type </code> it doesn't stop formatting the text as code, but just shows </code> on the page...
- if you want to try this, go to http://programmpc.altervista.org/wiki/Sandbox (account creation needed) RickyB98 (talk) 10:08, 4 June 2013 (UTC)
- After trying to create an account I already get an error, so I guess there are enough other issues to solve:
- Errore del database
- Vai a: navigazione, ricerca
- Errore di sintassi nella richiesta inoltrata al database. Ciò potrebbe indicare la presenza di un bug nel software. L'ultima query inviata al database è stata:
(la query SQL è stata nascosta)
- richiamata dalla funzione "SpoofUser::getConflicts". Il database ha restituito il seguente errore "1146: Table 'my_programmpc.mw_spoofuser' doesn't exist (localhost)". AKlapper (WMF) (talk) 19:41, 4 June 2013 (UTC)
- After trying to create an account I already get an error, so I guess there are enough other issues to solve:
- Errore del database
- Vai a: navigazione, ricerca
- Errore di sintassi nella richiesta inoltrata al database. Ciò potrebbe indicare la presenza di un bug nel software. L'ultima query inviata al database è stata:
(la query SQL è stata nascosta)
- richiamata dalla funzione "SpoofUser::getConflicts". Il database ha restituito il seguente errore "1146: Table 'my_programmpc.mw_spoofuser' doesn't exist (localhost)". AKlapper (WMF) (talk) 19:41, 4 June 2013 (UTC)
- this should be a bug of the AntiSpoof extension, but if I remove it, I won't be able to run abusefilter. I don't have shell access. do you have a sql file I can import on the database to create the needed tables? RickyB98 (talk) 09:14, 5 June 2013 (UTC)
- ok, solved. now you can create an account. I also have a problem with abusefilter, after resolving this one, i'll ask you about that too. RickyB98 (talk) 09:22, 5 June 2013 (UTC)
- Works for me when entering
- on your wiki. Cannot reproduce. AKlapper (WMF) (talk) 10:18, 5 June 2013 (UTC)
Test <code>whatever</code> no code anymore.
- it works there, but I tried on "Template:Avviso/man" and it doesn't... RickyB98 (talk) 10:53, 5 June 2013 (UTC)
- Using {{:Sandbox}} on http://programmpc.altervista.org/wiki/Sandbox2 doesn't show the problem. The page you refer to (http://programmpc.altervista.org/wiki/Template:Awiso/man) gives an error 500. ☠MarkAHershberger☢(talk)☣ 18:00, 10 June 2013 (UTC)
- The page is: http://programmpc.altervista.org/wiki/Template:Avviso/man
- sorry for my delay to answer... RickyB98 (talk) 14:24, 17 June 2013 (UTC)
- Using {{:Sandbox}} on http://programmpc.altervista.org/wiki/Sandbox2 doesn't show the problem. The page you refer to (http://programmpc.altervista.org/wiki/Template:Awiso/man) gives an error 500. ☠MarkAHershberger☢(talk)☣ 18:00, 10 June 2013 (UTC)
- it works there, but I tried on "Template:Avviso/man" and it doesn't... RickyB98 (talk) 10:53, 5 June 2013 (UTC)
Major SPAM problem even after reCaptcha is installed
Dear all,
I am having big problems SPAM. I have a wiki on my website in order to document things relating to the subject of the website. The trouble is that when I put the wiki live and refresh the page with in one minute I see that the main page has already had 100 views. With in a few days I have a view count of 18000.
If I go to the recent changes page, I can see tons of bogus accounts being made and loads of spam pages being created.
Here is a link to the sick wiki... http://www.metalbot.org/wiki/index.php?title=Main_Page
I have installed reCaptcha and edited the user permissions so that only registered users can post, however my walls are still being breached!
Many thanks in advance.
Jethro. 90.57.182.91 (talk) 15:15, 2 June 2013 (UTC)
- There was a particularly good message about this on mediawiki-l the other day: "Our wiki has been spam-free for over a year now, despite anonymous editing being allowed..." ☠MarkAHershberger☢(talk)☣ 17:49, 2 June 2013 (UTC)
- A logo and Short URL would help your wiki quite a bit. Also, I added your wiki to WikiApiary. ☠MarkAHershberger☢(talk)☣ 18:04, 2 June 2013 (UTC)
- Thanks a million Mark!
- The issue I have is that even when I install reCaptcha, or QuestyCaptcha I am still getting thousands of page views per day...
- One theory that I have is many accounts were created before I installed these counter spam measures, so perhaps it is these accounts that are giving grief?
- In any case the existing wiki will be deleted and reloaded, the reason there is no logo, images or additional pages is that I wanted to make sure the wii was working and would not need to be destroyed. Will that affect WikiApiary?
- Best regards,
- Jethro. 90.57.182.91 10:54, 3 June 2013 (UTC)
- If it uses the same URL, WikiApiary should be fine. ☠MarkAHershberger☢(talk)☣ 17:52, 10 June 2013 (UTC)
Referencing pages in a specific category
Assume I have the following wiki pages:
- United States
- Sweden
- France
- Buick (Referencing US in the first line) (Category:Cars)
- Saab (Referencing Sweden) (Category:Cars)
- Volvo (Referencing Sweden) (Category:Cars)
- Renault (Referencing France) (Category:Cars)
I would like the country pages to automatically list all cars pages created for this country. I know a page is a car page by the fact it belongs to the Cars category.
Is there some automatic way to do it? Maybe some php scripting? 192.118.64.29 (talk) 07:39, 3 June 2013 (UTC)
- You'll need an extension for that.
- Extension:DynamicPageList may help achieving this, if Referencing Sweden means having Category:Sweden, or Category:Cars of Sweden, etc.
- Extension:Semantic MediaWiki can be helpful too although the results can't be included on the same page AFAIK. Ciencia Al Poder (talk) 09:39, 3 June 2013 (UTC)
[RESOLVED]CENTOS 6 MediaWIKI 1.21 cannot import file PHP WARNING wfMkdirParents
Hello guys !
I saw many posts about this problem, but even if I try change permissions (777 or 755) or change owner (apache) of my "images" folder, the following error appears :
"[Mon Jun 03 11:36:25 2013] [error] [client X.X.X.X] PHP Warning: wfMkdirParents: failed to mkdir "/wiki/images/5/56" mode 0777 in /path/to/my/folder/mediawiki/includes/GlobalFunctions.php on line 2582, referer: http://X.X.X.X/mediawiki/index.php/Sp%C3%A9cial:T%C3%A9l%C3%A9verser"
php.ini : file_uploads = On => OK | ;upload_tmp_dir = => not set | ;open_basedir = => not set |
Could you please help me ?
MediaWiki: 1.21.0rc5 PHP: 5.3. CENTOS 6 U mediawiki (talk) 12:35, 3 June 2013 (UTC)
- Hi there!
- Have you only changed permission of the images/ folder itself? Try it recursively also for all subfolders with something like chmod -R .... 88.130.115.143 12:49, 3 June 2013 (UTC)
- Thank for reply, I've already changed permissions recursively but the error is still here. On Centos 6, with MediaWIKI 1.21, do we have to set something special in LocalSettings.php file ?
- Do I have to change $wgUploadPath, $wgUploadDirectory, $wgScriptPath or anything else in includes/DefaultSettings.php file ? U mediawiki (talk) 13:02, 3 June 2013 (UTC)
- I don't know of anything CentOS specific.
- Don't touch DefaultSettings.php; always make all of your settings in LocalSettings.php. I just checked in an installation where image upload works: $wgUploadPath and $wgUploadDirectory are not set in LocalSettings.php. They use the default from DefaultSettings.php.
- $wgScriptPath is set; I think the installer already determines the correct value and sets it. What value do you have there? And how is the folder called, in which you have installed the wiki? 88.130.115.143 14:22, 3 June 2013 (UTC)
- In DefaultSettings.php :
- $wgUploadPath = false;
- $wgUploadDirectory = false;
- $wgScriptPath = '/wiki';
- Th folder images is called by apache which is in the folder mediawiki (in LocalSetting.php $wgScriptPath = '/mediawiki';. U mediawiki (talk) 15:03, 3 June 2013 (UTC)
- So $wgScriptPath is set to $wgScriptPath = '/mediawiki', whih also is the name of the folder. Looks good.
- Do you still get the error message?
- > mkdir "/wiki/images/5/56" mode 0777 in /path/to/my/folder/mediawiki/includes/GlobalFunctions.php
- Seems to try to create the folder inside "wiki/" instead of inside "mediawiki/". 88.130.115.143 15:14, 3 June 2013 (UTC)
- Sorry, I made a mistake when I wrote my first post but since the beginning error is :
- "[Mon Jun 03 11:36:25 2013] [error] [client X.X.X.X] PHP Warning: wfMkdirParents: failed to mkdir "/mediawiki/images/5/56" mode 0777 in /path/to/my/folder/mediawiki/includes/GlobalFunctions.php on line 2582, referer: http://X.X.X.X/mediawiki/index.php/Sp%C3%A9cial:T%C3%A9l%C3%A9verser"
- I read some posts about upload pronlems, some users have sub-folder of images folder already created after installation. It was not my case. Is there something wrong here ? U mediawiki (talk) 15:31, 3 June 2013 (UTC)
- Ok. Which is the last folder, which is present? I guess the folder "56/" is not created due to the error. But is the folder "/mediawiki/images/5" there? What are the permissions? Which user and which group own it?
- Or maybe this is a completely different problem, e.g. you are running out of discspace... 88.130.98.228 16:26, 3 June 2013 (UTC)
- The last folder present is images. Folder 5 and 6 are not created. It's not about free space because I try to import a picture of 1.89 KB.
- The folder belong to apache and I made a chmod 777 on the folder. U mediawiki (talk) 07:17, 4 June 2013 (UTC)
- Is there something wrong with PHP script in GlobalFunctions.php ? Is that work with PHP 5.3.3 ?
- I saw this in the file :
- // Turn off the normal warning, we're doing our own below
wfSuppressWarnings();
$ok = mkdir( $dir, $mode, true ); // PHP5 <3
wfRestoreWarnings();
U mediawiki (talk) 07:28, 4 June 2013 (UTC)- Safe mode was on. Everything works. Thank guys ! U mediawiki (talk) 08:36, 4 June 2013 (UTC)
- MediaWiki does not support safe mode. Always switch it off. 88.130.98.228 12:45, 4 June 2013 (UTC)
- Safe mode was on. Everything works. Thank guys ! U mediawiki (talk) 08:36, 4 June 2013 (UTC)
Getting a list of changes from a specific time(range) via SQL
Hi MW,
Does anyone know how I can get a list of changes made on our mediawiki from say Jan 1st to Jun 1st via mysql? could a single command achieve this? 64.128.208.115 (talk) 14:44, 3 June 2013 (UTC)
- Is there a reason why you do not want to use the MediaWiki GUI? Special:RecentChanges already can display exactly what you want... 88.130.115.143 15:03, 3 June 2013 (UTC)
- Yes, I want to exclude the names of users, pages, and uniqueness. and also be able to sort it. 64.128.208.115 15:27, 3 June 2013 (UTC)
Extension distributor for 1.21
Hi could update your setting and add REL_21 please 176.26.166.20 (talk) 16:50, 3 June 2013 (UTC)
- I think he means extension Distributor and misses an option to download extensions for MW 1.21. 88.130.98.228 18:10, 3 June 2013 (UTC)
- See bug 48837. Krinkle (talk) 19:59, 4 June 2013 (UTC)
Upgrade - need to find version
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I believe that I have MediaWiki 1.12 but need to confirm this. If the page is broken, how can I verify the version?
Since I upgraded to PHP53, the MediaWiki no longer works. Is there an easy fix for this? I need v53 for other aps that I am running. I know I need to get my version upgraded and will need to know where the archive for the older version of MediaWiki is located and any instructions for upgrading too. Thanks for the help. Jkmtm (talk) 11:59, 4 June 2013 (UTC)
- Hi!
- You can find the MediaWiki version on your server in the file includes/DefaultSettings.php. It should be a variable assigned somewhere in the first 50 lines or so.
- Here are the archives: http://dumps.wikimedia.org/mediawiki/ The complete source code always is in the files which only have a "<version-number>.tar.gz" in the file name. E.g. this is what such a link looks like: http://download.wikimedia.org/mediawiki/1.21/mediawiki-1.21.1.tar.gz
- The newest releases from MediaWiki 1.19 or MediaWiki 1.21 are the recommended versions currently. Both work with PHP 5.3. MediaWiki 1.19 has long term support for a few years (I guess), MediaWiki 1.21 is the newest branch released just a few days ago. Instructions for upgrading are here Manual:Upgrading.
- Good luck! 88.130.98.228 12:36, 4 June 2013 (UTC)
Installing Extension:PdfHandler
I tried to install the pdfhandler:extension to work today but it won't work. this is an win2003 server (64) machine. I installed gs and xpdf. ImageMagick worked already before. I configued as follows:
require_once "$IP/extensions/PdfHandler/PdfHandler.php"; $wgPdfProcessor = 'C:\Program Files\gs\gs9.07\bin\gswin64.exe'; $wgPdfPostProcessor = $wgImageMagickConvertCommand; $wgPdfInfo = 'C:\Program Files\xpdf\bin64\pdfinfo.exe'; $wgPdftoText = 'C:\Program Files\xpdf\bin64\pdftotext.exe';
All paths have been checked several times. Instead of a nice rendered pdf-pic i get only a malformed File: - page for each pdf file. Example:
Where is the gap? Carchaias (talk) 12:20, 4 June 2013 (UTC)
- This is likely due to a modification made to the interface message
file-info-size
. Check MediaWiki:File-info-size/de or MediaWiki:File-info-size on your wiki (not on MediaWiki.org). Did you edit this one? If so, edit it again and make sure there it has no extra space in front. - Extra space at the beginning of a message renders as a "
<pre>
". Example.
Krinkle (talk) 19:58, 4 June 2013 (UTC)- These messages dont have been modified. Thus I checked for spaces but there are none. When I comment out the pdfhandler in localsettings.php the above mentioned behavior disappears and all looks fine. So I think it comes from the extension.. Carchaias (talk) 07:42, 5 June 2013 (UTC)
- I've the same problem... with a debian install and pdf handler Julien 09:44, 3 August 2013 (UTC)
- Some time has passed and tody I tried agan with pdf-handler on a fresh 1.23.2 Installed wiki. That malforming has gone - fine.
- Well, but was does this extension do? I can't see any reaction to my wiki!
- Configuration ist this:
require_once "$IP/extensions/PdfHandler/PdfHandler.php"; # Konfiguration von pdfhandler $wgPdfProcessor = 'C:\Program Files\gs\gs9.70\bin\gswin64.exe'; $wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick //$wgPdfPostProcessor = 'C:\Program Files (x86)\ImageMagick-6.6.9-Q16\convert.exe'; // if not defined via ImageMagick $wgPdfInfo = 'C:\Program Files\xpdf\bin64\pdfinfo.exe'; $wgPdftoText = 'C:\Program Files\xpdf\bin64\pdftotext.exe';
- Any ideas are welcome... Carchaias (talk) 13:50, 22 August 2014 (UTC)
- Some time has passed and tody I tried agan with pdf-handler on a fresh 1.23.2 Installed wiki. That malforming has gone - fine.
- Well, but was does this extension do? I can't see any reaction to my wiki!
- Configuration ist this:
require_once "$IP/extensions/PdfHandler/PdfHandler.php"; # Konfiguration von pdfhandler $wgPdfProcessor = 'C:\Program Files\gs\gs9.70\bin\gswin64.exe'; $wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick //$wgPdfPostProcessor = 'C:\Program Files (x86)\ImageMagick-6.6.9-Q16\convert.exe'; // if not defined via ImageMagick $wgPdfInfo = 'C:\Program Files\xpdf\bin64\pdfinfo.exe'; $wgPdftoText = 'C:\Program Files\xpdf\bin64\pdftotext.exe';
- Any ideas are welcome... Carchaias (talk) 13:51, 22 August 2014 (UTC)
- I'm pretty sure that something is going wrong with the "SPACE" within the pathes. Runing /maintenance/runjobs.php on that server produces errors like
Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
- Any Ideas. 92.79.145.134 15:57, 26 August 2014 (UTC)
- These messages dont have been modified. Thus I checked for spaces but there are none. When I comment out the pdfhandler in localsettings.php the above mentioned behavior disappears and all looks fine. So I think it comes from the extension.. Carchaias (talk) 07:42, 5 June 2013 (UTC)
Enabling wikitext in sidebar in 1.19.7
Methods that worked in older versions e.g 1.19.2 (editing skins/monobook.php) don't seem to work now.
I have not found an answer through searching.
URL = http://gaclrecords.org.uk/mw-1.19.7/index.php/MediaWiki:Sidebar
MediaWiki 1.19.7 PHP 5.3.21 (apache2handler) MySQL 5.5.30-cll Spacebar22 (talk) 12:41, 4 June 2013 (UTC)
extension:Echo
Hi how do I enable fly put in echo I have installed it but when I click the grey box it goes to special notification page so when I click on it I want to it fly out 176.26.166.20 (talk) 14:58, 4 June 2013 (UTC)
Problem with Sideloading and Directory index
MediaWiki 1.20.5 PHP 5.4.11 (cgi-fcgi) MySQL 5.1.66-0+squeeze1
Hello all,
I have trouble with the sideloading funcion: If I choose the URL upload type, fill in the URL of an image and click on the upload button after a short time (it seems that data are transfering) the warning "Temporary file couldn't be created" appears. The error_log contains this:
[Tue Jun 04 07:50:55 2013] [error] [client 178.27.254.99] Directory index forbidden by Options directive: /var/www/web5309/html/schotterheiden/MW120x/skins/common/images/, referer: http://wiki.entoloma.de/wiki/Spezial:Hochladen
Could anyone explain me why mw looks into the /skins/common/images directory instead of the /images directory? And how could I activate the Directory index?
Thanks forward and best regards
Andreas Ak ccm (talk) 15:02, 4 June 2013 (UTC)
- The Directory index forbidden by Options directive isn't the real error here. It's just that something is referring to /var/www/web5309/html/schotterheiden/MW120x/skins/common/images/ directly through the web and options doesn't allow the contents of that directory to be listed.
- The real problem is the Temporary file couldn't be created. Check if the value of $wgTmpDirectory is correctly set, exists and is writtable by the webserver. Ciencia Al Poder (talk) 09:42, 5 June 2013 (UTC)
XML dump only imported a few pages: What do I do now?
I recently imported an XML dump using ImportDump.php and it only imported about 30 content pages. I am going to try again, but I'm unsure if simply importing it again will double-up contributions. Should I delete the database, or what? Please help, thanks 95.145.110.98 (talk) 15:20, 4 June 2013 (UTC)
- You can safely run it again. It won't import revisions that already exist on the database. Ciencia Al Poder (talk) 09:42, 5 June 2013 (UTC)
Timestamp slice-able categories
Hello,
I've been Googling to get up to speed on the basics of wiki syntax, but I'm a bit of a noob and I was hoping the forum community might be able to help me out.
I've installed MediaWiki in a sandbox and what I ultimately want to get out of it is to create multiple heirarchies where a each page can be sliced and diced accordingly. For instance, assume I have one heirarchy i.e. USA/California/Oakland and another category i.e. CEO/CIO/Programmer, so if I create a new page for a DBA that has recently started in the Los Angeles office, I want it tagged both ways so I can search and come up with that page if I'm looking for everyone in Los Angeles or all of the DBAs. I assume there has to be a way to do this, but how would I tag that new page?
Also, I am interested in the time at which each page was created. Is there a way that I could auto-include the current timestamp on every new page that gets created, i.e. something like a now() function, so that I can then search for all new pages that were created within a given time frame, while still maintaining the other heirarchies? So if I search for a particular week, I would see all the towns with new entries for that week?
Thanks in advance for your time and attention. 63.87.170.126 (talk) 19:43, 4 June 2013 (UTC)
- For the first part -- querying pages by how they are tagged -- look at Semantic MediaWiki (SMW).
- I think you could use SMW to do the second part if you used forms to create your pages, but I'm not really an expert on that. ☠MarkAHershberger☢(talk)☣ 01:14, 3 July 2013 (UTC)
extension to search on category
I was looking for Advanced search extension but it is outdated.
do you know an extension to search for keywords inside one or more categories?
I am on a shared search, I cannot install lucene-search Valeriocipriani (talk) 19:56, 4 June 2013 (UTC)
two column table on multiple columns
I currently have a sortable table with two table columns. Unfortunately, it contains so many entries that I have to scroll for quite a while to go through all of them.
I want to have this table wrap through multiple columns on a page, to solve that problem. It should still be one contigous table in the code, and should be sortable all the way.
Is this possible? Limesave (talk) 20:33, 4 June 2013 (UTC)
- Bump, no answers and this is important. Limesave (talk) 22:12, 5 June 2013 (UTC)
- It's not possible to sort multiple columns as if they were "contiguous" Ciencia Al Poder (talk) 09:57, 6 June 2013 (UTC)
- Something like this would be possible if you look at the Pager class and write a special page. ☠MarkAHershberger☢(talk)☣ 17:26, 10 June 2013 (UTC)
Load.php causing segfault
- Hi,
- my mediawiki installation is causing a segmentation fault with the following (slightly modified)
- http://?????????/mediawiki/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.monobook&only=styles&skin=monobook&*
- which of course results in the styles not being applied. Other calls to load.php seem to be fine.
- MediaWiki 1.21.1
- PHP 5.4.13--pl0-gentoo (apache2handler)
- MySQL 5.1.67-log
- Where to from here? KevinOfOz (talk) 02:37, 5 June 2013 (UTC)
- Hi Kevin,
- I have just tried that query on a wiki and it does not cause a segfault there. What does the Apache log say? It should contain further information... 88.130.71.169 03:21, 5 June 2013 (UTC)
- This is not the first time I see load.php consistently segfaulting on apache. But that's not reproducible for me neither.
- There seems to be an issue reported for Gentoo: http://forums.gentoo.org/viewtopic-p-7260284.html Ciencia Al Poder (talk) 09:51, 5 June 2013 (UTC)
- That led to a this php bug report. ☠MarkAHershberger☢(talk)☣ 17:29, 10 June 2013 (UTC)
- php 7.3 causes this. 7.0 or 7.4 does not have the same problem. 2A02:A58:843B:A900:49A2:3183:2630:AD98 (talk) 13:08, 24 August 2021 (UTC)
- php 7.4 behaves the same after a while... 2A02:A58:843B:A900:2901:8A9A:550D:E74B (talk) 17:07, 24 August 2021 (UTC)
- After each php version change it works for a while. 2A02:A58:843B:A900:2901:8A9A:550D:E74B (talk) 18:01, 24 August 2021 (UTC)
- Your PHP is buggy, or some component that PHP depends on. Ciencia Al Poder (talk) 20:11, 24 August 2021 (UTC)
Error 404 on uploading files
Hi, I have the latest version of mediawiki.
I enabled file uploads and set the following variables in LocalSettings.php :
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf' );
$wgStrictFileExtensions = false;
$wgUploadPath = '/wiki/uploads';
$wgUsePathInfo = true;
When I upload the file, it is uploaded correctly, but if I follow the physical link of the image/file I get a 404 error, for example:
Not Found
The requested URL /wiki/uploads/4a/image.jpg was not found on this server.
Upload in php is enabled, the "uploads" folder has permissions set to 777, what am I doing wrong? Hef123 (talk) 07:45, 5 June 2013 (UTC)
- up Hef123 (talk) 09:51, 5 June 2013 (UTC)
- Check if it matches $wgUploadDirectory
- In recent versions it should be $wgUploadPath = "{$IP}/images"; if you haven't defined $wgUploadDirectory Ciencia Al Poder (talk) 09:54, 5 June 2013 (UTC)
Dynamic Article List
Hey,
can anyone tell me, how i reset my dynamic article list counter? Is it possible to reset it? If yes, how?
Thanks for your Support!
Greets nilton 194.77.159.218 (talk) 13:23, 5 June 2013 (UTC)
- Can you clarify what's the dynamic article list counter? Ciencia Al Poder (talk) 09:46, 6 June 2013 (UTC)
Opening file-link in new tab
- File links should open in a new tab in the browser. Do you have suggestions how to change the settings?
- MediaWiki 1.19.1
- PHP 5.4.9 (cgi-fcgi)
- MySQL 5.5.21-log 194.29.4.166 (talk) 14:45, 5 June 2013 (UTC)
- I've done this by using a hook. If you want a pointer to the code, feel free to ask. ☠MarkAHershberger☢(talk)☣ 15:58, 10 June 2013 (UTC)
- Hey Mark,
- it would be great to see your solution. I was looking for one in the search but couldnt find it.
- https://www.mediawiki.org/wiki/Manual:Hooks
- Thank you in advance,
- Aron 194.29.4.166 08:53, 11 June 2013 (UTC)
- I used the following code to open PDFs in a new window. This should give you an idea.
- ☠MarkAHershberger☢(talk)☣ 15:07, 11 June 2013 (UTC)
class Hooks { static private function doPDFTarget ( $target, &$text, &$attribs ) { global $wgExternalLinkTarget; wfProfileIn( __METHOD__ ); if ( strtolower( substr( $target, -4 ) ) === ".pdf" ) { if( $wgExternalLinkTarget !== false ) { $attribs["target"] = $wgExternalLinkTarget; } else { $attribs["target"] = "_blank"; } } wfProfileOut( __METHOD__ ); return true; } static public function ImageParams ( $title, $file, &$params ) { self::doPDFTarget( $title, $params['frame']['title'], $params['frame'] ); # Make all image links go no where. if( empty( $params['frame']['link'] ) && empty( $params['frame']['target'] ) ) { $params['frame']['no-link'] = 'xxx'; } return true; } /* may not be necessary? */ static public function FetchFile ( $parser, $title, &$options, &$desQuery ) { $options['target'] = '_blank'; return true; } static public function ExternalLink ( &$url, &$text, &$link, &$attribs ) { self::doPDFTarget ( $url, $text, $attribs ); return true; } static public function InternalLink ( $dummy, $target, $options, $html, &$attribs, &$ret ) { self::doPDFTarget ( $target, $text, $attribs ); return true; } } $wgHooks['LinkerMakeExternalLink'][] = 'Hooks::ExternalLink'; $wgHooks['ParserMakeImageParams'][] = 'Hooks::ImageParams'; $wgHooks['BeforeParserFetchFileAndTitle'][] = 'Hooks::FetchFile'; $wgHooks['LinkEnd'][] = 'Hooks::InternalLink';
- Thank you, I ll try this!
- Have a great day 194.29.4.166 07:42, 12 June 2013 (UTC)
- I've done this by using a hook. If you want a pointer to the code, feel free to ask. ☠MarkAHershberger☢(talk)☣ 15:58, 10 June 2013 (UTC)
- Where do I incorporate this code change? In Hooks.php?
- Arun 59.160.207.20 (talk) 12:19, 9 June 2016 (UTC)
- I would try adding it to the end of LocalSettings.php. At least this is where you usually put your hook functions... (Although I personally never use a class to put them into, but anyway.) 87.123.63.223 (talk) 13:03, 9 June 2016 (UTC)
How to install infobox in latest mediawiki
Hi there, Can you give me a simple installation procedure for infobox. I am searching for infobox installation in latest mediawiki for about two days. I have googled it and didnt find any useful tutorials about that. Whether in default mediawiki,infobox is deactivated or not. I have gone through this tutorial http://www.etcwiki.org/wiki/Install_infobox but having a considerable difficult understanding the installation procedure.
What is commmon.css? i didn't any in my mediawiki
I tried to add this code in my mediawiki
{{Infobox |name = Infobox/doc |bodystyle = |title = Test Infobox |titlestyle = |image = [[File:example.png|200px|alt=Example alt text]] |imagestyle = |caption = Caption for example.png |captionstyle = |headerstyle = background:#ccf; |labelstyle = background:#ddf; |datastyle = |header1 = Header defined alone |label1 = |data1 = |header2 = |label2 = Label defined alone does not display (needs data, or is suppressed) |data2 = |header3 = |label3 = |data3 = Data defined alone |header4 = All three defined (header, label, data, all with same number) |label4 = does not display (same number as a header) |data4 = does not display (same number as a header) |header5 = |label5 = Label and data defined (label) |data5 = Label and data defined (data) |belowstyle = background:#ddf; |below = Below text }}
but getting this Template:infobox in red link but when i tried sandbox its working fine
Please provide some easy installation tutorial for infobox. I think i am not alone in this while googling i found most of the people have same problem as like me most are not very good in programming. 59.163.196.240 (talk) 17:53, 5 June 2013 (UTC)
- Copying templates from Wikipedia won't work, you'll require to install the Scribunto extension, see Project:Support desk/Flow/2013/06#h-[RESOLVED]_invoke_infobox_error_in_mediawiki_(template_copied_from_Wikipedia)-2013-06-06T10:24:00.000Z.
- If you don't have MediaWiki:Common.css on your wiki, you'll have to create it by simply navigating to MediaWiki:Common.css on your wiki and editing the page. Ciencia Al Poder (talk) 09:27, 10 June 2013 (UTC)
Unable to install Microsoft Office add-in for Mediawiki
Hello, I receive the following error on two computers when attempting to install this add-in. I have verified both have .net installed and one is Windows 7 and the other is WindowsXP. Any help would be appreciated.
The description for Event ID ( 11001 ) in Source ( MsiInstaller ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Product: Microsoft Office Word Add-in For MediaWiki -- Error 1001. Error 1001. Unable to get installer types in the C:\Program Files\Microsoft\Microsoft Office Word Add-in For MediaWiki\MediaWiki.MediaWikiConverter.dll assembly. --> Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information., (NULL), (NULL), (NULL). 184.75.34.11 (talk) 18:19, 5 June 2013 (UTC)
- Are you speaking of this plugin from Microsoft?
- As far as I can see your error seems to come from an MSI installation process. A quick Google search shows that this error happens for other software packages as well. So maybe you want to ask in a forum about installation problems.
- It seems like the problem can also be caused by some strangeness in .net. Here removing the software package to be installed (the Plugin in your case), then reinstalling .net Framework and then installing the software package worked. No idea how to remove any registry entries, which the plugin installer might already have created... 88.130.97.129 20:30, 5 June 2013 (UTC)
- HI,
- I'm on a W7 64bit machine with .NET Framework 4.5 installed and having the same problems. I reinstalled (repair) the .NET Framework -> no effect though.
- I Loaded up the MediaWikiConverter.dll with Dependecy Walker and resolved one issue with an IE.DLL (by adding the Internet Explorer Path to the PATH System Environmental variable)
- After resolving the one missing DLL, the dependency walker still shows this:
- Error: Modules with different CPU types were found.
- Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
- It doesnt show me which DLL has problems :( 89.244.16.77 11:43, 12 August 2013 (UTC)
Sidebar with information next to content
I would like to know how to integrate a sidebar on the right of my content with information like what wikipedia does. Kinda like with this http://en.wikipedia.org/wiki/Cars My MediaWiki version is 1.20.4. My PHP version is 5.3.23, and my MySQL version is 5.5.23-55. 74.190.243.254 (talk) 18:35, 5 June 2013 (UTC)
- What you see there is a template. You have to create one template and include it in the pages in which you want to use it. More information are on the page Manual:Templates. The one on "Cars" is rather complex: It uses parameters and so; maybe you start with a simple one first... 88.130.97.129 20:17, 5 June 2013 (UTC)
Php error
I'm getting the php error Warning: gzdecode(): data error in /home/ramsur/rasikas.org/w/index.php(1) : runtime-created function(1) : eval()'d code on line 29 in my mediawiki installation at http:// rasikas . org near the footer. Any idea how I can troubleshoot this? If you need to know any further information I will be happy to provide. Thanks in advance Srkris (talk) 22:56, 5 June 2013 (UTC)
- Runtime-created functions in index.php? gzencoded code? eval'd code?
- Are you sure you have not been hacked?
- Please compare the code in your index.php file with the code from the MediaWiki source package. Which version are you using btw? 88.130.97.129 23:10, 5 June 2013 (UTC)
Problem with thumbnails of images transcluded from WikimediaCommons
URL: http://kudlok.pl
MediaWiki version: 1.20.5
PHP: 5.3.8 (cgi-fcgi)
MySql: 5.5.28
Server: openSUSE 12.1
The wiki is installed in a root folder
I have the following problem with my wiki: I've just upgraded my wiki from 1.16.5 to 1.20.5 and also moved it from a shared hosting to a virtual server (OpenSUSE 12.1). Everything works fine except for thumbnails of images transcluded from WikiemdiaCommons (InstantCommons enabled).
Precisely: thumbnails of pictures transcluded from Commons are visible only in a "show preview" mode but when I save the page they disappear and only blue links can be seen. When I click on the link the full size image appears (as it should). What's more, when I re-edit such pages and click "show preview", the thumbnails of the images transcluded from Commons are again visible but when I save the page they disappear again.
You can see that invisible thumbnails here: http://kudlok.pl/Rozstaw_szyn#Rozstawy_w.C4.85skotorowe
When I go directly to a thumbnail, i.e.:
http://kudlok.pl/thumb.php?f=Waldenburgbahn.jpg&width=120
I get the following error message:
Error generating thumbnail The source file for the specified thumbnail does not exist.
But the thumbnail exists in the images/thumb catalogue:
http://kudlok.pl/images/thumb/6/68/Waldenburgerbahn.jpg/120px-Waldenburgerbahn.jpg
It doesn't matter if I add $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
to LocalSettings.php or not. Nothing changes.
Also, thumbnails of the pictures uploaded to my wiki don't cause any problems and are visible:
and thumbs are generated properly:
http://kudlok.pl/thumb.php?f=0003am.jpg&w=200
I've spent a lot of time trying to resolve the problem and I haven't managed to. Does anyone have any idea what's wrong? I'd be grateful for any tips. Thanx in advance for your help. Pawel Niemczuk (talk) 01:39, 6 June 2013 (UTC)
[RESOLVED] Blank page accessing some pages
The best way I can explain this is to point you to this page. While all but one link shows their are pages associated with them, a few of those links just don't work. Try clicking on "United States Census, 1870" or 'United States Census, 1900". These are just the ones I have found. I'm not sure what's goning on, any ideas? 68.104.165.16 (talk) 04:01, 6 June 2013 (UTC)
- Try editing and creating another page with the same contents and see if the error persist.
- Check also the error logs (Manual:How_to_debug) Ciencia Al Poder (talk) 10:00, 6 June 2013 (UTC)
- I can't create the page becuase when I search for say 1900 the search produces a blank page.
- http://crewsgenealogy.com/wiki/index.php?search=1900&fulltext=Search&title=Special%3ASearch 68.104.165.16 05:10, 8 June 2013 (UTC)
- Take a look at Blank page. The page is sending a HTTP 200 response instead of a 500, which is strange. But check error logs and enable detailed debug to know what's the error that's happening so we can see the cause. Ciencia Al Poder (talk) 10:02, 8 June 2013 (UTC)
- I added
error_reporting( E_ALL ); ini_set( 'display_errors', 1 );
- to local settings, but nothing is outputted. 98.165.52.126 22:41, 8 June 2013 (UTC)
- I tried
error_reporting( -1 ); ini_set( 'display_startup_errors', 1); ini_set( 'display_errors', 1);
- in index.php 98.165.52.126 22:57, 8 June 2013 (UTC)
- I also tried to view the error logs, but as of now their is nothing in them. It's on a godaddy host, so I had to activate it, and I don't know how long it will take to update. 98.165.52.126 23:00, 8 June 2013 (UTC)
- tried
- 98.165.52.126 23:04, 8 June 2013 (UTC)
$wgShowExceptionDetails = true; $wgDebugToolbar = true; $wgShowDebug = true;
- tried
- 98.165.52.126 23:06, 8 June 2013 (UTC)
$wgShowSQLErrors = true; $wgDebugDumpSql = true; $wgShowDBErrorBacktrace = true;
- ok, I set up an error log with
$wgDebugLogFile = "$IP/errorlog.txt";
- I don't know what these mean, but this is what was generated when I searched for 1900.
- You can see the log here
- I have disabled it on the website for now. 98.165.52.126 23:17, 8 June 2013 (UTC)
- When posting debug logs, please, remove the COOKIE lines, since anybody could be logged in with your account using those cookie values. I've used them to log out from your session, so nobody else can use them to access your account information. I've also put a warning about this on the How to debug page (since it's not the first time I see this happening).
- Well, the debug log isn't outputting anything strange, except that the end of the search request doesn't end in "Request ended normally" like previous one does. And the last attempt was to create a thumbnail of an image.
- What I suspect here is that the thumbnailing of the image is failing, and since thumbs are being generated when the page is parsed, it causes the page to end the response when it fails.
- For example, on the debug log file I see it's trying to generate a thumb of YOURSERVER/wiki/images/a/a9/1900_Federal_Census_including_Titus_Family.jpg (it's a large file of 1533 KB), and it's trying to generate the thumb here YOURSERVER/wiki/images/thumb/a/a9/1900_Federal_Census_including_Titus_Family.jpg/120px-1900_Federal_Census_including_Titus_Family.jpg but accessing it thows a 404 not found error. This means thumb generation failed.
- The file description page is failing also: YOURSERVER/wiki/index.php?title=File:1900_Federal_Census_including_Titus_Family.jpg most likely because file description pages generate a new thumb displayed at the file history.
- Other images are thumbnailing fine. Apparently, it requires much memory for generating a thumb of that file, and your server isn't having enough memory for that. You might try increasing $wgMaxShellMemory. The error is happening when executing Thumb.php directly. See: YOURSERVER/wiki/thumb.php?f=1900_Federal_Census_including_Titus_Family.jpg&w=100
- Maybe you can try to use a different thumbnailing program. See Manual:Image thumbnailing Ciencia Al Poder (talk) 10:08, 9 June 2013 (UTC)
- Thank you for the help. It seems the image size was the problem. I couldn't tweak the settings you suggested and find anything that would work, but I resided the photo and replaced it in that folder, and it seems to have fixed the problem. Now I just have to do the same for the other broken pages. 68.104.165.16 15:56, 9 June 2013 (UTC)
- Take a look at Blank page. The page is sending a HTTP 200 response instead of a 500, which is strange. But check error logs and enable detailed debug to know what's the error that's happening so we can see the cause. Ciencia Al Poder (talk) 10:02, 8 June 2013 (UTC)
How to create template with several conditions.
Good day. I want to create template with two and more conditions for generating links to download files from several hosts. As shown on image there are two conditions. If I put parameter deposit - template generates link for Depositfiles hosting. If I put parameter letitbit - template generates link for Letitbit hosting.
I have watched throught http://meta.wikimedia.org/wiki/Help:Advanced_templates page but did not find a solution. How can I create this template, pls advice. Ektip (talk) 08:24, 6 June 2013 (UTC)
UML extension still support?
Are UML extension still support for this version of mediawiki?? If no, are there another extension that replace it? Thank you very much By Sephirothindra 08:53, 6 June 2013 (UTC)
- It was in fact totally removed due to continuous security issues. I am not exactly aware what this extension was about, so I cannot tell an alternative. Perhaps you elaborate in brief what you would like to achieve. Probably somebody knows a way. [[kgh]] (talk) 17:09, 6 June 2013 (UTC)
- I see..
- So there is nothing another extension replace it.
- Emmm, my purpose use that extension because need to make diagram such as flowchart diagram, use case diagram ,etc such as plantUML.
- Maybe you can suggest me another one?
- Thank you. Sephirothindra (talk) 04:08, 8 June 2013 (UTC)
- Hi, i found another extension that interesting which name svg-editor.
- Is that can be replace UML? Sephirothindra (talk) 01:32, 25 June 2013 (UTC)
- You can use a tool like Dia to create the files to be uploaded. But, yes, it looks like you could use SVGEdit to do something like this completely on-wiki. I don't know anything about the extension, though, so unless you can figure it out or someone else here can help you, you're on your own. ☠MarkAHershberger☢(talk)☣ 03:28, 25 June 2013 (UTC)
- Yes indeed.
- I have use SVGEdit now at my new version of mediawiki.
- But when i create it, it cannot create thumbnail shown.
- Would you suggest me where forum or discussion for me to join? By Sephirothindra 06:14, 25 June 2013 (UTC)
- If you look at the SVGEdit project page you'll see some mailing lists or web chats where people may have an idea about how to do this.
- If you continue to get no where, come back and ask me and I'll see if I can help you figure it out. ☠MarkAHershberger☢(talk)☣ 00:25, 3 July 2013 (UTC)
- Okay Mark, i will do your suggestion.
- Thank you. By Sephirothindra 02:36, 3 July 2013 (UTC)
- You can use a tool like Dia to create the files to be uploaded. But, yes, it looks like you could use SVGEdit to do something like this completely on-wiki. I don't know anything about the extension, though, so unless you can figure it out or someone else here can help you, you're on your own. ☠MarkAHershberger☢(talk)☣ 03:28, 25 June 2013 (UTC)
[RESOLVED] invoke infobox error in mediawiki (template copied from Wikipedia)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I have installed the latest mediawiki and i am having trouble installing infobox in my mediawiki. After a lot of searching in web i found this tutorial http://trog.qgl.org/20110815/setting-up-infobox-templates-in-mediawiki. I have done all things as described in the tutorial , downloaded the template:infobox xml then imported in my wiki made proper changes in my common.css ,localsetting.php. But when i put the example code given in the tutorial in my wiki its giving this error.
{{#invoke:Infobox|infobox}}
- http://i44.tinypic.com/157m0bd.png
- Creating a infobox in mediawiki is making me mad,any help will be appreciated
- Advance thanks for input 180.149.49.231 (talk) 10:24, 6 June 2013 (UTC)
- Exactly the same problem over here. Any help would be nice.
- Thanks in advance. 77.250.212.237 13:48, 7 June 2013 (UTC)
- Wikipedia is now using Extension:Scribunto for heavy templates like this.
- You need to install that extension or select an old version of the template, prior of the switch to Scribunto / Lua . Ciencia Al Poder (talk) 16:37, 7 June 2013 (UTC)
- I've installed the Scibunto extension and I'm still getting this error.
- I *did* have to comment out the sort function in LuaCommon.php to get the extension to run.
- I did an export/import to copy the templates into my wiki.
- I presume the problem is that I'm using MW 1.19 and WP is on the latest version. Upgrading is too much of a hassle. Guess I'm stuck with stripping out templates... 173.57.184.105 16:19, 14 December 2013 (UTC)
- I am getting errors as bellow after setting up Extension:Scribunto
Script error: No such module "Infobox".
Script error: No such module "citation/CS1".
Template:Cite news
116.202.96.220 12:12, 24 January 2015 (UTC)- My error URL
wikicinema.org/index.php?title=Mammootty
116.202.96.220 12:22, 24 January 2015 (UTC)- The errors are self-explanatory:
- There's no Module:Infobox nor Module:citation/CS1 on your wiki. Try creating/importing them? Ciencia Al Poder (talk) 12:29, 24 January 2015 (UTC)
- And so would anyone care to explain how to actually do the task of "Try creating/importing them?" so that someone can actually follow a list of instructions to do this task? 66.3.7.50 (talk) 15:08, 3 September 2016 (UTC)
- As 66.3.7.50 says it is not clear how modules should be imported.
- Lua has been installed.
- However, attempting to add a source to a module page gives a "Fatal exception of type MWException".
- I will dig into this by displaying debug and have been searching for a solution for around a week.
- I'm a developer so it's not the technical manipulations that are a problem and it's just unfamiliarity with how mediawiki functions. JamesPoulson (talk) 22:37, 2 December 2016 (UTC)
116.202.96.220 12:12, 24 January 2015 (UTC)
- Manual:Importing Wikipedia infoboxes tutorial Ciencia Al Poder (talk) 11:40, 8 September 2016 (UTC)
Autocomplete in search box for newest version?
This page: http://www.mediawiki.org/wiki/Manual:Enabling_autocomplete_in_search_box
seems a bit outdated since it no longer works after version 1.19. It offers no solution for autocomplete, but when I type in the search box on a site like this or wikipedia, it starts giving me a list of possible pages I may want to go to. However, I can't find any documentary on what to use now for the latest version. What do I use now? Thanks Bluesoju (talk) 13:05, 6 June 2013 (UTC)
- I think the vector extension provides this by default.
- Try adding this to your LocalSettings.php:
require_once( "$IP/extensions/Vector/Vector.php" ); $wgVectorUseSimpleSearch = true;
- The Vector extension ships with the installation files, so there's no need to download it. Stefahn (talk) 08:00, 7 June 2013 (UTC)
- The Vector extension provides no such functionality. It has been part of MediaWiki core for several years.
- I've updated Manual:Enabling autocomplete in search box. For MediaWiki 1.20 and later it is enabled by default, you shouldn't need to do anything.
- In MediaWiki 1.19 it can be enabled by enabling a certain setting, see (the now updated version of) Manual:Enabling autocomplete in search box for more information. Krinkle (talk) 01:32, 10 June 2013 (UTC)
Keywords dont work
Hi,
in our Wiki we do have a problem with the keywords. Some work in the search, some dont. Here's an example:
<pre>Keywords:abc,def,ghi,jky</pre> [[Category:alphabet]]
Now, searching for "def" and "jky" will result the matching page, while searching for "abc" and "ghi" will not give out a match.
Do you habe any suggestions what might be my mistake?
regards, shibo Shibo~mediawikiwiki (talk) 14:10, 6 June 2013 (UTC)
- pushing* ... no suggestions? 89.182.35.241 09:47, 7 June 2013 (UTC)
- Are you using MediaWiki's built in search or an extension? ☠MarkAHershberger☢(talk)☣ 23:41, 8 June 2013 (UTC)
- using build in search Shibo (talk) 12:59, 10 June 2013 (UTC)
- Sounds like a bug. Could you file one? ☠MarkAHershberger☢(talk)☣ 15:54, 10 June 2013 (UTC)
- using build in search Shibo (talk) 12:59, 10 June 2013 (UTC)
Comment créer automatiquement une page de résumé
J'ai dans mon wiki un modèle "militant", je voudrais savoir comment avoir une page automatisée reprenant ces entrées, je crois que c'est possible, j'ai vu ca pour biographie, une catégorie spéciale, mais c'est un peu compliqué pour moi, j'aimerais qq chose de minimal à partir de cet exemple Lunablues (talk) 15:00, 6 June 2013 (UTC)
modify duration between each search
hello, just wandering where can I modify the duration between each search? Lnasterio (talk) 17:30, 6 June 2013 (UTC)
- What do you mean? ☠MarkAHershberger☢(talk)☣ 23:43, 8 June 2013 (UTC)
- you know how there is a search bar on the top right corner?
- is there a way to modify the waiting time between each search? Lnasterio (talk) 01:15, 9 June 2013 (UTC)
- I'm familiar with that box. Do you mean you want a pause before it appears?
- Really though, it sounds like you are trying to throttle search requests so that they don't overwhelm your serer. ☠MarkAHershberger☢(talk)☣ 15:53, 10 June 2013 (UTC)
- that is exactly the reason why I need it.
- .
- So is that possible?
- .
- thanks Lnasterio (talk) 01:13, 15 June 2013 (UTC)
- You really need to see why search is being used so much on your site. Are you sure it isn't a bot that someone is using maliciously? ☠MarkAHershberger☢(talk)☣ 18:54, 15 June 2013 (UTC)
- BUMP Lnasterio (talk) 22:17, 9 June 2013 (UTC)
- As far as I know there is no such thing as a waiting time in the search, therefor there is no way to modify it because it doesn't exist.
- If you intended to ask if it is possible to create a waiting time, what do you mean by a "waiting time" and why would you want that? Krinkle (talk) 00:50, 10 June 2013 (UTC)
Suggestion
Hi where can I ask for an extension of feature to be added in the next version because what I want to ask is that extension central auth be built into Mediawiki software because it is so hard to set up and would be easer if it was built in 90.215.138.14 (talk) 18:32, 6 June 2013 (UTC)
- That's not going to happen. Additionally making central auth built in probably won't reduce complexity (The fact it is an extension isn't really related very much to how hard it is to set up)
- If you want built-in shared login across wikis, you could try using $wgSharedTables. Bawolff (talk) 23:31, 6 June 2013 (UTC)
- p.s. As an aside, much of the complexity of CentralAuth is related to using the $wgConf wiki-farm config system, which is something that is built into mediawiki. Bawolff (talk) 23:32, 6 June 2013 (UTC)
- hi! what do I enter with $wgSharedTables because my database setup is localhost and different database user and name and are hosted under different emails 5.66.151.92 13:16, 7 June 2013 (UTC)
- p.s. As an aside, much of the complexity of CentralAuth is related to using the $wgConf wiki-farm config system, which is something that is built into mediawiki. Bawolff (talk) 23:32, 6 June 2013 (UTC)
09:56, 9 June 2013 (UTC)
Embedding Google Map
Hi everyone:
I want to embed a custom Google map onto my wiki website. I've created the Google map on a NON-WIKI website at "mymap.html".
I've also embedded the mymap.html map into my wiki site by using Secure HTML (www.mediawiki.org/wiki/Extension:Secure_HTML) So wiki markup code looks like this: <shtml version="2" keyname="Wiki Admin" hash="bda681b17067a4c23450b89b787f5d3c56b3c8e6262fa9aadf45f4e06912a6b0"><iframe width="500" height="500" scrolling="no" src="mymap.html></iframe></shtml>
The map looks fine except that the size is hardcoded into the iframe. Is this the best way to embed a custom google map into my wiki website?
I understand that Google only really allows 2 ways to embed its maps: either using an iframe tag or with Javascript. I don't want to change Javascript or Javascript templates in my wiki so I'm opting to use an HTML extension such as the Secure HTML in my wiki.
Is there a mediawiki extension or wiki HTML markup that will allow dynamic resizing of google maps? I need the map to show properly on tablets, smartphones and computers. P.S. I prefer not to install a Google map extension and I want to call my custom Google map via HTML markup. Thanks for your help. Peter321 (talk) 20:08, 6 June 2013 (UTC)
- You may be interested in Extension:Google Maps Ciencia Al Poder (talk) 09:33, 7 June 2013 (UTC)
- This extension uses the old Google Maps API (version 2), which is out of date. I need an extension that will render the HTML for my custom google map which is an html file. Or perhaps there is a Javascript modification that I can do in the Mediawiki javascript template? Peter321 (talk) 06:50, 8 June 2013 (UTC)
Sort order
Hi,
In Help:Sorting#Sort order, we can see that capital letters are ordered before small letters. But in fact, is it really the case?
It seems that no, as you can see it for example on https://fr.wiktionary.org in this category : Paris is placed in the letter "p" whereas Paris doesn't contain (even after expansion of the models) the magic word DEFAULTSORT
.
Is this table of sort order wrong?
Thanks by advance for your answer.
Regards, Automatik (talk) 01:15, 7 June 2013 (UTC)
- It depends on the sorting method being used by the wiki:
- Prior to 1.17 it was always true that all capital letters were sorted before all lowercase (So 'Z' comes before 'a'. Basically we used to binary order of code points)
- After that we changed it to be case insensitive by default (but still code point order). So 'a' and 'A' are considered the exact same letter. Its still possible to go back to the old behaviour if it is desired.
- We also added an option for uca collation ordering. This allows per language customization, using a much more complex algorithm. So for example, 'a' and 'A' are considered exactly the same, unless there is a tie, and then its used as a tie breaker. (It sorts on 3 levels - different letters, followed by different accents, followed by upper-case vs lower-case). See $wgCategoryCollation for details on that. Bawolff (talk) 17:11, 27 June 2013 (UTC)
Help required to setup and run a wiki
If anyone would be interested in setting and running a wiki with me could you please get in touch info@mobilevehiclesolutions.co.uk
The domain I hold is www.carwiki.co.uk 86.157.48.186 (talk) 08:01, 7 June 2013 (UTC)
Hide (bot) edits from other users
Is there a way to edit a page without other users being notified about it?
I tried to edit as a bot but other users still see the edit on their watchlists and get an email notification.
I only want to make a small change in my SMW attributes - other users shouldn't get tons of mails just because of this very small change.
Thanks! Stefahn (talk) 08:08, 7 June 2013 (UTC)
- edits like this should be marked as "minor" edits and then the user can decide whether or not to hide them. ☠MarkAHershberger☢(talk)☣ 15:24, 20 June 2013 (UTC)
Upgrading from 1.12 -> 1.21 Database returned error "1054: Unknown column 'rev_sha1' in 'field list' when running php update.php
Upgrading from :-
MediaWiki 1.12.0 PHP 5.2.5 (isapi) MySQL 5.0.24-community-
to
Mediawiki 1.21.1 PHP 5.4 MYSQL 5.6
running php update.php
I get the following error
Adding index type_action to table logging ...done. ...batch conversion of user_options: A database query syntax error has occurred.
The last attempted database query was: "SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev _user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,page_namespace,p age_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `revisio n` INNER JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((rev_user !=
0) AND (user_id = rev_user)) WHERE page_id = '2183' AND rev_id = '11449' LIMI
T 1 " from within function "Revision::fetchFromConds". Database returned error "1054: Unknown column 'rev_sha1' in 'field list' (tdb01- mysql)" 217.151.206.198 (talk) 08:37, 7 June 2013 (UTC)
- Known issue. Take a look at Project:Support desk/Flow/2013/05#h-[RESOLVED]_upgrade_problems:_1.11_-->_1.21_(batch_conversion_of_user_options:_Un-2013-05-30T08:13:00.000Z for a solution. Ciencia Al Poder (talk) 09:19, 7 June 2013 (UTC)
MWSuggest box not working correctly following upgrade from 1.18.0 to 1.21.1
When you start typing in the search box the suggested page titles are being cut off if the page title is longer than the search box (instead of resizing past this point). This was resizing correctly before upgrading to Mediawiki version 1.21.1. I have copied back the Skins and Vector Extensions folder from backup but still has not fixed this. I have also tried a different skin (we are using Vector) but it still does the same. Any suggestions would be hugely welcome. 83.98.9.4 (talk) 13:43, 7 June 2013 (UTC)
- Could you provide the URL of your wiki so we can see what you're talking about? ☠MarkAHershberger☢(talk)☣ 14:45, 7 June 2013 (UTC)
- Thank you for your reply.
- I am afraid this is an internal wiki we use as a knowledge base which is not accessible externally. I will attach the screenshot of the affected wiki below and one I am yet to upgrade.
- Upgraded wiki
- <wikieditor-toolbar-tool-file-pre>broken search 1.jpg]]
- Non upgraded wiki
- <wikieditor-toolbar-tool-file-pre>broken search 2.jpg]] 83.98.9.4 15:08, 7 June 2013 (UTC)
- Sorry I am having trouble attaching the screenshots. I have uploaded them here:
- Upgraded wiki
- http://img197.imageshack.us/img197/7891/brokensearch1.png
- Non upgraded wiki
- http://img96.imageshack.us/img96/4291/brokensearch2.png 83.98.9.4 15:23, 7 June 2013 (UTC)
- Looks like a CSS problem. What happens if you remove custom styling you have? ☠MarkAHershberger☢(talk)☣ 23:16, 8 June 2013 (UTC)
- I honestly wouldn't know how to add any custom styling, but I checked the MediaWiki:Common.css and copied all the code from working non - upgraded wiki and it is still doing the same. 83.98.9.4 07:54, 10 June 2013 (UTC)
- You should find someone with CSS experience who can look at your problem. It really looks like a styling issue that someone with some CSS experience could solve relatively quickly. ☠MarkAHershberger☢(talk)☣ 15:50, 10 June 2013 (UTC)
- OK no problem thanks. I was just a bit puzzled why this worked before upgrading. 83.98.9.4 08:43, 11 June 2013 (UTC)
- You should find someone with CSS experience who can look at your problem. It really looks like a styling issue that someone with some CSS experience could solve relatively quickly. ☠MarkAHershberger☢(talk)☣ 15:50, 10 June 2013 (UTC)
- I honestly wouldn't know how to add any custom styling, but I checked the MediaWiki:Common.css and copied all the code from working non - upgraded wiki and it is still doing the same. 83.98.9.4 07:54, 10 June 2013 (UTC)
- Looks like a CSS problem. What happens if you remove custom styling you have? ☠MarkAHershberger☢(talk)☣ 23:16, 8 June 2013 (UTC)
- Have you tried using $wgVectorUseSimpleSearch = true; instead? Hopefully we are talking about the same thing. Bluesoju (talk) 01:00, 8 June 2013 (UTC)
Possible to use my mediawiki installation to parse wikitext from a different installation
Thanks for taking a look.
Here is what I have: MediaWiki 1.21.1, PHP 5.3.14, MySQL 5.1.63,
Here is what they have: MediaWiki 1.22, PHP 5.3.10, MySQL 5.5.30,
Can I use my installation to parse wikitext from an api call to the other server? If so how would I go about it? Tanasqui (talk) 13:57, 7 June 2013 (UTC)
- You have MW installed on your server, why not just use it? ☠MarkAHershberger☢(talk)☣ 14:42, 7 June 2013 (UTC)
- I'm really confused about what you're trying to do. Could you provide more details? ☠MarkAHershberger☢(talk)☣ 14:43, 7 June 2013 (UTC)
centralauth
hi how do I enable automatic login in all my wikis so that users who log in one wiki will be logged in the other ones like Wikimedia does with Wikipedia and there other project 5.66.151.92 (talk) 18:56, 7 June 2013 (UTC)
- See Extension:CentralAuth. Post here if you have any questions about setup. ☠MarkAHershberger☢(talk)☣ 22:41, 8 June 2013 (UTC)
- Ok I have it working but all my wikis you have to manual login what I would like to know is how can I allow it to automatically log in so if I was to go on to another wiki and I was logged in to one it would log me into the other one 109.169.18.13 12:57, 10 June 2013 (UTC)
- You need to make sure your browser can use the cookies from those other sites. Be aware that there are changes coming with how Firefox handles cookies that will cause problems with CentralAuth, though. See this thread for more information. ☠MarkAHershberger☢(talk)☣ 15:48, 10 June 2013 (UTC)
- Ok thanks 90.208.135.174 16:32, 11 June 2013 (UTC)
- You need to make sure your browser can use the cookies from those other sites. Be aware that there are changes coming with how Firefox handles cookies that will cause problems with CentralAuth, though. See this thread for more information. ☠MarkAHershberger☢(talk)☣ 15:48, 10 June 2013 (UTC)
- Ok I have it working but all my wikis you have to manual login what I would like to know is how can I allow it to automatically log in so if I was to go on to another wiki and I was logged in to one it would log me into the other one 109.169.18.13 12:57, 10 June 2013 (UTC)
Chechen Wikipedia: Translation of namespaces
Greetings. I would like to speed up the process of renaming. Do not want to wait until 2014. regards? Takhirgeran Umar (talk) 20:01, 7 June 2013 (UTC)
- As they point out on the bug, WMF has moved to a weekly deployment cycle. So you need to wait one week after the i18n updates from TranslateWiki are committed to gerrit and merged to the WMF branch for them to be deployed. ☠MarkAHershberger☢(talk)☣ 22:21, 8 June 2013 (UTC)
- Thank you very much. But it seems to me that bugzile do not know that they themselves do Дагиров Умар (talk) 09:21, 22 June 2013 (UTC)
Issue with show correct amount of articles
Hi my wiki is located at http://random-wikisaur.tk and I am having a problem I have more then 7 articles but it is saying I have 7 when I have more please help 90.213.34.85 (talk) 22:33, 7 June 2013 (UTC)
- Hi,
- check the maintenance scripts, one of them surely can update that number. 88.130.73.88 23:59, 7 June 2013 (UTC)
- See Manual:UpdateArticleCount.php. ☠MarkAHershberger☢(talk)☣ 21:48, 8 June 2013 (UTC)
Possible to insert current IP in an article?
Hi. Is it possible to determine the IP of a user in a wiki-page? Maybe a variable such as {{SERVER}}
.
- Purpose
- I use Mediawiki in an intranet and we use different computer models.
- I want to redirect users to a page where they get information and manuals about their computers.
- So the user at 192.168.90.8 would be redirect to another start page as would be the user at 192.168.90.12
Probably would work in htaccess, but is it possible from within mediawiki alone?
Thanks 79.232.19.240 (talk) 07:10, 8 June 2013 (UTC)
- I would have checked those constants, which can be used inside wiki pages. Maybe one of them provides you with the current IP.
- There is a special page, which shows the user contreibutions. Also it is possible to link to the user's own page. So another idea would be to use a link to one of these special pages. Maybe it is called "Special:MyPage" or so; I don't know the right name right now. 88.130.94.1 11:48, 8 June 2013 (UTC)
- Thanks,
[[Special:MyPage]]
is my work-around for now. - This works (of course only) as long as nobody is logged in on a certain computer and has checked off "keep logged in".
- But, by the way, regarding there are variables like
{{SERVER}}
and so on — and that Mediawiki isn't that young and has a lot of experiences built in — would there be a special reason not to implement a variable for retrieving an IP? - Maybe a security thing? 79.232.12.44 23:06, 9 June 2013 (UTC)
- Not for security, but for caching ;)
- Page content is aggressively cached on the server, specially for unregistered users, so the page's wikicode doesn't need to be reparsed every time a request is made. Introducing such volatile things like the client's IP address, user-agent, etc would require the cache to be disabled completely, something that can't be done on a high-traffic website.
- A good fix for that would be to create some sort of simple web-service that returns the IP address of the requesting client, and write some JavaScript on the wiki to use that web-service to obtain the client's IP address and modify the page as you need (for example, dynamically adding/modifying a link based on that address).
- That web-service could be a simple PHP script that echoes back the $_SERVER['REMOTE_ADDR']. Ciencia Al Poder (talk) 09:23, 10 June 2013 (UTC)
- Thanks,
- I did something similar to what you are trying but my client's network setup provided a header based on the user's country (information that was stored in LDAP).
- Based on that I was able to send users to the proper landing page. I had to use some custom code and the MediaWikiPerformAction hook to do that, though. ☠MarkAHershberger☢(talk)☣ 21:46, 8 June 2013 (UTC)
MediaWiki is SUPER slow to the point it's unusable?
I upgraded almost a year ago and didn't think much of it until recently. I upgraded from MediaWiki 1.9 to 1.19. It either loads at a decent speed or takes forever to load. I have searched and searched, yet found no solution. It never used to be this slow until I upgraded it. If anyone could help me fix this it would be great and the wiki users would appreciate it. Thank you. Supermwiki (talk) 15:57, 8 June 2013 (UTC)
- Hi!
- So you say that the wiki is slow since one year, meaning: starting with the time of your upgrade? Or did it become slower during this year; meaning: way after the upgrade?
- What software versions are you running? (See your Special:Version page.)
- Where are you running the wiki? Local PC? Local network? Own server? Dedicated server? ... Does it have a public URL so that we could have a look? 88.130.66.129 17:00, 8 June 2013 (UTC)
- Thank you for your reply, yes since the time of my upgrade. It happened right after the upgrade. I am running
- Product Version
- MediaWiki 1.19.0
- PHP 5.2.9 (cgi-fcgi)
- MySQL 5.0.96-community Supermwiki (talk) 17:19, 8 June 2013 (UTC)
- Looking at stats for your wiki, it looks like the edit count has increased in the past month. Maybe that traffic is hurting your server? ☠MarkAHershberger☢(talk)☣ 20:51, 8 June 2013 (UTC)
- On an unrelated note I'd recommend to deploy the latest 1.19.x release, for your own safety. AKlapper (WMF) (talk) 15:16, 19 November 2013 (UTC)
- I have the same problem, after upgrade a year ago, mediawiki is fast / slow / fast slow.
- Also upgrade this week a other wiki, and that one is now slow / fast / slow too. 213.125.49.189 08:29, 19 November 2013 (UTC)
- If your paying for server why not try to change the server to a faster one which can handle more traffic 2.124.130.208 11:52, 23 November 2013 (UTC)
wfLoadExtensionMessages() removed from 1.21.1?
My web host recently prompted me to upgrade to MW 1.21.1, so I did. Now several of my pages are broken. The error message is:
Fatal error: Call to undefined function wfLoadExtensionMessages() in [path to one of my installed extensions]
Was this function removed, or do I just need to re-enable it somehow? 70.176.119.200 (talk) 18:59, 8 June 2013 (UTC)
- You need to upgrade your extensions, too. ☠MarkAHershberger☢(talk)☣ 20:41, 8 June 2013 (UTC)
- The extension that's giving me problems isn't very well maintained. I've fixed a few bugs in it myself, and I'm probably capable of fixing this. But in order to do so, I need to know why wfLoadExtensionMessages() was removed, and what replaced it. 70.176.119.200 01:10, 9 June 2013 (UTC)
- You may simply remove the call to
wfLoadExtensionMessages()
and it will continue to work, you don't need to replace it by something else. IAlex (talk) 07:37, 9 June 2013 (UTC)- I have the same problem. This may fix the problem, but it doesn't answer Mark's question.
- Nick 109.238.67.2 12:00, 10 June 2013 (UTC)
- It was removed.
wfLoadExtensionMessages()
used to load messages from the given extension so that they could be used. Since the addition of the "localisation cache" in 1.16 messages are always loaded and thus callingwfLoadExtensionMessages()
was useless (for more details see r52503). - That was the point of the last part of my previous post. IAlex (talk) 12:19, 10 June 2013 (UTC)
- Oh, that's good news. Thanks for the info. 70.176.119.200 16:31, 10 June 2013 (UTC)
- Removing this function have made alsmost all the older extensions incompatible with the current version of MW. It think it's better to create an empty function since there is a lot of people who are not propgrammers and will be just disappointed that it doesn't work. Katkov Yury (talk) 22:17, 4 September 2013 (UTC)
- It was removed.
- Thanks for the info, it helped me out too. Pchestek (talk) 14:20, 22 June 2013 (UTC)
- Removing
wfLoadExtensionMessages( 'CategoryBrowser' );
also worked for me. - Thanx Mlpearc (powwow) 03:56, 19 July 2013 (UTC)
- Same here. I had this problem after upgrading from 1.15 to 1.22
- Thanks! 79.153.9.9 02:58, 28 December 2013 (UTC)
- Removing
- Better to insert the following line
- function wfLoadExtensionMessages(){
- }
- in the LocalSettings.php
- after the line
- require_once( "$IP/extensions/WikiSync/WikiSync.php" );
- In this way you will not need to edit the source of the Extension.
- Also, if in future you get PHP error "duplicate function wfLoadExtensionMessages ..." (or so) after you install another Extension, you will know that you cannot use both or make another remedy. 112.198.197.170 01:28, 27 January 2014 (UTC)
- What other bugs did you find/fix?
- I just installed this extension and fixed the bugs listed on the extension's page. Just curious to know what other bugs are there. 167.230.96.9 17:59, 13 May 2015 (UTC)
- You may simply remove the call to
- The extension that's giving me problems isn't very well maintained. I've fixed a few bugs in it myself, and I'm probably capable of fixing this. But in order to do so, I need to know why wfLoadExtensionMessages() was removed, and what replaced it. 70.176.119.200 01:10, 9 June 2013 (UTC)
- I had this same exact problem from my Delete Page Permanently extension. Turns out it was my short url settings. Not the extension. 130.11.160.145 14:56, 25 October 2013 (UTC)
- Went okay with Calendar extension... THX :o) 85.179.74.64 22:42, 25 November 2013 (UTC)
Update to 1.21.1 has changed a color in my sidebar
I'm just trying to find out where to go to change it.
I don't think Mediawiki:common.css has changed since the update
http://i.imgur.com/6VSywx3.png
the separators should be another color that I set, not grey as they are. Vapblack (talk) 19:02, 8 June 2013 (UTC)
- Which skin are you using? ☠MarkAHershberger☢(talk)☣ 20:43, 8 June 2013 (UTC)
- I'm using modern. Vapblack (talk) 23:00, 11 June 2013 (UTC)
- You probably want to add a rule for the .portlet class.
- But yes, like Krinkle said, please re-consider those colors and usability. ☠MarkAHershberger☢(talk)☣ 08:36, 12 June 2013 (UTC)
- thanks. where can I find out exactly what I have to add and where? Vapblack (talk) 21:19, 12 June 2013 (UTC)
- Edit [[MediaWiki:Common.css]] on your site and add something like
.portlet { background-color: green; }
☠MarkAHershberger☢(talk)☣ 21:21, 12 June 2013 (UTC)
- thanks. where can I find out exactly what I have to add and where? Vapblack (talk) 21:19, 12 June 2013 (UTC)
- I'm using modern. Vapblack (talk) 23:00, 11 June 2013 (UTC)
- What CSS rules did you change to support change the colors? ☠MarkAHershberger☢(talk)☣ 20:52, 8 June 2013 (UTC)
- @Vapblack Not related to your question, but from a usability point of view, such a dark green background may be problematic for the readability of the (black) text. Not enough contrast, I'd recommend reconsidering in general whether it makes sense to have such a dark color over the entire sidebar when the rest of the site isn't dark as well. And if the rest of the site is also dark coloured, then you should probably change the color of the text to be white instead of black. Krinkle (talk) 00:48, 10 June 2013 (UTC)
[RESOLVED] Mäusebussard
Mäusebussard Schulen Schulen (talk) 09:58, 9 June 2013 (UTC)
10:00, 9 June 2013 (UTC)
- Versuch es ggf. mal in der deutschen WP; hier wirst du dazu keine Informationen kriegen. 88.130.66.129 12:23, 9 June 2013 (UTC)
Add link to personal tools bar?
Is there any way to add a link to the Personal Tools bar like how Wikipedia adds a "My Sandbox" link? Shuvuuia (talk) 02:50, 10 June 2013 (UTC)
- That is done with a gadget. See Extension:Gadgets and w:MediaWiki:Gadget-mySandbox.js ☠MarkAHershberger☢(talk)☣ 15:29, 10 June 2013 (UTC)
Page through gallery
Is there a gallery format which displays one image at a time (or maybe a few) which loads only the image being displayed at the time, and allows the user to browse through the gallery by clicking forward/back arrows, thereby loading the image selected? Pbsouthwood (talk) 08:48, 10 June 2013 (UTC)
- I think you can use the javascript code that did this on Commons. See https://commons.wikimedia.org/wiki/Help:Gadget-GallerySlideshow ☠MarkAHershberger☢(talk)☣ 15:25, 10 June 2013 (UTC)
Error creating thumbnail: sh: /usr/local/bin/convert: No such file or directory
I am trying to upload a JPG image and am getting the following error:
Error creating thumbnail: sh: /usr/local/bin/convert: No such file or directory
I have tried to purge the page and nothing has changed. Please help. 213.232.79.43 (talk) 10:50, 10 June 2013 (UTC)
- Hi!
- Do you have ImageMagick installed on the server? 88.130.73.137 12:18, 10 June 2013 (UTC)
- If ImageMagick is installed, you probably have the path wrong. See Manual:$wgImageMagickConvertCommand. ☠MarkAHershberger☢(talk)☣ 15:23, 10 June 2013 (UTC)
[RESOLVED] Upgrading 1.19 to 1.21.1 (links to files)
After upgrading i've some troubles with displayng links to uploaded files.
In 1.19 it was alltight. After upgrade when i want to see full link to file, i see somethin like that: file:///somefile.pdf
I've checked permissions, path, permissions of tmp directory and needed modules. PHP and MediaWiki debug doesn't show me anything.
Tried some variants from this: https://www.mediawiki.org/w/index.php?title=Special:Search&search=uploaded+files+after+upgrade+ondiscussionpage%3AProject%3ASupport+desk&fulltext=1&ns90=1 Nothing helped.
Old version was on FreeBSD and PHP 5.4.4. New version is on Ubuntu 12.04 and PHP 5.3.10.
Can you give any suggestions?
Update: If in text of page i write something like "[[Image:somefile.pdf]]", all work fine as i need. L13t (talk) 12:41, 10 June 2013 (UTC)
No upload
Could anyone please answer the question ? I cannot figure out how to upload a file to a local wiki (local host) because when I select the file on the upload page the message appears which states that the file is probably empty because its name is incorrect and cannot be uploaded. All settings enable uploading. The file fits all the requirements. 37.144.96.203 (talk) 12:52, 10 June 2013 (UTC)
- Could you provide a screenshot of the error? ☠MarkAHershberger☢(talk)☣ 15:21, 10 June 2013 (UTC)
How do I add a JavaScript file to my template?
Hi guys,
I am adding a .js file to the bottom of my template file using this code:
<script type="text/javascript" src="wiki/skins/vector/javascript/linksupport.js"></script>
The problem with this is: Nearly all browsers do not load the file correctly. Instead of requesting this file, they request path-to-the-current-page/wiki/skins/vector/javascript/linksupport.js.
I know that I could add .htaccess rewrites or use the full URL of the .js file, but: Is one of that really the solution? Are are that only workarounds?
What is the right way to include the JavaScript in the bottom of the templae? How should I fix this issue? 88.130.106.99 (talk) 14:58, 10 June 2013 (UTC)
- You need to change the
src
attribute to be an absolute url: <script type="text/javascript" src="<nowiki><b>/</b></nowiki>wiki/skins/vector/javascript/linksupport.js"></script>
☠MarkAHershberger☢(talk)☣ 15:19, 10 June 2013 (UTC)- Also see $wgStylePath. ☠MarkAHershberger☢(talk)☣ 15:20, 10 June 2013 (UTC)
- Oh, the slash... nice weather outside, isn't it?! :-(
- Thanks for the help, Mark! 88.130.106.99 17:43, 10 June 2013 (UTC)
- Also see $wgStylePath. ☠MarkAHershberger☢(talk)☣ 15:20, 10 June 2013 (UTC)
bots attack, please help
I know this is written gazzillion times allower the web, but i cant find anything "easy".
So the thing is, we are using Mediawiki. We got attacked by bots, hard. The posts we made were submited only by 2 users. So, the simple question, how, if, can I delete or hide all posts beside those 2 in Admin group. I was looking for Nuke but I cant even get the download done :(
thanks in advance and bless your souls, those who help me! :) Ichinsane (talk) 15:03, 10 June 2013 (UTC)
- Hi!
- See Combating spam. If you only have two users, who should edit the wiki, you should think about changing edit rights: Only give it to users of the admin group. Maybe you also want to disable registration as well, so that only admins can create new accounts.
- The access to the MediaWiki Git repository seems to be broken currently. I am sure a group of highly trained monkeys has already been dispatched to approach this issue.
- Which MediaWiki version are you using btw? Nuke is included in MediaWiki since version 1.20 I think. Sorry that I can't be more helpful right now. ;-) 88.130.106.99 15:13, 10 June 2013 (UTC)
- Nuke would be the easiest, I think. I've been using it on my spam-trap wiki.
- If you don't need a public wiki, though, you should just allow only those users who can provide legitimate content.
- Otherwise, check out Extension:ConfirmEdit, especially Extension:QuestyCaptcha since it will require contributors to your wiki to be familiar with things particular to your wiki. ☠MarkAHershberger☢(talk)☣ 15:15, 10 June 2013 (UTC)
WTF - MediaWiki creates a thumbnail multiple times?!
Hi guys,
during one single request, MediaWiki tries to create one and the same thumbnail multiple times.
Start request GET /Main_Page ... Pulling file metadata from cache key wiki:file:8866e45e917553a7dbb1198218cfa928 MimeMagic::__construct: loading mime types from /www/wiki/includes/mime.types MimeMagic::__construct: loading mime info from /www/wiki/includes/mime.info File::transform: Doing stat for mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png does not exist. BitmapHandler::doTransform: creating 450x151 thumbnail at /tmp//transform_64c4649d3b12-1.png using scaler im BitmapHandler::doTransform: returning unscaled image File::transform: Doing stat for mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png BitmapHandler::doTransform: creating 450x151 thumbnail at /tmp//transform_40e462b65414-1.png using scaler im BitmapHandler::doTransform: returning unscaled image File::transform: Doing stat for mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png BitmapHandler::doTransform: creating 450x151 thumbnail at /tmp//transform_341bb62f6727-1.png using scaler im BitmapHandler::doTransform: returning unscaled image
For this image, it does not make sense to create a thumbnail with 450x151 pixels, as that is exactly the size of the original. In so far I think it is correct, that MediaWiki says it returns the original image.
But why is it doing that three times in a row? 88.130.106.99 (talk) 01:03, 11 June 2013 (UTC)
- If this happens on a new MediaWiki installation without extensions enabled, please feel free to report it as a bug. See How to report a bug Ciencia Al Poder (talk) 09:46, 13 June 2013 (UTC)
- Issue 49528 created.
- I have now stripped down the situation needed to reproduce this weird behaviour:
- This is the wiki text, which I am using:
- [[File:Image.png]]
- Image.png has a size of 450x151 pixels and in the page it is given out in original size. So the image should not be thumbnailed at all - and especially not to 450x151, which is the original size.
- The wiki is
- without any extension
- with the vector skin
- The problem exists
- no matter, if a user is logged in or not.
- no matter, if I set $wgUseImageMagick = true; (so that ImageMagick is used for scaling) or $wgUseImageMagick = false; (so that GD is used)
- The error does not happen, when the image should actually really be made smaller: Then the thumbnail actually is created and is used on later hits. 88.130.81.44 14:07, 13 June 2013 (UTC)
What does this message mean?
Hi!
During a page request I sometimes get this message:
"LoadBalancer::reuseConnection: this connection was not opened as a foreign connection"
It is not there on every page load, but sometimes. When it is there, then it appears several times in a row.
In my case reuseConnection() always ends up with this message; the following code is never executed.
What does that tell me? Does that mean that I could or should improve something? 88.130.106.99 (talk) 01:32, 11 June 2013 (UTC)
- According to the code https://github.com/wikimedia/mediawiki-core/blob/master/includes/db/LoadBalancer.php#L522
/**
* This can happen in code like:
* foreach ( $dbs as $db ) {
* $conn = $lb->getConnection( DB_SLAVE, array(), $db );
* ...
* $lb->reuseConnection( $conn );
* }
* When a connection to the local DB is opened in this way, reuseConnection()
* should be ignored
*/
Ciencia Al Poder (talk) 09:48, 13 June 2013 (UTC)- Ok, so this should not happen. Issue 49529 created. 88.130.118.49 14:24, 13 June 2013 (UTC)
InfoBox -- problems installing Scribunto
Hello,
I have read several pages about Info box's and it was working on my last install of MediaWiki and had to be removed due to a MASSIVE spambot attack.
I have imported Template:Infobox from Wikipedia, and all I get is: Script error: No such module "Infobox". I tried to install Lua/Scribunto and all I got was several errors.
The theme Template is: http://wiki.myfallen.net/index.php?title=Template:Infobox
The pages having the issue is: http://wiki.myfallen.net/index.php?title=Community_Managers and many.. many more.
We are using MediaWiki 1.21.1
Thanks for your potential help.
Kris. NoMansLand (talk) 11:07, 11 June 2013 (UTC)
- I just added your wiki to WikiApiary: http://wikiapiary.com/wiki/MyFallen_Wiki
- Are there any errors in your error log? I haven't worked with Scribunto yet, but I wonder if turning on the debug log would help. ☠MarkAHershberger☢(talk)☣ 15:18, 11 June 2013 (UTC)
- Error log completely clean it just comes up with in a red box "Execution Error" NoMansLand (talk) 14:07, 12 June 2013 (UTC)
- From Scribunto: [6d3bfde6] 2013-06-13 13:48:15: Fatal exception of type ScribuntoException NoMansLand (talk) 13:50, 13 June 2013 (UTC)
- You want to import a few modules that can be exported out of wikipedia.
- Module:Infobox
- Module:InfoboxImage
- Module:HtmlBuilder
- Other Module:Infobox[whatever] modules you might need.
- You'll also need to change all instances of "text/plain" to "CONTENT_FORMAT_TEXT" in the exported file for some reason.
- And that should do it! Dotvezz (talk) 15:06, 28 June 2013 (UTC)
- Any update on this error? I seem to have the same. Followed the export/import of all templates, changed the two text/plain occurances, added extension scribunto, and get the fatal exception of type ScribuntoException error, similar as described above. Rwos (talk) 13:50, 22 July 2013 (UTC)
- Clicking on the error should give you a message. What do you see? ☠MarkAHershberger☢(talk)☣ 16:32, 22 July 2013 (UTC)
- Hmmm, can't seem to click on it (Scibunto v 1.21), MediaWiki 1.21.1. Screen only shows: "Internal Error" [180e4cd3] 2013-07-23 12:06:39: Fatal exception of type ScribuntoException Rwos (talk) 12:13, 23 July 2013 (UTC)
- Is your wiki public? Could you provide a URL?
- Also, try adding the following two lines to your LocalSettings.php file:
error_reporting = E_ALL | E_STRICT
display_errors = On
- That may give you a better hint. ☠MarkAHershberger☢(talk)☣ 14:56, 23 July 2013 (UTC)
- Using my site as a startup site for non-encyclopedic salinity related information: wiki.agwaterconsult.com. A first attempt to add the two suggested lines to the LocalSetting.php file results in an internal server error. I'll try to find out what I did wrong.
- Update: found the debug options on Manual:How_to_debug. I used the error_reporting( -1 );
- ini_set( 'display_errors', 1 ); commands in the LocalSetting file. Wiki pages load without additional error messages. Infobox template still shows an error on the page.
- Then tried to use the three debugging options (ShowExceptionDetails etc) mentioned in the the same Manual section. Result an "internal server error" and no loading of wiki page. I'll have to review the server settings - will get back on this. Rwos (talk) 15:35, 23 July 2013 (UTC)
- sorry, my fault. I copy-pasted the wrong lines from How to Debug. Glad you found the fix.
- Do you have "$wgShowExceptionDetails = true;" at the end of your LocalSettings.php? That should show plenty of errors, I think. ☠MarkAHershberger☢(talk)☣ 17:12, 23 July 2013 (UTC)
- Hmmm, reason that the LocalSettings debug options not worked was that I forgot the semi-colon at the end of the sentence. It helps to be awake when doing this.
- Now I have an output with a long list of backtrace and php steps. I prefer not to post the whole error list here, but some lines of interest are:
- top of the page, within the wiki form:
Lua error: Internal error: The interpreter exited with status 126.
- Followed by a backtrace, of which the first lines are
- 0 [*server name*]//engines/LuaStandalone/LuaStandaloneEngine.php(454): ScribuntoEngineBase->newException('scribunto-luast...', Array)
- 1 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(324): Scribunto_LuaStandaloneInterpreter->checkStatus()
- 2 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(287): Scribunto_LuaStandaloneInterpreter->receiveMessage()
- 3 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(213): Scribunto_LuaStandaloneInterpreter->dispatch(Array)
- 4 [*server name*]/[*folder*]/engines/LuaCommon/LuaCommon.php(114): Scribunto_LuaStandaloneInterpreter->registerLibrary('mw_interface', Array)
- 5 [*server name*]/[*folder*]/engines/LuaCommon/LuaCommon.php(89): Scribunto_LuaEngine->registerInterface('mw.lua', Array, Array)
- 6 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
- [*folder*] above is [wiki/mediawiki-1.21.1/extensions/Scribunto]
- then, in the php steps,
[...]
Unstubbing $wgAuth on call of $wgAuth::getCanonicalName from User::getCanonicalName
User: cache miss for user 1
[...]
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
Title::getRestrictionTypes: applicable restrictions to User:*Xxxxx* are {edit,move}
Class PEAR_Error not found; skipped loading
[...]
- Would the problem be described by the 'getContext called and $mContext is null' ? Or is the missing 'PEAR_Error not found; skipped loading' the main issue ?
- Update 1: 'PEAR_Error not found' also appears in the debug list on a page where no infobox is called. Is probably unrelated to the Scribunto error.
- Update 2: Also copied the Template:Reflist to my wiki (using export/import functions), while Scribunto extension was disabled in the LocalSettings.php. Import of the xml file was incomplete, with a message "Import failed: No handler for model 'Scribunto' registered in $wgContentHandlers" at the bottom of the template import list. This may be a different issue altogether, and one of the search hits refered to this bug. When Scribunto extension is enabled, I am having the same error message as for the Template:infobox issue. Rwos (talk) 09:37, 25 July 2013 (UTC)
- This looks like the same problem in this thread. Make sure the lua binaries are marked as executable. If you still have problems post a follow up here. ☠MarkAHershberger☢(talk)☣ 14:18, 25 July 2013 (UTC)
- Thanks for the help so far. I was getting excited about the relatively simple solution to make the lua binaries executable. Changed the mod for lua5_1_5_linux_32_generic/lua from 0644 to 0755 (as well as for linux_64_generic), but that did not solve the problem. Checked the folder settings, all 0755. Server is hosted by ipower, runs Debian. Is contacting the provider the next step?
- P.S. I noticed the Apiary visiting in the access log. Thanks for that - I updated the info there, and footered it in. Rwos (talk) 15:31, 25 July 2013 (UTC)
- I got frustrated yesterday with a the lack of feedback from Scribunto yesterday and filed a few bugs. One of the things I noticed was that the error output of lua was completely dropped.
- In your LocalSettings, after the bit to include Scribunto, put the following:
$wgScribuntoEngineConf['luastandalone']['errorFile'] = '/tmp/lua-error.log'
- and try again. See if anything is recorded in /tmp/lua-error.log. ☠MarkAHershberger☢(talk)☣ 17:05, 25 July 2013 (UTC)
- I had to use a double quote around the filename for it to work properly. Error messages for page calls where scribunto/lua is called end up with a "permission denied" (using the linux-32 version of Lua). That would be the same as the error 126 issue. I'll check with the server host to see if there are settings that I am overlooking.
- I read the exchange on the bug-report. Clearly a difference of opinion on error-logging. I'll remain neutral - I can't criticize people's hard work either way, I'll just appreciate it all.
- Will report back here about progress on the server host response. Rwos (talk) 22:22, 25 July 2013 (UTC)
- This looks like the same problem in this thread. Make sure the lua binaries are marked as executable. If you still have problems post a follow up here. ☠MarkAHershberger☢(talk)☣ 14:18, 25 July 2013 (UTC)
- Hmmm, can't seem to click on it (Scibunto v 1.21), MediaWiki 1.21.1. Screen only shows: "Internal Error" [180e4cd3] 2013-07-23 12:06:39: Fatal exception of type ScribuntoException Rwos (talk) 12:13, 23 July 2013 (UTC)
- Clicking on the error should give you a message. What do you see? ☠MarkAHershberger☢(talk)☣ 16:32, 22 July 2013 (UTC)
- Any update on this error? I seem to have the same. Followed the export/import of all templates, changed the two text/plain occurances, added extension scribunto, and get the fatal exception of type ScribuntoException error, similar as described above. Rwos (talk) 13:50, 22 July 2013 (UTC)
- You want to import a few modules that can be exported out of wikipedia.
- From Scribunto: [6d3bfde6] 2013-06-13 13:48:15: Fatal exception of type ScribuntoException NoMansLand (talk) 13:50, 13 June 2013 (UTC)
- Error log completely clean it just comes up with in a red box "Execution Error" NoMansLand (talk) 14:07, 12 June 2013 (UTC)
[RESOLVED] wikibase
hi how can I create wb_id_counters because I carnt find the sql script in the zip file and when I update it through mediawiki it doesent create the table 86.178.74.208 (talk) 19:32, 11 June 2013 (UTC)
Wikia?
What does wikia use to make their site? They use mediawiki but it allows users to make sub domains and wikis, is their an extension for that? 216.18.221.140 (talk) 19:50, 11 June 2013 (UTC)
- Wikia has customized their installation quite a bit. There isn't anything built-into MW for what you want. Debian developers do have scripts for managing wiki farms -- that code may help you. Other people have written code to control wiki farms. If you're interested in seeing what they have, I would recommend posting on wikitech-l. ☠MarkAHershberger☢(talk)☣ 20:14, 11 June 2013 (UTC)
Mediawiki 1.16.0 -Looking for tools that would give me by user the dates they logged in and also the number of wikis they created. We have 270 companies.
I am looking for a utility that I can run for the 270 companies / users that now utilize Mediawiki. We are running version 1.16.0 and MySQL 5.1.51 Community version. Would like to know by user the dates they logged in and also the number of wikis they created Acarizona (talk) 19:52, 11 June 2013 (UTC)
- I don't think login information is kept anywhere (but I could be wrong), and unless you mean the number of wiki pages created, you'll have to look at your own code since MediaWiki doesn't have any built-in method for managing wiki farms.
- For login information, I would look at the pages modified and extrapolate from that. ☠MarkAHershberger☢(talk)☣ 20:10, 11 June 2013 (UTC)
- Do you have any table names that I could query to get this information re: pages modified, etc... 67.132.9.201 19:49, 12 June 2013 (UTC)
- I would look for a way to do this in code. For example, look at the Special:Contributions which is handled in includes/specials/SpecialContributions.php. ☠MarkAHershberger☢(talk)☣ 01:11, 3 July 2013 (UTC)
- The user table has a field user_touched which might be useful to you.
- To get the info you want, the easiest way (if its just a one-off thing) would be to read up on SQL, and do a query on the revision table. Bawolff (talk) 05:58, 3 July 2013 (UTC)
- I would look for a way to do this in code. For example, look at the Special:Contributions which is handled in includes/specials/SpecialContributions.php. ☠MarkAHershberger☢(talk)☣ 01:11, 3 July 2013 (UTC)
- Do you have any table names that I could query to get this information re: pages modified, etc... 67.132.9.201 19:49, 12 June 2013 (UTC)
New Login
I saw that there is a new design for the login at mediawiki.org. I would like to use the new design for my wikis too. Where can I activate it? 92.231.26.91 (talk) 20:36, 11 June 2013 (UTC)
- This $wgUseVFormUserLogin = true; and this $wgUseVFormCreateAccount = true; will bring you the new login page just add those 2 settings to localsettings.php 5.66.159.208 07:18, 12 June 2013 (UTC)
- Note that you need the not-yet-released 1.22 or git to use $wgUseVFormUserLogin. ☠MarkAHershberger☢(talk)☣ 08:30, 12 June 2013 (UTC)
[RESOLVED] Unable to upload pictures (SLES 11)
I am using v 1.20.3 against Apache2. I am using a MySQL db back end.
When I use the [[File:File.jpg]] code, it will create the link and then I can click on it. I try to upload a picture and I always get the following error:
The file you uploaded seems to be empty. This might be due to a typo in the filename. Please check whether you really want to upload this file.
I have increased the limits in PHP to allow for larger uploads, even though the picture I am trying to upload is less than 100k.
http://training.gwava.com/index.php/QMS
From that page, you will see that you can click the File link. You will not be able to try and upload the image as the system is locked down so only the admin can do anything.
Program versions: apache2-mod_php53-5.3.8-0.19.6 apache2-2.2.12-1.28.1 MySQL-client-5.5.28-1.sles11 MySQL-server-5.5.28-1.sles11 216.83.139.1 (talk) 21:14, 11 June 2013 (UTC)
- That error message happens when you don't select a file to upload from your computer. It seems like something is preventing PHP from receiving the uploaded file.
- I'd recommend you to enable a debug log (see Manual:How to debug) and perform a file upload. Check what paths and directories it's trying to access/write on and check for file permission issues or not-existing directories for any misconfiguration. Ciencia Al Poder (talk) 09:39, 12 June 2013 (UTC)
- This is the error that is logged on the page:
- Notice: Undefined index: tmp_name in /srv/www/htdocs/includes/WebRequest.php on line 1188 Notice: Undefined index: size in /srv/www/htdocs/includes/WebRequest.php on line 1175 Notice: Undefined index: error in /srv/www/htdocs/includes/WebRequest.php on line 1202 216.83.139.1 17:53, 12 June 2013 (UTC)
19:57, 26 June 2013 (UTC)
- Looks like a problem with PHP 5.3.8 under SuSE Enterprise Linux 11 .
- See also Project:Support desk/Flow/2012/08#h-[RESOLVED]_Image_upload_not_working_after_upgrade_(SLES_11)-2012-08-09T11:39:00.000Z. Ciencia Al Poder (talk) 10:32, 13 September 2013 (UTC)
Passthru()
Trying to install MediaWiki 1.19.7...
Can't pass the first screen (Language selection) of the Configuration Script because of PHP error:
PHP Warning: passthru() [<a href='function.passthru'>function.passthru</a>]: Unable to fork [""C:\Windows\system32\convert.exe" -version"] in E:\<hidden>\GlobalFunctions.php on line 2857
My host doesn't allow exec(), passthru() or system().
How do I install a newer MediaWiki? I know some old versions do work (eg. 1.8.5).
Thanks! 189.110.252.135 (talk) 05:08, 12 June 2013 (UTC)
- This should work. I've opened a bug for you: https://bugzilla.wikimedia.org/show_bug.cgi?id=49472 ☠MarkAHershberger☢(talk)☣ 08:27, 12 June 2013 (UTC)
- Thanks, nvm it was a bug...
- Hope they fix it in 1.19 (lts) branch too!
- Perhaps, do you know the newest version that won't fails without passthru?
- Can I use the LocalSettings.php from an older version? 189.110.237.8 17:38, 12 June 2013 (UTC)
- You should be able to upgrade using an older LocalSettings.php.
- I haven't looked at this in depth, so I couldn't tell you which versions work and which don't. ☠MarkAHershberger☢(talk)☣ 17:57, 12 June 2013 (UTC)
- Looks like 1.16.5 is the latest, it doesn't have the language selection screen; 1.17 and later seems to have changed the config script and its screens. 189.110.237.8 18:39, 12 June 2013 (UTC)
- Does 1.17 fail with the passthru error? ☠MarkAHershberger☢(talk)☣ 18:40, 12 June 2013 (UTC)
- Yes, 1.17 and later. (Tested with final releases of each branch, 1.17.5 and so on) 189.110.237.8 19:11, 12 June 2013 (UTC)
- Can you install with 1.16 and then upgrade? ☠MarkAHershberger☢(talk)☣ 19:16, 12 June 2013 (UTC)
- Will try 189.110.237.8 19:17, 12 June 2013 (UTC)
- Can't. Same passthru error when reach page /mw-config/?page=Welcome 189.110.237.8 19:44, 12 June 2013 (UTC)
- Is this on the upgrade to 1.19? You'll need to modify the source. Open includes/Installer/Installer.php and look for a line like this:
$convert = self::locateExecutableInDefaultPaths( $names, array( '$1 -version', 'ImageMagick' ) );
- and change it to
$convert = null;
- After that, your installer should run. ☠MarkAHershberger☢(talk)☣ 21:31, 12 June 2013 (UTC)
- Excellent! It fixed the installation issue!
- I'm now, however, getting another error. It happens sporadically when opening one page or other, most often the main wiki page, but it seems to differ from browser to browser.
- The error has 2 variants:
PHP Warning: mcrypt_create_iv() [<a href='function.mcrypt-create-iv'>function.mcrypt-create-iv</a>]:
Cannot open source device in E:\<hidden>\includes\CryptRand.php on line 285
- and
PHP Fatal error: mcrypt_create_iv() [<a href='function.mcrypt-create-iv'>function.mcrypt-create-iv</a>]:
Could not gather sufficient random data in E:\<hidden>\includes\CryptRand.php on line 285
189.110.186.176 04:22, 13 June 2013 (UTC)- Tried a clean install (1.19.7) but that error is also forbidding the end of the configuration.
- Some backgrounds:
- - When installing using MySQL/Binary Tables, my host times out and some db tables are not created, and after a page reload 1.19 gives some errors and don't finish. When installing 1.16, the installer seems to have created the missing tables in a second retry (after the timeout), however the admin account wasn't created, but I could do it manually as explained in one FAQ.
- - When installing using MySQL/UTF-8, 1.19 gives timeout too, but it seems to create all tables, however, can't finish install because of the mcrypt error. 189.110.186.176 05:05, 13 June 2013 (UTC)
- Easiest fix for the mcrypt error is edit includes/CryptRand.php. Look for this line:
if ( function_exists( 'mcrypt_create_iv' ) ) {
- and change it to
if ( false ) {
- That should let you continue. ☠MarkAHershberger☢(talk)☣ 15:35, 13 June 2013 (UTC)
- Also, see this bug I opened regarding your mysql installation problem.
- What are the errors it prints out on reload? ☠MarkAHershberger☢(talk)☣ 15:48, 13 June 2013 (UTC)
- Tried another install of 1.19.7 using another table prefix inside same db...
- (ENGINE=InnoDB, DEFAULT CHARSET=binary)
- This time it didn't give error after the timeout (
php-cgi.exe - The FastCGI process exceeded configured activity timeout
) and finished without errors. - But can't browse the site, with error:
A database error has occurred. Did you forget to run maintenance/update.php after upgrading?
See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT lc_value FROM `ond_l10n_cache` WHERE lc_lang = 'pt-br' AND lc_key = 'deps' LIMIT 1
Function: LCStore_DB::get
Error: 1146 Table '<db name>.ond_l10n_cache' doesn't exist (<the crap db server>)
- My solution is to use MyISAM as engine.
- (ENGINE=MyISAM, DEFAULT CHARSET=binary)
- It doesn't timeout or give errors during install. It creates more tables in DB (this indicates that after the timeout using InnoDB, the installer did not create all tables it should and also didn't inform about it).
- Yesterday, I installed a 1.16.5 also using MyISAM, without a single error, not even needing to modify files. How can I trust 1.19 as I don't know what other error is hidden out there? 189.110.243.117 21:14, 13 June 2013 (UTC)
- Could you add the information to the bug I created? ☠MarkAHershberger☢(talk)☣ 01:53, 14 June 2013 (UTC)
- Sorry, I'd need to register an account (I don't want another one right now).
- I also don't want to become a tester for MediaWiki. Especially because it would be a hard time testing it in this uncommon server configuration that I'm using just for a work. I hope it works better for better servers.
- Please add the info you think is needed there, thanks! You look like a great moderator or whatever! 189.110.213.161 03:51, 14 June 2013 (UTC)
- @Chad H.
MyISAM is never a solution, just another problem.
If InnoDB install is broken, then use Sqlite is a far better solution. But I'm curious why it doesn't work for InnoDB.
- I don't know much about MySQL and those engines (why it has more than one?), but in these tests using InnoDB gives timeout during creation of tables. Here is it saved as MHT: https://www.dropbox.com/s/t3vy3cbow6eq32r/IIS%207.0%20Detailed%20Error%20-%20500.0%20-%20Internal%20Server%20Error.mht
- Why is MyISAM engine so bad? And why SQLite is better than MySQL with MyISAM?
- Using SQLite, 1.19 also installed fine (with the modified files, ofc). Rikkrdo (talk) 01:02, 15 June 2013 (UTC)
- Could you add the information to the bug I created? ☠MarkAHershberger☢(talk)☣ 01:53, 14 June 2013 (UTC)
- Can you install with 1.16 and then upgrade? ☠MarkAHershberger☢(talk)☣ 19:16, 12 June 2013 (UTC)
- Yes, 1.17 and later. (Tested with final releases of each branch, 1.17.5 and so on) 189.110.237.8 19:11, 12 June 2013 (UTC)
- Does 1.17 fail with the passthru error? ☠MarkAHershberger☢(talk)☣ 18:40, 12 June 2013 (UTC)
- Looks like 1.16.5 is the latest, it doesn't have the language selection screen; 1.17 and later seems to have changed the config script and its screens. 189.110.237.8 18:39, 12 June 2013 (UTC)
Problem updating 1.21
Hi,
this is the first time I tried to upgrade to MediaWiki. My average wiki page is this, here ptrete find at what point are: http://www.hizlog.com/support/documentation/
I took the new file and I change them with the old version, then I tried to run the command http://www.hizlog.com/wiki/maintenance/update.php from browsare but returns a 403 error.
I tried to read your guide but not so good to fully understand it, so I ask you kindly if you wrote the steps I have to do. 82.49.43.180 (talk) 08:31, 12 June 2013 (UTC)
- Use http://www.hizlog.com/wiki/mw-config/ to do a web upgrade. ☠MarkAHershberger☢(talk)☣ 08:33, 12 June 2013 (UTC)
- I solved thanks a lot, so just go to this link to update everything? 82.49.43.180 09:26, 12 June 2013 (UTC)
- Yes. See Manual:Upgrading#Web updater for more info. Ciencia Al Poder (talk) 09:34, 12 June 2013 (UTC)
- Out of curiosity, I was checking the version of MediaWiki, the LocalSettings.php file I found this:
- This file was automatically generated by the MediaWiki 1.20.3
- He must not appear 1.2.1, where I went wrong? 82.49.43.180 11:50, 12 June 2013 (UTC)
- No, that is not a problem. This number is put there, when the LocalSettings.php file is for the first time created. It is not updated, when you do an update. You can just remove the number from that comment.
- You can always see the version of MediaWiki, which you are using, on your Special:Version page. 88.130.121.45 12:33, 12 June 2013 (UTC)
- Out of curiosity, I was checking the version of MediaWiki, the LocalSettings.php file I found this:
- Yes. See Manual:Upgrading#Web updater for more info. Ciencia Al Poder (talk) 09:34, 12 June 2013 (UTC)
- I solved thanks a lot, so just go to this link to update everything? 82.49.43.180 09:26, 12 June 2013 (UTC)
[RESOLVED] Problem uploading files: Could not create directory "mwstore://local-backend/local-public/5/54".
RESOLVED | |
7 year old thread |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I upgraded our wiki from 1.16 to 1.21.0rc5.
I can no longer upload files. I get the error: Could not create directory "mwstore://local-backend/local-public/5/54".
Internal errors: Error storing file in '/tmp/php2k23Xw': Could not create directory "mwstore://local-backend/local-temp/c/ca". Backtrace: #0 /var/www/html/wiki/includes/upload/UploadBase.php(836): UploadStash->stashFile('/tmp/php2k23Xw', 'file') #1 /var/www/html/wiki/includes/upload/UploadBase.php(849): UploadBase->stashFile() #2 /var/www/html/wiki/includes/upload/UploadBase.php(858): UploadBase->stashFileGetKey() #3 /var/www/html/wiki/includes/specials/SpecialUpload.php(332): UploadBase->stashSession() #4 /var/www/html/wiki/includes/specials/SpecialUpload.php(425): SpecialUpload->showUploadWarning(Array) #5 /var/www/html/wiki/includes/specials/SpecialUpload.php(172): SpecialUpload->processUpload() #6 /var/www/html/wiki/includes/SpecialPage.php(613): SpecialUpload->execute(NULL) #7 /var/www/html/wiki/includes/SpecialPageFactory.php(487): SpecialPage->run(NULL) #8 /var/www/html/wiki/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) #9 /var/www/html/wiki/includes/Wiki.php(565): MediaWiki->performRequest() #10 /var/www/html/wiki/includes/Wiki.php(458): MediaWiki->main() #11 /var/www/html/wiki/index.php(59): MediaWiki->run() #12 {main}
I have tried changing ownership and permissions on all files and sub-directories and I just cannot figure out what I am doing wrong. any help would be most appreciated. Below is my installed software.
- Installed software
- Product Version
- MediaWiki 1.21.0rc5
- PHP 5.3.8 (apache2handler)
- MySQL 5.1.60
- Entry point URLs
- Entry point URL
- Article path /wiki/index.php/$1
- Script path /wiki
- index.php /wiki/index.php
- api.php /wiki/api.php
- load.php /wiki/load.php 192.12.119.2 (talk) 13:21, 12 June 2013 (UTC)
- The second error is especially interesting. Are you using shared hosting? What are the permissions on your images directory? What are the permissions on /tmp? ☠MarkAHershberger☢(talk)☣ 15:07, 12 June 2013 (UTC)
- Hello,
- I am not using shared hosting.
- Root owns both /tmp and /var/www/html/wiki/ (and all its subdirectories including images).
- The permissions are 777 across the board.
- Thanks. 192.12.119.2 16:05, 12 June 2013 (UTC)
- also, saw that you aren't using the latest mw... can you d/l the latest and try again? ☠MarkAHershberger☢(talk)☣ 17:58, 12 June 2013 (UTC)
- I will give it a try. 192.12.119.2 18:16, 12 June 2013 (UTC)
- Mark,
- I upgraded to the latest MW(see info below), and although I no longer get the Internal error with a backtrace, I still get:
- Could not create directory "mwstore://local-backend/local-public/5/54".
- For the life of me, I just can't figure this one out.
- Installed software
- Product Version
- MediaWiki 1.21.1
- PHP 5.3.8 (apache2handler)
- MySQL 5.1.60
- Entry point URLs
- Entry point URL
- Article path /mediawiki-1.21.1/index.php/$1
- Script path /mediawiki-1.21.1
- index.php /mediawiki-1.21.1/index.php
- api.php /mediawiki-1.21.1/api.php
- load.php /mediawiki-1.21.1/load.php
- Any ideas for me?
- Thanks,
- Phil 192.12.119.2 13:18, 13 June 2013 (UTC)
- Hvaing the same issue. Looking for solution... Ektip (talk) 08:15, 15 June 2013 (UTC)
- do this:
sudo chmod -R 777 /var/www/yourwiki.com/images
Ektip (talk) 08:20, 15 June 2013 (UTC)- I fixed it with
sudo chmod -R 774 /var/www/yourwiki.com/images
- 7 - user
- 7 - group
- 4 - others - read only was enough 80.240.226.13 12:18, 4 September 2013 (UTC)
- I still got problem while uploading files.
- Error message is:
Could not create directory "mwstore://local-backend/local-public/f/fd".
- Permissions are set 777 to whole wiki directory and subdirectories, php.ini is configured to allow uploads, LocalSettings.php also allows file uploads.
- While page was on localhost I had no problems with uploads.
- Also no thumbnails for earlier added photos are shown. Message is
Error creating thumbnail: File seems to be missing
. But file is shown correctly when I use no "thumb" settings for image, for example, by default is: File:Vispinf.png|right|thumb|120 px|Vispārēja informācija
<--not shownFile:Vispinf.png|right|Vispārēja informācija
<--shown correctly- MediaWiki version 1.21.2.
- Also installed extension for image pop up to original size from preview. Keramik (talk) 11:05, 18 December 2013 (UTC)
- Any ideas why it is so? Keramik (talk) 14:16, 2 January 2014 (UTC)
- If you have enabled the PHP directive open_basedir it must include both the destination upload folder in your MediaWiki installation ("{$IP}/images") and the 'upload_tmp_dir' folder (default system folder if not set). Ciencia Al Poder (talk) 11:19, 3 January 2014 (UTC)
- It's not enabeled. 195.234.144.4 08:13, 16 January 2014 (UTC)
- Maybe it happends because I'm hosting mine web page on Virtualhost? 195.234.144.4 11:41, 17 January 2014 (UTC)
- 195.234.144.4, are you Keramik? If not, please open a new thread since we don't know what solutions described here have you tested so far.
- And no, Virtual Host can't cause any problems. Ciencia Al Poder (talk) 17:10, 17 January 2014 (UTC)
- Yes, it was mine post about VirtualHost.
- I'll ask tech guys to check access rights on FTP, because I can't see no other reason, why it is impossible to create thumbnails and upload images on my wiki.
- By the way, maybe it is good idea to update wiki? Keramik (talk) 07:27, 20 January 2014 (UTC)
- You should upgrade to the latest 1.21 release to be protected against security/stability bugs that have been fixed, but that probably wouldn't make uploads work.
- You should try Setting up a debug log file to see the full path it's trying to access and see if they are really present in the filesystem and writable. Set it up, upload a file or edit a page changing the size of a thumb, and disable the log again, since it degrades performance. Ciencia Al Poder (talk) 10:31, 20 January 2014 (UTC)
- I've got 1.12.2 already, thanks for advice. I'll try to set up log file. Keramik (talk) 11:29, 20 January 2014 (UTC)
- I made mistake in previous post. I've got 1.21.2 version :) Keramik (talk) 11:29, 20 January 2014 (UTC)
- Hello~ I'm not good at english. But I had alike problem, such as "Could not create directory "mwstore://local-backend/local-public/....... ", and also have solved by myself. If you are able, do it. :)
- First of all, I checked my "chown" in mediawiki/images, and found that owner+group was wrong. Mainly, php engine is using mediawiki as group name - "www-data".
- So, I changed like this. "mediawiki> sudo chown -R ubuntu:www-data images". And perfectly, problem has solved.
- Good luck to you. :) 175.209.166.190 08:52, 23 January 2014 (UTC)
- agreed, simply a permissions issue.
- browse to your mediawiki folder (i.e /var/www/mediawiki)
- sudo chown -R www-data images/
- done 114.34.79.165 08:00, 25 February 2014 (UTC)
- If you have enabled the PHP directive open_basedir it must include both the destination upload folder in your MediaWiki installation ("{$IP}/images") and the 'upload_tmp_dir' folder (default system folder if not set). Ciencia Al Poder (talk) 11:19, 3 January 2014 (UTC)
- Any ideas why it is so? Keramik (talk) 14:16, 2 January 2014 (UTC)
- I had the same issue with 1.35 once upgrade was done
- Now with permissions set to 774 that worked.
- Thanks. Roberto ge83 (talk) 18:26, 12 October 2020 (UTC)
- I will give it a try. 192.12.119.2 18:16, 12 June 2013 (UTC)
- also, saw that you aren't using the latest mw... can you d/l the latest and try again? ☠MarkAHershberger☢(talk)☣ 17:58, 12 June 2013 (UTC)
- I think the following will be useful for that type of error.
- If you use Vagrant and your directory is a Shared Folder then Vagrant will reset the access rights every time you try to change it. In this case you have to use
mount_optons
in your Vagrantfile: config.vm.synced_folder "../www", "/var/www/html", mount_options: ["dmode=777", "fmode=777"]
- this way your www directory will have 777 rights and the web server will be able to write to it. See also related stackoverflow question. Katkov Yury (talk) 09:07, 20 June 2014 (UTC)
Hypergrove (talk) 07:47, 20 August 2014 (UTC) Hypergrove (talk) 07:47, 20 August 2014 (UTC)
wikibase extension
hi how do I add links to my website because when I create item and then click add item and then it says add the site id and site link how do I add my site link because it is only letting me use the en Wikipedia site link not mine I would like to know how can I add my site Id 5.66.159.208 (talk) 13:24, 12 June 2013 (UTC)
- It only allows me to use enwiki as the database which means it is using wikiepdia database I would like it to use mine how do I do that 90.219.95.119 18:20, 13 June 2013 (UTC)
Extension:MaintenanceShell
hi I seem to have problem with Extension:MaintenanceShell because it let me choose scrpt name and put the comman line but when I run it it keeps saying requsted fail my website is at http://wikisaur.tk 5.66.159.208 (talk) 18:14, 12 June 2013 (UTC)
- There are security problems with that extension. If you have shell access you shouldn't use it.
- What does your error log say? ☠MarkAHershberger☢(talk)☣ 18:42, 12 June 2013 (UTC)
- error log says nothing and I doint have access to ssh 5.66.159.208 18:44, 12 June 2013 (UTC)
- Add
error_reporting( -1 );
ini_set( 'display_errors', 1 );
- to the top of your LocalSettings.php file and try to reproduce the error. Copy and paste any messages here. ☠MarkAHershberger☢(talk)☣ 18:47, 12 June 2013 (UTC)
- ok 5.66.159.208 18:49, 12 June 2013 (UTC)
- where abouts do I put error_reporting( -1 );
ini_set( 'display_errors', 1 );
at the top
5.66.159.208 18:50, 12 June 2013 (UTC)- do I put it before <?php or after 5.66.159.208 18:52, 12 June 2013 (UTC)
- The top of the file has a line that looks like
<?php
- Add it after that so you see
- ☠MarkAHershberger☢(talk)☣ 18:52, 12 June 2013 (UTC)
<?php error_reporting( -1 ); ini_set( 'display_errors', 1 ); ...
- it doesent show any errors at the top 5.66.159.208 19:03, 12 June 2013 (UTC)
- If that doesn't show any errors, and your webserver's error log doesn't show any errors, I don't know how I could help without access to your machine. If you want me to do that, email ma. ☠MarkAHershberger☢(talk)☣ 19:15, 12 June 2013 (UTC)
- ok 86.178.74.208 19:34, 12 June 2013 (UTC)
- my website is hosted and is not on my machine the website is http://wikisaur.tk 86.171.33.75 15:06, 15 June 2013 (UTC)
- ok 86.178.74.208 19:34, 12 June 2013 (UTC)
- If that doesn't show any errors, and your webserver's error log doesn't show any errors, I don't know how I could help without access to your machine. If you want me to do that, email ma. ☠MarkAHershberger☢(talk)☣ 19:15, 12 June 2013 (UTC)
- it doesent show any errors at the top 5.66.159.208 19:03, 12 June 2013 (UTC)
- ok 5.66.159.208 18:49, 12 June 2013 (UTC)
- error log says nothing and I doint have access to ssh 5.66.159.208 18:44, 12 June 2013 (UTC)
Display not the "full path" of Pages in Categories
Hello,
i've got several subpages in categories, i.e.
Category1/page1 Category1/page2 Category2/page1 Category2/page2
(how) can I configure, that only the 'last' pagename will be shown in the category-overview?
I mean: when I navigate to the category "Category1", I will only read "page1" and "page2", not Category1/page1.
The same thing with the Page-Title ...
Other way to explain:
I want multiple pages with the same name which only differs in the full path to the page.
(How) is that possible?
Thanks so far!
Wiki Bots
Hey I know this question have been asked many times. But I could not seem to find any page answering the question: 1. How to create a Wiki Bot. 2. How to program them.(e.g: language/guide)
All the page on mediawki and wikipedia only explain the purpose of creating a bot, and briefly explains how they work.
but none of them are helpful in answering my question.
what I want to do is simple: 1. create a wiki bot 2. bot look around for a word, and change it to another word.
any help will be appreciated. 123.3.231.194 (talk) 05:11, 13 June 2013 (UTC)
- bump Lnasterio (talk) 01:01, 15 June 2013 (UTC)
- The first place to look is the API. Through the API you can query pages and modify them. What programming languages do you know? What language did you plan on writing this bot in?
- If you're comfortable with Python, for instance, you should look at Pywikipediabot. ☠MarkAHershberger☢(talk)☣ 15:44, 15 June 2013 (UTC)
AdvancedMeta: Warning - LocalisationCache.php on line 485
Having warnings. Please advice.
Warning: include(/home/p22396/www/wiki.eoiup.org/extensions/AdvancedMeta/MWAdvancedMeta.i18n.php): failed to open stream: No such file or directory in /home/p22396/www/wiki.eoiup.org/includes/cache/LocalisationCache.php on line 485
Warning: include(): Failed opening '/home/p22396/www/wiki.eoiup.org/extensions/AdvancedMeta/MWAdvancedMeta.i18n.php' for inclusion (include_path='/home/p22396/www/wiki.ektip.ru:/home/p22396/www/wiki.eoiup.org/includes:/home/p22396/www/wiki.eoiup.org/languages:.:/usr/local/php54/lib/php') in /home/p22396/www/wiki.eoiup.org/includes/cache/LocalisationCache.php on line 485
MediaWiki 1.21.0rc5 PHP 5.4.14 (litespeed) MySQL 5.5.30-30.1-log Ektip (talk) 08:11, 13 June 2013 (UTC)
- Looks like you are missing a file. Is there any file with the extension *.i18n.php in extensions/AdvancedMeta directory? Did you unpack the extension correctly?
- Also, it looks like you're using an older MediaWiki. Could you upgrade to 1.21.1? ☠MarkAHershberger☢(talk)☣ 15:22, 13 June 2013 (UTC)
- MWAdvancedMeta.i18n.php is not MWAdvancedMeta.il8n.php 98.173.234.105 23:41, 6 October 2013 (UTC)
New user is always attributed to next edit in 1.18.1?
Some disturbing behavior in my mediawiki 1.18.1 installation (PHP 5.2.9, Mysql 5.1.30). Closed company intranet (no link, sorry).
- I create a new user and assign them some groups.
- Another user makes an edit on some article.
- The article edit is attributed to the new user!!!
Only happens for the very next edit after user creation. Looks like it's been happening since upgrading to 1.18.1 (couple years ago?). Never noticed it till one of my users watching a particularly important page was wondering what newuser was doing messing with it already! Is this a recognized glitch? Seems to only stick for very next edit. After that, everything is fine. Panic! Lbillett (talk) 14:35, 13 June 2013 (UTC)
- Do you have any extensions installed? Especially extensions, which change User Management like registration, login or page editing? 88.130.118.49 14:38, 13 June 2013 (UTC)
- I have a ton of extensions installed... semantic mediawiki would be the main one. I still use the Password Reset extension (the bulk of my users don't have email addresses, so it's kind of necessary). Might that cause a problem like this? I also have Simple Security installed, which I should really get rid of... Lbillett (talk) 17:50, 13 June 2013 (UTC)
- Did some house cleaning, ditched simple security... wasn't the cause. Went through and selectively disabled extensions that might have anything to do with users etc. Turns out its the CategoryWatch extension. Looks like it's been doing this since I upgraded to 1.18.1 back when it came out. Looks like it hasn't been updated in a couple years. It's functionality is pretty key to our installation. Guess I better figure a way outta this. Lbillett (talk) 23:40, 22 October 2013 (UTC)
- I have a ton of extensions installed... semantic mediawiki would be the main one. I still use the Password Reset extension (the bulk of my users don't have email addresses, so it's kind of necessary). Might that cause a problem like this? I also have Simple Security installed, which I should really get rid of... Lbillett (talk) 17:50, 13 June 2013 (UTC)
- On a general note, 1.18 is not supported anymore (plus likely insecure nowadays). Please consider upgrading to a supported version. AKlapper (WMF) (talk) 14:38, 23 October 2013 (UTC)
LinkedIN Plugin
Hi,
I want to add a linkedIN plug-in: http://developer.linkedin.com/plugins/member-profile-plugin-generator?button-type-inline=true into a wiki page. I tried several things but it did not work out. The plug-in is html
Any ideas?
Thanks alot 92.108.124.75 (talk) 21:14, 13 June 2013 (UTC)
- What are all the things you have tried? 88.130.118.49 22:17, 13 June 2013 (UTC)
File extension ".docx" does not match the detected MIME type of the file (application/msword)
Hi,
I'm trying to enable uploading of docx, xlsx, pptx but I'm getting the message above (well for word docx files at least).
Mediawiki Version 1.21.1 PHP Version 5.3.22 Apache Version 2.2.11 MYSQL 5.1.36
I've tried to fix using this the info from this link - http://blog.artifact-software.com/tech/?p=94 - but its not fixed.
If anyone has any ideas that would be great.. :)
Cheers 203.97.252.11 (talk) 10:30, 14 June 2013 (UTC)
- i have also seen this link - http://www.mediawiki.org/wiki/Manual_talk:Mime_type_detection#Fix_for_Uploading_MS_Word_2007_.28and_greater.29_Files - but unfortunately nothing in there helped... oO SKIPPY Oo 10:32, 14 June 2013 (UTC)
- Try the patch here: https://gerrit.wikimedia.org/r/#/c/44379/ ☠MarkAHershberger☢(talk)☣ 11:28, 14 June 2013 (UTC)
- Hi,
- thanks for the reply - i dont know if im being totally dense here - but do i just copy out the code in each of those files and paste into my own files - or should i download and replace the entire files?
- cheers oO SKIPPY Oo 12:40, 15 June 2013 (UTC)
- Take the original files, which you have on your server, open them and then add/replace/change lines as seen in the diff views, e.g. so for DefaultSettings.php. And in the same way for the two other files. 88.130.80.115 13:09, 15 June 2013 (UTC)
- ok so i tried adding / replacing those lines but still no go - and infact i have just tried uploading a jpg with the same issues after reverting back to the original version of the php files.
- are there any other ideas? oO SKIPPY Oo 08:26, 16 June 2013 (UTC)
- Could you file a bug? ☠MarkAHershberger☢(talk)☣ 17:22, 19 June 2013 (UTC)
- Take the original files, which you have on your server, open them and then add/replace/change lines as seen in the diff views, e.g. so for DefaultSettings.php. And in the same way for the two other files. 88.130.80.115 13:09, 15 June 2013 (UTC)
- Try the patch here: https://gerrit.wikimedia.org/r/#/c/44379/ ☠MarkAHershberger☢(talk)☣ 11:28, 14 June 2013 (UTC)
Unexpected non-MediaWiki exception encountered, of type "Exception" /extensions/yambe/yambe.php:553
I have installed mediawiki latest verison 1.20.. I am receiving the following below error when I click this link "http://edn-wki-02/assyst10SP4Wiki/index.php/Lucene_Operators_in_assyst" Can any one please help to rectify the issue
Unexpected non-MediaWiki exception encountered, of type "Exception" exception 'Exception' with message 'String could not be parsed as XML' in /var/www/assyst10SP4Wiki/extensions/yambe/yambe.php:553 Stack trace:
- 0 /var/www/assyst10SP4Wiki/extensions/yambe/yambe.php(553): SimpleXMLElement->__construct('<?xml version='...')
- 1 /var/www/assyst10SP4Wiki/extensions/yambe/yambe.php(399): yambeUnpackTag(':<small><yam...')
- 2 /var/www/assyst10SP4Wiki/extensions/yambe/yambe.php(199): getTagFromParent('Global_Free_Tex...', 0)
- 3 [internal function]: yambeBreadcrumb('Global_Free_Tex...', Array, Object(Parser), Object(PPFrame_DOM))
- 4 /var/www/assyst10SP4Wiki/includes/parser/Parser.php(3806): call_user_func_array('yambeBreadcrumb', Array)
- 5 /var/www/assyst10SP4Wiki/includes/parser/Preprocessor_DOM.php(1150): Parser->extensionSubstitution(Array, Object(PPFrame_DOM))
- 6 /var/www/assyst10SP4Wiki/includes/parser/Parser.php(3043): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
- 7 /var/www/assyst10SP4Wiki/includes/parser/Parser.php(1141): Parser->replaceVariables('<small><yamb...')
- 8 /var/www/assyst10SP4Wiki/includes/parser/Parser.php(370): Parser->internalParse('<small><yamb...')
- 9 /var/www/assyst10SP4Wiki/includes/WikiPage.php(3110): Parser->parse('<small><yamb...', Object(Title), Object(ParserOptions), true, true, 45681)
- 10 /var/www/assyst10SP4Wiki/includes/PoolCounter.php(209): PoolWorkArticleView->doWork()
- 11 /var/www/assyst10SP4Wiki/includes/Article.php(631): PoolCounterWork->execute()
- 12 /var/www/assyst10SP4Wiki/includes/actions/ViewAction.php(37): Article->view()
- 13 /var/www/assyst10SP4Wiki/includes/Wiki.php(427): ViewAction->show()
- 14 /var/www/assyst10SP4Wiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
- 15 /var/www/assyst10SP4Wiki/includes/Wiki.php(536): MediaWiki->performRequest()
- 16 /var/www/assyst10SP4Wiki/includes/Wiki.php(446): MediaWiki->main()
- 17 /var/www/assyst10SP4Wiki/index.php(59): MediaWiki->run()
- 18 {main} Mahmoodch (talk) 11:43, 14 June 2013 (UTC)
- Do you have the latest code? What are the contents of the tag if you look at http://edn-wki-02/assyst10SP4Wiki/index.php/Lucene_Operators_in_assyst?action=edit ??
- It looks like the contents of the tag aren't valid XML. ☠MarkAHershberger☢(talk)☣ 12:07, 14 June 2013 (UTC)
- Please find the content of tag I got from this link "http://edn-wki-02/assyst10SP4Wiki/index.php/Lucene_Operators_in_assyst?action=edit"
- <yambe:breadcrumb>Global_Free_Text_Searching|Global Free Text Searching</yambe:breadcrumb>
- <yambe:breadcrumb>Search_Engine_-_How_Search_Engine_Works|Search Engine - How Search Engine Works</yambe:breadcrumb>
- <yambe:breadcrumb>Knowledge_Search_Form|Knowledge Search Form</yambe:breadcrumb>
- --------------
- Lucene searching capabilities are integrated into assyst Search which is used in Free Text Searching and in Knowledge in assyst.
- This allows search queries to be built around the syntax operators. The commonly used operators are:
- Single Term - A search based on single words, such as for
Error
. Where a number of single words are listed in a search, such asError blue screen
then these are presumed to be using theAND
Boolean Operator. - Phrase - A group of words bounded by double quote marks
""
that will be searched for as a perfect match, such as"Blue screen error"
. - Boolean Operators - These operators can be used between Singled Terms and Phrases to further define the search;
AND
or+
- Both terms will be found in the search results, such asError AND "blue screen"
.OR
or|
- Either one term or another will be found in the search results, such asError OR "blue screen"
.NOT
or-
- A term will not be present in the search results, such asError NOT "blue screen"
Error -"blue screen"
whereError
results will only be returned if the Knowledge Procedure does not contain the phraseblue screen
.
- Note: Curved brackets
()
can be used to group operator groups, such as(Error OR Errors) AND ("blue screen" OR "blue page")
.
- Wildcards - These can be used to substitute unknown characters in the search;
*
- This wildcard can be used in the place of a range of unknown characters, such asSc*n
whereScreen
will be returned along withScorn
,Scoop
andScan
.?
- This wildcard can be used in the place of an individual character, with several being used as required, such asSc???n
where Screen will be returned along withScorn
andScoop
but notScan
.
- Single Term - A search based on single words, such as for
- A more detailed explanation of the full Lucene Search syntax is provided in Lucene's Query Parser Syntax PDF.
- Lucene and Boolean Logic Mahmoodch (talk) 13:44, 14 June 2013 (UTC)
- Yes I have the latest code installed Mahmoodch (talk) 14:33, 14 June 2013 (UTC)
15:30, 14 June 2013 (UTC)
- I tried to reproduce your problem by using the wikitext you provided and the yambeUnpackTag() function and couldn't get the problem. And then I realized you didn't give us a PHP version.
- In any case could you edit the Yambe extension where it says:
$xml = new SimpleXMLElement($xmlstr);
- so that I says:
error_log("XML: $xmlstr"); $xml = new SimpleXMLElement($xmlstr);
- and then reproduce the error. After that, could you look at your error log and see what error it printed out?
- If you don't have access to the error log, then something like the following should work on the page that usually displays the error:
var_dump($xmlstr); exit; $xml = new SimpleXMLElement($xmlstr);
- Of course, after you've done that, you'll want to remove it. ☠MarkAHershberger☢(talk)☣ 14:58, 15 June 2013 (UTC)
- Hi Mark
- When I added the following line "var_dump($xmlstr); exit;" in yambe.php
The following below error was displayed on web page
- string(136) "Search Engine Installation & Configuration Guide"
- The php version I use is: "PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48)
- Copyright (c) 1997-2012 The PHP Group"
- I could not find any error log file can you please let me know where it would be.
- Thanks a lot for your help
- Thanks
- Mahmoood Mahmoodch (talk) 10:49, 17 June 2013 (UTC)
- Ah, I missed this the first time through. The & should be encoded, otherwise SimpleXML will complain like it is doing. I don't have time to fix that right now, but maybe that will give enough of a clue to continue. ☠MarkAHershberger☢(talk)☣ 14:46, 17 June 2013 (UTC)
- Hi Mark
- Thanks a lot for your reply. I am not expert in scripting and don't know how to encode. Can you please help when you will have time.
- Thanks
- Mahmood Mahmoodch (talk) 09:12, 18 June 2013 (UTC)
- Hi Mark
- The problem rectified.
- I have renamed the page Search Engine Installation & Configuration Guide to Search Engine Installation and Configuration Guide and this solved the issue for all child pages that have this as one of their parents. The YAMBE breadcrumb does not seem to like ‘&’ in page titles. The strange thing is the immediate child of Search Engine Installation & Configuration Guide did not have the issue.
- Thanks a lot for your help
- Mahmood Mahmoodch (talk) 15:10, 18 June 2013 (UTC)
- Ah, I missed this the first time through. The & should be encoded, otherwise SimpleXML will complain like it is doing. I don't have time to fix that right now, but maybe that will give enough of a clue to continue. ☠MarkAHershberger☢(talk)☣ 14:46, 17 June 2013 (UTC)
#1050 - Table 'calendar' already exists
SQL query:
-- -- Database: `iwpa03` -- -- -------------------------------------------------------- -- -- Table structure for table `calendar` -- CREATE TABLE `calendar` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT , `parent_id` INT( 11 ) DEFAULT '0', `owner_id` INT( 11 ) DEFAULT NULL , `project_id` INT( 11 ) NOT NULL , `title` VARCHAR( 255 ) DEFAULT NULL , `place` VARCHAR( 255 ) DEFAULT NULL , `notes` TEXT, `start_datetime` DATETIME DEFAULT NULL , `end_datetime` DATETIME DEFAULT NULL , `status` INT( 1 ) DEFAULT '0', `rrule` TEXT, `visibility` INT( 1 ) DEFAULT '0', `participant_id` INT( 11 ) NOT NULL ,
PRIMARY KEY ( `id` ) ) ENGINE = INNODB DEFAULT CHARSET = utf8 AUTO_INCREMENT =1;
MySQL said:
- 1050 - Table 'calendar' already exists
This is what i am getting when i want to inject the datebase to my other mediawiki installation 192.44.85.23 (talk) 13:05, 14 June 2013 (UTC)
- If you want to replace the table "calendar" with another one, you should delete the old table before. (Another solution would be to make sure that the DB dump, which you want to import, contains "DROP IF EXISTS" statements for each table. They will prevent this error as well). 88.130.80.115 15:35, 14 June 2013 (UTC)
- Hello i tried to insert DROP TABLE IF EXISTS `calendar` for each table is this the correct syntax if so i am getting error like this
- Error
- SQL query:
- [...]
- MySQL said:
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rar!��' at line 1 192.44.85.23 16:41, 14 June 2013 (UTC)
- Just go to the DB, in which you want to replace the table, delete it and import it again. As simple as that. 88.130.80.115 17:40, 14 June 2013 (UTC)
- How to edit the table i am new to mysql please 192.44.85.23 11:57, 15 June 2013 (UTC)
- Use a tool like PHPMyAdmin. It has a graphical user interface and is really easy to use.
- On the command line things become way more complicated (at least for unexperienced users like you):
- You will have to log in, select the database and drop the table, e.g. with something like this:
mysql -u my-mysql-username -pmy-mysql-password
use my-database-name
DROP TABLE `calender`;
- where you have to replace everything starting with "my-" with your actual names. 88.130.80.115 13:07, 15 June 2013 (UTC)
- Delete the database and rename the sql database and import again put. 78.87.116.180 13:11, 30 January 2015 (UTC)
- How to edit the table i am new to mysql please 192.44.85.23 11:57, 15 June 2013 (UTC)
The Style does not appear
The style of my site is not seen: http://www.hizlog.com/wiki/index.php?title=Main_Page 79.2.99.153 (talk) 18:01, 14 June 2013 (UTC)
- load.php with a query string that includes * is giving 403 Forbidden. Without the *, it seems to work. This is probably caused by something on your hosts' server, but it may help to file a bug so that * isn't used in URLs. ☠MarkAHershberger☢(talk)☣ 18:42, 14 June 2013 (UTC)
- So what should I do to fix? 79.2.99.153 18:52, 14 June 2013 (UTC)
- I don't know. I've filed a bug for this, though.
- You might try contacting your web host to see if they're blocking these and see if they can fix it. ☠MarkAHershberger☢(talk)☣ 19:11, 14 June 2013 (UTC)
- It would be useful to know if your webserver gave some sort of error when loading such urls. Does anything appear in your apache error.log if you have access? Bawolff (talk) 19:36, 14 June 2013 (UTC)
- I can not access my server, via ticket if you want to require the error.log file?
- But it will be about 3 days. I await your response about. 79.2.99.153 19:46, 14 June 2013 (UTC)
- It would be useful to know if your webserver gave some sort of error when loading such urls. Does anything appear in your apache error.log if you have access? Bawolff (talk) 19:36, 14 June 2013 (UTC)
- Following up from the bug, I think you can comment out the following two lines in includes/WebRequest.php:
$newUrl = IEUrlExtension::fixUrlForIE6(
$this->getFullRequestURL(), $extWhitelist );
☠MarkAHershberger☢(talk)☣ 20:04, 15 June 2013 (UTC)
- So what should I do to fix? 79.2.99.153 18:52, 14 June 2013 (UTC)
MediaWiki Running Behind Proxy "Unable to determine IP" Error
I installed MediaWiki 1.20.5 on a work server behind a proxy. Depending on what server is filling the proxy request the entire wiki will either function normally or any page will result in an "Unable to determine IP" error (back trace below). Using a php script ( <?php var_dump($_SERVER['REMOTE_ADDR']); ?>) I am able to tell the ip address of the current proxy. One of the proxy servers will append a port to its address (i.e. 192.168.1.8:8589). The site will not function with the IP error at this point. The other proxy server does not append a port to the end of its address and MediaWiki behaves fine under this proxy server.
I'm thinking that MediaWiki is trying to parse the IP and can't handle the port, but I don't know where to go to fix this.
Any help would be appreciated.
Backtrace:
- 0 /path/to/install/wiki/includes/User.php(1723): WebRequest->getIP()
- 1 /path/to/install/wiki/includes/db/Database.php(844): User->getName()
- 2 /path/to/install/wiki/includes/db/Database.php(1339): DatabaseBase->query('SELECT lc_valu...', 'LCStore_DB::get')
- 3 /path/to/install/wiki/includes/db/Database.php(1430): DatabaseBase->select('l10n_cache', Array, Array, 'LCStore_DB::get', Array, Array)
- 4 /path/to/install/wiki/includes/LocalisationCache.php(1005): DatabaseBase->selectRow('l10n_cache', Array, Array, 'LCStore_DB::get')
- 5 /path/to/install/wiki/includes/LocalisationCache.php(380): LCStore_DB->get('en', 'deps')
- 6 /path/to/install/wiki/includes/LocalisationCache.php(422): LocalisationCache->isExpired('en')
- 7 /path/to/install/wiki/includes/LocalisationCache.php(309): LocalisationCache->initLanguage('en')
- 8 /path/to/install/wiki/includes/LocalisationCache.php(244): LocalisationCache->loadItem('en', 'namespaceNames')
- 9 /path/to/install/wiki/languages/Language.php(386): LocalisationCache->getItem('en', 'namespaceNames')
- 10 /path/to/install/wiki/includes/search/SearchEngine.php(345): Language->getNamespaces()
- 11 /path/to/install/wiki/includes/User.php(1233): SearchEngine::searchableNamespaces()
- 12 /path/to/install/wiki/includes/User.php(2230): User::getDefaultOptions()
- 13 /path/to/install/wiki/includes/context/RequestContext.php(287): User->getOption('language')
- 14 /path/to/install/wiki/includes/Message.php(322): RequestContext->getLanguage()
- 15 /path/to/install/wiki/includes/context/RequestContext.php(368): Message->setContext(Object(RequestContext))
- 16 [internal function]: RequestContext->msg('pagetitle')
- 17 /path/to/install/wiki/includes/context/ContextSource.php(166): call_user_func_array(Array, Array)
- 18 /path/to/install/wiki/includes/OutputPage.php(833): ContextSource->msg('pagetitle')
- 19 /path/to/install/wiki/includes/Article.php(485): OutputPage->setPageTitle('Main Page')
- 20 /path/to/install/wiki/includes/actions/ViewAction.php(37): Article->view()
- 21 /path/to/install/wiki/includes/Wiki.php(427): ViewAction->show()
- 22 /path/to/install/wiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
- 23 /path/to/install/wiki/includes/Wiki.php(536): MediaWiki->performRequest()
- 24 /path/to/install/wiki/includes/Wiki.php(446): MediaWiki->main()
- 25 /path/to/install/wiki/index.php(59): MediaWiki->run()
- 26 {main Pharis~mediawikiwiki (talk) 18:53, 14 June 2013 (UTC)
- Had a similar issue where I'm running php through a proxy and have a frontend serving static files. This means mediawiki always sees the REMOTE_ADDR as 127.0.0.1. I was able to fix it by adding this to the end of my LocalSettings.php:
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
- It sounds like the root problem is the same, so perhaps this will work for you as well. Kadaan (talk) 17:10, 20 August 2013 (UTC)
- You should look at $wgUsePrivateIPs which will probably be what you really want. ☠MarkAHershberger☢(talk)☣ 00:57, 21 August 2013 (UTC)
[RESOLVED] centralauth
hi how can I add my doamins for wikis so that people who register for global account on differnent wikis can look at what projects they are on 90.218.233.184 (talk) 21:00, 14 June 2013 (UTC)
- You might also want to ask at http://www.mediawiki.org/wiki/Extension_talk:CentralAuth and use punctuation to make your comments more readable. AKlapper (WMF) (talk) 11:19, 22 June 2013 (UTC)
Timezone: "Use wiki default" as default
If a new user registers his timezone should be set to "Use wiki default" rather than to "Other (Specify Offset)" (find these settings in Preferences -> Date and Time).
I didn't find any variable for this in Manual:$wgDefaultUserOptions.
With $wgDefaultUserOptions['timecorrection'] = '02:00'; one can only set the offset - but I want to change the default value of the dropdown.
Thanks for any help! Stefahn (talk) 00:31, 15 June 2013 (UTC)
[BUG] value "variant" causes error during recognition of sitemap
"variant" is the value used when a wiki page can be converted into other languages. e.g: Simplified Chinese to Traditional Chinese. However, sitemaps containing the value "variant" in its address will cause "Parsing error". Google error Description: We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. . My experiment results have shown that: once the value "variant" is removed from the address, it will resolve the error. . Just checking is there any possible solution available right now? e.g: a value replaces the value "variant" . P.S: Do I have to do a bug report somewhere else? Lnasterio (talk) 01:11, 15 June 2013 (UTC)
Can sub-categories filter hidden the same as super-categories
I'm using API for retrieving super-categories via "&prop=categories" query and sub-categories with "&list=categorymembers". The former can filter out hidden categories (clshow=!hidden), but latter not. The easiest way to check whether one of sub-categories is hidden is by checking for every item of the result whether it belongs to "Category:Hidden Categories" (with query prop=category and clcategories option). But this increases the traffic significantly and slows since a bunch of sub-categories comes as the one result (300 milliseconds for en.wikipedia queries at my location), but checking will require 300ms*NumberOfItems
So, is there other way? Or if not, can the api &list=categorymembers be extended to support hidden also?
[RESOLVED] favicon.ico
hi how can I setup a favicon.ico 86.171.33.75 (talk) 16:23, 15 June 2013 (UTC)
- First hit when searching "mediawiki favicon": $wgFavicon. ☠MarkAHershberger☢(talk)☣ 18:11, 15 June 2013 (UTC)
- thanks 86.171.33.75 21:27, 15 June 2013 (UTC)
syntax error: DROP INDEX pl_namespace ON `pagelinks`
Hello everyone! I tried updating my mediawiki from 1.6.11 to 1.21.1 and clicked myself through the upgrade routine via "mw-config/index.php". But when updating the database I get an error: The web address is:
<pre style="white-space: pre-wrap;">[...] Making pl_namespace, tl_namespace and il_to indices UNIQUE ... An error occurred: Es gab einen Syntaxfehler in der Datenbankabfrage. Die letzte Datenbankabfrage lautete: „DROP INDEX pl_namespace ON `wiki_pagelinks` “ aus der Funktion „DatabaseBase::sourceFile( /var/www/web26/html/felix/exwiki/maintenance/archives/patch-pl-tl-il-unique.sql )“. Die Datenbank meldete den Fehler: „1142: INDEX command denied to user 'web26'@'localhost' for table 'wiki_pagelinks' (localhost)“. Backtrace:
- 0 /var/www/web26/html/felix/exwiki/includes/db/Database.php(983): DatabaseBase->reportQueryError('INDEX command d...', 1142, 'DROP INDEX pl_n...', 'DatabaseBase::s...', false)
- 1 /var/www/web26/html/felix/exwiki/includes/db/Database.php(3409): DatabaseBase->query('DROP INDEX pl_n...', 'DatabaseBase::s...')
- 2 /var/www/web26/html/felix/exwiki/includes/db/Database.php(3322): DatabaseBase->sourceStream(Resource id #259, false, false, 'DatabaseBase::s...', false)
- 3 /var/www/web26/html/felix/exwiki/includes/installer/DatabaseUpdater.php(639): DatabaseBase->sourceFile('/var/www/web26/...')
- 4 /var/www/web26/html/felix/exwiki/includes/installer/MysqlUpdater.php(851): DatabaseUpdater->applyPatch('patch-pl-tl-il-...', false, 'Making pl_names...')
- 5 [internal function]: MysqlUpdater->doUniquePlTlIl()
- 6 /var/www/web26/html/felix/exwiki/includes/installer/DatabaseUpdater.php(435): call_user_func_array(Array, Array)
- 7 /var/www/web26/html/felix/exwiki/includes/installer/DatabaseUpdater.php(387): DatabaseUpdater->runUpdates(Array, false)
- 8 /var/www/web26/html/felix/exwiki/includes/installer/DatabaseInstaller.php(274): DatabaseUpdater->doUpdates()
- 9 /var/www/web26/html/felix/exwiki/includes/installer/WebInstallerPage.php(552): DatabaseInstaller->doUpgrade()
- 10 /var/www/web26/html/felix/exwiki/includes/installer/WebInstaller.php(270): WebInstaller_Upgrade->execute()
- 11 /var/www/web26/html/felix/exwiki/mw-config/index.php(65): WebInstaller->execute(Array)
- 12 /var/www/web26/html/felix/exwiki/mw-config/index.php(33): wfInstallerMain()
- 13 {main}
Purging caches...done.
I could need some help. Does it have something to do with my right as database user? Do I need to contact my homepage provider? 84.149.100.22 (talk) 16:51, 15 June 2013 (UTC)
- The key is:
INDEX command denied to user 'web26'@'localhost'
- So, yes, you need to use a different DB user, or increaset the privileges on this one. If you only have this user, then you need to contact your provider.
- By the way: thank you for upgrading! ☠MarkAHershberger☢(talk)☣ 18:17, 15 June 2013 (UTC)
Problems adding geographical coordinates to my wiki website
I want to add geographic coordinates to my wiki page so that it shows geo-coordinates and a little globe like the top right corner of this wiki page: http://en.wikipedia.org/wiki/One_Wall_Centre
I've created a Template call Template:Coord, installed Scribunto extension (working) and try to add this tag to the top of one of my wiki pages: { { coord|40.744924|-74.006943|display=it } } This tag also crashes: { { coord|40.744924|-74.006943 } }
When I load the page, Scribunto and Lua crashes (see error message below) It seems a like a hassle to add coord tags. coord tags (http://en.wikipedia.org/w/index.php?title=Template:Coord&action=edit) seem to be the only standard but I can't get it to work. Are there other proper Wiki standards to add geotags to wiki pages? I have mediawiki 1.20.X system. Thanks for any forthcoming help and suggestions.
Lua error message:
Lua error: Internal error: The interpreter exited with status 1.
Backtrace:
- 0 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php(454): ScribuntoEngineBase->newException('scribunto-luast...', Array)
- 1 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php(324): Scribunto_LuaStandaloneInterpreter->checkStatus()
- 2 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php(287): Scribunto_LuaStandaloneInterpreter->receiveMessage()
- 3 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php(213): Scribunto_LuaStandaloneInterpreter->dispatch(Array)
- 4 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaCommon\LuaCommon.php(114): Scribunto_LuaStandaloneInterpreter->registerLibrary('mw_interface', Array)
- 5 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaCommon\LuaCommon.php(89): Scribunto_LuaEngine->registerInterface('mw.lua', Array, Array)
- 6 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
- 7 C:\xampp\htdocs\wiki\extensions\Scribunto\engines\LuaStandalone\LuaStandaloneEngine.php(26): Scribunto_LuaStandaloneEngine->load()
- 8 C:\xampp\htdocs\wiki\extensions\Scribunto\common\Hooks.php(173): Scribunto_LuaStandaloneEngine->getLimitReport()
- 9 [internal function]: ScribuntoHooks::reportLimits(Object(Parser), 'NewPP limit rep...')
- 10 C:\xampp\htdocs\wiki\includes\Hooks.php(216): call_user_func_array('ScribuntoHooks:...', Array)
- 11 C:\xampp\htdocs\wiki\includes\GlobalFunctions.php(3823): Hooks::run('ParserLimitRepo...', Array)
- 12 C:\xampp\htdocs\wiki\includes\parser\Parser.php(492): wfRunHooks('ParserLimitRepo...', Array)
- 13 C:\xampp\htdocs\wiki\includes\WikiPage.php(3110): Parser->parse('<includeonly>{{...', Object(Title), Object(ParserOptions), true, true, 6265) #14 C:\xampp\htdocs\wiki\includes\PoolCounter.php(209): PoolWorkArticleView->doWork() #15 C:\xampp\htdocs\wiki\includes\Article.php(631): PoolCounterWork->execute() #16 C:\xampp\htdocs\wiki\includes\actions\ViewAction.php(37): Article->view() #17 C:\xampp\htdocs\wiki\includes\Wiki.php(427): ViewAction->show() #18 C:\xampp\htdocs\wiki\includes\Wiki.php(304): MediaWiki->performAction(Object(Article)) #19 C:\xampp\htdocs\wiki\includes\Wiki.php(536): MediaWiki->performRequest() #20 C:\xampp\htdocs\wiki\includes\Wiki.php(446): MediaWiki->main() #21 C:\xampp\htdocs\wiki\index.php(59): MediaWiki->run() #22 {main} Peter321 (talk) 03:55, 16 June 2013 (UTC)
Book tool: Some tempates are not printed to PDF even when there's nothing in "Exclude from print" category
I have a problem of missing templates when generating PDF book with Book tool.
The templates missing are based on Ambox template. By default Ambox resided in "Exclude from print" category but after removing it from there, it still doesn't get printed. My Exclude from print category is empty, so it should be not the reason.
Could someone take a look here and see what could be the reason of missing template in PDF (the missing template is the electricity warning box at end of the page): http://granitedevices.com/wiki/Argon_braking_resistor 83.150.117.4 (talk) 21:01, 16 June 2013 (UTC)
- Anyone? 83.150.117.4 10:02, 25 June 2013 (UTC)
- Try removing the metadata class from Template:Ambox/core and make sure that the class ambox is not set to "display: none" in MediaWiki:Common.css or MediaWiki:Print.css. Then clear your cache; did that fix the problem? jonkerz ♠talk 14:33, 25 June 2013 (UTC)
- Thanks a lot! Removing metadata class solved the problem. 83.150.117.4 19:56, 25 June 2013 (UTC)
I have no column « ar_sha1 » in the mwi_archive table, thus deletion of pages is impossible
Hi everyone !
I have a problem with the deletion of pages in my wiki. The version of MediaWiki is 1.19.0, the version of PHP is 5.2.17 (cgi), and the version of MySQL is 5.1.49-3-log.
I’m in the wiki as an administrator. I ask for the deletion of a page. Mediawiki asks me to confirm, I confirm, and then I have the following error message :
« A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: INSERT INTO `mwi_archive` (ar_namespace,ar_title,ar_comment,ar_user,ar_user_text,ar_timestamp,ar_minor_edit,ar_rev_id,ar_parent_id,ar_text_id,ar_text,ar_flags,ar_len,ar_page_id,ar_deleted,ar_sha1) SELECT page_namespace,page_title,rev_comment,rev_user,rev_user_text,rev_timestamp,rev_minor_edit,rev_id,rev_parent_id,rev_text_id,,,rev_len,page_id,rev_deleted,rev_sha1 FROM `mwi_page`,`mwi_revision` WHERE page_id = '3495' AND (page_id = rev_page) Function: WikiPage::doDeleteArticleReal Error: 1054 Unknown column 'ar_sha1' in 'field list' (mysql51-41.pro) »
I’ve checked what is the table mwi_archive for the 1.19 version of mediawiki : here is the table.
And it’s true I miss the last column « ar-sha1 » in the table mwi_archive in my database (I only have the 15 first columns). I don’t know why. I can add the column myself, with the settings indicated in the manual, but I’m not sure of the consequencies.
Do you think that adding manually the 16th column will solve the problem and will not compromise future updates of Mediawiki ?
Thank you. Consulnico (talk) 12:57, 17 June 2013 (UTC)
- Did you run update.php? ☠MarkAHershberger☢(talk)☣ 14:42, 17 June 2013 (UTC)
- No, we didn’t. I am one of the two who run the wiki, and I don’t have access to the settings files yet, only to the database. Still, I asked my partner to run update.php. While I’m waiting for his answer, I wanna know if I can try to solve this problem only by manipulating the database, if possible, especially if this kind of problem reappears later. Consulnico (talk) 15:10, 17 June 2013 (UTC)
- You can also run it from the web by visiting http://WIKI_URL/mw-config/ ☠MarkAHershberger☢(talk)☣ 18:45, 17 June 2013 (UTC)
- And, yes, you should use update.php. Running all the mods by hand is doable, but unless you have shell access, it would be problematic. ☠MarkAHershberger☢(talk)☣ 18:46, 17 June 2013 (UTC)
- Ok, we'll begin by running the script. If we encounter a problem, I come back here. Thank you for your time. Consulnico (talk) 08:07, 18 June 2013 (UTC)
- No, we didn’t. I am one of the two who run the wiki, and I don’t have access to the settings files yet, only to the database. Still, I asked my partner to run update.php. While I’m waiting for his answer, I wanna know if I can try to solve this problem only by manipulating the database, if possible, especially if this kind of problem reappears later. Consulnico (talk) 15:10, 17 June 2013 (UTC)
mediawiki dont load format pages
I have a mediawiki installed on a local machine with xampp, on the local machine wiki works fine, but on the others local network computers I can access pages but loads without formatting and no skin, I try on IE 10 and firefox. Some ideia?
MediaWiki 1.21.1 PHP 5.4.7 (apache2handler) MySQL 5.5.27 Xampp control panel v3.1.0 3.1.0 200.201.164.17 (talk) 13:02, 17 June 2013 (UTC)
- In the apache error.log shows
- <pre style="whitespace: pre-wrap">...The given path is misformatted or contained invalid characters: ... AH00127: Cannot map GET /wiki/index.php/Usu%C3%A1rio_Discuss%C3%A3o:Rafael HTTP/1.1 to file, referer: ... Especial:Prefer%C3%AAncias
- ...The given path is misformatted or contained invalid characters: ... AH00127: Cannot map GET /wiki/index.php/CaixaWiki:Eventos_atuais HTTP/1.1 to file, referer: ... P\xc3\xa1gina_principal
- ...The given path is misformatted or contained invalid characters: ... AH00127: Cannot map GET /wiki/index.php/Ajuda:Conte%C3%BAdos HTTP/1.1 to file, referer: ... Usu%C3%A1rio_Discuss%C3%A3o:Rafael
200.201.164.17 13:10, 17 June 2013 (UTC)
- Looks like Apache is trying to handle everything instead of handing off to MW. Set $wgUsePathInfo to false and have a look at Short URLs. ☠MarkAHershberger☢(talk)☣ 14:38, 17 June 2013 (UTC)
- I add $wgUsePathInfo = false; to my localsettings.php file but still the error 200.201.164.17 14:50, 17 June 2013 (UTC)
- I try mediawiki with wamp but get same error 200.201.164.17 16:56, 17 June 2013 (UTC)
- Sorry, You probably also need to remove or set $wgArticlePath. ☠MarkAHershberger☢(talk)☣ 18:44, 17 June 2013 (UTC)
- On my localsettings.php don't have $wgArticlePath. I have to creat this? 200.201.164.7 19:39, 17 June 2013 (UTC)
- Do you see the error when you visit URL/index.php?title=CaixaWiki:Eventos_atuais ?? ☠MarkAHershberger☢(talk)☣ 15:45, 19 June 2013 (UTC)
- See also Manual:Errors and Symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 11:34, 20 June 2013 (UTC)
- On my localsettings.php don't have $wgArticlePath. I have to creat this? 200.201.164.7 19:39, 17 June 2013 (UTC)
- I add $wgUsePathInfo = false; to my localsettings.php file but still the error 200.201.164.17 14:50, 17 June 2013 (UTC)
Square brackets in page titles / links
I'm porting a lot of content from a commercial Wiki system to MediaWiki but have many pages with square brackets in the page titles. It's starting to look like MW can't cope with page names (and links) containing square brackets.
I've tried using entities ([ and ]) but that doesn't work. I can't find any documented means of escaping characters.
Are square brackets completely forbidden in page titles and links? How does one deal with external URLs which contain square brackets? Liamgretton (talk) 14:44, 17 June 2013 (UTC)
- When you are specifying URLs in Wikitext, you should use %91 and %93. See URI encoding. ☠MarkAHershberger☢(talk)☣ 18:41, 17 June 2013 (UTC)
- Ok thanks, that seems to deal with external links. But those encodings don't help with page titles or internal links - if I try to create a page with %91 and %92 they get translated to sexed versions of ' and " respectively. Liamgretton (talk) 06:40, 18 June 2013 (UTC)
- If you're trying to create pages with [ or ] in the title you'll get a bad title error like this: https://www.mediawiki.org/wiki/Sandbox/test%5B ☠MarkAHershberger☢(talk)☣ 15:01, 19 June 2013 (UTC)
- [ and ] are not allowed on page names, since that conflicts with the internal link syntax. You should use a replacement characters. For example, parentheses. Ciencia Al Poder (talk) 11:36, 20 June 2013 (UTC)
- %5B and %5D work QDinar (talk) 12:57, 5 April 2016 (UTC)
- Ok thanks, that seems to deal with external links. But those encodings don't help with page titles or internal links - if I try to create a page with %91 and %92 they get translated to sexed versions of ' and " respectively. Liamgretton (talk) 06:40, 18 June 2013 (UTC)
- You can escape markup using the <nowiki> tag, even in link titles.
- For example, gives the required:
Seafolly v Fewstone [http://www.austlii.edu.au/au/cases/cth/FCA/2014/321.html <nowiki>[2014]</nowiki> FCA 321]
Seafolly v Fewstone [2014] FCA 321
203.206.139.2 00:31, 18 July 2014 (UTC)
change or remove default index page name
Hi, for some reason, all my links include /index.php/ on the URL, which is very annoying and affects SEO negatively. Even when accessing the domain directly, I am redirected to "/index.php/MainPage".
The question is, how do I get rid or change this. I have root access to the entire server and can edit all files. Thanks!
MediaWiki 1.21.1 PHP 5.3 Andreszs (talk) 17:02, 17 June 2013 (UTC)
- See Short_URL. ☠MarkAHershberger☢(talk)☣ 18:39, 17 June 2013 (UTC)
Could not create directory "mwstore://local-backend/local-public/5/54"
Hello, I upgraded from 1.16 to 1.21 and now 1.21.1 I am running the latest MW(see below).
Installed software Product Version MediaWiki 1.21.1 PHP 5.3.8 (apache2handler) MySQL 5.1.60 Entry point URLs Entry point URL Article path /mediawiki-1.21.1/index.php/$1 Script path /mediawiki-1.21.1 index.php /mediawiki-1.21.1/index.php api.php /mediawiki-1.21.1/api.php load.php /mediawiki-1.21.1/load.php
After the upgrade from 1.16, if I attempt to upload a file, I get the error:
Could not create directory "mwstore://local-backend/local-public/5/54".
In LocalSettings.php: $wgEnabledUploads = true;
I have changed persmissions to 777 all the way down to /var/www/html/wiki/images. I have also changed owner/group to root, apache, and both users to no avail.
Has anyone had this problem and have it not be a permissions/ownership issue(s)? Any help would be most appreciated.
Thanks, Phil 192.12.119.2 (talk) 19:20, 17 June 2013 (UTC)
- Hi Phil,
- this problem is rather common. There have e.g. been cases, where it was caused by activated safe_mode (MediaWiki does not support that).
- But in most cases it's really wrong permissions or the permissions have not been applied recursively also to all subfolders of images/. 88.130.69.74 12:35, 18 June 2013 (UTC)
How do I add geo-coordinates to a wiki page?
I want to add geographic coordinates to my wiki page so that it shows geo-coordinates like the top right corner of this wiki page: http://en.wikipedia.org/wiki/One_Wall_Centre
Can someone verify how I do this? Do I need to use a template called Template:Coord and install the Scribunto extension? And then when add this on my wiki page: {{coord|40.744924|-74.006943|display=it}}
I should see the coordinate link right?
I'm also curious how I get the globe and map at the top right corner? I believe this requires WikiMiniAtlas but I'm not sure if I can just pull the map from Wikimedia's main WikiMiniAtlas server or if I have to host the wikiminiatlas on my own server. Thanks for your help. Peter321 (talk) 17:16, 18 June 2013 (UTC)
- It should work if you import that template and all its dependencies and install Scribunto. You'll have to ask User:Magnus Manske and User:Kolossos since they manage that service, but given that they are volunteers providing a free service using resources provided by the Wikimedia Foundation, I don't think they'll mind. ☠MarkAHershberger☢(talk)☣ 15:12, 19 June 2013 (UTC)
- Thanks for the info Mark. I will ask Magnus and Kolossos. Do you know if I have to run Scribunto in conjunction with the WikiMiniAtlas javascript files in order to get the globe icon and drop-down map? Backto1992 (talk) 06:17, 20 June 2013 (UTC)
- I do not. Magnus probably will. ☠MarkAHershberger☢(talk)☣ 15:23, 20 June 2013 (UTC)
- Thanks for the info Mark. I will ask Magnus and Kolossos. Do you know if I have to run Scribunto in conjunction with the WikiMiniAtlas javascript files in order to get the globe icon and drop-down map? Backto1992 (talk) 06:17, 20 June 2013 (UTC)
CentralAuth: Global accounts not globally usable
Hi,
I installed CentralAuth and did pretty much everything like described in the walkthrough.
My LocalSettings.php files look like this:
require_once ("$IP/extensions/CentralAuth/CentralAuth.php");
$wgConf = new SiteConfiguration;
$wgLocalDatabases = array( 'cswiki', 'dewiki', 'enwiki', 'eswiki', 'frwiki', 'huwiki', 'hywiki', 'plwiki', 'poolwiki', 'ptwiki', 'svwiki' );
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array(
'wiki'
);
$wgConf->suffixes = $wgLocalDatabases;
$wgConf->localVHosts = array( '1.2.3.4' );
$wgConf->fullLoadCallback = 'wmfLoadInitialiseSettings';
$wgConf->siteParamsCallback = 'efGetSiteParams';
$wgConf->extractAllGlobals( $wgDBname );
$wgConf->settings = array(
'wgServer' => array(
'cswiki' => 'http://cs.domain.com',
'dewiki' => 'http://de.domain.com',
'enwiki' => 'http://en.domain.com',
'eswiki' => 'http://es.domain.com',
'frwiki' => 'http://fr.domain.com',
'huwiki' => 'http://hu.domain.com',
'hywiki' => 'http://hy.domain.com',
'plwiki' => 'http://pl.domain.com',
'poolwiki' => 'http://pool.domain.com',
'ptwiki' => 'http://pt.domain.com',
'svwiki' => 'http://sv.domain.com',
),
'wgScriptPath' => array(
'default' => '/w',
),
'wgArticlePath' => array(
'default' => '/wiki/$1',
),
'wgLanguageCode' => array(
'cswiki' => 'cs',
'dewiki' => 'de',
'enwiki' => 'en',
'eswiki' => 'es',
'frwiki' => 'fr',
'huwiki' => 'hu',
'hywiki' => 'hy',
'plwiki' => 'pl',
'poolwiki' => 'en',
'ptwiki' => 'pt',
'svwiki' => 'sv',
),
'wgLocalInterwiki' => array(
'default' => '$lang',
),
);
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return array(
'suffix' => $site,
'lang' => $lang,
'params' => array(
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
),
'tags' => array(),
);
}
$wgCentralAuthAutoNew = true;
I have a user named "Till Kraemer" on all 11 wikis. If I go to Special:MergeAccount, I can merge all 11 accounts into one global account and everything is fine. 11 local wikis are shown on Special:CentralAuth/Till_Kraemer.
I have a user named "Bot" on only 4 wikis. If I merge this account to a global account via Special:MergeAccount, I can only use this account on 4 wikis. Only 4 local wikis are shown on Special:CentralAuth/Bot. If I try to log in with this account on one of the other 7 wikis, I get an error that the user "Bot" doesn't exist. However, if I try to register the user "Bot" on one of the 7 other wikis, it gives me the error, that there is already a global user named "Bot".
Another weird thing is that in the local wikis listed on Special:CentralAuth/Till_Kraemer and Special:CentralAuth/Bot all names of the wikis are just "/wiki/" instead of "en.domain.com" etc., but the links are fine ("http://en.domain.com/wiki/User:Till_Kraemer" etc).
Any suggestions would be super cool.
Thanks and cheers, Till Kraemer (talk) 17:42, 18 June 2013 (UTC)
- I am having the same problem all mine are showing as for local wikis /wiki but not the accutral domain 86.171.33.75 19:31, 18 June 2013 (UTC)
- I'm using MediaWiki 1.22.0 now and the domains are displayed correctly now. However, I still have the problem that user "Bot" can be only used on 4 wikis. Any ideas? Thanks and cheers, Till Kraemer (talk) 15:50, 10 January 2014 (UTC)
- P.S.: I registered a new account on one of the wikis and that account also can be only used on one wiki. Although I've set
$wgCentralAuthAutoNew = true;
, it seems to create just a local account but this isn't entirely true because that user is in table localuser and globaluser of database centralauth. - I'm really running out of tricks here. Till Kraemer (talk) 17:55, 10 January 2014 (UTC)
- P.P.S.: I just noticed that I can manually create local user "Bot" on the other wikis via
php CentralAuth/maintenance/createLocalAccount.php
, but there has to be a way to do that automatically. Till Kraemer (talk) 23:03, 10 January 2014 (UTC)
- P.P.S.: I just noticed that I can manually create local user "Bot" on the other wikis via
- P.S.: I registered a new account on one of the wikis and that account also can be only used on one wiki. Although I've set
- I'm using MediaWiki 1.22.0 now and the domains are displayed correctly now. However, I still have the problem that user "Bot" can be only used on 4 wikis. Any ideas? Thanks and cheers, Till Kraemer (talk) 15:50, 10 January 2014 (UTC)
[RESOLVED] Protect Special pages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How can I protect Special:Special_pages to only registered user read? I already have $wgGroupPermissions['*']['edit'] = false; but I don't want everyone see Special pages 200.201.164.98 (talk) 18:34, 18 June 2013 (UTC)
- $wgGroupPermissions['*']['read'] = false; prevents viewing the complete wiki for anonymous users. What you need might be possible based on Namespaces. See Manual:Namespace. 88.130.69.74 22:00, 18 June 2013 (UTC)
- I don't want to block all pages to anonymous, I just want to block Special pages. I read this Manual:Namespace, and I want to block anonymous to view "Special" with namespace -1. How can I do that? 200.201.164.98 11:31, 19 June 2013 (UTC)
- Now that you have described so clearly what you want, I think this is possible with a hook.
- Check the list Manual:Hooks and pick the one, which is executed, when a user tries to view a page. Then inside this hook you can check, if the current page is in namespace "-1" and if the user is currently logged in. If the page is in namespace "-1" and the user is not logged in, set permission to view the page to false. 88.130.69.74 12:04, 19 June 2013 (UTC)
- I read Manual:Hooks but I cant find what I want, sorry...I just found a ArticleViewHeader option, in this case I can use like this: $wgHooks['ArticleViewHeader'][] = array( 'namespace -1 view = false' );. Is this? How can I write that code? 200.201.164.98 13:50, 19 June 2013 (UTC)
- Manual:Special pages has a link to a message that shows how to making a few SpecialPages restricted. Maybe that would help you? ☠MarkAHershberger☢(talk)☣ 14:50, 19 June 2013 (UTC)
- Manual:Special_pages#Restricting_page_access This is exact what I want! but I don't know how use in my wiki, I have to add this on my LocalSettings:
- function __construct() {
parent::__construct( 'MyExtension', 'editinterface' ); // restrict to sysops
- }
- ? 200.201.164.98 18:43, 19 June 2013 (UTC)
- That code snippet is for writing your own special page. You need to look at the code on the link I provided or further down on Special pages. Adding something like this to your LocalSettings.php should work, but I haven't tested this:
- ☠MarkAHershberger☢(talk)☣ 19:03, 19 June 2013 (UTC)
function disableAllSpecialPages(&$list) { global $wgUser; if(!$wgUser->isAllowed('editinterface')) { $list = array(); } return true; } $wgHooks['SpecialPage_initList'][]='disableAllSpecialPages';
- The above code snippet by Mark works great!
- Just some difference:
- Use isLoggedIn instead of isAllowed
- Enable the "Login Page" (that is a Special page)
- So you can do it adding this row:
- JazzoWiki (talk) 10:05, 20 September 2013 (UTC)
function disableAllSpecialPages(&$list) { global $wgUser; if(!$wgUser->isLoggedIn()) { $list = array(); // Enable Login page $list['Userlogin'] = "LoginForm"; } return true; } $wgHooks['SpecialPage_initList'][]='disableAllSpecialPages';
- This works like a charm!
- only login is allowed even the user knows the special pages names and paths!
- Thanks a lot!
- David davidbrito 12:20, 7 April 2014 (UTC)
- Unfortunately, whilst hiding special pages, UserLogin now returns an internal error - Fatal exception of type "Wikimedia\Assert\ParameterAssertionException" 49.228.211.138 (talk) 23:40, 12 August 2017 (UTC)
- The above hack is 4 years old and might not work as is.
- Would be easier to simply use Extension:Lockdown. AhmadF.Cheema (talk) 02:12, 13 August 2017 (UTC)
- Manual:Special pages has a link to a message that shows how to making a few SpecialPages restricted. Maybe that would help you? ☠MarkAHershberger☢(talk)☣ 14:50, 19 June 2013 (UTC)
- I read Manual:Hooks but I cant find what I want, sorry...I just found a ArticleViewHeader option, in this case I can use like this: $wgHooks['ArticleViewHeader'][] = array( 'namespace -1 view = false' );. Is this? How can I write that code? 200.201.164.98 13:50, 19 June 2013 (UTC)
- I don't want to block all pages to anonymous, I just want to block Special pages. I read this Manual:Namespace, and I want to block anonymous to view "Special" with namespace -1. How can I do that? 200.201.164.98 11:31, 19 June 2013 (UTC)
problem with tmp file
hi how can I fix Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/root/tmp) is not within the allowed path(s): (/home2/random:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/random/public_html/includes/GlobalFunctions.php on line 2470 because if I set $wgTmpDirectory !== true it wont allow me to upload photos but if I set it to false there the issue on top of the wiki and it lets me upload photos website located at http://random-wikisaur.tk 86.171.33.75 (talk) 19:02, 18 June 2013 (UTC)
- Don't put temporary files inside /root/. Put them into /tmp/! The location where uploaded files land can be configured using the upload_tmp_dir configuration option. 88.130.69.74 21:52, 18 June 2013 (UTC)
- Ok 86.171.33.75 06:22, 19 June 2013 (UTC)
- Where should I put tmp in which folder due I put it in Mediawiki 86.171.33.75 06:24, 19 June 2013 (UTC)
- No folder in MediaWiki. upload_tmp_dir is a setting in the configuration of PHP. 88.130.100.168 12:16, 19 June 2013 (UTC)
- Ok but the error is Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/root/tmp) is not within the allowed path(s): (/home2/random:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/random/public_html/includes/GlobalFunctions.php on line 2470 90.213.133.48 16:16, 19 June 2013 (UTC)
- Yes. This error tells you that PHP is trying to put temporary files in the folder /root/tmp/. However, open_basedir is set in a way, so that this folder is not accessable for PHP. Tell PHP that it should put its temporary files in one of the folders, which are inside the open_basedir. 88.130.100.168 22:04, 19 June 2013 (UTC)
- Ok but the error is Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/root/tmp) is not within the allowed path(s): (/home2/random:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/random/public_html/includes/GlobalFunctions.php on line 2470 90.213.133.48 16:16, 19 June 2013 (UTC)
- No folder in MediaWiki. upload_tmp_dir is a setting in the configuration of PHP. 88.130.100.168 12:16, 19 June 2013 (UTC)
- Where should I put tmp in which folder due I put it in Mediawiki 86.171.33.75 06:24, 19 June 2013 (UTC)
- Ok 86.171.33.75 06:22, 19 June 2013 (UTC)
The colour of links in tables
What's the common way of changing the colour of links in tables? This
{| style="background-color:black;" |- | style="color:white;" | no link | style="color:white;" | [[Main page|link here]] |}
results in the following, with the link in blue:
no link | link here |
Cavila 19:20, 18 June 2013 (UTC)
- Use CSS styles and put them into the page [[MediaWiki:Common.css]]. They will then overwrite the default, which is set in the skin itself. You can use a tool like Firebug for Firefox to see, which definition is actually used for a link so that you know, what you have to overwrite. 88.130.69.74 21:57, 18 June 2013 (UTC)
- Ok, thanks - I was hoping it could be done using a more direct/inline approach, but CSS styles will do then. Firebug is a wonderful tool for some "field experience" in CSS. Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 22:06, 18 June 2013 (UTC)
- Some information on links and link syntax are on page Help:Links. However, I don't think you want to manually surround each link tag in a table with span tags and style attribute, which then holds the color... ;-) 88.130.69.74 22:19, 18 June 2013 (UTC)
- Ok, thanks - I was hoping it could be done using a more direct/inline approach, but CSS styles will do then. Firebug is a wonderful tool for some "field experience" in CSS. Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 22:06, 18 June 2013 (UTC)
No input file specified?
I had got some help on making the short URL's work and it's been working for weeks now.
Today when I went on the wiki, I get a blank white page that says "No input file specified."
Any ideas why this is happening now? I still can get to the wiki by using the long URL's...so it seems something has changed maybe with the host or somewhere I don't know, but thought I'd ask here first. 98.189.165.213 (talk) 19:24, 18 June 2013 (UTC)
- I think something changed with GoDaddy's handling of Apache or whatever...I don't know, but we haven't changed anything with the mediawiki files and all of a sudden things don't work.
- No one else has run into this eh? 98.189.165.213 21:57, 19 June 2013 (UTC)
- If you think something has changed with your host, you should post on their forums. ☠MarkAHershberger☢(talk)☣ 01:00, 20 June 2013 (UTC)
- I finally got an answer that made sense.
- They said they changed from Apache 2.2.22 to 2.4.
- They won't tell me how to change the htaccess so it will now work with 2.4 and I got help here with getting it to work with the previous version of Apache, so I'm at a loss at what to do to change it to work for 2.4.
- This change has affected other areas of my website that use short URL's, but hopefully someone will be able to help me figure out how to get the short URL's on the wiki working again.
- Thank you! 98.189.165.213 16:53, 25 June 2013 (UTC)
- Hmm, this does not seem to be a MediaWiki problem. Try putting a file in your web root folder, e.g. called test.php and put this content in it:
- <?php echo "Here I am."; ?>
- and then call this file with your browser. Do you see the text? 88.130.91.246 17:16, 25 June 2013 (UTC)
- Yes, I do see the text.
- The problem only appears when the short URL is used. If I use the full URL I see the wiki, but the htaccess file that used to work with the previous version of Apache seems to have broken with the latest. 98.189.165.213 17:56, 25 June 2013 (UTC)
- Ok. I thought the problem would be that Apache now is misconfigured so that no matter what you change in MediaWiki it would not help, as you could not access anything with that Apache config. But that does not seem to be the case then.
- Ok, you say that when you access the wiki without rewriting the URL (meaing with something like mywiki.com/wiki/index.php?title=Main_Page) then it works. But rewritten URLs (= short URLs) do not work. Is that correct? 88.130.91.246 18:24, 25 June 2013 (UTC)
- Yes, that's exactly what's happening...the short URL's all stopped working. 98.189.165.213 20:40, 25 June 2013 (UTC)
- Alright. Then the error must be somewhere in the server config or in your .htaccess file. Since I don't think you have access to the server config and if it was that broken for all users, your host would have fixed it already, I assume the problem is in .htaccess. What do you have in that file? The recommended setup can be seen on Manual:Short URL. 88.130.91.246 21:03, 25 June 2013 (UTC)
- This is what I have that was working until this update
- 98.189.165.213 22:05, 25 June 2013 (UTC)
RewriteCond %{REQUEST_FILENAME} !-d RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?(.*)$ /index.php/$1 [L,QSA] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
- Hi!
- Apache is very dainty with the format of the .htaccess file. If you only put one sign at a place, where it is not expectd, the whole server won't work anymore.
- I would try removing the very first line = the first RewriteCond. It is noted above "RewriteEngine On", so mod_rewrite has not yet been told that it should work at all. Maybe that already causes the error? 88.130.91.246 11:07, 26 June 2013 (UTC)
- Thanks for the input.
- I tried removing that line and it still gives me the error. I wonder if anything needs to be changed in the localsettings file now..?
- This is what I currently have:
$wgScriptPath = "";
- $wgScriptExtension = ".php";
- $wgArticlePath = "/$1";
$wgUsePathInfo = true;
98.189.165.213 19:28, 26 June 2013 (UTC)- Nobody else has run into this with GoDaddy and MediaWiki eh? 98.189.165.213 22:42, 10 July 2013 (UTC)
- I have not yet used GoDaddy. ;-)
- Try trimming down .htaccess until it works. E.g. try it with only these lines in .htaccess and see, if that helps:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?(.*)$ /index.php/$1 [L,QSA]
- Or try without any .htaccess file... 88.130.81.67 11:49, 11 July 2013 (UTC)
- Thanks,
- Without htaccess...I wouldn't get short URL's. I'll try removing some lines though. 98.189.165.213 22:11, 12 July 2013 (UTC)
- Yes, that will break short URLs. You can add the lines afterwards again.
- It's only to see, if the problem really comes from your .htaccess file or not. 88.130.109.50 13:54, 13 July 2013 (UTC)
- Bummer...none of that worked.
- I'm lost...looks like I have to either change all my documentation or change hosts. 98.189.165.213 18:49, 15 July 2013 (UTC)
- This is what I have in my localsettings, if this might need some modification
- [code]
- $wgScriptPath = "";
- $wgScriptExtension = ".php";
- $wgArticlePath = "/$1";
- $wgUsePathInfo = true;
- [/code] 98.189.165.213 18:50, 15 July 2013 (UTC)
- Nobody else has run into this with GoDaddy and MediaWiki eh? 98.189.165.213 22:42, 10 July 2013 (UTC)
- Alright. Then the error must be somewhere in the server config or in your .htaccess file. Since I don't think you have access to the server config and if it was that broken for all users, your host would have fixed it already, I assume the problem is in .htaccess. What do you have in that file? The recommended setup can be seen on Manual:Short URL. 88.130.91.246 21:03, 25 June 2013 (UTC)
- Yes, that's exactly what's happening...the short URL's all stopped working. 98.189.165.213 20:40, 25 June 2013 (UTC)
- If you think something has changed with your host, you should post on their forums. ☠MarkAHershberger☢(talk)☣ 01:00, 20 June 2013 (UTC)
[RESOLVED] Post 1.19 -> 1.21 upgrade: Nested table formatting fail
Hello, I just executed the upgrade from 1.19 to 1.21 (on windows) at a customer site. The process was flawless, however the one casualty of the process seems to be that the wikitable styling does not get applied to nested tables.
The following code sample rendered nicely before the upgrade:
Linked Table(s) Information | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Type | Source | Details | ||||||||||||
Index Control | Linked | C:\somefolder\some.file | This table stores information which is used by the application.
|
Is it possible that I missed updating an extension or something? It does not appear that the base installation was modified to include any custom, or updated extensions prior to performing the upgrade.
Any assistance is appreciated. Thanks ! PaysonSolutions (talk) 22:57, 18 June 2013 (UTC)
- Works for me after fixing the code. You had a ", table centered" after class="wikitable" on the inner table, which is bad syntax. Maybe it was somehow allowed on previous versions.
- ! colspan="4" |Linked Table(s) Information
- ! scope="col" | Name
- ! scope="col" | Type
- ! scope="col" | Source
- ! scope="col" | Details
- ! Index Control
Linked | C:\somefolder\some.file | This table stores information which is used by the application.
|
Ciencia Al Poder (talk) 11:39, 20 June 2013 (UTC)
- Yes, I discovered that comma as well. I came back to check this article, and to post my solution.
- Funny that it worked under an earlier release.
- Thanks for the help ! PaysonSolutions (talk) 16:18, 21 June 2013 (UTC)
Drop-down box to capture user selection
Hi,
I've been searching for a way to add a basic embedded drop-down box/list to a page to capture a user choice within the existing page. Essentially, the user would select an option other than the default which would be captured and used to semantically tag that page. i.e. Page status::Template:Drop-down variable.
This seems like a fairly basic function but after searching the extension lists, support pages and Google; I've come up empty. Any pointers in the right direction would be greatly appreciated. I feel like I'm missing something really obvious. Thanks in advance.
- Note: Semantic Media Wiki and Semantic Forms are installed 123.2.150.150 (talk) 02:15, 19 June 2013 (UTC)
- Last try on this. To clarify, I'm trying to simply capture a user's choice from a dropdown list into a variable without generating a new form (embedded within the same page). Any ideas?
- MediaWiki 1.22
- PHP 5.3.10-1
- MySQL 5.5.30 123.2.150.150 23:53, 23 July 2013 (UTC)
- This is really something you want to ask the SMW folks: try here. ☠MarkAHershberger☢(talk)☣ 00:37, 24 July 2013 (UTC)
Best way to migrate (1.14 -> 1.21) to a new server and new version at the same time?
Hi,
we use MediaWiki on IIS6.0 windows server, PHP 5.2.0 and MySQL 5.0.45. We have a 500 page wiki, just text, 200 users.
What is the best way to migrate to a new server: we would like to set up a new IIS 7.0 windows server, MediaWiki 1.21. What PHP do you recommend? What MySQL do you recommend?
Plan: install new server, install new MediaWiki with new php and mysql. Export pages from old MediaWiki, import pages to new MediaWiki. Is it possible? Recommended? We don't need page history, we don't even need discussion pages. we don't even need users, but would like to import/export them if possible.
Thanks for the advice... 193.2.84.34 (talk) 08:29, 19 June 2013 (UTC)
- Hi!
- If you want to update to MediaWiki 1.21 (directly now are after switching to the new server), you should use PHP 5.3. For MySQL I would choose MySQL 5.5. 5.1 would work as well, but 5.5 will be supported longer (and if you already have 5.5, you will not have to do an update to 5.5 in the future).
- I don't know how well importing/exporting pages from and to MediaWiki works. I would have done a "usual" update: Exchange the MediaWiki source code and then run update.php.
- My plan would be this
- Install server, PHP, MySQL. Check that all settings are OK for MediaWiki, e.g. safe_mode off, memory limit OK, write permissions for the server set properly - most of these things should already be set up correctly on your old server; you can use that one to compare and check.
- Copy over all files of the old version of MediaWiki.
- Take a mysldump of your database from the old server and import it using mysql on the new server.
- Update database credentials in LocalSettings.php.
- At that point MediaWiki is installed completely; however, due to the changed PHP version it might be that MediaWiki does not work correctly, because it still is the old version.
- Do the upgrade to MediaWiki 1.21 as described here Upgrade.
- Go, seat yourself in the freezer and relax (it is 35°C here and it feels like 50). 88.130.69.74 12:14, 19 June 2013 (UTC)
- Hmmm, interesting. Why not setting up MediaWiki 1.21 on a new server and then importing mysql dump of the old database?
- Thanks
- It is 35 here and air condition is a bless. 193.2.84.34 13:11, 19 June 2013 (UTC)
- You could:
- unzip 1.21 on the new server
- copy LocalSettings.php and the images directory from the old server
- update the DB settings in the LocalSettings.php
- import the DB from the old server to the new server
- run update.php on the new server
- If you export and import pages, that will take longer than exporting and importing the database and you'll lose user information. ☠MarkAHershberger☢(talk)☣ 14:39, 19 June 2013 (UTC)
- It does not really matter: You can also set up a new MW 1.21 install on the new server as Mark said. In Mark's first step, you should not only copy over your LocalSettings.php file and the folder images/, but also extensions/ (if you used any; don't forget that there might be newer versions to update to) and the folder skins/, if you had modified a skin or created your own skin. 88.130.100.168 22:08, 19 June 2013 (UTC)
- You could:
Get the Category title in theme
Hello,
What´s the easiest way to get the category title to my theme.php? (like to have it as a class and to show different backgroundimages in different categories)
Thanks.
Stefan Steffekarl (talk) 09:25, 19 June 2013 (UTC)
[RESOLVED] PHP Fatal error: Maximum execution time of 30 seconds exceeded in \includes\HttpFunctions.php on line 693
Hey, I recently kept getting this error message when I am editing a page.
PHP Fatal error: Maximum execution time of 30 seconds exceeded in \includes\HttpFunctions.php on line 693
This have never happened to me before. And the server resources are pretty much free. e.g: CPU usage low, Memory usage low as well.
I can create a page without any problems, but I somehow can't edit a page.
I can't seem to find the reason causing this.
any help will be appreciated. Lnasterio (talk) 13:53, 19 June 2013 (UTC)
- Are you on a shared server? Did you recently install any extensions? ☠MarkAHershberger☢(talk)☣ 15:30, 19 June 2013 (UTC)
- It's my own server, I recently modified the "Vector" skin.
- just to add Google Analysis codes.
- After few tests, I found that the error will only occur when the page name contain "DATA/"
- this seem to be causing the problem.
- any page without it, works perfectly fine. Lnasterio (talk) 17:42, 19 June 2013 (UTC)
- Is the wiki public? Could you give us a URL so we can see this problem in action? ☠MarkAHershberger☢(talk)☣ 18:43, 19 June 2013 (UTC)
- If you can easily reproduce the problem (as it seems it happens when pagename contains DATA/), try disabling all extensions to see if one of them is causing the problem, and/or undo your changes to the Vector skin, to try to isolate the problem and see if the problem comes from any of the extensions. Ciencia Al Poder (talk) 11:30, 20 June 2013 (UTC)
- I found the problem, it appears to be caused by my analytical scripts written inside the vector skin.
- For some reason, wiki has to load up the skin before submission of each edit.
- Since I was having trouble connecting to the analytical site.
- That's why vector fails to load up completely, thus in the end causing me unable to submit edit.
- PS: because my DATA pages contain more information than other, that's why only these pages causes problem.
- Although problem is solved, however, I think this should be considered as a bug.
- "Load vector skin before submission"
- this logic in the program may cause more trouble in the future. Lnasterio (talk) 13:20, 21 June 2013 (UTC)
Suggestion for Mediawiki
Hi I have a suggestions or Mediawiki the suggestion is to redo the installion and to have a new look and feel of the new installation redo creating an account on installation so people know when it says name it means user name and add more new features to it 90.213.133.48 (talk) 14:50, 19 June 2013 (UTC)
- Great suggestions. Can you provide a design or (better) code to implement this? ☠MarkAHershberger☢(talk)☣ 15:39, 19 June 2013 (UTC)
- Not really but the installation now is old and it' is time for an upgrade to make it easer 90.213.133.48 16:15, 19 June 2013 (UTC)
- Another suggestion is to support tmp in root because I am getting this error Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/root/tmp) is not within the allowed path(s): (/home2/random:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/random/public_html/includes/GlobalFunctions.php on line 2470 and I doint know how to fix it so could please allow it in the allowed paths 90.213.133.48 16:20, 19 June 2013 (UTC)
- That isn't a MediaWiki problem, but a PHP configuration issue. See this stackoverflow post for a hint of how to solve it.
- And saying the installer is old now means you aren't familiar with its "recent" update. If you think this is bad, you should have seen it before Chad worked on it! ☠MarkAHershberger☢(talk)☣ 17:04, 19 June 2013 (UTC)
- ok sorry 90.213.133.48 18:37, 19 June 2013 (UTC)
- Another suggestion is to support tmp in root because I am getting this error Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/root/tmp) is not within the allowed path(s): (/home2/random:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/random/public_html/includes/GlobalFunctions.php on line 2470 and I doint know how to fix it so could please allow it in the allowed paths 90.213.133.48 16:20, 19 June 2013 (UTC)
- Not really but the installation now is old and it' is time for an upgrade to make it easer 90.213.133.48 16:15, 19 June 2013 (UTC)
[RESOLVED] Template not parsing properly
Product Version MediaWiki 1.20.5 PHP 5.3.10-1ubuntu3.6 (apache2handler) MySQL 5.5.31-0ubuntu0.12.04.2 Installed extensions Semantic MediaWiki (Version 1.8.0.4) ParserFunctions (Version 1.4.1) StringFunctions (Version 2.0.3) Validator (Version 0.5.1)
I'm trying to create a To_do Template. I've used the proper export and import instructions to get the template into my Wiki. At the top of every To-Do, it shows a bunch of unwanted HTML. Since this is a private Wiki, I can only provide a screenshot. Let me know if you need more information, i.e. configuration files, etc. Lieutdan13 (talk) 16:45, 19 June 2013 (UTC)
- I've partially fixed my issue. By enabling wgUseInstantCommons, I've managed to fix my 2nd arrow in my screenshot and the red 25px in my first arrow. I'm still seeing extra HTML above every To-Do block though. I'll play around with other settings to see if I can fix it. Lieutdan13 (talk) 17:24, 19 June 2013 (UTC)
- Anyone? No one has come across this issue with a clean installation of MediaWiki and attempting to create the "To do" template? Lieutdan13 (talk) 16:59, 21 June 2013 (UTC)
- What is $wgUseTidy set to? ☠MarkAHershberger☢(talk)☣ 03:32, 25 June 2013 (UTC)
- SOLVED!!
- $wgUseTidy was not set in LocalSettings.php. The default value is false, so I explicitly set it to true. The To Do list looks great now!
- Thank you so much for your reply! Lieutdan13 (talk) 12:44, 27 June 2013 (UTC)
- What is $wgUseTidy set to? ☠MarkAHershberger☢(talk)☣ 03:32, 25 June 2013 (UTC)
Error_log errors.
My viki has some erros on error_log. How i fix that errors?
[Thu Jun 20 00:37:11 2013] [error] [client 176.41.101.40] File does not exist: /home/gameofth/public_html/viki/404.shtml [Thu Jun 20 00:37:11 2013] [error] [client 176.41.101.40] File does not exist: /home/gameofth/public_html/viki/favicon.ico [Thu Jun 20 00:37:04 2013] [error] [client 85.97.230.175] File does not exist: /home/gameofth/public_html/forum/images/mobile/collapse.gif, referer: http://forum.gameofthronestr.com/konu-westeros-ve-ingiltere-arasindaki-benzerlikler.html [Thu Jun 20 00:34:05 2013] [error] [client 176.41.215.89] File does not exist: /home/gameofth/public_html/viki/403.shtml, referer: http://viki.gameofthronestr.com/index.php?title=Dosya:Rhoynartanrisi.jpg&filetimestamp=20120711232803 78.160.13.117 (talk) 20:48, 19 June 2013 (UTC)
- What you posted is an excerpt from error log. This log logs all requests for targets on your server, which do not actually exist. You cannot control, what people are requesting. Accordingly you cannot prevent the 404 errors, which are given out.
- Two solutions:
- create the missing resource, if that makes sense.
- It e.g. does for the favicon, File does not exist: /home/gameofth/public_html/viki/favicon.ico
- And your server redirects 404 errors to /home/gameofth/public_html/viki/404.shtml, so you should have that file as well.
- Do not create the target and ignore the log entry. 88.130.100.168 22:24, 19 June 2013 (UTC)
- create the missing resource, if that makes sense.
integrate the terms in Mediawiki to a 3rd party software that checks for terminology consistency in documents
Is there a way to integrate the terms in Mediawiki to a 3rd party software that checks for terminology consistency in documents?
We are thinking about Acrolinx, http://www.acrolinx.com/terminologymanagement.html , but we haven’t implemented it yet.
This application is used to ensure consistency of usage, not to provide the definitions.
I envision Acrolinx getting the list of words to check from the glossary we are creating or at least us having the option to export the list to Excel or CSV so we can import it into Acrolinx.
We provide the content for online help in the SIS applications so I don’t think it is feasible security-wise for the words to link back to Mediawiki.
One possibility, though would be for us to develop the glossary in XML and have Mediawiki use the same XML files as we use for its source.
Speaking of that, what IS the best way to provide the content to Mediawiki without having to type it all in? Saurabhbhagat123 (talk) 05:55, 20 June 2013 (UTC)
- The API is a good way to integrate MW with other packages. It will also let you provide content without typing it all in. ☠MarkAHershberger☢(talk)☣ 20:01, 20 June 2013 (UTC)
Active Directoy Group based Login Restrictions not working
Hi
I have been using Mediawiki for the past 4 months with Active directory integrated LDAP logins. Now every user in AD has access to all pages once they login. My requirement is to make Group based logins and restric all other users not to access mediawiki. For this, i have added the following in localsettings.php file which is not working. After adding the last line related to Required groups, it says incorrect user name and password. Please help.
$wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'ourdomainname' ); $wgLDAPServerNames = array( 'ourdomainname' => 'dc.ourdomainname dc.ourdomainname' ); $wgLDAPSearchStrings = array( 'ourdomainname' => 'domain\\USER-NAME' ); $wgLDAPEncryptionType = array( 'ourdomainname' => 'clear' ); $wgLDAPUseLocal = false; $wgMinimalPasswordLength = 1; $wgLDAPBaseDNs = array( 'ourdomainname' => 'dc=domain,dc=com' ); $wgLDAPSearchAttributes = array( 'ourdomainname' => 'sAMAccountName' ); $wgLDAPRequiredGroups = array( 'ourdomainname'=>array('CN=Wiki_Users,OU=Security Groups,OU=Others,DC=domain,DC=com') );
Sundaresanc (talk) 10:19, 20 June 2013 (UTC)
- You're probably better off asking here: Extension_talk:LDAP_Authentication ☠MarkAHershberger☢(talk)☣ 18:26, 20 June 2013 (UTC)
Why does new MediaWiki installation stop?
I am trying to install a new MediaWiki installation. I can reach the index.php page and get the following page:
MediaWiki 1.21.1
LocalSettings.php not found.
Please set up the wiki first.
When I click on the Please set up the wiki first. hyperlink,
This is the URL, which is correct.
http://appcentral:8587/mw-config/index.php
The page stays blank, and nothing happens. What should I check to see what is going wrong. This is a fresh, clean installation. There is no existing MySQL DB for the wiki.
Here are my versions:
Server version: Apache/2.2.15 (Unix) Server built: May 13 2013 22:11:16 PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies MediaWiki 1.21.1
`mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline 5.1` Charles M Norton Municipal Programmer (talk) 19:15, 20 June 2013 (UTC)
- You probably need to install the php-xml package. ☠MarkAHershberger☢(talk)☣ 19:40, 20 June 2013 (UTC)
- Thanks. That fixed it. Charles M Norton Municipal Programmer (talk) 20:25, 20 June 2013 (UTC)
- I have this exact same problem except that I already have php-xml installed...
- Package php-xml-5.4.16-1.fc18.x86_64 already installed and latest version
- Nothing to do
- What do I do? I can't find a file named LocalSettings.php anywhere... 166.70.121.31 20:25, 21 June 2013 (UTC)
- Did you restart Apache? AKlapper (WMF) (talk) 11:21, 22 June 2013 (UTC)
- For the records, this is filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=42205 in the bug database. AKlapper (WMF) (talk) 11:20, 22 June 2013 (UTC)
- Thanks. That fixed it. Charles M Norton Municipal Programmer (talk) 20:25, 20 June 2013 (UTC)
How to import old Main Page Into New MediaWiki Installation
Product Version MediaWiki 1.21.1 PHP 5.3.3 (apache2handler) MySQL 5.1.69
I have successfully imported all my old MediaWiki pages into my new installation.
I checked the XML file, and it looks like the main page was exported.
What do I modify to make the old main page be the current main page? Charles M Norton Municipal Programmer (talk) 21:18, 20 June 2013 (UTC)
- This is resolved. The original main page was the first page, and there edits on top of that. I reverted to the original main page that came over. Charles M Norton Municipal Programmer (talk) 22:37, 20 June 2013 (UTC)
How to receive email for monitored page?
How to receive email for monitored page? Raymondpo (talk) 01:46, 21 June 2013 (UTC)
- Go to Preferences/user profile at the top of the page Christian75 (talk) 13:33, 16 September 2013 (UTC)
new and old file links does not work after upgrading mediawiki.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I can not make any file links anymore the page only show these strange links, and the link does not work. the file is available under uploaded files.
Backup Procedure i Nianet. 2] Restore Procedure i Nianet. 3] Systematic Restore Procedure i Nianet. 4]
Please help me with a fix. Thanks
/Ken, from Denmark
old version:
MediaWiki 1.19.2 PHP 5.3.3-7+squeeze14 (apache2handler) MySQL 5.1.63-0+squeeze1
new version:
Product Version MediaWiki 1.21.1 PHP 5.3.3-7+squeeze14 (apache2handler) MySQL 5.1.63-0+squeeze1 83.136.89.52 (talk) 06:54, 21 June 2013 (UTC)
- Can you post an example of a file link, which is not working? Please put it inside <nowiki>...</nowiki> tags here, so that we can see it properly. 88.130.115.255 11:52, 21 June 2013 (UTC)
Adding wikitext or HTML to Mediawiki:Minoredit
Is there any chance to add wikitext or HTML to the system message Mediawiki:Minoredit?
I tried both but nothing seems to be parsed... Stefahn (talk) 08:54, 21 June 2013 (UTC)
Cannot connect My Wiki
Think my Wiki used the old version and it was hosted by this group
Okay I had to register a new Account, just to get help for my wiki site which I got through you.
Problem: My wiki site: Starbase 51gamewiki.me hosted the wiki for me. This does not work at the moment, why? I tried to connect to it today 21 June 2013 and got a web page saying it failed to connect. If I need to update How? I cannot connect to the site to update.
when I tried to log in to this Wiki site with my "other account" I could not, so I had to create a new account just to ask for help.
It is linked to the following account: Paul73
Could you please help me out here?
Thanks Paul19738 (talk) 10:53, 21 June 2013 (UTC)
- There is no response, when you query the server on port 80. This problem also affects wikis from other subdomains like goldminers... or redstone..., so it is most likely not a problem with your wiki, but with the whole server. You should ask the guys from gamewiki.me for help as it is their server. This page here only is a help page for MediaWiki related problems; however, currently you cannot even reach your MediaWiki installation, because the server does not work at all. 88.130.115.255 11:50, 21 June 2013 (UTC)
- I got my wiki via this site, but is there a link for gamewiki.me so I can contact them personally please?
- Nevermind their whole site is down, looks like it is their end *sigh*
- Which link on "this" site allows for free hosting after registering for a Wiki please?
- I am referring to an Ad supported wiki like the one I had with gamewiki.me, I see the links but unsure which to click on as for me to do it FTP leaves me puzzled and I do not have a hosting FTP site anyway, would not know how to operate one. Hence why I am asking about an Ad supported one where the basic wiki "frame" is preset up for the user, but it is upto the user to fill the Wiki with information?
- thanks Paul19738 (talk) 16:58, 21 June 2013 (UTC)
- gamewiki.me is offered by Wikkii.com - their site is currently down as well. I also found no contact information. They obviously also don't have a twitter account, but people already wrote there that the site would be broken, e.g. on June 16th or 15th.
- Mediawiki.org does not offer free hosting. But you can get a wiki for free from someone else. Not from mediawiki.org, but from someone else. E.g. from Wikia. They set it up all for you and you can just use it. Is that what you want? 88.130.68.161 23:52, 21 June 2013 (UTC)
- Thanks for the information, I was only currently enquiring at this moment in time, I always like to find things out before I go for something.
- But for now I will just leave it at the questions asked and those that have been answered.
- Thanks for your all your help it is truly appriciated, if I decide to start another I will take you up on your offer of getting one with wikia through yourselves. Paul19738 (talk) 08:26, 22 June 2013 (UTC)
How can I add to wiki page Google Map from MarineTraffic?
I need to add to my wikisite google map from www.marinetraffic.com There are example of script of map which can be placed to html. Below there is it:
<script type="text/javascript"> width='80%'; //the width of the embedded map in pixels or percentage height=400; //the height of the embedded map in pixels or percentage border=1; //the width of border around the map. Zero means no border notation=false; //true or false to display or not the vessel icons and options at the left shownames=false; //true or false to dispaly ship names on the map latitude=37.4460; //the latitude of the center of the map in decimal degrees longitude=24.9467; //the longitude of the center of the map in decimal degrees zoom=9; //the zoom level of the map. Use values between 2 and 17 maptype=3; //use 0 for Normal map, 1 for Satellite, 2 for Hybrid, 3 for Terrain trackvessel=0; //the MMSI of the vessel to track, if within the range of the system fleet=''; //the registered email address of a user-defined fleet to display remember=false; //true or false to remember or not the last position of the map </script> <script type="text/javascript" src="http://www.marinetraffic.com/ais/embed.js"></script>
Could anybody help me to solve this problem? 84.204.22.130 (talk) 11:53, 21 June 2013 (UTC)
- Have you checked http://www.mediawiki.org/wiki/Manual:$wgRawHtml ? AKlapper (WMF) (talk) 11:23, 22 June 2013 (UTC)
- I'll check. Thank you! 84.204.22.130 07:43, 24 June 2013 (UTC)
- I have the same problem as topicstarter. However i've already checked $wgRawHtml, that did not work.
- May be someone could advise something else? Thank you in advance! 84.204.22.130 08:44, 24 June 2013 (UTC)
Scribunto libraries and mw.title.getContent()
Hello, everyone. I'm not sure that I use right place for my question but, maybe some can help here or to direct me somewhere else.
SO the problem is that I'm using Extension:Scribunto/Lua reference manual. I'm trying to get content of page and I've created object with title.new, but for some reason all atributes work exept function getContent(). It says Script error, and I have no idea how to debug it.
Please, check module and result. Thanks. ptQa (talk) 14:20, 21 June 2013 (UTC)
Using MediaWiki API with the continue/query-continue commands
Hi everyone,
I need some help Using the Mediawiki API with the "Continue" or "query-continue" Command to pull information from my wiki articles. I have a large number of wiki articles (more than 800 currently) and I need to use the api to pull them in batches of 50 and then print ou sections.
My API call works properly:
http://localhost/w/api.php?action=query&list=allpages&apfrom=a&apto=z&apnamespace=0&format=xml&aplimit=50 I am querying all pages, therefore "apfrom" and "apto".
I just need help processing the code with PHP and CURL accessing the API and processing the batches of 50 and using the "continue" to access more records until I hit the end. So far my php code is:
//the CURL commands here work and outputs a data set but only for the first 50 records, so I need to //call "continue" to get to the end. // Mediawiki has a limit of 500 records so it's good practice to call continue anyways $url = sprintf(http://localhost/w/api.php? action=query&list=allpages&apfrom=a&apto=z&apnamespace=0&format=xml&aplimit=50'); $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'My site'); $res = curl_exec($ch); $continue = ''; while ( //something gets set to true here not sure what, maybe query-continue?) { //Maybe I need something other than $res['query-continue]?? if (empty($res['query-continue'])) { exit; } else { $continue = '&apcontinue='.urlencode($res['query-continue']); //Again not sure if $res['query']['allpages'] is right, just a guess foreach ($res['query']['allpages'] as $v) { echo $v['title']; } } }
Can someone correct my while loop code above so I can do a simple print out of the title from each wiki article in the loop? I've done a lot of searching online but I'm stuck!! I found a python loop example at http://www.mediawiki.org/wiki/API:Query but I have to do it in PHP. And the mediawiki documentation doesn't have examples for php and other langauges, only python. And I am not sure if I call continue or query-continue.
Thanks for your help!
Peter Peter321 (talk) 05:04, 22 June 2013 (UTC)
- Not sure about your PHP code, but be sure to include
&formatversion=2
in your query! Otherwise the continue mechanism can get all confused by unicode characters in article titles. I can't say how many days I wasted wrestling with the API before figuring out this simple fix... This should be posted somewhere prominently in the instructions. (Or better yet -- why not use pageids rather than article titles in the continue values?? That would be so much cleaner.) DavidRideout (talk) 23:22, 17 September 2018 (UTC)
talk page suggestion for mw
hi I would like to suggest the talk page has a new design I would like to suggest that when someone clicks add topic and puts there topic title and the comment and click on submit and the comment would be at the bottom of the page instead could it be at the top of the page so it is easer for people to help people how about including the liquid discussion extension into the core and cite extension into core and parser function into core and wikieditor extension into core and diff extension into core please 109.150.66.198 (talk) 15:08, 22 June 2013 (UTC)
- How about some punctuation marks? Maybe you can rephrase your question. 88.130.113.234 16:56, 22 June 2013 (UTC)
- what I mean is could someone add extension wikieditor, cite, vector, parserfunction, mwsearch and diff to the core because they seem to be more important to be an extension so why not put it into the core of mediawiki and to redo the talk page by instead of it show old to new changing it new to old would be helpful to people who want to help other but have to go to the bottom to find the latest comment 109.150.66.198 17:41, 22 June 2013 (UTC)
- It would make more sense for new messages to appear at the top, but I don't see a change like that being implemented. You would probably need to make an extension. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:07, 23 June 2013 (UTC)
- what I mean is could someone add extension wikieditor, cite, vector, parserfunction, mwsearch and diff to the core because they seem to be more important to be an extension so why not put it into the core of mediawiki and to redo the talk page by instead of it show old to new changing it new to old would be helpful to people who want to help other but have to go to the bottom to find the latest comment 109.150.66.198 17:41, 22 June 2013 (UTC)
Wiki is getting 500 error after server move [RESOLVED]
I added the files and the database, and set new connection settings for the new database after moving from GoDaddy shared hosting to a VPS server. The wiki is getting a 500 error, but seems to be working since going to the domain seems to bring up the name of the main page in the URL. I suspect maybe this is a PHP error and it's just not displaying the file and line with the error. Lieutenant Aleksandr Reznov 16:48, 22 June 2013 (UTC)
- So, when you already presume that its a PHP error, why don't you activate error logging and look it up? 88.130.113.234 16:57, 22 June 2013 (UTC)
- I just enabled it with
- display_errors = On
- error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
- I got this:
- ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:07, 22 June 2013 (UTC)
Notice: Use of undefined constant NS_FORUM - assumed 'NS_FORUM' in /home/sasha/web_servers/sturmkrieg.us/www/LocalSettings.php on line 307 Notice: Use of undefined constant NS_FORUM_TALK - assumed 'NS_FORUM_TALK' in /home/sasha/web_servers/sturmkrieg.us/www/LocalSettings.php on line 308 Fatal error: Smarty error: unable to write to $compile_dir '/home/sasha/web_servers/sturmkrieg.us/www/extensions/Widgets/compiled_templates'. Be sure $compile_dir is writable by the web server user. in /home/sasha/web_servers/sturmkrieg.us/www/extensions/Widgets/smarty/Smarty.class.php on line 1095
- I just set the compiled templates directory to writable by the web server as instructed by Extension:Widgets and the wiki displays now, although not totally correctly and it still displays the errors about forum namespace protection lines at the top of the page.
- This is the code from LocalSettings.php:
# ----------Banned from forum settings----------- $wgNamespaceProtection[NS_FORUM] = array( 'forum-edit' ); $wgNamespaceProtection[NS_FORUM_TALK] = array( 'forum-talk-edit' ); $wgGroupPermissions ['user']['forum-edit'] = true; $wgGroupPermissions ['user']['forum-talk-edit'] = true; $wgRevokePermissions ['forumban']['forum-edit'] = true; $wgRevokePermissions ['forumban']['forum-talk-edit'] = true;
- The two namespace protection lines are 307 and 308. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:21, 22 June 2013 (UTC)
- You have to define the constants, which you use for your custom namespaces, before you actually use them. 88.130.113.234 17:25, 22 June 2013 (UTC)
- How do I do that? Sorry, I didn't have this problem before, or maybe the error reporting settings just didn't display what was happening. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:30, 22 June 2013 (UTC)
- error reporting tells you all: You are using a constant without having defined it before. Just define namespace and a number for it:
define('NS_FORUM', 100); define('NS_FORUM_TALK', 101);
- That is all. 88.130.113.234 17:35, 22 June 2013 (UTC)
- Thanks! I just added
define('NS_FORUM', 170); define('NS_FORUM_TALK', 171);
- It turns out that the namespace was defined after the namespace protection. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:41, 22 June 2013 (UTC)
- How do I do that? Sorry, I didn't have this problem before, or maybe the error reporting settings just didn't display what was happening. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:30, 22 June 2013 (UTC)
- You have to define the constants, which you use for your custom namespaces, before you actually use them. 88.130.113.234 17:25, 22 June 2013 (UTC)
Is it possible to redirect external links from https to http?
I have a self signed SSL certificate for using with PHPmyAdmin and email, and I'd like to provide it as an option for MW users who understand the warning it generates and who would like to use the security it provides. The problem is that such users would copy links that are https, which would trigger warnings for anyone using them. Is there a way that https links from external domains can be redirected to http? Lieutenant Aleksandr Reznov 21:21, 22 June 2013 (UTC)
- E.g. via .htaccess or in the server config. 88.130.113.234 22:24, 22 June 2013 (UTC)
- With .htaccess ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:03, 23 June 2013 (UTC)
Mediawiki database size problem
Hi.
My viki database is 1.6GB. This is a problem? "Objectcache" table is 1.4gb, how it works this table? How i minimize "objectcache" table?
Thank you for answers. 78.160.13.117 (talk) 11:29, 23 June 2013 (UTC)
- Hi!
- No, generally such a size is not a problem. MySQL and PHP can handle that. However, you might want to make certain settings especially in MySQL to keep things running fast.
- For example the objectcache table contains only temporary data. You can manually purge this table, so that it is empty again. After that the objectcache needs some time until it is filled again. However, when a row in that table has expired, it should normally be removed from the table automatically. Is this not the case for you?
- Another thing I notice: Your DB without the cache is 200MB of size. The cache is 1.2GB - this ratio does not seem very efficient. Is the cache used properly at all? To me it seems like hundreds of rows might just be inserted, but never again used - and instead new rows are being inserted. Things are cached, but MediaWiki might for some reason think, that they are not reusable so that pages are rendered uncached again and again. 88.130.105.232 12:30, 23 June 2013 (UTC)
wikibase download git
hi please could some one upload a new file to git because I downloaded the file a few weeks ago and there were more files and was working downloaded it today and some files arnt there and there are issues because the old git website and all the files were moved to the new git I think that the new git has the old files instead of the new files because datamodel isent there I downloaded it through the master instead of the other rel_21 and 20 I am running 1.22 wmf8 109.150.66.198 (talk) 12:54, 23 June 2013 (UTC)
- I am getting this error with the file I downloaded today Fatal error: Class 'Wikibase\EntityId' not found in /home/u293717925/public_html/extensions/Wikibase/lib/WikibaseLib.php on line 164 109.150.66.198 12:55, 23 June 2013 (UTC)
- because the old files arnt working I thought that you would have updated the files for master but they wernmt working with 1.22 wmf 8 so please could you upload a new version of the file to git the new git 109.150.66.198 13:18, 23 June 2013 (UTC)
- the file master has been token off wikibase download now could someone please upload the new file to master thanks 109.150.66.198 13:20, 23 June 2013 (UTC)
- could someone upload a differnet file of master for wikibase and upload a different master file of wikibase because the other worked well with quary and datamodel files included too 109.150.66.198 13:46, 23 June 2013 (UTC)
- I am uploading the file that works to https://sourceforge.net/projects/wikibase/files/ please add it to your git so we can download it please through master 109.150.66.198 14:24, 23 June 2013 (UTC)
- nether mind I am going to remove file of sourceforge but like that file 109.150.66.198 14:56, 23 June 2013 (UTC)
- Footballs sing red. 88.130.105.232 18:09, 23 June 2013 (UTC)
- nether mind I am going to remove file of sourceforge but like that file 109.150.66.198 14:56, 23 June 2013 (UTC)
- I am uploading the file that works to https://sourceforge.net/projects/wikibase/files/ please add it to your git so we can download it please through master 109.150.66.198 14:24, 23 June 2013 (UTC)
- could someone upload a differnet file of master for wikibase and upload a different master file of wikibase because the other worked well with quary and datamodel files included too 109.150.66.198 13:46, 23 June 2013 (UTC)
- the file master has been token off wikibase download now could someone please upload the new file to master thanks 109.150.66.198 13:20, 23 June 2013 (UTC)
- because the old files arnt working I thought that you would have updated the files for master but they wernmt working with 1.22 wmf 8 so please could you upload a new version of the file to git the new git 109.150.66.198 13:18, 23 June 2013 (UTC)
Problem after moving Bigotry Wiki with SQLite
Bigotry Wiki uses SQLite for the db from when it was at GoDaddy which charged for better plans to create more databases. I moved it to a new server and it gets an error.
It's the same files and database, no error. I've also changed the SQLite db path to the new location. I followed the directions at SQLite and used sudo apt-get install php5-sqlite
for Ubuntu. I didn't see the extension=php_pdo_sqlite.so
line in /etc/php5/apache2/php.ini, but I added the lines under the SQLite section and restarted Apache2, but it still doesn't work. I don't know if there's a php_pdo_sqlite.so file or where it would be. I have found these files:
/etc/php5/conf.d/20-pdo_sqlite.ini /etc/php5/conf.d/mcrypt.ini /etc/php5/conf.d/20-gd.ini /etc/php5/conf.d/20-sqlite3.ini /etc/php5/conf.d/10-pdo.ini /etc/php5/conf.d/20-mysql.ini /etc/php5/conf.d/20-pdo_mysql.ini /etc/php5/conf.d/20-mysqli.ini /etc/php5/mods-available/pdo_sqlite.ini /etc/php5/mods-available/mysqli.ini /etc/php5/mods-available/pdo.ini /etc/php5/mods-available/gd.ini /etc/php5/mods-available/sqlite3.ini /etc/php5/mods-available/pdo_mysql.ini /etc/php5/mods-available/mysql.ini
This is also one of the errors:
Error: 8 attempt to write a readonly database
I set the database directory to chmod a+rw
Lieutenant Aleksandr Reznov 20:37, 23 June 2013 (UTC)
- Does PHP say that SQlite would be available as database? 88.130.105.232 22:40, 23 June 2013 (UTC)
- Is that in
phpinfo()
? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 23:03, 23 June 2013 (UTC)- Yes, you can check the SQLite and PDO_SQLite library versions there. 88.130.105.232 00:51, 24 June 2013 (UTC)
- SQLite3 and PDO_SQLite are listed there. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:21, 24 June 2013 (UTC)
- It's up after I changed the file permissions of the database. However, the create box on the main page displays weird and doesn't work for some reason. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:51, 24 June 2013 (UTC)
- Not a fix, but I replaced it with InputBox, which seems to work. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 02:26, 24 June 2013 (UTC)
- Yes, you can check the SQLite and PDO_SQLite library versions there. 88.130.105.232 00:51, 24 June 2013 (UTC)
- Is that in
Category Gallery
I'm looking for an extension to mediawiki that extends the gallery with an attribute taking specific category images on update. This to simply retag the image to move it to another tag.
Today the example of gallery is:
<gallery widths=60px heights=60px>
File:Example.jpg
File:Example.jpg
</gallery>
The extension takes a category tag in the gallery that looks for all images
with that category. f.e:
<galleryExt widths=60px heights=60px category="sunflowers" />
will list all images that is tagged with category sunflowers. 83.253.128.184 (talk) 07:47, 24 June 2013 (UTC)
Statistic of visited pages
In some versions of wikis you can find for each article, how many visitors saw this article. My question is now: What is counted only the article itself or also the linked pictures, categories and so on. Perhaps somebody can explain me this more, because I found as sample in Ennstalwiki as one of the most visited pages the category:geographie. But this I cannot imagagin. Also the counter of http://wienwiki.wienerzeitung.at/WIENWIKI/Internationales_Abzeichen_des_%C3%B6sterreichischen_Eishockeyverbandes with 33.000 clics is incredible. thx in advance Karl Gruber (talk) 13:09, 24 June 2013 (UTC) (the de.wikipedian User:Karl Gruber) Karl Gruber (talk) 13:09, 24 June 2013 (UTC)
- Hi Karl!
- The number of page visits can be seen below each page (this counter might be hidden) and on one of the special pages - the data source for both is the same. Each page in the wiki has its counter stored as a number in the database. Each time a page is viewed, the counter for that page is incremented by 1. This happens based on the number of page views for this very page. Big page view numbers for some pages can happen for several reasons: E.g. because the page was linked at a prominent place (e.g. in an article of the online version of a newspaper or on the page of an event with many visitors). 88.130.116.239 13:49, 24 June 2013 (UTC)
- Thanks for the quick answer, but for me it's a little incredible, that in a small wiki with 5.000 artikels like the Ennstalwiki a user-subpage has 30.000 counts at 2nd place in 2 years. I think, that the 150 images are countered together (each of there has appr. 100 clics) Karl Gruber (talk) 13:59, 24 June 2013 (UTC)
- Check it yourself: Keep the number of views from here in mind and once load the page. I just did that and now it shows 30.567 views. Before it were 30.566. That this page contains 100 images does not affect the counter; only 1 is added.
- This also is not influenced by the pictures themselves: When you view one of the images, the number for Benutzer:Mahoo/Bilder does not increment.
- As I said there are many reasons for why the numbers might be as they are. 88.130.116.239 14:11, 24 June 2013 (UTC)
- Okay, it's true, this is a very simple test :-) I saw it to complicated ;-) - thx Karl Gruber (talk) 14:25, 24 June 2013 (UTC)
- Thanks for the quick answer, but for me it's a little incredible, that in a small wiki with 5.000 artikels like the Ennstalwiki a user-subpage has 30.000 counts at 2nd place in 2 years. I think, that the 150 images are countered together (each of there has appr. 100 clics) Karl Gruber (talk) 13:59, 24 June 2013 (UTC)
ERROR from CategoryTree Extension
Hi, I get the following error from CategoryTree :
Warning: Missing argument 2 for efCategoryTreeGetMagic() in extensions/CategoryTree/CategoryTree.php on line 213
Line 213 is :
function efCategoryTreeGetMagic( &$magicWords, $langCode ) { global $wgUseAjax, $wgCategoryTreeAllowTag; if ( $wgUseAjax && $wgCategoryTreeAllowTag ) { //XXX: should we allow a local alias? $magicWords['categorytree'] = array( 0, 'categorytree' ); } return true; }
I think the error is in $langCode. But where does this come from ?
Thanks Thomas 80.153.201.3 (talk) 16:33, 24 June 2013 (UTC)
- You don't say what version of MW you're running or what version of the extension, but from looking at the latest version, that definitely looks like a older version of CategoryTree.
- Could you give us some information about the software you're running? ☠MarkAHershberger☢(talk)☣ 19:35, 24 June 2013 (UTC)
- Thank you !
- MW 1.6.12
- CT 1.15-r48711
- Thanks again :-) 80.153.201.3 21:00, 24 June 2013 (UTC)
- Is there a reason you're using such an old version of MediaWiki? The version of CategoryTree you're using is 4 years old. Please upgrade.
- Still, since you ask, the code you point to is called by the LanguageGetMagic hook. If you're really running MediaWiki 1.6, that explains the warning you're getting. Since that function doesn't use the value of
$langCode
, you can just change the function declaration to: - ☠MarkAHershberger☢(talk)☣ 23:26, 24 June 2013 (UTC)
function efCategoryTreeGetMagic( &$magicWords, $langCode = null ) {
Mediawiki:sidebar substituted by default sidebar after upgrading
After upgrading to 1.21.1 from 1.17 the Mediawiki:sidebar has been substituted by the default sidebar. The wiki url is https://trv.jbv.no/wiki/ and the Mediawiki:sidebar is shown correct in https://trv.jbv.no/wiki/MediaWiki:Sidebar. However the default sidebar is shown as the menu. I use the vector skin but testing other skins has not helped. I don't find any other topics concerning this problem by searching the net/forums etc. Any suggestions of what went wrong in the upgrade? The rest seems to be in order. 82.148.163.73 (talk) 18:49, 24 June 2013 (UTC)
- fwiw, I added your wiki to WikiApiary: http://wikiapiary.com/wiki/Teknisk_regelverk ☠MarkAHershberger☢(talk)☣ 19:17, 24 June 2013 (UTC)
- Since I can't create an account, I can't see https://trv.jbv.no/wiki/MediaWiki:Sidebar but I will take your word for it.
- Have you tried doing a null edit or action=purge on the MediaWiki:Sidebar page? ☠MarkAHershberger☢(talk)☣ 19:23, 24 June 2013 (UTC)
- Yes, I tried that but no luck. The mediawiki:sidebar look like this:
navigation
mainpage|mainpage-description
Project:Versjon|Gjeldende versjon
Innhold|Innhold
portal-url|portal
recentchanges-url|recentchanges
Endringslogger|Endringslogger
Teknisk regelverk:Årsrapporter|Årsrapporter
Kategori:Styringsdokument for Teknisk regelverk|Styringsdokumenter
helppage|help
Fagområder
Felles bestemmelser|Felles bestemmelser
Felles elektro|Felles elektro
Skilt|Skilt
Overbygning|Overbygning
Underbygning|Underbygning
Tunneler|Tunneler
Bruer|Bruer
Kontaktledning|Kontaktledning
Lavspenning|Lavspenning
Banestrømforsyning|Banestrømforsyning
Signal|Signal
Tele|Tele
Rullende materiell|Rullende materiell
SEARCH
TOOLBOX
LANGUAGES
82.148.163.73 19:49, 24 June 2013 (UTC)- I don't have any more ideas. If you want me to help more, I would need access to your server. Please feel free to email me if you need more help. ☠MarkAHershberger☢(talk)☣ 20:10, 24 June 2013 (UTC)
Fatal exception of type Scribunto_LuaInterpreterNotFoundError
I tried installing the Scribunto but I'm getting the above error, this is on a freebsd box 96.35.210.116 (talk) 21:46, 24 June 2013 (UTC)
- Anybody? 96.35.210.116 01:45, 25 June 2013 (UTC)
- Seriously? Nobody has an answer to this? I cannot be the first person on a freebsd box to have this problem 204.193.72.15 13:07, 25 June 2013 (UTC)
- Maybe you are the first person with this very issue. 88.130.91.246 13:46, 25 June 2013 (UTC)
- I would be totally surprised if I was, but I guess anything is possible. I never would have thought that my phone calls were being tracked either but I guess we know that's a distinct possibility.
- Verizons' "Can you hear me now" was really their way of talking to the NSA. 204.193.72.15 14:26, 25 June 2013 (UTC)
- Ok I got past the fatal exception error by adding the following lines to the LocalSettings file:
- $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/path/to/lua';
- $wgScribuntoEngineConf['luastandalone']['errorFile'] = '/path/to/error/file';
- the error log just shows TX and RX entries, that's it. I had installed a lua package on the freebsd box and just pointed the Local Settings file to the binary.
- I'm now getting a "Script Error" on my pages, but that's all it says.....
- Ideas?
- 50x40px This article does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (October 2007)
- Script error 204.193.72.15 17:28, 25 June 2013 (UTC)
- Well its still a problem with Scribunto its just not throwing the same error, I tried downloading the source and compiling but that didn't seem to work either, so now I'm just frustrated. 96.35.210.116 02:46, 26 June 2013 (UTC)
- I am sorry to hear, but I don't use Scribunto myself; I only googled your error - without results. I don't know either. 88.130.91.246 11:10, 26 June 2013 (UTC)
- Well its still a problem with Scribunto its just not throwing the same error, I tried downloading the source and compiling but that didn't seem to work either, so now I'm just frustrated. 96.35.210.116 02:46, 26 June 2013 (UTC)
- I am the second person to have this error but I'm new at this and don't know the solution yet. Chuck.Kahn (talk) 18:19, 25 February 2018 (UTC)
- Maybe you are the first person with this very issue. 88.130.91.246 13:46, 25 June 2013 (UTC)
- Seriously? Nobody has an answer to this? I cannot be the first person on a freebsd box to have this problem 204.193.72.15 13:07, 25 June 2013 (UTC)
Fatal Error with SpecialListfiles.php
Hi, I alway get the following error when I want to go to the list of files.
Fatal error: Call to a member function toHtml() on a non-object in /Applications/MAMP/htdocs/wiki/includes/specials/SpecialListfiles.php on line 196
Where can I start, what can I do? My MW 1.21 is running fine instead of this error. 79.232.53.115 (talk) 01:27, 25 June 2013 (UTC)
- OK, answering myself:
- I knew that I had problems with an ogv-Video a few days ago.
- I deleted that File:Video.ogv an now the Special:Listfiles works again.
- I tried php checkImages.php before, and got the result that 0 images are ok and that 298 images are missing.
- But my wiki runs fine and the Special:Listfiles page works ok, too.
- What's is wrong here? 79.232.53.115 01:40, 25 June 2013 (UTC)
404 errors
I'm a newbie to MediaWiki, although I have edited Wikipedia for a while already. I've just installed MediaWiki on my site www.tolttg.tk and followed all the steps for configuring short URLs. However, I am now getting 404 errors for every single page and directory except http://www.tolttg.tk/w/index.php/Main_Page. Looking for some help. 98.247.158.164 05:50, 25 June 2013 (UTC)
- I have removed the short URLs configs for now.
- FYI, I'm using Apache 2.2.19, PHP 5.2, MySQL 5.1, and MediaWiki 19.7. 98.247.158.164 05:59, 25 June 2013 (UTC)
- If you "followed all the steps for configuring short URLs" it might be worth to share those steps with us. AKlapper (WMF) (talk) 07:06, 25 June 2013 (UTC)
- Your hosting is injecting a tracking code in the generated scripts and stylesheets. As you can see here: http://www.tolttg.tk/w/load.php
- The "Hosting24 Analytics Code" you see there is breaking the CSS and scripts of the site. It looks like you're on a free hosting service, you should find a paid hosting service, since free hosts usually inject code that breaks MediaWiki completely. Ciencia Al Poder (talk) 09:33, 25 June 2013 (UTC)
[DUPLICATE] 404 errors
I'm a newbie to MediaWiki, although I have edited Wikipedia for a while already. I've just installed MediaWiki on my site www.tolttg.tk and followed all the steps for configuring short URLs. However, I am now getting 404 errors for every single page and directory except http://www.tolttg.tk/w/index.php/Main_Page. Looking for some help. 98.247.158.164 05:50, 25 June 2013 (UTC)
- Your hosting is injecting a tracking code in the generated scripts and stylesheets. As you can see here: http://www.tolttg.tk/w/load.php
- The "Hosting24 Analytics Code" you see there is breaking the CSS and scripts of the site. It looks like you're on a free hosting service, you should find a paid hosting service, since free hosts usually inject code that breaks MediaWiki completely. Ciencia Al Poder (talk) 09:31, 25 June 2013 (UTC)
Can not make file links after upgrade.
I can not create file links after upgrading media wiki. I can only make media links that works.
The page only shows funny characters like this ( 1 ) and does not link to the document I followed the manual upgrade procedure.
Please help with a solution.
thanks
new version:
MediaWiki 1.21.1
PHP 5.3.3-7+squeeze14 (apache2handler)
MySQL 5.1.63-0+squeeze1
old version: MediaWiki 1.19.2 PHP 5.3.3-7+squeeze14 (apache2handler) MySQL 5.1.63-0+squeeze1 Kander42 (talk) 10:22, 25 June 2013 (UTC)
- Without a screenshot of the problem (or better, a link to your wiki if it's public) it's hard to figure out what's the problem you're seeing. "[1]" links are external links, not something one could see for images, which are internal ones. Ciencia Al Poder (talk) 09:36, 26 June 2013 (UTC)
- I think I am having the same Problem after upgrading from 1.16 to 1.21.2:
- I uploaded an the image and then want to display it on a page. This is what I tried:
[[Media:test.png]] [[Image:test.png]] [[File:test.png]] [[:File:test.png]]
[[Media:...]]
and[[:File...]]
generate text that is linked correctly to the image page, as expected.[[Image:...]]
displays the image and links it to the image page, as expected.[[File:...]]
generates some a text like [[1](Icon for external link)] with the [1] linked to file:///test.png- The same happens for all the instances of
[[File:...]]
in the wiki. So as I haven't used[[Image:...]]
currently none of the images are displaying... - PS: This describes the same problem. Kmorgen1 (talk) 21:47, 14 September 2013 (UTC)
- Check if you have added file: to $wgUrlProtocols. This causes problems with File: links because it takes precedence over the namespace name. Ciencia Al Poder (talk) 18:14, 15 September 2013 (UTC)
Createboxes don't display after server move
I moved a few wikis to a new server, and Createbox doesn't work. It's not really a fix, but Inputbox still works. PHP was 5.2 and PHP now is 5.4. Lieutenant Aleksandr Reznov 10:36, 25 June 2013 (UTC)
- This extension was not updated for over 18 months. Do some debugging and check, what the error is. 88.130.91.246 13:48, 25 June 2013 (UTC)
extract value of template field from a page containing template instance
Hi
I am writing my own extension. I have created a new sql table. The information I want to store in the table is recorded in the form of various templates scattered throughout the site. I can find the pages with instances of the desired templates through the 'template_links' table. I now need to extract the value of the desired property of the template from each page. If a page P contains a template T, and x is a property of T, is x also a property of P? Can I then obtain the value of x in P in the same way SMWPropertyValue does?
details: MW version: 1.17.0 SMW version: 1.7.0.2 php 5 mysql 5.0 StableSetStump (talk) 14:48, 25 June 2013 (UTC)
- I think the answer lies in SMWSQLStore2 (version<1.8) StableSetStump (talk) 17:51, 25 June 2013 (UTC)
Request for One-Hour Conference Presentation
I am one of the managers of a professional communication conference. We have had attendees request that a rep from MediaWiki so a shor presentation on MediaWiki--what it can do and why it would be helpful for teachers of professional communication in universities. Would someone please contact me so that I can further detail this opportunity?
Thank you. Pam Estes Brewer brewerpse@gmail.com 68.119.36.91 (talk) 16:02, 25 June 2013 (UTC)
- Specifying at least the continent where this is going to happen would probably help. :) Nemo 18:10, 25 June 2013 (UTC)
[RESOLVED] Where can I get a Search Log for 1.19.1 or higher?
Is there any extension for MW 1.19.1 or higher that will log user searches? I noticed today while standing next to a user that when they did a particular search it pulled some pages that, while it did show pages that would eventually lead them to where they need to go, it would have been a lot easier if there was a page that either redirected them to exactly where they needed to go, or had all the information on one page. I've been googling for about an hour now, and I see that there was Extension:SearchLog but it doesn't work on 1.19.1, and Extension:Log_Searches which looks like it was headed in the right direction but never got there, and Extension:KeepSearches which "dont run" on at least 1.16, and Extension:SphinxSearch which doesn't specify if it keeps a log or not (though it doesn't appear to). My mediawiki is the training and information hub for my entire department and if I can get people where they need to go more quickly and efficiently, it would be a huge help. 166.102.1.119 (talk) 16:45, 25 June 2013 (UTC)
- It looks like you could write a log fairly quickly using the SpecialSearchNogomatch. But the Extension:SearchLog page is pretty straight forward. Since the wiki that is hosting the source is running 1.19.2, it may work with 1.19 ... did you try it?
- Otherwise, I can help you adapt it to 1.19. I don't think it would take much time at all. ☠MarkAHershberger☢(talk)☣ 17:18, 25 June 2013 (UTC)
- I tried it, I get the error:
- PHP Fatal error: Call to a member function addMessages() on a non-object in /usr/mediawiki/extensions/SearchLog/SearchLog.php on line 136
- So, I tried what was explained in Extension_talk:SearchLog#Not_working_after_MW_upgrade_to_1.18.1 and I get the error:
- PHP Fatal error: Call to undefined function wfElement() in /usr/mediawiki/extensions/SearchLog/SearchLog.php on line 69
- Also, the link in Special Pages displays as
& lt;searchlog& gt;
(without the spaces) 166.102.1.119 18:47, 25 June 2013 (UTC)- I missed the part about the xml:: fix. However, after doing that, the extension doesn't show up on the SpecialPages at all now. 166.102.1.119 18:57, 25 June 2013 (UTC)
- Which I believe is what the guy is talking about in Extension_talk:SearchLog#1.19.1_error 166.102.1.119 19:03, 25 June 2013 (UTC)
- I missed the part about the xml:: fix. However, after doing that, the extension doesn't show up on the SpecialPages at all now. 166.102.1.119 18:57, 25 June 2013 (UTC)
- I seem to have gotten it to work now, thanks 166.102.1.119 14:38, 26 June 2013 (UTC)
Is it possible to set all inner link with target="_blank?
I know external link can set to open in new window by config $wgExternalLinkTarget in localsettings.php
Is it possible to set all inner link open in new window? Deletedaccount4567435 (talk) 21:37, 25 June 2013 (UTC)
- Have a look at the LinkEnd hook. ☠MarkAHershberger☢(talk)☣ 15:24, 2 July 2013 (UTC)
Loading race condition for javascript
MediaWiki version: 1.19.6
PHP version: 5.4.11-1~lucid+1 (apache2handler)
Database version: 5.1.63-rel13.4-log
Wiki URL: http://dragon-story.wikia.com/wiki/Dragon_Story_Wiki
Script URL: http://dragon-story.wikia.com/wiki/MediaWiki:BreedingCalculator.js
Problem: Even though I am using $(document).ready(function(){}); to wrap my initial onload functions, I am experiencing a race condition where defined .prototype functions are not recognized if I attempt to access them while in the supposed onload stack.
1) This does not occur without the jQuery call inside a MediaWiki file. For example, if I simply run the script in my browser using a body onload event, everything runs perfectly fine.
2) This problem does not surface outside of the intended onload stack. For example, if I send a button click event, the defined .prototype functions will easily be found. The problem only arises with the functions called during the onload event (jQuery's document.ready in this case).
Previously, I have dealt with this race condition issue by avoiding .prototype function access within the onload stack. This could be done by transforming certain .prototype functions into general functions instead, writing not-so-efficient workaround code to simulate the intended behavior, etc. However, I'd like to avoid continuing to do this if possible, because it grates on my perfectionist nerves.
I wonder if this has anything to do with the fact that I use MediaWiki:Wikia.js to verify a particular wgPageName before attempting to load the script at all. I do not want to add the script to MediaWiki:Common.js, because loading it for every user on every page would be madness.
Do I have any other alternatives to ensure that the document is correctly loaded before the script attempts to run? The jQuery document.ready call does not seem to be functioning correctly in this instance.
Thanks in advance. Sylvandyr (talk) 00:17, 26 June 2013 (UTC)
- It would help if you mentioned which prototype functions you are using. Because unless it is part of of jQuery core, it is likely defined by one of the many plugins. And in order to use those, you need to declare a dependency.
- The race condition you refer to would normally consistently fail if you don't declare a dependency on the modules you require. Eg. if you make use of
$.cookie
(defined by jquery.cookie) and don't anywhere declare that your module or (depending on how you load that MediaWiki:BreedingCalculator.js file, a) raw-loaded script depends on this module, it will not be loaded (we don't load 200+ modules on every page, only what is specifically requested or depended on). - The modules specifically requested by
mw.loader.load
will have themselves and all their dependencies load in parallel, and executed in the proper order to satisfy dependencies. - If you're experiencing a race condition, it is likely that some other (complete unrelated) module is using the same dependency, except that that one did declare the dependency. And since they load in parallel, your script may or may not execute in time.
- On the server-side, you can declare dependences when registering the module.
- In Gadgets, declare dependencies on MediaWiki:Gadgets-definition with the
[dependencies=...]
syntax. - Inside a raw-loaded script, declare dependencies inline by wrapping the code in
mw.loader.using(.., function () { .. });
. Krinkle (talk) 17:20, 28 July 2013 (UTC)
[RESOLVED] How can I add to wiki map with javascript?
Below example of map with javascript:
<script type="text/javascript"> width='80%'; //the width of the embedded map in pixels or percentage height=400; //the height of the embedded map in pixels or percentage border=1; //the width of border around the map. Zero means no border notation=false; //true or false to display or not the vessel icons and options at the left shownames=false; //true or false to dispaly ship names on the map latitude=37.4460; //the latitude of the center of the map in decimal degrees longitude=24.9467; //the longitude of the center of the map in decimal degrees zoom=9; //the zoom level of the map. Use values between 2 and 17 maptype=3; //use 0 for Normal map, 1 for Satellite, 2 for Hybrid, 3 for Terrain trackvessel=0; //the MMSI of the vessel to track, if within the range of the system fleet=''; //the registered email address of a user-defined fleet to display remember=false; //true or false to remember or not the last position of the map </script> <script type="text/javascript" src="http://www.marinetraffic.com/ais/embed.js"></script>
How can I add it to my wiki? Does anybody know how to do it? 84.204.22.130 (talk) 07:39, 26 June 2013 (UTC)
- Put the following in MediaWiki:Common.js:
mtparam = {} mtparam.width='80%'; //the width of the embedded map in pixels or percentage mtparam.height=400; //the height of the embedded map in pixels or percentage mtparam.border=1; //the width of border around the map. Zero means no border mtparam.notation=false; //true or false to display or not the vessel icons and options at the left mtparam.shownames=false; //true or false to dispaly ship names on the map mtparam.latitude=37.4460; //the latitude of the center of the map in decimal degrees mtparam.longitude=24.9467; //the longitude of the center of the map in decimal degrees mtparam.zoom=9; //the zoom level of the map. Use values between 2 and 17 mtparam.maptype=3; //use 0 for Normal map, 1 for Satellite, 2 for Hybrid, 3 for Terrain mtparam.trackvessel=0; //the MMSI of the vessel to track, if within the range of the system mtparam.fleet=''; //the registered email address of a user-defined fleet to display mtparam.remember=false; //true or false to remember or not the last position of the map $(function() { $('#embedmarinetraffic').append('<iframe name="marinetraffic" id="marinetraffic"' + ' width="' + ((mtparam.width === undefined) ? '550' : mtparam.width) + '"' + ' height="' + ((mtparam.height === undefined) ? '300' : mtparam.height) + '"' + ' scrolling="no" frameborder="' + ((mtparam.border === undefined) ? '0' : mtparam.border) + '"' + ' src="http://www.marinetraffic.com/ais/embed.aspx?' + 'zoom=' + ((mtparam.zoom === undefined) ? '3' : mtparam.zoom) + '&centery=' + ((mtparam.latitude === undefined) ? '36' : mtparam.latitude) + '&centerx=' + ((mtparam.longitude === undefined) ? '23' : mtparam.longitude) + '&maptype=' + ((mtparam.maptype === undefined) ? '0' : mtparam.maptype) + '&notation=' + ((mtparam.notation === undefined) ? 'false' : mtparam.notation) + '&shownames=' + ((mtparam.shownames === undefined) ? 'false' : mtparam.shownames) + '&mmsi=' + ((mtparam.trackvessel === undefined) ? '0' : mtparam.trackvessel) + '&fleet=' + ((mtparam.fleet === undefined) ? '' : mtparam.fleet) + '&remember=' + ((mtparam.remember === undefined) ? 'false' : mtparam.remember) + '"/>'); });
- To display the map on a page, put the following in the place where you want the map to be displayed:
- Ciencia Al Poder (talk) 09:55, 26 June 2013 (UTC)
<div id="embedmarinetraffic"></div>
- Thank you very much! It works!
- I have got one more question:
- I need to use this script on several pages but with different parameter '&mmsi='. How can I set the parameter '&mmsi=' right on the page with . 84.204.22.130 11:57, 26 June 2013 (UTC)
<div id="embedmarinetraffic"></div>
- Code updated:
mtparam = {} mtparam.width='80%'; //the width of the embedded map in pixels or percentage mtparam.height=400; //the height of the embedded map in pixels or percentage mtparam.border=1; //the width of border around the map. Zero means no border mtparam.notation=false; //true or false to display or not the vessel icons and options at the left mtparam.shownames=false; //true or false to dispaly ship names on the map mtparam.latitude=37.4460; //the latitude of the center of the map in decimal degrees mtparam.longitude=24.9467; //the longitude of the center of the map in decimal degrees mtparam.zoom=9; //the zoom level of the map. Use values between 2 and 17 mtparam.maptype=3; //use 0 for Normal map, 1 for Satellite, 2 for Hybrid, 3 for Terrain //mtparam.trackvessel=0; //the MMSI of the vessel to track, if within the range of the system mtparam.fleet=''; //the registered email address of a user-defined fleet to display mtparam.remember=false; //true or false to remember or not the last position of the map $(function() { var elem = $('#embedmarinetraffic'); elem.append('<iframe name="marinetraffic" id="marinetraffic"' + ' width="' + ((mtparam.width === undefined) ? '550' : mtparam.width) + '"' + ' height="' + ((mtparam.height === undefined) ? '300' : mtparam.height) + '"' + ' scrolling="no" frameborder="' + ((mtparam.border === undefined) ? '0' : mtparam.border) + '"' + ' src="http://www.marinetraffic.com/ais/embed.aspx?' + 'zoom=' + ((mtparam.zoom === undefined) ? '3' : mtparam.zoom) + '&centery=' + ((mtparam.latitude === undefined) ? '36' : mtparam.latitude) + '&centerx=' + ((mtparam.longitude === undefined) ? '23' : mtparam.longitude) + '&maptype=' + ((mtparam.maptype === undefined) ? '0' : mtparam.maptype) + '&notation=' + ((mtparam.notation === undefined) ? 'false' : mtparam.notation) + '&shownames=' + ((mtparam.shownames === undefined) ? 'false' : mtparam.shownames) + '&mmsi=' + ((elem.data('trackvessel') === undefined) ? '0' : encodeURIComponent(elem.data('trackvessel'))) + '&fleet=' + ((mtparam.fleet === undefined) ? '' : mtparam.fleet) + '&remember=' + ((mtparam.remember === undefined) ? 'false' : mtparam.remember) + '"/>'); });
- To specify the MMSI, add the data-trackvessel="" attribute filled appropiately. Example:
- Ciencia Al Poder (talk) 19:58, 26 June 2013 (UTC)
<div id="embedmarinetraffic" data-trackvessel="1234"></div>
- THANK YOU!!! 84.204.22.130 10:08, 5 July 2013 (UTC)
Semantic Maps
I am interested in using the semantic maps extension https://www.mediawiki.org/wiki/Extension:Semantic_Maps along with semantic mediawiki. On my wiki site, I would like to add geographic coordinates inside of an infobox on each page, for example: | coordinates = |40.744924|-74.006943| I would then use a PHP regex script along with a wikibot program to pull the coordinates from each of my wiki page and pass these coordinates into the Semantic Map program. Would this be a workable setup? The semantic mediawiki documentations don't seem to have any info about how to enter latitude and longitude on wiki pages.
I can't get the { { coord } } template (the Wikipedia format) so I have decided on my own coordinates setup inside my infobox: | coordinates = |40.744924|-74.006943| Just wondering how other people are organizing their geographic coordinates on their wiki page. Thanks for any info. Peter321 (talk) 08:14, 26 June 2013 (UTC)
- Hi Peter,
- Semantic Maps would certainly be the way to go. Maps/Semantic Maps natively understands the most common types of coordinate notation, so you won't need any external script to get the data interpreted by the extension. See http://semantic-mediawiki.org/wiki/Semantic_Maps - although you could be right that they didn't get round to updating all of the documentation. For specific questions, you could always write to the SMW mailing list. Cavila (MW 1.19.7, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 20:29, 4 July 2013 (UTC)
Show another page content?
Hello,
Is it possible to show another page content from a function in my skin.php (vector.php)? (Rather that just show the parent with $this->html( 'bodycontent' );
Thanks a lot!!!!
Stefan Steffekarl (talk) 11:46, 26 June 2013 (UTC)
- What do you mean with "another page"? You can make any page a redirect.
- What do you want to achieve? 88.130.91.246 12:03, 26 June 2013 (UTC)
Lua error: Internal error: Error reading from pipe.
Any idea what's causing this error? I have Scribunto installed and have it pointed to the engine binary that came with it. 204.193.72.15 (talk) 13:22, 26 June 2013 (UTC)
Setting upload permission for specific file type
Hey guys,
I just enabled uploading zips on my mediawiki. However, I would prefer if I could allow uploading zips only to specific people. I could only find a way to disable uploading in general, though all users should be allowed to upload image files..
Is there a way that I can set the permission to upload zips only to a specific user group, while all the other users are still able to upload image files?
Daniel 85.178.88.85 (talk) 13:58, 26 June 2013 (UTC)
- See the UploadVerification hook. It may help to see how the UploadBlacklist extension is using the hook. ☠MarkAHershberger☢(talk)☣ 15:22, 2 July 2013 (UTC)
Unable to setup 1.21.1
Hi. I am trying to setup 1.21.1. The initial root index.php properly displays the page, and when I click the hyperlink to "set up the wiki", I get a 500 error. It's on a Server 2008, IIS 7, MySQL 5.6 and PHP 5.4.16. It is an internal site so I have no URL to give out. I've made certain that I've granted IUSR Modify access to the "mw-config" and "images" folders. What am I missing?
On the support page, it mentions the following: "Before 1.17, this file was automatically generated by the installer script and placed in the 'config' folder. As of 1.17, this file is no longer written to your webserver for security reasons. It is now offered as a download, which you must then upload to your server for your wiki to begin working." I've searched and can't seem to find where to download the file.
Thank you. Dajemster (talk) 19:37, 26 June 2013 (UTC)
- Hi Dajemster,
- the server error should be logged somewhere. Check the server error log. That should give you an idea of what might be going wrong.
- With the LocalSettings.php file: There is no template, which you could download from mediawiki.org or so. The values are set based on what is needed for your server. You will get that file offered for download from your server after you have gone through the installer. :-) 88.130.106.44 20:07, 26 June 2013 (UTC)
Sharing Common Resources across multiple mediawikis
Hello,
I'm trying to share photos and other uploadable files across 3 different wikis, much like the guide at http://www.mediawiki.org/wiki/Manual:Wiki_family#Scenario_4:_Multiple_wikis_sharing_common_resources. I've got all the settings in, but I keep getting an error that says "failed to mkdir "http:\\mediawiki.domain.com\mediawiki1\common\7\72 mode 511 in C:\path-to-mediawiki\includes\GlobalFunctions.php on line 2536.
The three media wikis (mediawiki1, mediawiki2, mediawiki3) all have differing permissions, so I created that common folder to try and circumvent a permissions issue, which obviously I have failed at. I am extremely new to media-wiki, and probably would have set it up differently, but it is what it is unfortunately. Could someone help me troubleshoot this out.
The end goal is to have all three wikis point to a common folder (preferable OUTSIDE of each mediawiki instance) to share those resources.
My localsettings.php is as follows (for mediawiki2 and mediawiki3 - mediawiki1 is my shared storage media wiki to share everything):
- $wgUseSharedUploads = true;
- $wgUploadDirectory = 'http://mediawiki.domain.com/mediawiki1/common';
- $wgSharedUploadPath = 'C:/<path-to-xamp>/htdocs/mediawiki1/common/';
- $wgHashedSharedUploadDirectory = true;
- $wgUploadNavigationUrl = "http://mediawiki.domain.com/mediawiki1/index.php/Sepecial:Upload";
I am running this on Windows.
Jon Jjmil03 (talk) 22:59, 26 June 2013 (UTC)
- I am running MediaWiki 1.19.2, PHP 5.4.7, and MySQL 5.5.27 Jjmil03 (talk) 23:08, 26 June 2013 (UTC)
- What is the correct way to put an absolute path to a windows directory in the localsettings.php file? Is it as above, or somehow different? Jjmil03 (talk) 04:26, 27 June 2013 (UTC)
- I am really lost guys...please help me out.
- I created a virtual maching and made three wikis from scratch. "poolwiki" is supposed to be my shared wiki for images. wiki1 and wiki2 are my other wikis. When I have the
- $wgUploadNavigationUrl = "http://localhost/poolwiki/index.php/Special:Upload";
- It redirects me to the pool wiki to upload the document, and I can see the image on wiki1. When I comment out that line, it uploads the image to the wiki1\images folder. What am i doing wrong? Here is my config:
$wgUseSharedUploads = true;
- $wgSharedUploadPath = 'http://localhost/poolwiki/images';
- $wgSharedUploadDirectory = 'C:/xampp/htdocs/poolwiki/images/';
$wgHashedSharedUploadDirectory = true;
- Please help me out! Jjmil03 (talk) 04:43, 27 June 2013 (UTC)
[RESOLVED] lost some page.
MediaWiki Special:Version page
MediaWiki: 1.10.1 PHP: 5.2.17 (cgi) MySQL: 5.0.96-community
My question
Below page have some catalog, I do not know why the sudden loss information of these pages, including their history.
Links to these pages can be displayed properly in some special pages: like special:Mostrevisions. But they are in some special page marked strikethrough: like special::Longpages
I hope someone can give some advice, grateful. 114.24.6.5 (talk) 02:06, 27 June 2013 (UTC)
- Those pages are on the "MediaWiki:" napespace (napespace id = 8). Are they supposed to be on that namespace? Ciencia Al Poder (talk) 09:53, 27 June 2013 (UTC)
- This may be the crux of the problem, thank you.
- These pages should not belong MediaWiki namespace, and this namespace MediaWiki should not be the name (should be maintained his original name).
- I guess these pages originally been classified in a certain category, then the MediaWiki namespace has been changed to use the same word .
- If I could change back to the mediawiki namespace, should be able to solve this problem.
- But I do not know how to change the namespace name, someone can teach me? 114.24.6.5 20:13, 27 June 2013 (UTC)
- Thanks for your help, problem solved.
- In the language message file, mediawiki this default namespace has be translated into a word the same as a category, resulting in the relevant page can not be properly read.
- Modify the translated language files, everything is fine.
- Thanks for your help again. 114.24.6.5 20:57, 27 June 2013 (UTC)
- If you feel the translation of that namespace is not correct or is used in other contexts that can cause this problem with frequency, you may contact User:Siebrand or post a message on translatewiki:Support. Ciencia Al Poder (talk) 09:30, 28 June 2013 (UTC)
Wrong place for svg-editor arrow
Hi again..
I have success create .svg file for UML solution which i posted before. Then the problem come when i create svg with Error Creating Thumbnail. It will be fixed with update PHP version 5.4 in my case.
But when i want to create arrow using svg-editor, the arrow goes at wrong place. And some time show
"Error creating thumbnail: convert: non-conforming drawing primitive definition `stroke-linejoin' @ error/draw.c/DrawImage/3146."
Is it the bug of svg-editor? By Sephirothindra 07:12, 27 June 2013 (UTC)
- It could be. It looks like
stroke-linejoin
is specific to ImageMagick's MVG. Maybe your version of ImagiMagick needs to be upgraded to support it? ☠MarkAHershberger☢(talk)☣ 14:20, 2 July 2013 (UTC)
How to disable ~ convert to signature?
Due to users habit and article requirement, my wiki articles contains lots of ~~~~~~~~~~~~~~~~~~~~~~~~~~ and it will be convert to signature automatically which create tons of problems.
How can I disable this conversion?
09:09, 27 June 2013 (UTC)09:09, 27 June 2013 (UTC)09:09, 27 June 2013 (UTC)09:09, 27 June 2013 (UTC)09:09, 27 June 2013 (UTC)09:09, 27 June 2013 (UTC)09:09, 27 June 2013 (UTC)~
- This is not possible. ☠MarkAHershberger☢(talk)☣ 14:15, 2 July 2013 (UTC)
- What maybe could be done is that you parse each article, when it is going to be saved and, if you find unwanted sequences in them, you remove them or replace them with what you want.
- However, it will be far easier, to adjust users habit and article requirement, I guess. ;-) 88.130.114.26 14:28, 2 July 2013 (UTC)
- Would this alternative work for you?
- ~~~~
- (characters masked as & # 126 ; signs, as it were, in html) Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 17:50, 2 July 2013 (UTC)
- Or simply put them inside <nowiki></nowiki> tags Ciencia Al Poder (talk) 09:44, 3 July 2013 (UTC)
- Both of these are probably as good as it is going to get:
<nowiki>~~~~</nowiki></nowiki>
~~~~
- One thing you could do is abstract it through a template:
+++ [[Template:Tilde line]] <nowiki>~~~~~~~~~~~~~~~~~~~~~~~~~~</nowiki> +++ [[Article]] This '''Article''' has tilde lines. {{Tilde line}} == Biography ==
- This Article has tilde lines.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~<
Biography
- 04:39, 15 March 2025 (UTC)04:39, 15 March 2025 (UTC)04:39, 15 March 2025 (UTC)04:39, 15 March 2025 (UTC)04:39, 15 March 2025 (UTC)~
- Krinkle (talk) 12:47, 18 July 2013 (UTC)
[RESOLVED] upgrade from 1.16.1 to 1.21.1 failing
I am struggling to upgrade from 1.16.1 to 1.21.1. This is a private wiki so I can't give a URL.
Before doing this I made a copy of the wiki on a local PC and upgraded all extensions until I had a correctly working 1.21.1 installation. I then copied the directory tree to the server as 'w.1.12.1', backed up my DB, renamed my 'w' to 'w.16.1', renamed 'w.1.12.1' to 'w', and edited my .htaccess files to disable mod_rewrite.
Attempting to upgrade via the web interface failed with a reference to iocube.so, which the hosting provider says they don't believe is the problem. After restoring my backed up DB, I asked them to run update.php for me, and this is what they got:
$ php /home/vigilhealth/www/www/w/maintenance/update.php A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_content_model FROM `page` WHERE page_namespace = '10' AND page_title = 'Extension_DPL' LIMIT 1 Function: LinkCache::addLinkObj Error: 1054 Unknown column 'page_content_model' in 'field list' (localhost:/tmp/mysql5.sock)
I'm not sure where to go from here. Unless there was some unknown problem with the DB restore, this is the DB that was working correctly with 1.16.1, so why is update.php failing? (Yes, I am using DPL, but why should that be a page title?)
Any help appreciated. Mickeyf~mediawikiwiki (talk) 13:47, 27 June 2013 (UTC)
- I had a similar issue when upgrading ours from 1.16 to 1.21... I ended up having to delete all the old files and put in a fresh install. (Be sure to back up the images folder and restore that once you've finished installing. :) I was able to leave the old DB up (e.g., putting in those parameters when going through the setup) and it was able to populate it OK. Kchurch05 (talk) 15:05, 27 June 2013 (UTC)
- Well, this is ironic, considering how carefully I made certain everything worked on a test PC before trying it on the real server. I have now restored my DB from the system backup in case my own backup had any issues (it did not report any) and restored the 1.16.1 file tree, but I still now get "wiki_name has a problem
- Sorry! This site is experiencing technical difficulties". No indication whether this is a DB issue or some file is unhappy. Of course, both should be identical to what was working before I started.
- I guess I'll try to do a fresh install and go from there. Did you mean a fresh install of 1.21 then just run update, or did you freshly install 1.16 (which matched your existing DB) and then try to run update?
- thanks Mickeyf (talk) 15:35, 27 June 2013 (UTC)
- I was able to get 1.16.1 working again by restoring the DB, and remembering to re-enable
- AddHandler application/x-httpd-php52 .php
- in my .htaccess, which was needed when the host made php 5.3 the default.
- I have now restored my DB and started with a fresh set of 1.21.1 files, updated extensions, and my LocalSettings.php that worked with the local copy of 1.21.1 (edited to reflect the host mysql server, etc).
- When I run update.php (or rather when my host provider runs it on the command line), I still get the error referencing "Unknown column 'page_content_model' "
- My host is about to discontinue support for php 5.2, so we cannot continue to use mw 1.16.
- Does the updater care about extensions? I was under the impression that it merely updated the DB structure. If so, why should it fail to update a working 1.16.1 DB?
- Any help out there? Mickeyf (talk) 17:04, 27 June 2013 (UTC)
- With great relief I am reporting that a complete new set of 1.21.1 files, and running update.php as a cron job (with "#!/usr/local/bin/php.cli" added as the first line) finally allowed me to arrive at a working 1.21.1. Why update.php would have failed when the host support personnel ran it from the command line I have no idea. I did disable DPL and re-enable it afterwards, but I'm skeptical that this had anything to do with it. Mickeyf (talk) 17:46, 27 June 2013 (UTC)
- I had the same problem. DPL had nothing to do with it, it's just one of the first queries that uses the page table. If you disable DPL, the error occurs with just another page_title because that column does not exist.
- I solved it with a very dirty work-around. I added the column "page_content_model" myself as text in phpmyadmin. I ran the update.php and during the 5 seconds countdown. I removed the "page_content_model". The update.php than updates the page table itself. 78.21.3.76 11:40, 25 July 2013 (UTC)
- AND I just noticed that the problem does not exit when you update via the web_updater (http://www.mediawiki.org/wiki/Manual:Upgrading#Web_updater) 78.21.3.76 13:53, 25 July 2013 (UTC)
- Thank you! It helped a lot. I got it done via web updater. 183.89.118.77 17:09, 20 December 2013 (UTC)
- AND I just noticed that the problem does not exit when you update via the web_updater (http://www.mediawiki.org/wiki/Manual:Upgrading#Web_updater) 78.21.3.76 13:53, 25 July 2013 (UTC)
- With great relief I am reporting that a complete new set of 1.21.1 files, and running update.php as a cron job (with "#!/usr/local/bin/php.cli" added as the first line) finally allowed me to arrive at a working 1.21.1. Why update.php would have failed when the host support personnel ran it from the command line I have no idea. I did disable DPL and re-enable it afterwards, but I'm skeptical that this had anything to do with it. Mickeyf (talk) 17:46, 27 June 2013 (UTC)
403 error, CSS mess, only on IE/FF, not on Chrome
Hello everyone, greetings!
So my problem is as follows:
Whenever I access my mediawiki site, ( site.projetopescar.org.br/tsp/ ) , the first page appears all messed up, without CSS. If I click on the 'authenticate' link to log-in, I get a 403 error.
The problem ONLY happens in IE and Firefox. Using Chrome, everything is just fine. What could possibly be happening?
MediaWiki 1.17.0 PHP 5.3.23 (apache2handler) MySQL 5.0.95
Any help would be greatly appreciated!
Best regards, Felipe 189.27.231.207 (talk) 14:18, 27 June 2013 (UTC)
- I've tested with Google Chrome with exactly the same problem.
- It seems that every page with a "=" character in the URL leads to a 403 error. Check the apache error logs to see if there's more info about what's causing the forbidden errors. If you have rewrite rules enabled, please remove them to see if they're causing the problem. Ciencia Al Poder (talk) 09:39, 28 June 2013 (UTC)
- This mediawiki is in a subdirectory, and the root folder is a wordpress install with some security rules (put in place by the Better WP Security plugin). Since I have absolutely no idea what any of these lines mean, I'll try pasting the rewrite rules I found on my htaccess, and maybe a kind soul here will help me find the culprit:
RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR] RewriteCond %{QUERY_STRING} ^.*\.(bash|git|hg|log|svn|swp|cvs) [NC,OR] RewriteCond %{QUERY_STRING} etc/passwd [NC,OR] RewriteCond %{QUERY_STRING} boot\.ini [NC,OR] RewriteCond %{QUERY_STRING} ftp\: [NC,OR] RewriteCond %{QUERY_STRING} http\: [NC,OR] RewriteCond %{QUERY_STRING} https\: [NC,OR] RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [NC,OR] RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR] RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|ê|"|;|\?|\*|=$).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*("|'|<|>|\|{||).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127\.0).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(request|select|concat|insert|union|declare).* [NC] RewriteCond %{QUERY_STRING} !^loggedout=true RewriteCond %{QUERY_STRING} !^action=rp
- Best regards!
- Felipe 189.27.231.207 12:07, 28 June 2013 (UTC)
- Hi Felipe,
- try moving the MediaWiki installation out of the subfolder, so that it is next to the WordPress folder (and not inside it). 88.130.121.124 13:26, 28 June 2013 (UTC)
Random mozilla addresses/redirects
Here's a weird one for you guys.
Without divulging too much information, we have a MediaWiki instance set up on an isolated server (e.g., intranet sites only). [This one is a different installation than the other one I've referenced in previous posts.] That system only has IE7 installed on it, and I can't even put in the old Developer toolbar to debug, that's how ridiculously antiquated it is.
Today I got a complaint from one of our users that they couldn't use the back button when on that wiki. I looked at the site, and he was right -- it'll load the article, but when you click the back button, nothing happens. (E.g., the button is active and not greyed out, it just doesn't do anything.) When you hold down the button and look at the dropdown/history, the following three pages are listed:
http://www.mozilla.net/test.html?string
http://www.mozilla.org/test.html?string
http://www.mozilla.com/test.html?string
...then the 'real' previous page title, e.g., "Main Page - Our Wiki".
The only error I see is the ever-so-useless IE "Done, with errors on the page" icon/message in the lower left corner. This one says:
- Line: 43
- Char: 1
- Error: Syntax Error
- Code: 0
- URL: http://www.example.com/index.php?title=-&action=raw&smaxage=0&gen=js&useskin=vector&270
Note: because it's an isolated server, it can't load any of the Mozilla urls since they're external... not like they actually point to anything, anyway (I just get a 404 when I type it in on an externally-based server).
Anyone??
System info
Version: MediaWiki 1.16.2
PHP: 5.2.4 (isapi)
MySQL: 5.0.45 Kchurch05 (talk) 15:00, 27 June 2013 (UTC)
- This sounds strange. The only thing I can think of right now is that there is some JS on your wiki somewhere (MediaWiki:Common.js?) that is pulling in the Mozilla URLs. ☠MarkAHershberger☢(talk)☣ 13:27, 2 July 2013 (UTC)
- Is $wgServer set correctly? If you look at the html source, do the links point to the right place?
- It all sounds very odd. Bawolff (talk) 00:14, 3 July 2013 (UTC)
- I'm not seeing any suspicious .js files or inline scripts... the only thing that does come up with a reference to mozilla is opensearch_desc.php, but that's in our other wiki installations and those work fine. And $wgServer is set correctly, and all links are pointing to the correct URLs. 169.253.194.1 18:22, 3 July 2013 (UTC)
- Hi!
- I googled the wrong URL, which you see there, and there is not a single hit for it on Google. So I guess it's not a known browser bug or something.
- When you say one user complained and you looked at the site: Did you do that from his PC and is he the only one affected? Or are there also other PCs in your network, which have this problem?
- Does the affected user also have this problem on other sites in your network?
- Can you not test that with another browser, e.g. with Firefox?
- Other ideas: There is not an iframe or so in your page, which somehow manipulates the URLs? Mozilla does not have a proxy, which you are somehow using? 88.130.72.126 19:16, 3 July 2013 (UTC)
- Nope, it's happening to all our users. Unfortunately we can't test with another browser as IE 7 (gag) is the only one approved for that system.
- There is a weird iframe at the very bottom of the generated source code:
<iframe src="http://www.google.com/index.php?s=1" width="1" height="1" frameborder="0"></iframe>
- but it doesn't explain the Mozilla links are coming up in the back button history (especially in an IE browser :). Kchurch05 (talk) 19:50, 15 July 2013 (UTC)
- Seems like you have several weird things going on in that wiki. ;-)
- Please check, where this iframe is coming from!
- I again read what URLs you are seeing: It is mozilla.net, mozilla.org and mozilla.com. Search all wiki files for the word "mozilla" again. There must be a hit somewhere. Maybe it's also somewhere in your database, e.g. on MediaWiki:Common.js or on <your-skinname>.js, e.g. MediaWiki:Vector.js.
- Concerning your error message: Please open the file http://www.example.com/index.php?title=-&action=raw&smaxage=0&gen=js&useskin=vector&270 alone and check what code and what error you have there in line 43, char 1 (maybe it's also in line 42 at the end). 88.130.92.154 01:06, 16 July 2013 (UTC)
- Unfortunately the file content isn't indexed in Windows, so I can't search within the files. (Don't even ask about installing a third party text editor to search. ;))
- We're scheduled to upgrade that version soon, so I'm hoping the fresh files will alleviate the problem. Kchurch05 (talk) 19:05, 17 July 2013 (UTC)
- Ok, then see, if an upgrade helps you. 88.130.66.36 15:50, 18 July 2013 (UTC)
- I'm not seeing any suspicious .js files or inline scripts... the only thing that does come up with a reference to mozilla is opensearch_desc.php, but that's in our other wiki installations and those work fine. And $wgServer is set correctly, and all links are pointing to the correct URLs. 169.253.194.1 18:22, 3 July 2013 (UTC)
What is the best way to convert from SQLite to MySQL?
Is there any software that can convert the database? The only solution I have is to export all pages by an export category and import them to a new wiki with MySQL. Lieutenant Aleksandr Reznov 17:17, 27 June 2013 (UTC)
- Importing exported pages is going to be slower than importing sql dumps, but importing a sql dump may only work if you only import the data, not the schema -- that is, create all the tables first and then import the data.
- I don't know that this will work and I've never tried it so ... good luck! ☠MarkAHershberger☢(talk)☣ 17:31, 27 June 2013 (UTC)
- Thanks. Do you know how I would do that? Should I install a wiki and then import the sqlite database like a .sql file? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:04, 27 June 2013 (UTC)
- From the command line, dump the sqlite database. Remove any "CREATE" statements from the dump so that all you have left is INSERT statements. Feed the resulting file into an already set up MediaWiki system.
- Just be aware that there are probably lots of things I don't know and you'll run into road blocks. I'll try to help you if you try this and run into problems, but I can't guarantee anything. In the end, it may be quicker to just export all the pages and then import them. ☠MarkAHershberger☢(talk)☣ 23:24, 27 June 2013 (UTC)
- Hi!
- Additionally to what Mark wrote there also are different notations for TRUE/FALSE values: In the SQLite dump you will have things like 't' and 'f', while for MySQL it is '1' and '0'. These have to be replaced as well; take care for the context so that you do not replace these things at the wrong places.
- And I know there were still some other things to change, but I do not remember, what that was exactly. :-( 88.130.69.253 01:02, 28 June 2013 (UTC)
- Thanks for your explanations. In the interest of moving the wiki quickly, I'll probably just move it to a new domain, copy the files, create a MySQL database, and import the pages. I'll work on transferring SQLite to MySQL on wikis on my own computer, so that I can write a guide here for doing it, which will be useful to other people transferring to VPS from shared hosting, or perhaps a more reasonable shared host. As the SQLite page here recommends, it's a good way of getting around arbitrary database limits on shared hosts. GoDaddy charges $15 for unlimited database hosting plans. It's ridiculous. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:55, 28 June 2013 (UTC)
- Thanks. Do you know how I would do that? Should I install a wiki and then import the sqlite database like a .sql file? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 20:04, 27 June 2013 (UTC)
- You can try SQLite-to-MySQL migration tool to automate your conversion tasks Dmm (talk) 09:23, 3 September 2013 (UTC)
- Thanks. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 14:24, 3 September 2013 (UTC)
terminology page
We have a terminology page, and when you click on that page you will see an a-z page if you click on "A" you will see all "a" words. Then lets say you click "apple" the next page will be a definition of "apple" I need to see all the words and definitions on the same page is this possible?
Thank you Wayn3597 (talk) 22:32, 27 June 2013 (UTC)
- It sounds like you are looking for a way to include (some of) the contents of a page into the category listing? That, or you have some sort of special page for listing terms.
- In either case, yes, what you want is possible, but it will probably take some special code. AFAIK, there isn't anything like that available right now. ☠MarkAHershberger☢(talk)☣ 23:19, 27 June 2013 (UTC)
not able to upload tried all the obvious things.
Completely frustrating me.
CentOS 6.4
MediaWiki 1.20.5
PHP 5.5.0RC1 (apache2handler)
MySQL 5.5.31
php.ini
safe_mode = off;
file_uploads = On
max_file_uploads = 20
localsettings.php
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
images folder
chown apache:apache images/
chown 755 -R images/ (threw error)
chown 777 -R images/ (threw error)
When I try and upload a small jpeg file I get the following error:
Warning: wfMkdirParents: failed to mkdir "/usr/local/mediawiki-1.20.5/images/5/5d" mode 0777 in /usr/local/mediawiki-1.20.5/includes/GlobalFunctions.php on line 2546
I've restart apache and still cannot upload. I'm stumped. Any ideas?
Thanks. 67.159.165.194 (talk) 22:43, 27 June 2013 (UTC)
- It isn't
chown 777 -R images/
butchmod -R 777 images/
. - If you do that, does it work? ☠MarkAHershberger☢(talk)☣ 23:17, 27 June 2013 (UTC)
- Oh that was just a typo on my end. I used chmod 67.159.165.194 19:59, 28 June 2013 (UTC)
- It is in fact possible that permissions are not set correctly. When you used chmod -R 777 images/, what error did you get? 88.130.112.223 12:24, 29 June 2013 (UTC)
- Oh that was just a typo on my end. I used chmod 67.159.165.194 19:59, 28 June 2013 (UTC)
[RESOLVED] Error messages when trying to login or see contributions on the different wikipedia
Hi, what does this mean? thanks. Lotje@wikipedia.org
[332a9418] 2013-06-28 04:50:20: Fatal exception of type MWException (message received when trying to login on af.wikipedia). Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. (message received when trying to login on de.wikipedia)
[22557c34] 2013-06-28 04:51:06: Fatal exception of type MWException (message received when trying to see contributions on en.wikipedia). [7598cb8c] 2013-06-28 04:46:45: Fatal exception of type MWException (message received when trying to login on fr.wikipedia). [0dd4730d] 2013-06-28 04:49:46: Fatal exception of type MWException (message received when trying to login on fy.wikipedia). [961664cd] 2013-06-28 04:48:57: Fatal exception of type MWException (message received when trying to login on he.wikipedia). MediaWiki internal error. [7bab7319] 2013-06-28 04:45:13: Fatal exception of type MWException (message received when trying to login on nl.wikipedia). Lotje (talk) 04:53, 28 June 2013 (UTC)
reedy@fluorine:/a/mw-log$ zgrep 332a9418 archive/exception.log-20130628.gz 2013-06-28 04:50:20 mw1102 afwiki: [332a9418] /wiki/Tuisblad Exception from line 315 of /usr/local/apache/common-local/php-1.22wmf8/includes/MagicWord.php: Error: invalid magic word 'coordinates' reedy@fluorine:/a/mw-log$ zgrep 22557c34 archive/exception.log-20130628.gz 2013-06-28 04:51:06 mw1162 enwiki: [22557c34] /wiki/Special:Contributions/Lotje Exception from line 315 of /usr/local/apache/common-local/php-1.22wmf8/includes/MagicWord.php: Error: invalid magic word 'coordinates' reedy@fluorine:/a/mw-log$ zgrep 7598cb8c archive/exception.log-20130628.gz 2013-06-28 04:46:45 mw1101 frwiki: [7598cb8c] /wiki/Wikip%C3%A9dia:Accueil_principal Exception from line 315 of /usr/local/apache/common-local/php-1.22wmf8/includes/MagicWord.php: Error: invalid magic word 'coordinates'
- The timing of this looks around the time of the problems that were experienced on Thursday/Friday
- Can you login now? Reedy (talk) 17:37, 1 July 2013 (UTC)
PHP timeout after upgrading MW
I just upgraded from MW 1.18 to 1.21 (no other changes). My user page was perhaps complex to render, containing large tables and repeated use of an image in the cells. However I didn't have any problems loading it in 1.18. Now, in 1.21 it is timing out in PHP (30 seconds). Previously the page would load in under 10 seconds. PHP is 5.3.5 and MySQL 5.0.37. 76.253.2.43 (talk) 08:41, 29 June 2013 (UTC)
- Hmm, hard to say... I would now do some debugging, see Manual:How to debug. The debug options (Profiling!) allow you to write a log for page requests. I would activate that with an according StartProfiler.php file and would then request the according page. Then post the resulting output from the debug file here... 88.130.112.223 12:22, 29 June 2013 (UTC)
- I've isolated this to the use of the image which was based on having Instant Commons. I turned Instant Commons off, and now the page loads as normal, except of course that the image is not displayed, but I guess I will just upload a copy locally. Perhaps there was an issue with caching the image request from commons? Though I don't actually have a proper cache anyway since I'm just running this on a local machine and not a public server. I don't know the workings of MW enough to judge if this has any effect. 76.253.2.43 18:03, 29 June 2013 (UTC)
- So, I uploaded a local copy of the image and this appeared to fix the problem for a short while. Then I edited the page, and that caused it to become unresponsive - it did not time out, but would just get stuck in an indefinite loading state. The entire site became unresponsive until I restarted the browser (Firefox), whereupon every time I visited the user page it would become unresponsive again. The rest of the wiki otherwise worked fine. Since I can't really work with the wiki in such a flaky state, I opted to try rolling back to older versions and in fact had to go all the way back to 1.18. So whatever the issue was, was probably introduced in 1.19 and has been carried in the code since then. 76.253.2.43 06:42, 30 June 2013 (UTC)
- I've isolated this to the use of the image which was based on having Instant Commons. I turned Instant Commons off, and now the page loads as normal, except of course that the image is not displayed, but I guess I will just upload a copy locally. Perhaps there was an issue with caching the image request from commons? Though I don't actually have a proper cache anyway since I'm just running this on a local machine and not a public server. I don't know the workings of MW enough to judge if this has any effect. 76.253.2.43 18:03, 29 June 2013 (UTC)
1146: Table doesn't exist
I updated to 1.19 a couple months ago. When I did, everytime I post I get a return error:
Database returned error "1146: Table 'myDB.mw_smw_object_ids' doesn't exist
My edits work just fine. Of course, I want to get this issue fixed ASAP.
I cannot find this table in the documentation. I don't just want to put the table in there.
What is this table about? Can I just create a mw_smw_object_ids? If so, what should I set it as? Geekazine (talk) 19:06, 29 June 2013 (UTC)
- Did you remember to run update.php? Jasper Deng (talk) 19:23, 29 June 2013 (UTC)
centralauth
hii I seem to have an error in centralauth the error says Warning: call_user_func() expects parameter 1 to be a valid callback, function 'wmfLoadInitialiseSettings' not found or invalid function name in /home/random/public_html/pt.br/includes/SiteConfiguration.php on line 595
it works on my wiki but shows an error at the top and would like help to resolve the error please my wiki is at http://random-wikisaur.tk and http://pt.br.random-wikisaur.tk 109.153.189.206 (talk) 21:51, 29 June 2013 (UTC)
- Maybe paste the lines around line 595 in SiteConfiguration.php? However it sounds like you copied it from somewhere (Wikimedia servers) anyway? That won't work. AKlapper (WMF) (talk) 15:37, 1 July 2013 (UTC)
- Before 1.22 it work but now it doesent since wmfLoadInitialiseSettings was removed in Mediawiki 1.22 90.218.199.164 17:28, 1 July 2013 (UTC)
- Repeating the same incorrected statement again though you've been told that it's not true and still not providing more information is not helpful... wmfLoadInitialiseSettings is in the repository operations/mediawiki-config/wmf-config/CommonSettings.php. It is NOT in Mediawiki. AKlapper (WMF) (talk) 20:05, 1 July 2013 (UTC)
- oh ok 109.144.228.207 20:11, 1 July 2013 (UTC)
- Repeating the same incorrected statement again though you've been told that it's not true and still not providing more information is not helpful... wmfLoadInitialiseSettings is in the repository operations/mediawiki-config/wmf-config/CommonSettings.php. It is NOT in Mediawiki. AKlapper (WMF) (talk) 20:05, 1 July 2013 (UTC)
- Before 1.22 it work but now it doesent since wmfLoadInitialiseSettings was removed in Mediawiki 1.22 90.218.199.164 17:28, 1 July 2013 (UTC)
Extension:Pdf Export Installation.
Hello-
I've been trying to install this extension for our wiki page: wiki.computerharpoon.com I installed htmldoc (it actually said that the most current version was already installed) and I followed the instructions found here: http://www.mediawiki.org/wiki/Extension:Pdf_Export, and have added the following lines of code to our LocalSettings.php file: require_once("$IP/extensions/PdfExport/PdfExport.php"); $wgPdfExportHtmlDocPath = '/usr/local/bin/htmldoc';
I heard that Htmldoc is the easiest and most user friendly, so I chose that as the backend.. I rebooted apache, and I still don't see anything updated on our page? (I thought it would add an option to our toolbox on the left, so I could pdf selected pages.)
If anyone can shed some light on this, it would be greatly appreciated! 74.192.220.242 (talk) 04:44, 30 June 2013 (UTC)
- No one has had experience with this extension before? 74.192.220.242 22:12, 30 June 2013 (UTC)
- Any debug output on PHP or Apache level? http://www.mediawiki.org/wiki/Manual:How_to_debug AKlapper (WMF) (talk) 15:35, 1 July 2013 (UTC)
[RESOLVED] Page wont save with cimetidine
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.
Mediawiki 1.21.1
PHP 5.3.25
Mysql 5.5.31
I have experienced a curious problem when submitting a page that contains the string cimetidine. The page is not saved and browser redirected to the Main Page.
I used the sandbox and incrementally created the problem: No issues with: C Ci Cim Cime Cimet Cimeti Cimetid Cimetidi Cimetidin imetidine
but nogo with Cimetidine
ditto behaviour with lower case 'cimetidine', so it's case-insensitive ditto crash with ':Cimetidine' and ':cimetidine' (note leading colon for wiki tab), so you can't escape out of it with wiki codes ditto crash with '_Cimetidine' and '_cimetidine', so you can't escape it with leading characters and finally, ditto with 'cimetidine_' and even '_cimetidine_', or ccimetidineee so you can't escape it by right-padding or even embedding internally.
Conclusion: The exact sequence of characters 'cimetidine' (case insensitive) can't be used, even when embedded inside another string!
I've searched Google and Mediawiki for (cimetidine && mediawiki) but no bug reports seem to have been lodged.
Activated debug log but no useful information was apparent.
Wiki can be found at www.chempathwiki.net
Any suggestions greatly appreciated. DougChesher (talk) 06:59, 30 June 2013 (UTC)
- This looks like you have installed any sort of spam filter (either a MediaWiki extension, or a module installed on the web server) that look for some words on the page, and if found, redirects to the main page. If you are on a shared hosting, ask the technical support. Ciencia Al Poder (talk) 09:28, 1 July 2013 (UTC)
- Good news. The problem has been solved by the hosting provider, although they have not indicated explicitly what the problem was. Thank you for putting me in the right direction. DougChesher (talk) 04:21, 6 July 2013 (UTC)
- Apparently there was an issue with mod_security rules, which has been addressed by the hosting provider. DougChesher (talk) 08:38, 6 July 2013 (UTC)
- So any more info on how it was solved, i have been working on this for days going in circles, it is absolutely maddening. I tried to over ride mod_security via .htaceess but I don't even think its loaded in apache. 121.50.205.109 03:48, 5 January 2014 (UTC)
- So any more info on how it was solved, i have been working on this for days going in circles, it is absolutely maddening. I tried to over ride mod_security via .htaceess but I don't even think its loaded in apache. 121.50.205.109 03:48, 5 January 2014 (UTC)
- So any more info on how it was solved, i have been working on this for days going in circles, it is absolutely maddening. I tried to over ride mod_security via .htaceess but I don't even think its loaded in apache. 121.50.205.109 03:48, 5 January 2014 (UTC)
- You can't override mod_security in .htaccess. You should disable mod_security in the apache config, see if the problem is solved, and then review the rules you have for mod_security and disabling the ones that cause the problem Ciencia Al Poder (talk) 12:02, 5 January 2014 (UTC)
incorrect api.php path in command line
MW 1.19.3 When I want to login with bot to my wiki I see this error:
No handlers could be found for logger "pywiki" Logging in to westeros:fa as SiteBot via API. Traceback (most recent call last): File "C:\pywikipedia\login.py", line 436, in <module> main() File "C:\pywikipedia\login.py", line 432, in main loginMan.login() File "C:\pywikipedia\login.py", line 319, in login cookiedata = self.getCookie(api) File "C:\pywikipedia\login.py", line 181, in getCookie response, data = query.GetData(predata, self.site, sysop=self.sysop, back_response = True) File "C:\pywikipedia\pywikibot\support.py", line 121, in wrapper return method(*__args, **__kw) File "C:\pywikipedia\query.py", line 143, in GetData res, jsontext = site.postForm(path, params, sysop, site.cookies(sysop = sysop) ) File "C:\pywikipedia\wikipedia.py", line 6460, in postForm cookies=cookies) File "C:\pywikipedia\wikipedia.py", line 6514, in postData raise PageNotFound(u'Page %s could not be retrieved. Check your family file ?' % url) pywikibot.exceptions.PageNotFound: Page http://www.westeros.ir/w/api.php could not be retrieved. Check your family file?
My family file is this:
# -*- coding: utf-8 -*- import family # westeros class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = 'westeros' self.langs = { 'fa': 'www.westeros.ir', } def version(self, code): return "1.19.3" def scriptpath(self, code): return '/wiki' def apipath(self, code): return '/wiki'
api.php is in '/wiki' folder, why it says "Page http://www.westeros.ir/w/api.php could not be retrieved"? Where should I change "/w" to "/wiki" other than family.py file? 3dmahdi (talk) 12:57, 30 June 2013 (UTC)
- Try asking your question here? Manual_talk:Pywikipediabot ☠MarkAHershberger☢(talk)☣ 21:01, 1 July 2013 (UTC)
wmfLoadInitialiseSettings
Hi please add wmfLoadInitialiseSettings this back in Mediawiki 1.22 because it was remove in one off the 1.22 Wmf 109.153.189.206 (talk) 14:17, 30 June 2013 (UTC)
- If it was removed, I think it is very unlikely that it would be added again as it surely was not removed without a reason.
- However, you can find more information on the removal of this function in the bugtracker. 88.130.65.123 14:54, 30 June 2013 (UTC)
- I have filed a bug to bring it back at https://bugzilla.wikimedia.org/show_bug.cgi?id=50473#add_comment 86.171.32.149 19:05, 30 June 2013 (UTC)
- Resolved in under 90 minutes - that's fast! 88.130.65.123 21:11, 30 June 2013 (UTC)
- not resolved just that I doint have any of the files he was saying 86.176.51.142 22:29, 30 June 2013 (UTC)
- Sure! It says "Resolved". 88.130.90.87 16:29, 1 July 2013 (UTC)
- The ticket is resolved as invalid, because it's not a bug but a support request.
- "Resolved" is not the same as "fixed". "Fixed" is a subset of "resolved". AKlapper (WMF) (talk) 16:34, 1 July 2013 (UTC)
- Exactly! 88.130.90.87 20:37, 1 July 2013 (UTC)
- No, it was never part of core, and there is no reason it will ever be.
- You shouldn't be copying configuration from elsewhere it you don't know what it's for. Reedy (talk) 17:41, 1 July 2013 (UTC)
- Sure! It says "Resolved". 88.130.90.87 16:29, 1 July 2013 (UTC)
- not resolved just that I doint have any of the files he was saying 86.176.51.142 22:29, 30 June 2013 (UTC)
- Resolved in under 90 minutes - that's fast! 88.130.65.123 21:11, 30 June 2013 (UTC)
- I have filed a bug to bring it back at https://bugzilla.wikimedia.org/show_bug.cgi?id=50473#add_comment 86.171.32.149 19:05, 30 June 2013 (UTC)
- If it was removed, some proof (Gerrit commit), or a full path to that file would be a good start. However I have my doubts. AKlapper (WMF) (talk) 15:38, 1 July 2013 (UTC)
- And again: If you're just copying https://noc.wikimedia.org/conf/highlight.php?file=wgConf.php that really won't work, because WMF's server is not your server. AKlapper (WMF) (talk) 15:39, 1 July 2013 (UTC)
- He has not yet said, what he wants. So it's all guessing - but we have fun with it.
- I think that's a classical 42, don't you think? 88.130.90.87 16:29, 1 July 2013 (UTC)
- Do you know how I can add it to my wiki not like wikimedia 90.218.199.164 16:54, 1 July 2013 (UTC)
- Why? Reedy (talk) 17:45, 1 July 2013 (UTC)
- Because I am getting an error message at the top of the special pages for centralauth and wikimedia incubator 90.218.199.164 17:54, 1 July 2013 (UTC)
- What error? 88.130.90.87 20:37, 1 July 2013 (UTC)
- The error is
- Warning: call_user_func() expects parameter 1 to be a valid callback, function 'wmfLoadInitialiseSettings' not found or invalid function name in /home/random/public_html/pt.br/includes/SiteConfiguration.php on line 595 86.176.51.142 06:38, 2 July 2013 (UTC)
- That is something.
- Don't forget this error message, it is the key to the solution.
- The next time you post a problem with an error here, please directly start with the error message!
- Now check, why you get this error message. E.g. provide a backtrace!
- Where are you calling this function? 88.130.114.26 11:57, 2 July 2013 (UTC)
- So I'm guessing you just copied and pasted some $wgConf stuff without knowing what it does? If so that's probably a bad plan...
- I have no idea what you are doing, but it probably involves something along the lines of doing $wgConf->fullLoadCallback = 'wmfLoadInitialiseSettings'; somewhere in your config. Solution would be not to use Wikimedia specific config files unless you are sure what you are doing. Bawolff (talk) 00:24, 3 July 2013 (UTC)
- No I downloaded the extension and that what it says when I go on the special pages for that extension 109.144.235.192 13:01, 3 July 2013 (UTC)
- Which extension and from where? Give us the link! 88.130.72.126 13:26, 3 July 2013 (UTC)
- Central auth - https://www.mediawiki.org/wiki/Extension:CentralAuth and wikimedia incubator - https://www.mediawiki.org/wiki/Extension:WikimediaIncubator and my website is at http://random-wikisaur.tk/wiki/Main_Page 90.215.231.132 17:21, 3 July 2013 (UTC)
- Good.
- Now search the complete MediaWiki source code including your extensions, your LocalSettings.php and all files you have in your MediaWiki installation for the string "wmfLoadInitialiseSettings". Post us a list of all hits! 88.130.72.126 17:38, 3 July 2013 (UTC)
- How do I do that 90.215.231.132 18:10, 3 July 2013 (UTC)
- READ THEM MANUALLY! My God!
- Can you figure out anything yourself? If you don't even manage to do the easiest things, then I'm sorry. Maybe you find help by someone else! I won't waste my time here anymore. I'm out. 88.130.72.126 18:31, 3 July 2013 (UTC)
- Ok 94.15.181.33 15:35, 16 July 2013 (UTC)
- How do I do that 90.215.231.132 18:10, 3 July 2013 (UTC)
- Central auth - https://www.mediawiki.org/wiki/Extension:CentralAuth and wikimedia incubator - https://www.mediawiki.org/wiki/Extension:WikimediaIncubator and my website is at http://random-wikisaur.tk/wiki/Main_Page 90.215.231.132 17:21, 3 July 2013 (UTC)
- Which extension and from where? Give us the link! 88.130.72.126 13:26, 3 July 2013 (UTC)
- No I downloaded the extension and that what it says when I go on the special pages for that extension 109.144.235.192 13:01, 3 July 2013 (UTC)
- What error? 88.130.90.87 20:37, 1 July 2013 (UTC)
- Because I am getting an error message at the top of the special pages for centralauth and wikimedia incubator 90.218.199.164 17:54, 1 July 2013 (UTC)
- Why? Reedy (talk) 17:45, 1 July 2013 (UTC)
- Do you know how I can add it to my wiki not like wikimedia 90.218.199.164 16:54, 1 July 2013 (UTC)
- And again: If you're just copying https://noc.wikimedia.org/conf/highlight.php?file=wgConf.php that really won't work, because WMF's server is not your server. AKlapper (WMF) (talk) 15:39, 1 July 2013 (UTC)