Apparently, this is called Transclusion. Here is the link to this solution: Transclusion
Project:Support desk/Flow/2015/11
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Error creating thumbnail: File missing - 1.25.3 upgrade
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 upgraded to 1.25.3 and I'm having issues with thumbnails. Similar to... Project:Support desk/Flow/2014/09#c-Ciencia_Al_Poder-2014-09-16T09:47:00.000Z-AtariDal-2014-09-15T16:51:00.000Z Upgraded old MW site to 1.23.3 and thumbnails stopped working... which was marked as resolved, but the resolution there wasn't clear to me.
My URL is here: https://neucart.com/wiki/IPN ... interestingly, one of the images work and one does not. (Both come from commons.) CvyvvZkmSUDowVf (talk) 02:05, 1 November 2015 (UTC)
- Yeah, that's weird.
- Querying the api, I see that the image that's failing shows it's from local repo while a random image from commons that doesn't exist on your wiki displays as being from wikicommons.
- Try deleting the image page to see if it fixes itself Ciencia Al Poder (talk) 15:04, 1 November 2015 (UTC)
- I could do that, but I have a number of images with this same issue since the upgrade. Almost every image comes from commons. Why is there something local at all? CvyvvZkmSUDowVf (talk) 23:52, 1 November 2015 (UTC)
- Actually I noticed some image files were not copied over. I fixed that, and now I can see the image here:
- https://neucart.com/wiki/Template:Infobox_tech
- And it took a while but it seems most pages now show the icons that were missing. I'll close this one to bad copy/paste of the image files... CvyvvZkmSUDowVf (talk) 00:16, 2 November 2015 (UTC)
Error 405, 406 and 500 from Server
I have been having lots of 404, 504 and 500 errors showing so contacted my server host and this is what they replied. They seem confused by the errors too so please can someone help me and them to solve this:
We are still trying to determine the exact cause of this error. I have cleaned up the mysql table associated with the wiki but when I use the method that you describe in the other ticket I get 500, 504, and 404 errors. So, I started looking at the index.php in the subdirectory for the site and I have found there are a few php error including but not limited to: gmdesign@gmdesign.org.uk [~/public_html/wiki]# strace -tfvv -s 4096 -o /home/gmdesign/wikiStrace.$(date +%s).strace php index.php <!DOCTYPE html> <html><head><title>Internal error - All about Ayrshire</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body> <div class="errorbox">[7fedfe4e] 2015-11-01 17:50:56: Fatal exception of type MWException</div> <!-- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. --></body></html> Here is the file that strace is pointing out: /home1/gmdesign/public_html/wiki/LocalSettings.php There is an strace file you may feel free to review until a Level 1 Admin become available to look at the site. The name of the file is wikiStrace.1446400253.strace
Here is my localsettings file with all the sensitive stuff removed.
<?php
# This file was automatically generated by the MediaWiki 1.23.9
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "All about Ayrshire";
$wgMetaNamespace = "All about Ayrshire";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki33";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://gmdesign.org.uk";
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgStylePath/common/images/wiki.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "REMOVED FOR SECURITY";
$wgPasswordSender = "REMOVED FOR SECURITY";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "REMOVED FOR SECURITY";
$wgDBuser = "REMOVED FOR SECURITY";
$wgDBpassword = "REMOVED FOR SECURITY";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons = true;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "REMOVED FOR SECURITY";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "REMOVED FOR SECURITY";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "vector";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['edit'] = false;
# require that users log in to read
$wgGroupPermissions['*']['read'] = false;
# require that users log in to edit
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once "$IP/extensions/Cite/Cite.php";
require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
require_once "$IP/extensions/Gadgets/Gadgets.php";
require_once "$IP/extensions/ImageMap/ImageMap.php";
require_once "$IP/extensions/InputBox/InputBox.php";
require_once "$IP/extensions/Interwiki/Interwiki.php";
require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";
require_once "$IP/extensions/Nuke/Nuke.php";
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
require_once "$IP/extensions/PdfHandler/PdfHandler.php";
require_once "$IP/extensions/Poem/Poem.php";
require_once "$IP/extensions/Renameuser/Renameuser.php";
require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";
require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";
require_once "$IP/extensions/WikiEditor/WikiEditor.php";
# End of automatically generated settings.
# Add more configuration options below.
$wgGoogleMapsKey = "";
require_once( "$IP/extensions/GoogleMaps/GoogleMaps.php" );
require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
require_once "$IP/skins/Nimbus/Nimbus.php";
require_once "$IP/extensions/Variables/Variables.php";
require_once "$IP/extensions/ExtensionInstaller/ExtensionInstaller.php";
require_once "$IP/extensions/Validator/Validator.php"; # Validator must be included *before* Maps.
require_once "$IP/extensions/Maps/Maps.php"; # Maps
require_once "$IP/extensions/TemplateData/TemplateData.php";
// Set this to true to enable the TemplateData GUI editor
$wgTemplateDataUseGUI = true;
# Enables use of WikiEditor by default but still allows users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;
# Enables link and table wizards by default but still allows users to disable them in preferences
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
# Displays the Preview and Changes tabs
$wgDefaultUserOptions['wikieditor-preview'] = 1;
# Displays the Publish and Cancel buttons on the top right side
$wgDefaultUserOptions['wikieditor-publish'] = 1;
require_once "$IP/extensions/ContactPage/ContactPage.php";
$wgContactConfig['default'] = array(
'RecipientUser' => 'Admin', // Must be the name of a valid account which also has a verified e-mail-address added to it.
'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated
'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
'RequireDetails' => true, // Either "true" or "false" as required
'IncludeIP' => true, // Either "true" or "false" as required
'AdditionalFields' => array(
'Text' => array(
'label-message' => 'emailmessage',
'type' => 'textarea',
'rows' => 20,
'cols' => 80,
'required' => true, // Either "true" or "false" as required
),
),
// Added in MW 1.26
'DisplayFormat' => 'table', // See HTMLForm documentation for available values.
'RLModules' => array(), // Resource loader modules to add to the form display page.
'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page.
);
require_once("$IP/skins/Nimbus/Nimbus.php");
$wgEnableUploads = true;
$wgUseImageMagick = true;
require_once( "$IP/extensions/UploadWizard/UploadWizard.php" );
$wgExtensionFunctions[] = function() {
$GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL();
return true;
};
$wgUploadWizardConfig = array(
'debug' => false,
'autoAdd' => array(
'wikitext' => array( 'This file was uploaded with the UploadWizard extension.' ),
),
'feedbackPage' => 'Feedback about UploadWizard',
'altUploadForm' => 'Special:Upload',
'fallbackToAltUploadForm' => false,
'enableFormData' => true, # Should FileAPI uploads be used on supported browsers?
'enableMultipleFiles' => true,
'enableMultiFileSelect' => false,
'tutorial' => array(
'skip' => false
),
'fileExtensions' => $wgFileExtensions //omitting this can cause errors
);
include_once("$IP/extensions/iDisplay/iDisplay.php");
require_once("$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php");
require_once "$IP/skins/Metrolook/Metrolook.php";
# DeleteHistory
$wgGroupPermissions['sysop']['DeleteHistory'] = true;
require_once("$IP/extensions/DeleteHistory/DeleteHistory.php");
require_once( "$IP/extensions/HTML5video/HTML5video.php" );
require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';
$wgShowExceptionDetails=true;
Gmdesignuk (talk) 07:43, 2 November 2015 (UTC)
- The stack trace might help in looking at what exact line the problem is.
- If they say the stack trace points to LocalSettings.php, the problem may be directly in a file called from a require_once
- This line doesn't look good to me, though:
$wgExtensionFunctions[] = function() { $GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL(); return true; };- That's not what $wgExtensionFunctions expects Ciencia Al Poder (talk) 10:46, 2 November 2015 (UTC)
- the upload wizard code i got from the mediawiki page about it. Gmdesignuk (talk) 11:36, 2 November 2015 (UTC)
- here is the stacktrace
- (redacted) Gmdesignuk (talk) 11:40, 2 November 2015 (UTC)
- A debug log of all internal syscalls is not needed here, just a PHP error with stack trace. See Manual:How to debug
- The HTML file you posted already had a hint: Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information Ciencia Al Poder (talk) 10:55, 3 November 2015 (UTC)
mwdumper import issue
Manual talk:MWDumper#Unable to import xml dump duplicate entry error So I created an article in the talk here but I have received no response yet and thought maybe the support desk is able to help me out. Does anyone know of a fix? Also I can use the piping method to ignore the error but then I will be losing data and I prefer not to do that. Ksures (talk) 09:01, 2 November 2015 (UTC)
Limit editing but open Discussion to all?
We've limited editing to a group but we'd like anyone to be able to use the Discussion tab.
How can that be done? Mike46V (talk) 19:49, 2 November 2015 (UTC)
- First, allow all users to edit the wiki. Then restrict the editing of non-discussion namespaces using
$wgNamespaceProtection: $wgNamespaceProtection[NS_MAIN] = array( 'edit-content-pages' ); $wgNamespaceProtection[NS_USER] = array( 'edit-content-pages' ); $wgNamespaceProtection[NS_PROJECT] = array( 'edit-content-pages' ); $wgNamespaceProtection[NS_FILE] = array( 'edit-content-pages' ); $wgNamespaceProtection[NS_TEMPLATE] = array( 'edit-content-pages' ); $wgNamespaceProtection[NS_HELP] = array( 'edit-content-pages' ); $wgNamespaceProtection[NS_CATEGORY] = array( 'edit-content-pages' ); // also add lines for any custom namespaces you may have, such as "Gadget" or "Module"
- Finally, assign the
edit-content-pagesright to your privileged group: $wgGroupPermissions[ 'sysop' ][ 'edit-content-pages' ] = true; // replace sysop as appropriate
- HTH. This, that and the other (talk) 13:15, 3 November 2015 (UTC)
- I notice from your previous questions that you appear to be using Flow. I'm not sure if Flow respects $wgNamespaceProtection, try it out and let us know whether it works. This, that and the other (talk) 13:16, 3 November 2015 (UTC)
- Thank you for your suggestion.
- I'm interested in Flow but I have not yet tried it. Once I implement your suggestion, I may try it. Mike46V (talk) 15:42, 3 November 2015 (UTC)
DBssl not working for me
I'm trying to get DBssl working but I get a message that the site is down when I set the wikiuser to ssl required. I'm running Mediawiki 1.23, PHP 5.3 on ServerA and MySQL 5.1 on ServerB. I have also tried setting dbssl to true. I have one other PHP site on ServerA that can reach the mysql database on ServerB via my.cnf with ssl settings with no issues. Does DBssl not work with 1.23?
## Database settings
$wgLBFactoryConf['class'] = 'LBFactorySimple';
$wgDBservers = '';
$wgDBtype = "mysql";
$wgDBserver = "ServerB";
$wgDBssl = 1;
$wgDBname = "wikidatabase";
$wgDBuser = "wikiuser";
$wgDBpassword = "secret";
Thank you,
CourtK CourtKLAFilm (talk) 21:14, 2 November 2015 (UTC)
Pages invisible
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, for a few days, my pages are invisible: only the title is visible.
Can anyone help me? Thank you!
MediaWiki: http://www.france-politique.fr/wiki/Cat%C3%A9gorie:Partis_politiques Francepolitique (talk) 22:10, 2 November 2015 (UTC)
- This happened to me. I put these lines at the top of LocalSettings.php ( just after "<?php" )
- error_reporting( E_ALL );
- ini_set( 'display_errors', 1 );
- and this at the bottom:
- $wgShowExceptionDetails = true ;
Fustbariclation (talk) 23:30, 2 November 2015 (UTC)
Still problems with installing 1.25.3
I've reloaded all the extensions as I'd got the wrong versions. Now I'm stuck with a composer error:
Fatal error: Class 'Composer\Semver\VersionParser' not found in includes/registration/CoreVersionChecker.php
I've found the latest version of VersionParser.php, and I tried to put it into LocalSettings.php like this:
include_once("$IP/includes/registration/VersionParser.php");
I just end up with the same error from LocalSettings.php
I've tried updating composer, but that doesn't make any difference:
sudo php composer.phar selfupdate
=>
You are already using composer version 5a5088eb342e4876cb28472ba1fc3f1da7a14852.
It looks as if the Semver library is missing - so I put this in composer.son:
"composer/semver": "*"
It doesn't help.
Any suggestions?
| PHP Version | 5.5.29 |
Fustbariclation (talk) 23:27, 2 November 2015 (UTC)
- Hi,
- I got the same error:
php maintenance/update.php PHP Fatal error: Class 'Composer\Semver\VersionParser' not found in /home/mapmaking/core/includes/registration/CoreVersionChecker.php on line 42
- To solve it, I just updated
composer
with: composer update
- Then the update went smoothly. Jgrocha (talk) 21:08, 19 November 2015 (UTC)
Expand All with Collapsibles?
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.
Has anyone figured out a way to take the collapsible elements CSS class (that comes with mediawiki) and add an expand/collapse all function to it?
Thanks, Josh Joshkking (talk) 02:06, 3 November 2015 (UTC)
- I felt it had been long enough to warrant a subtle bump :) 68.119.83.109 (talk) 13:29, 13 November 2015 (UTC)
- Yes, I'd also like to see this. 216.165.139.220 (talk) 22:20, 19 October 2017 (UTC)
mailto wiki link not working
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 a mailto like with a lot of information in the body that I want to post on my companies wiki. When I try to add the link with wiki mediawik format...the link does not work.
If I use it in regular html outside my wiki the link works fine.
The link is about 1195 characters....is there a limit how long a link can be? Is there a way to work around this? Kaysevenmm (talk) 19:02, 3 November 2015 (UTC)
- It might be that entering mailto links is not allowed in that wiki. How come you think that the length might be the problem?
- Does it work with a short mailto link? 88.130.113.200 (talk) 23:45, 3 November 2015 (UTC)
- If the link itself is very long, does it contain special characters as " or brackets? I had this problem in de.wikipedia and in my own wiki. If so, you have to replace them in your link: " with %22, spaces with %20 and for brackets: [ with %5B und ] with %5D . LiturgicaNotata (talk) 07:38, 4 November 2015 (UTC)
- I don't know if it was because special characters. But I went through the body and removed any...after that the link start to work. I am not sure if it was because of any specific characters, but I am just glad it works :P Kaysevenmm (talk) 13:56, 4 November 2015 (UTC)
attachments into the database instead of the filesystem
I was trying to figure out a way to configure mediawiki to put all attachments into the datatbase instead of the filesystem. Is this possible? If so can someone please shed light on how to do so? 108.19.118.3 (talk) 19:06, 3 November 2015 (UTC)
- It's not possible at this time. 88.130.113.200 (talk) 23:41, 3 November 2015 (UTC)
Problem with language code - 1.25.3 not recognising en_gb
This is very odd, I've been using the code for ages, suddenly I'm getting an error:
MWException from line 4440 of wiki/languages/Language.php: Invalid language code "en_gb"
(I've tried en_GB just in case):
This is mediawiki 1.25.3
The backtrace is:
[3c35aa64] [no req] MWException from line 4440 of /wiki/languages/Language.php: Invalid language code "en_gb"
Backtrace:
#0 /wiki/extensions/SemanticExtraSpecialProperties/src/Cache/MessageCache.php(196): Language::getJsonMessagesFileName(string)
#1 /wiki/extensions/SemanticExtraSpecialProperties/src/Cache/MessageCache.php(187): SESP\Cache\MessageCache->getMessageFileModificationTime()
#2 /wiki/extensions/SemanticExtraSpecialProperties/src/Cache/MessageCache.php(153): SESP\Cache\MessageCache->getTouched()
#3 /wiki/extensions/SemanticExtraSpecialProperties/src/Cache/MessageCache.php(145): SESP\Cache\MessageCache->updateMessagesToCache()
#4 /wiki/extensions/SemanticExtraSpecialProperties/src/Cache/MessageCache.php(139): SESP\Cache\MessageCache->getTextMessage(string, array)
#5 /wiki/extensions/SemanticExtraSpecialProperties/src/PropertyRegistry.php(175): SESP\Cache\MessageCache->get(string)
#6 /wiki/extensions/SemanticExtraSpecialProperties/src/PropertyRegistry.php(159): SESP\PropertyRegistry->getPropertyLabel(string)
#7 /wiki/extensions/SemanticExtraSpecialProperties/src/PropertyRegistry.php(140): SESP\PropertyRegistry->registerPropertiesFromList(array)
#8 /wiki/extensions/SemanticExtraSpecialProperties/src/HookRegistry.php(84): SESP\PropertyRegistry->registerPropertiesAndAliases()
#9 [internal function]: SESP\HookRegistry->SESP\{closure}()
#10 /wiki/includes/Hooks.php(204): call_user_func_array(Closure, array)
#11 /wiki/includes/GlobalFunctions.php(3948): Hooks::run(string, array, NULL)
#12 /wiki/extensions/SemanticMediaWiki/src/PropertyRegistry.php(332): wfRunHooks(string)
#13 /wiki/extensions/SemanticMediaWiki/src/PropertyRegistry.php(71): SMW\PropertyRegistry->registerPredefinedProperties(boolean)
#14 /wiki/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php(361): SMW\PropertyRegistry::getInstance()
#15 /wiki/extensions/SemanticMediaWiki/src/SQLStore/PropertyTableDefinitionBuilder.php(158): SMW\DIProperty::getPredefinedPropertyTypeId(string)
#16 /wiki/extensions/SemanticMediaWiki/src/SQLStore/PropertyTableDefinitionBuilder.php(56): SMW\SQLStore\PropertyTableDefinitionBuilder->addTableDefinitionForFixedProperties(array)
#17 /wiki/extensions/SemanticMediaWiki/src/SQLStore/PropertyTableInfoFetcher.php(216): SMW\SQLStore\PropertyTableDefinitionBuilder->doBuild()
#18 /wiki/extensions/SemanticMediaWiki/src/SQLStore/PropertyTableInfoFetcher.php(185): SMW\SQLStore\PropertyTableInfoFetcher->buildDefinitionsForPropertyTables()
#19 /wiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(640): SMW\SQLStore\PropertyTableInfoFetcher->getPropertyTableDefinitions()
#20 /wiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_SetupHandlers.php(327): SMWSQLStore3->getPropertyTables()
#21 /wiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(432): SMWSQLStore3SetupHandlers->drop(boolean)
#22 /wiki/extensions/SemanticMediaWiki/maintenance/setupStore.php(131): SMWSQLStore3->drop(boolean)
#23 /wiki/extensions/SemanticMediaWiki/maintenance/setupStore.php(89): SMW\Maintenance\SetupStore->dropStore(SMWSQLStore3)
#24 /wiki/maintenance/doMaintenance.php(103): SMW\Maintenance\SetupStore->execute()
#25 /wiki/extensions/SemanticMediaWiki/maintenance/setupStore.php(174): require_once(string)
#26 /wiki/extensions/SemanticMediaWiki/maintenance/SMW_setup.php(9): require_once(string)
#27 {main} Fustbariclation (talk) 15:11, 4 November 2015 (UTC)
Cannot submit a question
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.
New user. Authenticated properly via email. Keep getting my question rejected as spam.
Any suggestions?
Many thanks!! MoniSD (talk) 19:39, 4 November 2015 (UTC)
- I filed it on <Project:Requests> MoniSD (talk) 20:06, 4 November 2015 (UTC)
- Hi,
- yes, there is an AbuseFilter, which seems to be too restrictively against a combination of numbers, it also recognizes a MediaWiki version number as spam. I disabled the filter now and will fix it in the next time, so you should be able to post your question now. Sorry for the inconvenience :)
- Best,
- Florian Florianschmidtwelzow (talk) 06:39, 5 November 2015 (UTC)
Showing templates below when editing a section
Hi
Is it possible to show below all the templates used in an article when editing just a section, as they are shown when editing the whole article? Older versions of Mediawiki used to do this. We use version 1.22.15 Jbaranao (talk) 01:55, 5 November 2015 (UTC)
- It's not, unless someone fixes it. Already reported in T2878 Ciencia Al Poder (talk) 10:25, 5 November 2015 (UTC)
Problem uploading files into Wiki
Hi, sorry to bring this matter up again. I looked through support but could not locate the problem with the threads that I checked through. The wiki is located on local server, so I cannot link to it.
| Software | Version |
|---|---|
| MediaWiki | 1.25.3 |
| PHP | 5.6.9 (cgi-fcgi) |
| MySQL | 5.6.25-log |
URLs der Einstiegspunkte
| Einstiegspunkt | URL |
|---|---|
| Artikelpfad | /MediaWiki/index.php/$1
|
| Skriptpfad | /MediaWiki
|
| index.php | /MediaWiki/index.php
|
| api.php | /MediaWiki/api.php
|
| load.php | /MediaWiki/load.php
|
Problem description: I try to upload a file. Upon uploading I get the following error message:
[65bed16c] /MediaWiki/index.php/Spezial:Hochladen MWException from line 1856 of C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\LocalFile.php: Could not acquire lock for 'Image003.png.'
Backtrace:
#0 C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\LocalFile.php(1148): LocalFile->lock() #1 C:\inetpub\wwwroot\mediawiki\includes\upload\UploadBase.php(725): LocalFile->upload(string, string, boolean, integer, array, boolean, User) #2 C:\inetpub\wwwroot\mediawiki\includes\specials\SpecialUpload.php(484): UploadBase->performUpload(string, boolean, boolean, User) #3 C:\inetpub\wwwroot\mediawiki\includes\specials\SpecialUpload.php(195): SpecialUpload->processUpload() #4 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPage.php(384): SpecialUpload->execute(NULL) #5 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPageFactory.php(582): SpecialPage->run(NULL) #6 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext) #7 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(566): MediaWiki->performRequest() #8 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(414): MediaWiki->main() #9 C:\inetpub\wwwroot\mediawiki\index.php(41): MediaWiki->run() #10 {main}
I tried the workaround suggested in Extension talk:ParserFunctions#c-96.253.116.193-2013-05-01T01:29:00.000Z-Fatal_exception_of_type_MWException_Error
Also, I tried to change LocalSettings.php with this code:
https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2012/12#h-%5BSOLVED%3F%5D_Problem_With_File_Upload%3A_Could_not_acquire_lock_for_%22mwstore%3A//local--2012-12-18T16%3A18%3A00.000Z After that, it looked like the upload worked, I get a confirmation screen. It even showed me the URL of the image at /images/2/22/image.png but the file does not exist on the server. Please help. Thanks. [[User:Tuluqaruk|Tuluqaruk]] ([[User talk:Tuluqaruk|talk]]) 14:51, 5 November 2015 (UTC) == How can i create a custom wiki == I'd like to create a wiki, but have the design customised to suit my needs. How would i go about this? Thanks [[Special:Contributions/105.167.134.180|105.167.134.180]] ([[User talk:105.167.134.180|talk]]) 16:06, 5 November 2015 (UTC) :You would either create an own skin, maybe based on an existing skin (see [[Manual:Skinning Part 1]]) or you would use an existing skin and modify that one by adding your custom CSS styles (e.g. by adding them to the wiki page ''MediaWiki:Common.css'' in your wiki). [[Special:Contributions/88.130.68.148|88.130.68.148]] ([[User talk:88.130.68.148|talk]]) 18:14, 5 November 2015 (UTC) == Mediawiki Template inside Javascript == {{Archive top|status=resolved}} This may be a silly question, but I'm creating mini system on my wiki where users will click very specific links and instead of taking you to the page via tab or a new large window, a smaller new window will pop up. Things such as hovercards and similar extensions will not work for me because I need the whole page to display, not just summary text essentially. The solution I came up with in my head was to just add javascript on the links to make the new small window appear, but then I remembered I can't put javascript onto the page like that. So, I did some research and constructed a code snipit that will create a new pop up window when a link is clicked inside divs with a certain class: <pre>$(".test a").click(function(){ window.open('url', 'window name', 'window settings'); return false; });</pre> The code works as intended (when I put the actual parameters inside), but now I realized a new issue. The 'url' is dynamic, it will change for each new link. In a normal template, I would just put <nowiki>{{{1|}}} for example and I can fill it in multiple ways (I'm suing semantic queries), but... I don't think I can do that here. Despite how excited I was, I don't think my 'well thought out' plan will work.
Is there anything I can do to make certain links (not all) open in a new window with whatever settings I apply to it? Am I making this more complicated than it has to be?
Thanks, and just in case you need it:
MediaWiki 1.23.8
PHP 5.4.45 (cgi-fcgi)
MySQL 5.5.42-37.1
Kirabook (talk) 17:39, 5 November 2015 (UTC)
- The link already contains the URL you want to open, right?
- this.href should have the URL of the target page, so you could use it on the code directly Ciencia Al Poder (talk) 11:00, 6 November 2015 (UTC)
- No, in the javascript, I cannot put just one link because there will be different links around the wiki. Luckily, I have found a different solution to my problem which I will explain below, just in case anyone else ever wants to do the same thing.
- I placed the code below in my Mediawiki:Common.js page:
$('.popup a').click(function (event) { event.preventDefault(); window.open($(this).attr("href"), "popupWindow", "width=600,height=600,scrollbars=yes"); });- To use the function on a normal page, I simply wrap a link in:
<span class="popup">link goes here</span>
This won't work with normal interwiki links. You'll have to use external links or some combination of Magic Words, Help:Magic_words#URL_data (specifically canonicalurl) Kirabook (talk) 13:42, 6 November 2015 (UTC)
Is there a way to restrict access to only a certain set of MAC addresses?
Basically just want to add an extra level of security so that only computers with a particular MAC address can access the wiki content.
Thanks in advance 98.164.65.212 (talk) 22:23, 5 November 2015 (UTC)
- The MAC address is not even transferred to the server; I don't think you can make the server send different content based on that address. What you could do however is to limit access to certain IP ranges. 88.130.68.148 (talk) 23:33, 5 November 2015 (UTC)
Anonymous Page Identifiers for long pagenames?
Hi all,
As much of the work on my wiki includes literature titles, I've found that the page names often become excessively long. As a work around for this, I thought about having the page names instead be some anonymous identifier (i.e. a string of 8 numbers automatically created upon page creation).
Does anyone know of an extension or method for this?
I've searched and searched but to no avail. If no one knows of an extension automatically naming pages as such, I'm also open to thoughts in general about how to deal with excessively long pagenames.
Thanks,
Josh 68.119.83.109 (talk) 02:58, 6 November 2015 (UTC)
unable to upload msword document doc in 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.
PHP Fatal error: Class 'XMLReader' not found in /var/www/html/wiki/includes/libs/XmlTypeCheck.php on line 133.
the packages php-xml and php-xmlrpc are already installed in the system Sureshbabuy (talk) 10:11, 6 November 2015 (UTC)
- Be sure you reloaded the configuration of your webserver or restarted it after installing php-xml.
- It needs PHP to be compiled with libxml support Ciencia Al Poder (talk) 10:49, 6 November 2015 (UTC)
- thanks. that works Sureshbabuy (talk) 11:15, 6 November 2015 (UTC)
How do I enable text-indent ?
How do I set the CSS selector to make the paragraph text indent but Not effect other elements like headling and list item? Zhangjintao(Connect to me at zh.wikipedia.org) 10:26, 6 November 2015 (UTC)
WP-Mirror?
I went to this page: Wp-mirror to learn about how to set up a mirror for a Wiki. However, this utility seems to only serve the WikiMedia foundation sites. Is there a plug-in or add-in that allows me to mirror a wiki of my own that I've installed on a server? Both a local mirror (my computer) and a remote mirror (another server). Thesavvygk (talk) 11:57, 6 November 2015 (UTC)
- I am also interested in setting up a mirror for a wiki. I found a few wiki engines that seem to make it easy to set up remote mirrors, generally by building on top of some distributed version control system: the Hatta wiki engine; Oddmuse wiki engine and Git; the MikMik wiki engine; the Wooki wiki engine; the Fossil wiki engine. Perhaps you might find one of them useful. Please tell me if there are any other distributed wiki. Alas, I haven't yet found a good way to do this for the MediaWiki wiki engine -- please tell me if there is some way to do something similar with MediaWiki. DavidCary (talk) 04:53, 8 November 2015 (UTC)
- If you have access to create a backup of the wiki, you can restore it easily on another host.
- There's also Manual:Grabbers. Still, there doesn't exist a way to create a "live" mirror Ciencia Al Poder (talk) 18:17, 8 November 2015 (UTC)
All InstantCommons images vanished
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.
All the images on Wikishire have vanished. Has something changed with InstantCommons, or the feed from Commons?
☁ Hogweard (talk) 13:49, 6 November 2015 (UTC)
- i am the same, each page is no longer showing the images. i checked commons and the images is still there but its not showing on my wiki, it was fine 2 days ago but now nothing showing Gmdesignuk (talk) 20:49, 6 November 2015 (UTC)
- See https://lists.wikimedia.org/pipermail/mediawiki-announce/2015-October/000183.html and subscribe to mediawiki-announce if you run a wiki based on MediaWiki. AKlapper (WMF) (talk) 13:54, 8 November 2015 (UTC)
- I found a patch that seems to work, its something to do with commons changing to https but am sure someone can give more setails about this.
- add this to localsettings
- $wgUseInstantCommons = false; $wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'wikimediacommons', 'apibase' => 'https://commons.wikimedia.org/w/api.php', 'hashLevels' => 2, 'fetchDescription' => true, 'descriptionCacheExpiry' => 43200, 'apiThumbCacheExpiry' => 86400, ); Gmdesignuk (talk) 23:00, 6 November 2015 (UTC)
- what you've done is corrrect.
- " $wgUseInstantCommons = true" is a shorthand for that code, except that it uses http instead of https (on older versions of MediaWiki), which now causes problems because commons switched to https only Ciencia Al Poder (talk) 14:00, 7 November 2015 (UTC)
DB Error when searching (v.1.24.3)
A lot of info out there but nothing coherent, so I am hoping we condense this topic for everybody. Could you please have a look at the details below and let me know if you spot some problem.
I do understand that MSSQL is no longer supported by MediaWiki.
All I am hoping for is either one of these:
1. You missed this-and-that. Try this and it might work.
2. Just buzz off, MSSQL is a no-go, period.
Here the details:
OS: Win7
DB: MS SQL (2014)
MediaWiki: 1.24.3 (new install from scratch, no upgrades)
General Status: Works great, except the search.
Problem: Search only searches the sidebar. It does not search the pages. "Everything" or "Advanced" mode do not resolve the issue.
Symptom: Click on Special page "Search" returns
DB error:
SELECT TOP 20 page_id, page_namespace, page_title, ftindex.[RANK]FROM [wik].[page],FREETEXTTABLE([wik].[searchindex] , si_title, '', LANGUAGE 'English') as ftindex WHERE page_id=ftindex.[KEY] AND page_namespace IN (0) ORDER BY ftindex.[RANK]
DESC Function: DatabaseBase::query
Error: 7645 [SQLSTATE 42000][Error Code 7645][Microsoft][SQL Server Native Client 11.0][SQL Server]Null or empty full-text predicate. [SQLSTATE 42000][Error Code 8180][Microsoft][SQL Server Native Client 11.0][SQL Server]Statement(s) could not be prepared.
What was done:
$wgSearchType = "SearchMSSQL";
$wgShowSQLErrors = true;
The following ran seemingly well through all stages: php.exe rebuildall.php
Table wik.searchindex has some info.
Table wik.page has all pages, most of them are with page_namespace = 0
There is one empty page title with page_id = 0 and page_namespace = -1
The row count in wik.page and wik.searchindex is the same EXCEPT that pesky row with page_id = 0
You can join perfectly on select * FROM [wik].[page] inner join [wik].[searchindex] on page_id = si_page
So ... pun intended ... are we looking here at #1 or #2 ... :)
Many thanks!! MoniSD (talk) 14:52, 6 November 2015 (UTC)
- MS SQLServer is not supported.
- Some volunteers work on supporting it, but only on LTS versions, so apparently only 1.23 is supported for SQL Server right now (which doesn't mean it works flawlessly) Ciencia Al Poder (talk) 12:02, 7 November 2015 (UTC)
can you please help me for excel?
what is the processing of excel document uploading? Jrsgfsjgf (talk) 16:14, 6 November 2015 (UTC)
- Could you clarify what's the problem you're trying to solve? Ciencia Al Poder (talk) 13:59, 7 November 2015 (UTC)
Thumbnail problem on MW 1.25
Hi all,
I have a new installation of MW trought the Bitnami installer.
Everithing ok.
I only have a problem with thumbnail generation.
I have yet set the TMP directory, that works very well. The directory has been populated by MW.
But the problme is still here, the reported error is:
"Error creating thumbnail: Unable to save thumbnail to destination"
I tried to generate a log file to have more information, with the string:
$wgDebugLogFile = "mypath\images\temp\debug.log";
But no log file is created.
To test the folder I tried to use the custom log on the same folder, ad it work fine.
wfErrorLog( "Test String.\n", 'mypath\images\temp\debug.log' );
There are a lot of posts about the Thumbnail problems but are always related to the 1.19 version or the TMP folder... I ran out of ideas. 92.246.34.60 (talk) 16:46, 6 November 2015 (UTC)
- try using a complete path for the debug log file instead of a relative one (C:\.....)
- The problem seems to be not on the temp directory, but on the images directory for thumbs. After creating the thumb on the temp directory, MediaWiki moves it to the images folder on the subfolder related to the image, and this seems to be failing. That may be a permission problem, but the debug log will give you exact paths. Ciencia Al Poder (talk) 12:00, 7 November 2015 (UTC)
- Thanks for your reply, but the path is yet the absolute one (you are right, it is not clear on my question).
- Moreover I set full permissions on the whole image folder (where the temp folder is), but the problem is still there. 92.246.34.60 (talk) 11:08, 10 November 2015 (UTC)
- any hint to solve the problem? 92.246.34.60 (talk) 08:58, 4 December 2015 (UTC)
- Having this problem too, any fix? Shadess (talk) 09:17, 18 December 2015 (UTC)
is password protected wiki possible?
i'm creating a wiki for training purposes and want to embed the link for it in the main site of our company. but i don't want strangers who click that link to see where it goes until they have entered the password. so maybe i would like there to be a static front page that prompts the visitor to enter his credentials before being let into the actual wiki.
any thoughts are greatly appreciated.
thanks in advance. Majornola (talk) 21:54, 6 November 2015 (UTC)
- There basically are two ways:
- Number one: Set up .htaccess password protection. That way, if you try accessing the directory, in which the wiki is stored, you will have to enter username and password. If you do not have valid credentials, you will only see an Apache error page - no output will be produced by the wiki. So from the server output, there is no way to tell, what is behind that protection. You will easily find tons of tutorials on the net on how to set up .htaccess and .htpasswd to protect a directory.
- Number two: Configure the wiki to only allow anonymous users to see the wiki login page, but no other wiki pages. It will be clear that a MediaWiki installation is running there, but the content will be hidden just as in number one. A guide for this can be found here: Manual:Preventing_access#Restrict_viewing_of_all_pages. 88.130.101.180 (talk) 01:11, 7 November 2015 (UTC)
- Set the user right for reading to logged in users, disable registering (only you as admin register accounts for the team).
$wgGroupPermissions['*']['createaccount'] = false; // enable temporarily when you register an account $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['user']['read'] = true;
- Manual:User_rights Subfader (talk) 13:21, 8 November 2015 (UTC)
Htaccess file
Hi.
I was wondering if I could see how to configure my own MediaWiki installation's .htaccess file to have the non-index.php URLs. Thanks. I appreciate your time. JediMaster362 (talk) 00:24, 7 November 2015 (UTC)
- Hello. Do you think you can help configure the .htaccess file? JediMaster362 (talk) 01:37, 7 November 2015 (UTC)
- See Manual:Short_URL. 88.130.101.180 (talk) 04:00, 7 November 2015 (UTC)
- Thanks. I'll try it out. JediMaster362 (talk) 14:20, 7 November 2015 (UTC)
PHP not rendering
I have created two different mediwiki sites. One in the cloud via bitnami cloud services and the other on premise. Neither one will render PHP. Sinple PHP scripts e.g. <?php echo "HI" ?> renders this exact text instead of the word HI. Can someone help explain why the PHP script is not executing? Thanks, Jim Jritchhart (talk) 03:22, 7 November 2015 (UTC)
- Either PHP is not running or the file extension .php is not associated with the PHP interpreter. The later can be fixed by adding something like
AddHandler application/x-httpd-php53 .php- to your .htaccess file. The exact name inside that line depends on the server setup and if the code above does not help, you will have to ask your host, what it is exactly. 88.130.101.180 (talk) 04:17, 7 November 2015 (UTC)
Issue about search
For example,"Foo" could not get "Foo1" but can get" Foo 1".I'm using Mediawiki 1.25.1 at Wamp on Windows. Zhangjintao(Connect to me at zh.wikipedia.org) 03:46, 7 November 2015 (UTC)
- Do you use the default MediaWiki Search backend or do you use Extension:CirrusSearch ?
- On an unrelated note, you are running ancient software versions with security vulnerabilities so you can be attacked. Please run supported software: Download Malyacko (talk) 14:03, 8 November 2015 (UTC)
Changing default signature for all users
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm a sysop on the Lojban Wikipedia, and Lojban has a weird way of using names in text. Is it possible to change the default signature for everyone on the wiki to ".i be'i la'o gy <username> gy"? If so (I know this isn't exactly on-topic here), does anyone know how I would request that to be changed? KSFT (talk) 05:36, 7 November 2015 (UTC)
- You can edit MediaWiki:Signature on your wiki to change the default signature. Users that have customized their signature won't be affected, nor existing signatures already placed on pages. There's also MediaWiki:Signature-anon for anons. Ciencia Al Poder (talk) 11:46, 7 November 2015 (UTC)
- That's exactly what I wanted! I do actually need users to be able to customize it, so that's perfect.
- Edit: Also, I just accidentally posted this here twice, and I can't figure out how to delete one. Ignore the below comment. KSFT (talk) 14:32, 7 November 2015 (UTC)
- That's exactly what I wanted! I do actually need users to be able to customize it, so that's perfect. KSFT (talk) 14:32, 7 November 2015 (UTC)
Can instantcommons images be installed on own wiki?
Is there a way of importing instantcommons images that a wiki uses so its stored on your own server rather than pull from instant commons. example: it imports the image and licence and description and installs it on your own wiki rather than the image being stored on instant commons and pulled to your own wiki.
currently i see an instant commons image is linked to your own wiki with your own link but when you goto gallery and view the image it is just a pulled image from instantcommons.
hope that makes sense? Gmdesignuk (talk) 16:20, 7 November 2015 (UTC)
- You can import files from other wikis with Manual:$wgAllowCopyUploads and Manual:$wgCopyUploadsFromSpecialUpload. Then you'll be able, on the Special:Upload page, to point to the URL of a file in a remote host (being a wiki or not) instead of having to download the file to your PC and upload it again. Ciencia Al Poder (talk) 18:22, 8 November 2015 (UTC)
Why was the TOC removed from WikiEditor
I am testing a MediaWiki upgrade from 1.16.5 to 1.25.3 and when using the WikiEditor, the TOC in the edit window that allowed easy navigation from one section to a different section is gone.
Why was the TOC capability removed from this extensions? It was very helpful.
Can it be easily recovered. It looks like it was still there in the MW 1.22 version of the extension. Can I use that version with MW 1.25? Ken Roy (talk) 20:45, 7 November 2015 (UTC)
Modifié page sans passé par le code ? (Résolu par AKlapper (WMF))
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.
Bonjour/Bonsoir
J'aimerais savoir si il est possible de modifié une page, sans passé par la modification du Wikicode comme sur Wikipédia (Modifier, Modifier le code). Je parle en l'occurrence du "Modifier" ?
J'espère que vous m'avez compris.
Merci :) 90.40.2.170 (talk) 23:52, 7 November 2015 (UTC)
- VisualEditor AKlapper (WMF) (talk) 13:52, 8 November 2015 (UTC)
- Merci :)
- Il faut donc, que j'installe Extension:VisualEditor ? 90.40.2.170 (talk) 22:38, 8 November 2015 (UTC)
- Si tu ne veux pas "modifier le code" mais "modifier", comme sur Wikipedia, on a besoin d'installer VisualEditor, oui. AKlapper (WMF) (talk) 11:42, 9 November 2015 (UTC)
- Merci.
- J'ai installé VisualEditor, mais le bouton modifier n'y apparait pas, comment cela ce fait t'il ? 90.40.2.170 (talk) 12:00, 9 November 2015 (UTC)
- Excusé moi, j'avais oublié de mettre une ligne de code dans le LocalSetting.
- Mais nouveau problème, j'ai ce message qui apparait quand j'essaie d'aller sur mon Wiki
- "Parse error: syntax error, unexpected 'require_once' (T_REQUIRE_ONCE) in C:\wamp\www\MyLegacyWiki\LocalSettings.php on line 176" 90.40.2.170 (talk) 12:35, 9 November 2015 (UTC)
- Pardon mais je peux pas aider avec ce probleme... Peut-etre il y a des autres gens ici qui peuvent aider si tu poses ces questions en anglais... :-/ AKlapper (WMF) (talk) 14:26, 9 November 2015 (UTC)
- Ok, merci AKlapper
- Y avait juste un point en trop. Je vais essayé de posté m'a prochaine question en Anglais (La barre ne ce charge pas completement)
- Merci beaucoup de ton aide. 90.40.2.170 (talk) 16:23, 9 November 2015 (UTC)
Trigger a page visit via MediaWiki (update cache)?
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.
On my Main Page I have a slow query. It's cached (a combination of memcached + DPL cache). But when the cache gets flushed the next visitor has a slower page load time (3 seconds).
So right after flushing the cache, can I trigger a page visit for the main Page via the system as if a user would visit it?
I guess not and I need to be more smart to refresh the cache? Subfader (talk) 13:02, 8 November 2015 (UTC)
- set up a cron job that calls wget or curl? Ciencia Al Poder (talk) 18:06, 8 November 2015 (UTC)
- Of course, thanks! :) Subfader (talk) 22:01, 8 November 2015 (UTC)
How to query the list of titles of inter-language articles?
For example I want to get the Chinese article title of the English article W:chess (西洋棋). I want something like https://en.wikipedia.org/w/api.php?action=query&titles=chess&prop=otherlanguages And the return value is the list of linked articles in wikidata. Golopotw (talk) 00:14, 9 November 2015 (UTC)
- You can query interlanguage links with this: https://en.wikipedia.org/w/api.php?action=query&prop=langlinks&lllimit=max&titles=Chess
- I don't know how to get that from wikidata, though Ciencia Al Poder (talk) 18:31, 9 November 2015 (UTC)
css-Problem mit load.php
bei meiner Seite wikiwaldhof.de wird des öfteren folgender Fehler gebracht. Wer kann mir hier weiterhelfen, wie ich dieses Problem beseitigen kann...
--- /load.php,qdebug=false,alang=de,amodules=startup,aonly=scripts,askin=monobook,a,2A.pagespeed.jm.uUR3Nse8FW.js HTTP/1.1549 Apache-Zugriff
does not exist: /var/www/meinpfad/wikiwaldhof/load.php,qdebug=false,alang=de,amodules=startup,aonly=scripts,askin=monobook,a,2A.pagespeed.jm.uUR3Nse8FW.js Stefansvw (talk) 11:34, 9 November 2015 (UTC)
- Where do you see those errors? in apache logs? it may be a broken bot (the "pagespeed" part in the URL may give you a hint) that's mangling some legitimate URLs. "load.php,qdebug=false" should be "load.php?debug=false", for example Ciencia Al Poder (talk) 22:00, 9 November 2015 (UTC)
Migration mediawiki depuis 1.16.5 vers 1.25.3
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.
Bonjour
Etant hébergé par free, j'étais bloqué à la version 1.16.5 depuis quelques temps.
D'après ce que j'ai vu, je peux migrer simplement en appliquant la v1.25.3
Confirmez vous cela ou bien doit je prendre des précautions (en dehors de sauvegarde de la base...)
Salutations Ycsoft (talk) 12:15, 9 November 2015 (UTC)
créer un lien pour rendre téléchargeable un fichier
Bonjour
Je suis actuellement en version 1.16.5 (chez free)
Je souhaiterais rajouter le possibilité dans mon wiki de rajouter un lien permettant à l'utilisateur de télécharger un fichier (pas une image, mais un fichier gpx contenant des coordonnées gps)
j'ai trouvé ce lien http://wiki.kogite.fr/index.php/MediaWiki_utilisation
J'ai rajouté gpx dans $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'doc', 'psd', 'mp3', 'zip','swf', 'svg', 'bmp', 'gpx');
Mais çà ne fonctionne pas...
Avez vous une solution ?
Salutations Ycsoft (talk) 12:24, 9 November 2015 (UTC)
- Unrelated to your question, but in your own interest, please run supported software versions. See Download and Manual:Upgrading.
- 1.16 is an ancient version and insecure nowadays. Thank you. AKlapper (WMF) (talk) 15:11, 9 November 2015 (UTC)
- bonjour,
- je suis maintenant en version 1.25.3 et j'ai, comme prévu, toujours le même problème...
- A vrai dire, je ne sais pas si ce que je demande est possible dans mediawiki: je désirerais donner la possibilité à l'utilisateur de télécharger (download) (et non pas upload) un fichier que j'aurais préalablement chargé sur mon site (dans .\wiki\images par exemple. je pense mettre à disposition un fichier contenant une trace gps (.gpx)
- Salutations Ycsoft (talk) 20:35, 11 November 2015 (UTC)
- Bonjour!
- If you (maybe manually through FTP) put a gpx file into the images/ folder, then you should be able to access this file through its URL: example.com/images/my-file.gpx
- If you have not uploaded the file through the MediaWiki Upload page, then the file will not have an own wiki page in the File: namespace of your wiki. E.g., if you uploaded the file through FTP, then there will not be a wiki page My-file.gpx.
- The value of $wgFileExtensions is relevant for the file types, which you want to upload through the MediaWiki Upload page. It does not have to do with downloading files.
- If you add gpx to $wgFileExtensions, then you should be able to upload these file types through the MediaWiki Upload page. This will then also create a wiki page in the File: namespace. 88.130.80.101 (talk) 23:47, 11 November 2015 (UTC)
- merci d'avoir répondu à mon message !
- -je n'ai pas de problème pour uplaoder le fichier sur mon site (dans le répertoire monsite\wiki\images): c'est fait par filezilla et c'est OK...
- -ce que je ne sais pas faire, c'est rendre disponible aux utilisateurs via un lien pour qu'ils le téléchargent...(download)
- -ma syntaxe actuelle est : [ [ Media:CapDramont.gpx ] ]
- (sans les blancs entre les crochets...)
- ---
- thank you for having responded to my message!
- -I have no problem uplaoder the file on my site (in the mysite \ wiki \ images directory): this is done by filezilla and that's OK ...
- -what I do not know to do is make it available to users through a link they download the ... (download)
- -my current syntax is: [ [ Media:CapDramont.gpx ] ]
- (without the blanks between the hooks ...) Ycsoft (talk) 12:05, 12 November 2015 (UTC)
- When you upload the file with FileZilla, MediaWiki will not create a page [ [ Media: ... ] ] or [ [ File: ... ] ].
- You can still link the file like so: [http://www.example.com/images/CapDramont.gpx CapDramont.gpx]
- If you want to have a wiki page for the file, you have two possibilities: Either upload it through MediaWiki (see m answer above). Or, after you have uploaded the file with FileZilla, if you have shell access, you can use the importImages.php maintenance script. I have not used this script myself, but it should create an according wiki page page so that afterwards your [ [ Media:...] ] link should work. 88.130.80.101 (talk) 12:56, 12 November 2015 (UTC)
move-subpages to every user
What must be done, that developers set move_subpages right to every user on a WMF project? Juandev (talk) 12:27, 9 November 2015 (UTC)
- open a request on phabricator Ciencia Al Poder (talk) 21:55, 9 November 2015 (UTC)
- ...but with a clear usecase included, see How to report a bug. Plus https://meta.wikimedia.org/wiki/Requesting_wiki_configuration_changes might apply, not sure here. AKlapper (WMF) (talk) 07:30, 10 November 2015 (UTC)
Extensions partially working. Some show up with plain tags?
Hi,
I've installed TinyMCE and CategoryTree extensions. TinyMCE works partially whilst I haven't managed to get CategoryTree to work. For example on my main page I have an image created with TinyMCE ("Cool" -smiley) and some red text. The image shows up as <img title="Cool" src="/wiki/extensions/TinyMCE_MW/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif" border="0" alt="Cool" /> but the text turns red. When it comes to CategoryTree I haven't managed to get it to work. It only shows up as <categorytree mode=pages>Manual</categorytree>.
What I make of it is that for some reason the HTML/Extension tags are not being processed properly. Is this a common problem or got any advice what could be causing this? Any help is appreciated.
Thanks! 213.255.172.228 (talk) 13:01, 9 November 2015 (UTC)
- Check if they're installed properly. They should appear in the page Special:Version on your wiki. Particularly, <categorytree> should appear in the list of parser extension tags.
- Also, be sure you donwloaded the extensions matching your MediaWiki version. Ciencia Al Poder (talk) 21:55, 9 November 2015 (UTC)
- Thanks for your reply, Ciencia!
- Both show up Special:Version page. CategoryTree shows up twice, as "Special pages" and "Parser hooks". TinyMCE is not up to date, so that might explain why it isn't working. The newest version was updated 3 years ago and I'm using 1.25.* version of MW. CategoryTree is updated and I installed the one for 1.25. Any other ideas what might be causing this? 213.255.172.228 (talk) 10:48, 10 November 2015 (UTC)
- If it appears in the list of parser extension tags (see Special:Version#mw-version-parser-extensiontags) it should work. Be sure it's not included inside <pre> tags or similar. Try adding it to an empty page. Ciencia Al Poder (talk) 10:46, 11 November 2015 (UTC)
- Hi and thanks again for your reply, Ciencia!
- CategoryTree appears in the parser extension tags. I tried adding it to an empty page without success. What are the <syntaxhighlight lang='text'> tags or similar you're referring to? Where do I find them? 213.255.172.228 (talk) 11:46, 18 November 2015 (UTC)
- Some additional information: My installation is on a Windows Server 2012 R2 using IIS. Could this be part of the reason it doesn't work properly? 213.255.172.228 (talk) 13:52, 18 November 2015 (UTC)
- No, that shouldn't be a problem.
- Maybe another extension is causing incompatibilities. Try disabling all extensions except CategoryTree and see if with that setup the extension works. If it works, then you can enable extensions one by one until you find the culprit. Ciencia Al Poder (talk) 21:21, 18 November 2015 (UTC)
- Even with CategoryTree as the only installed extension, it doesn't work. After that I also tried installing the Spoilers -extension. It shows up on Special:Version, but on my blank page it shows up as:
- <spoiler hide="hide_message">spoiler_text</spoiler>
- <spoiler show="show_message">spoiler_text</spoiler>
- <spoiler show="show_message" hide="hide_message">spoiler_text</spoiler>
- <spoiler>spoiler_text</spoiler>
- Is there some additional configuration for installing the extensions that I could've missed?
- Thanks! 213.255.172.228 (talk) 09:26, 19 November 2015 (UTC)
- This looks something more general. I think there may be some error that's not appearing, and it silently fails to parse parts of the wikitext.
- See Manual:How to debug#PHP errors to enable errors displayed on the page, and look if you get any error message displayed on the page. Ciencia Al Poder (talk) 10:42, 19 November 2015 (UTC)
- After I turned on the PHP debugging, I get the following:
- Notice: Undefined index: show in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 64
- Notice: Undefined index: hide in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 65
- Notice: Undefined index: show in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 64
- Notice: Undefined index: hide in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 65
- When disabling the spoilers-extension, no errors are shown. Neither are any SQLErrors shown. When turning on MediaWiki debugs, this is shown:
- Debug data:
- Start request GET /wiki/index.php?title=Main_Page
- HTTP HEADERS:
- CONTENT-TYPE:
- CONTENT-LENGTH: 0
- UPGRADE-INSECURE-REQUESTS: 1
- USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
- HOST: srvapp1
- COOKIE: wikiUserID=1; wikiUserName=Mbj; wikiToken=8983e966e2b8af9191b3f812119afb18; wiki_session=e04d13c397680f442a1e66904328878a
- ACCEPT-LANGUAGE: en-US,en;q=0.8,fi;q=0.6,ru;q=0.4,pt;q=0.2,de;q=0.2,it;q=0.2
- ACCEPT-ENCODING: gzip, deflate, sdch
- ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
- CONNECTION: keep-alive
- CACHE-CONTROL: max-age=0
- [caches] main: WinCacheBagOStuff,
- message: WinCacheBagOStuff, parser: WinCacheBagOStuff
- [caches] LocalisationCache: using
- store LCStoreDB
- Fully initialised
- Connected to database 0 at
- localhost
- Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}
- [ContentHandler] Created handler
- for wikitext: WikitextContentHandler
- User: got user 1 from cache
- User: loading options for user 1
- from override cache.
- User: logged in from session
- User: loading options for user 1
- from override cache.
- [MessageCache] MessageCache::load:
- Loading en... got from global cache
- Unstubbing $wgParser on call of
- $wgParser::firstCallInit from MessageCache::getParser
- Parser: using preprocessor:
- Preprocessor_DOM
- Unstubbing $wgLang on call of
- $wgLang::_unstub from ParserOptions::__construct
- Article::view using parser cache:
- yes
- Parser cache options found.
- ParserOutput cache found.
- Article::view: showing parser cache
- contents
- User::getBlockedStatus: checking...
- Parser::replaceVariables called
- using plain parameters instead of a PPFrame instance. Creating custom frame.
- Parser::replaceVariables called
- using plain parameters instead of a PPFrame instance. Creating custom frame.
- Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}
- Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}
- Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}
- Is there something useful in there that I didn't notice?
- Thanks! 213.255.172.228 (talk) 10:37, 20 November 2015 (UTC)
- I don't know what could be the problem here. Looks like a problem to interpret parser tags on your installation. Maybe a buggy php version, or some php.ini variable that may not be correct. Sorry, I don't know what could be done here :( Ciencia Al Poder (talk) 12:51, 21 November 2015 (UTC)
- Alright, no problem! Thanks for all your help, Ciencia! 213.255.172.228 (talk) 11:27, 24 November 2015 (UTC)
LocalSettings.php permission denied
Hello everybody,
After I install MediaWiki, and go to the website in localhost, the website does not start, and Apache logs the following error:
[Mon Nov 09 17:09:56 2015] [error] [client ::1] PHP Warning: require_once(/var/www/html/mediawiki-1.25.3/LocalSettings.php): failed to open stream: Permission denied in /var/www/html/mediawiki-1.25.3/includes/WebStart.php on line 124
Setting all the permissions of all the folders (and LocalSettings.php) to 777, or changing the owner/usergroup does not resolve the problem. Other errors are logged as well, but I think they are a consequence of the first one:
[Mon Nov 09 17:09:56 2015] [error] [client ::1] PHP Fatal error: require_once(): Failed opening required '/var/www/html/mediawiki-1.25.3/LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/mediawiki-1.$
[Mon Nov 09 17:09:56 2015] [error] [client ::1] File does not exist: /var/www/html/favicon.ico
I am on the latest MediaWiki, and CentOS 6.7. During the installation process, everything worked fine. Other small PHP scripts on localhost work fine too. The problems start once I move LocalSettings.php into the MediaWiki folder. Does anybody have an idea how I can solve this? Thanks for helping :] 146.175.202.30 (talk) 16:38, 9 November 2015 (UTC)
- Make LocalSettings.php be owned by the same user and group than the other MediaWiki files. Maybe you have a security mod that prevents include files not owned by the webserver user. Ciencia Al Poder (talk) 21:46, 9 November 2015 (UTC)
The loading bar it locks towards the end (VisualEditor)
Hello,
I have a problem with Visual Editor, but I think it comes from Parsoid
After installing VisualEditor with the help of the extension page: VisualEditor, I note that the loading bar it locks towards the end.
Is the problem can come from Parsoid? Or is it just another problem?
Thank you :)
I'm sorry for my English, I translated my French text with google translation 90.40.2.170 (talk) 16:39, 9 November 2015 (UTC)
- Look in the developer console of your browser (usually opens pressing the F12 or F11 key), if you see any error response in the network requests (5XX or 4XX error responses), or in the JavaScript console. Ciencia Al Poder (talk) 10:37, 10 November 2015 (UTC)
- Thank You
- It wrote this in the console "Uncaught Error: Unknown dependency: mediawiki.RegExp" 90.40.2.170 (talk) 12:21, 10 November 2015 (UTC)
- mediawiki.RegExp was added in june. It may not be present on 1.25 (I haven't tested). Be sure you're using Visual Editor for MediaWiki 1.25 (or matching your MediaWiki version), or use MediaWiki downloaded from git (which is an alpha version) Ciencia Al Poder (talk) 20:15, 10 November 2015 (UTC)
- Thank You
- I just checked my file Wikimedia and I do not have RegExp. How to have the RegExp? 90.40.2.170 (talk) 22:22, 10 November 2015 (UTC)
- You need to download MediaWiki from git to get RegExp. It's not included in MediaWiki 1.25. Note that the latest version from git is not stable and may not be suitable for production.
- If Special:ExtensionDistributor/VisualEditor for 1.25 requires RegExp, it's a bug and should be reported. Ciencia Al Poder (talk) 10:48, 11 November 2015 (UTC)
Problem in GlobalFunctions and HttpFunctions
Hi Dear . I seem to be have Problem in my wiki . I get the following when trying to save page
Fatal error: Maximum execution time of 30 seconds exceeded in \includes\GlobalFunctions.php on line 3486
and also in \includes\HttpFunctions.php on line 811
i,m use MediaWiki 1.25.0 with PHP 5.4.14 (cgi-fcgi), MySQL 5.1.70-community
plz help AFlorence (talk) 12:25, 10 November 2015 (UTC)
- Either set the maximum_execution time of PHP to a higher value or see, if you can make the server work faster so that it finishes the request in under 30 seconds. 88.130.123.185 (talk) 16:15, 10 November 2015 (UTC)
- The error in HttpFunctions is strange. Maybe your wiki is trying to connect to a remote machine (apart from database) when saving the edit, that's timing out?
- This may be caused by some anti-spam extensions that sends the user's IP to a remote server to check for blacklisted hosts. Ciencia Al Poder (talk) 10:44, 11 November 2015 (UTC)
Retrieve a list of all Wikipedia languages programmatically
Is it possible to retrieve a list of all existing languages for a certain wiki project? For example, all Wikivoyage or all Wikipedia languages, just like on their landing pages.
Thanks for your time. Mladifilozof (talk) 20:37, 10 November 2015 (UTC)
- https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&meta=siteinfo&format=json&siprop=interwikimap&sifilteriw=local
- use those that have the "language" property Ciencia Al Poder (talk) 10:42, 11 November 2015 (UTC)
- But many of those languages are non-existing or inactive. Is there a more precise method? Mladifilozof (talk) 08:25, 13 November 2015 (UTC)
- Do you have any example of non-existing wiki returned by that query? Ciencia Al Poder (talk) 10:24, 13 November 2015 (UTC)
Wikimedia Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- https://phabricator.wikimedia.org/auth/login/mediawiki:mediawiki/
- Why this link is not working? I'm trying to use it but it is not working. Renamed user 864c542a23313621 (talk) 06:34, 11 November 2015 (UTC)
- Where did you find that link exactly? AKlapper (WMF) (talk) 10:51, 11 November 2015 (UTC)
- Maybe you got the link wrong? Ciencia Al Poder (talk) 10:31, 11 November 2015 (UTC)
- I was following instructions at [1] and the link wasn't working but now it's working! Renamed user 864c542a23313621 (talk) 12:12, 11 November 2015 (UTC)
Wiki farm step 3 help
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
So, I'm trying to create a wikifarm using the WikiMedia method and I am not sure what I need to do for step 3. Can someone advice me on what I need to do next?
- Mediawiki: 1.25.3
- PHP: 5.6.14-0+deb8u1 (apache2handler)
- Database: 5.5.46-0+deb8u1 NeedAGoodUsername (talk) 15:01, 11 November 2015 (UTC)
Problem with vector skin not working
I'm tying to get my upgraded system to work. Everything is working, apart from the main vector stylesheet - I just get the pages as if it is on the print screen. Any suggestions as to what I've got wrong would be gratefully received!
In Firefox, I get these errors;
The stylesheet http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector was not loaded because its MIME type, "text/html", is not "text/css".
The stylesheet http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=ext.smw.style%7Cext.smw.tooltip.styles&only=styles&skin=vector was not loaded because its MIME type, "text/html", is not "text/css".
load.php:2:0
SyntaxError: expected expression, got '<'
In Safari they are:
SyntaxError: Unexpected token '<'
(anonymous function)
Did not parse stylesheet at 'http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=mediawiki.helplink%2CsectionAnchor%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector' because non CSS MIME types are not allowed in strict mode.
My versions are:
Version
MediaWiki License
This wiki is powered by MediaWiki, copyright © 2001-2015 Magnus Manske, Brion Vibber, Lee Daniel Crocker, Tim Starling, Erik Möller, Gabriel Wicke, Ævar Arnfjörð Bjarmason, Niklas Laxström, Domas Mituzas, Rob Church, Yuri Astrakhan, Aryeh Gregor, Aaron Schulz, Andrew Garrett, Raimond Spekking, Alexandre Emsenhuber, Siebrand Mazeland, Chad Horohoe, Roan Kattouw, Trevor Parscal, Bryan Tong Minh, Sam Reed, Victor Vasiliev, Rotem Liss, Platonides, Antoine Musso, Timo Tijhof, Daniel Kinzler, Jeroen De Dauw, Brad Jorsch, others and translatewiki.net translators.
MediaWiki is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
MediaWiki is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or read it online.Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.27alpha |
| PHP | 5.5.29 (cgi-fcgi) |
| MySQL | 5.5.34-cll-lve |
Entry point URLs
| Entry point | URL |
|---|---|
| Article path | /wiki/index.php?title=$1
|
| Script path | /wiki
|
| index.php | /wiki/index.php
|
| api.php | /wiki/api.php
|
| load.php | /wiki/load.php
|
Installed skins
| Skin | Version | License | Description | Authors |
|---|---|---|---|---|
| Chameleon | 1.1.4 (aa385be) | GPLv3+ | The Chameleon skin | Stephan Gambke |
| Vector | – (31e1a44) | GPL-2.0+ | Modern version of MonoBook with fresh look and many usability improvements | Trevor Parscal, Roan Kattouw and others |
Installed extensions
| Semantic extensions | ||||
|---|---|---|---|---|
| Extension | Version | License | Description | Authors |
| Semantic Breadcrumb Links | 1.1.0 | GPL-2.0+ | A Semantic MediaWiki extension to build breadcrumb links from an attributive property filter | James Hong Kong |
| Semantic Compound Queries | 0.4 | A parser function that displays multiple semantic queries at the same time | Yaron Koren | |
| Semantic Drilldown | 2.0 | License | A drilldown interface for navigating through semantic data | Yaron Koren and others |
| Semantic Extra Special Properties | 1.3.1 | GPL-2.0+ | Adds some extra special properties to all pages | Leo Wallentin, James Hong Kong and others |
| Semantic Forms Inputs | 0.9.0 alpha | GPL-2.0+ | Additional input types for Semantic Forms | Stephan Gambke and others |
| Semantic Glossary | 1.1.2 | GPL-2.0+ | A glossary extension with a Semantic MediaWiki backend | Stephan Gambke and James Hong Kong |
| Semantic Image Input | 0.3.0 alpha | License | Adds an image input that pulls images from Wikipedia to Semantic Forms | Jeroen De Dauw |
| Semantic Interlanguage Links | 1.1.0 | GPL-2.0+ | A Semantic MediaWiki extension to create and manage interlanguage links | James Hong Kong |
| Semantic Internal Objects | 0.8.1 | Setting of internal objects in Semantic MediaWiki | Yaron Koren | |
| Semantic Maps | 3.2 | GPL-2.0+ | Provides the ability to view and edit coordinate data stored with the Semantic MediaWiki extension | Jeroen De Dauw |
| Semantic MediaWiki | 2.3 | GPL-2.0+ | Making your wiki more accessible - for machines and humans (online documentation) | Markus Krötzsch, Jeroen De Dauw, James Hong Kong and others |
| Semantic Meeting Minutes | 0.3.0 | Provides a simple method to enter meeting minutes into MediaWiki using Semantic Forms and embed minutes into related pages | James Montalvo | |
| Semantic Meta Tags | 1.1.0 | GPL-2.0+ | Allows to provide meta tags generated from semantic annotations | James Hong Kong |
| Semantic Result Formats | 2.3 | GPL-2.0+ | Additional result formats for Semantic MediaWiki queries | James Hong Kong, Stephan Gambke, Jeroen De Dauw, Yaron Koren and others |
| Semantic Signup | 1.0 | GPL-3.0+ | A MediaWiki extension built on top of Semantic Forms allowing to populate a user page with semantic data at signup time | Serg Kutny, Jeroen De Dauw and others |
| Semantic Watchlist | 1.0 | GPL-3.0+ | Lets users be notified of specific changes to Semantic MediaWiki data | Jeroen De Dauw for WikiWorks |
| SemanticFormsSelect | 1.2.1 | Generate a select field in Semantic Form which values are from query | Jasonzhang and Toniher | |
| SemanticTasks | 1.5.0 | Email notifications for assigned or updated tasks | Steren Giannini and Ryan Lane | |
| Special pages | ||||
| Extension | Version | License | Description | Authors |
| Admin Links | 0.2.1 | Adds a special page that holds helpful links for administrators | Yaron Koren | |
| Data Transfer | 0.6 | GPL-2.0+ | Allows for importing and exporting data contained in template calls | Yaron Koren |
| MaintenanceShell | 0.5.0 | Wiki interface for maintenance scripts | Andrew Fitzgerald and Timo Tijhof | |
| Replace Text | 1.0.1 | Provides a special page to allow administrators to do a global string find-and-replace on all the content pages of a wiki | Yaron Koren and Niklas Laxström | |
| Semantic Forms | 3.4 | GPL-2.0+ | Forms for adding and editing semantic data | Yaron Koren, Stephan Gambke and others |
| Parser hooks | ||||
| Extension | Version | License | Description | Authors |
| Arrays | 2.0rc3 alpha | License | Store and compute named arrays | Li Ding, Jie Bao and Daniel Werner |
| External Data | 1.8.1 | Allows for retrieving structured data from external URLs, databases and other sources | Yaron Koren and others | |
| Graphviz | 1.6.1 (1515b85) | License | Allows embedding Graphviz markup and generates inline images | CoffMan, MasterOfDesaster, Thomas Hummel and Keith Welter |
| Header Tabs | 1.0.1 | License | Adds tabs to the page separating top-level sections | Sergey Chernyshev, Yaron Koren and Olivier Finlay Beaton |
| Lingo | 1.2.0 (42e98a6) | GPL-2.0+ | Provides hover-over tool tips on pages from words defined on the Terminology page | Barry Coughlan, Stephan Gambke and others |
| Maps | 3.4 | License | Enables embedding of dynamic maps into wiki pages, geocoding of addresses and other geographical operations. | Jeroen De Dauw |
| NumerAlpha | 0.6.0 | Provides an incremental tag with zero padded numbers, roman and alpha numbers | Thierry G. Veilleux and James Montalvo | |
| Page Schemas | 0.4.5 | License | Defines the data structure for all pages in a category using XML | Yaron Koren, Ankit Garg and others |
| ParserFunctions | 1.6.0 | License | Enhance parser with logical functions | Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic |
| SubPageList | 1.2.0 | License | Allows to list and count subpages | Jeroen De Dauw |
| UserFunctions | 2.6.1 (8452f70) | GPL-2.0+ | Enhance parser with user functions | Ross McClure, Toni Hermoso Pulido and others |
| Widgets | 1.1 | Allows wiki administrators to add free-form widgets to the wiki by editing pages within the Widget namespace.
Community-contributed widgets can be found on MediaWikiWidgets.org |
Sergey Chernyshev and others | |
| DataValues | ||||
| Extension | Version | License | Description | Authors |
| DataTypes | 0.5.1 | GPL-2.0+ | Collection of data type definitions | The Wikidata team |
| DataValues | 1.0 | GPL-2.0+ | Collection of objects representing various kinds of values | Jeroen De Dauw |
| DataValues Common | 0.2.3 | GPL-2.0+ | Contains common implementations of the interfaces defined by DataValuesInterfaces | Jeroen De Dauw |
| DataValues Geo | 1.1.4 | GPL-2.0+ | Geographical value objects, parsers and formatters | Jeroen De Dauw and The Wikidata team |
| DataValues Interfaces | 0.1.5 | GPL-2.0+ | Defines interfaces for ValueParsers, ValueFormatters and ValueValidators | Jeroen De Dauw |
| DataValues Validators | 0.1.2 | GPL-2.0+ | Contains common ValueValidator implementations | Jeroen De Dauw and The Wikidata team |
| Other | ||||
| Extension | Version | License | Description | Authors |
| Bootstrap | 1.1.3 | GPLv3+ | Provides the Bootstrap framework in the wiki | Stephan Gambke and James Hong Kong |
| Guzzle JSON Auth | 0.1.0 | MIT | <Authenticate with a JSON endpoint using a configurable Guzzle client> | Marc Würth and Other contributors |
| HeaderFooter | 2.1.0 | Enables per-page/per-namespace headers and footers | Jean-Lou Dupont, James Montalvo, Douglas Mason | |
| Model | 0.1 | License | ORM Abstraction model for mediawiki developers | Vedmaka |
| ParserHooks | 1.4.0 | License | OOP interface for creating MediaWiki parser hooks in a declarative fashion | Jeroen De Dauw |
| Piwik Integration | 2.4.0 | Adding Piwik Tracking Code | Isb1009, DaSch and Youri van den Bogert | |
| TalkRight | 1.5.0 | Adds a talk permission independent from article edition
|
P.Leveque, Marc Noirot and James Montalvo | |
| Validator | 2.0.4 | GPL-2.0+ | Declarative parameter processing library | Jeroen De Dauw |
| Voting | 0.1 | License | Enables multi-criteria customizable rankings of the articles. Provides configuration page. | WikiVote! |
Installed libraries
| Library | Version | License | Description | Authors |
|---|---|---|---|---|
| composer/installers | 1.0.22 | MIT | A multi-framework Composer library installer | Kyle Robinson Young |
| composer/semver | 1.1.0 | MIT | Semver library that offers utilities, version constraint parsing and validation. | Nils Adermann, Jordi Boggiano and Rob Bast |
| cssjanus/cssjanus | 1.1.1 | Apache-2.0 | Convert CSS stylesheets between left-to-right and right-to-left. | |
| data-values/common | 0.2.3 | GPL-2.0+ | Contains common implementations of the interfaces defined by DataValuesInterfaces | Jeroen De Dauw |
| data-values/data-types | 0.5.1 | GPL-2.0+ | PHP
library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage". |
Jeroen De Dauw and Daniel Kinzler |
| data-values/data-values | 1.0.0 | GPL-2.0+ | Defines the DataValue interface and some trivial implementations | Jeroen De Dauw |
| data-values/geo | 1.1.4 | GPL-2.0+ | Geographical value objects, parsers and formatters | Jeroen De Dauw and The Wikidata team |
| data-values/interfaces | 0.1.5 | GPL-2.0+ | Defines interfaces for ValueParsers, ValueFormatters and ValueValidators | Jeroen De Dauw |
| data-values/validators | 0.1.2 | GPL-2.0+ | Common ValueValidator implementations | Jeroen De Dauw and The Wikidata team |
| guzzlehttp/guzzle | 5.2.0 | MIT | Guzzle is a PHP HTTP client library and framework for building RESTful web service clients | Michael Dowling |
| guzzlehttp/ringphp | 1.1.0 | MIT | Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function. | Michael Dowling |
| guzzlehttp/streams | 3.0.0 | MIT | Provides a simple abstraction over streams of data | Michael Dowling |
| hassankhan/config | 0.8.2 | MIT | Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files | Hassan Khan |
| herrera-io/json | 1.0.3 | MIT | A library for simplifying JSON linting and validation. | Kevin Herrera |
| herrera-io/phar-update | 2.0.0 | MIT | A library for self-updating Phars. | Kevin Herrera |
| herrera-io/version | 1.1.1 | MIT | A library for creating, editing, and comparing semantic versioning numbers. | Kevin Herrera |
| justinrainbow/json-schema | 1.5.0 | BSD-3-Clause | A library to validate a json schema. | Bruno Prieto Reis, Justin Rainbow, Igor Wiedler and Robert Schönthal |
| less.php/less.php | 1.7.0.2 | Apache-2.0 | PHP port of the Javascript version of LESS http://lesscss.org | Matt Agar, Martin Jantošovič and Josh Schmidt |
| liuggio/statsd-php-client | 1.0.12 | MIT | Statsd (Object Oriented) client library for PHP | Giulio De Donato |
| mediawiki/at-ease | 1.1.0 | GPL-2.0+ | Safe replacement to @ for suppressing warnings. | Tim Starling and MediaWiki developers |
| mediawiki/mediawiki-codesniffer | 0.5.0 | GPL-2.0+ | MediaWiki CodeSniffer Standards | |
| mediawiki/oauthclient | 0.1.0 | GPL-3.0+ | PHP OAuth client for use with Wikipedia and other MediaWiki-based wikis running the OAuth extension | Bryan Davis, Andy Smith and Chris Steipp |
| mediawiki/parser-hooks | 1.4 | GPL-2.0+ | Adds a OOP and declarative parser hook interface on top of MediaWiki | Jeroen De Dauw |
| monolog/monolog | 1.17.2 | MIT | Sends your logs to files, sockets, inboxes, databases and various web services | Jordi Boggiano |
| mustangostang/spyc | 0.5.1 | MIT License | A simple YAML loader/dumper class for PHP | mustangostang |
| nikic/php-parser | 1.4.1 | BSD-3-Clause | A PHP parser written in PHP | Nikita Popov |
| onoi/blob-store | 1.1.0 | GPL-2.0+ | A simple interface to manage schema-free temporal persistent key/values | mwjames |
| onoi/cache | 1.2.0 | GPL-2.0+ | A minimalistic cache adapter interface library | mwjames |
| onoi/callback-container | 1.0.0 | GPL-2.0+ | A simple callback container registry library | mwjames |
| onoi/event-dispatcher | 1.0.0 | GPL-2.0+ | A minimalistic interface to relay generic events to registered listeners | mwjames |
| onoi/http-request | 1.2.0 | GPL-2.0+ | A minimalistic http/curl request interface library | mwjames |
| onoi/message-reporter | 1.0.0 | GPL-2.0+ | An interface to report and relay arbitrary messages to registered handlers | Jeroen De Dauw and mwjames |
| oojs/oojs-ui | 0.11.3 | MIT | Provides library of common widgets, layouts, and windows. | |
| param-processor/param-processor | 1.2.2 | GPL-2.0+ | Parameter processing library | Jeroen De Dauw |
| phpoffice/phpexcel | 1.8.1 | LGPL | PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine | Maarten Balliauw, Mark Baker, Franck Lefevre and Erik Tilt |
| psr/log | 1.0.0 | MIT | Common interface for logging libraries | PHP-FIG |
| react/promise | 2.2.1 | MIT | A lightweight implementation of CommonJS Promises/A for PHP | Jan Sorgalla |
| romaricdrigon/metayaml | 1.0.1 | MIT | Using [Yaml|Xml|json] schemas files to validate [Yaml|Xml|json] | |
| ruflin/elastica | 2.3.1 | MIT | Elasticsearch Client | Nicolas Ruflin |
| seld/jsonlint | 1.3.1 | MIT | JSON Linter | Jordi Boggiano |
| serialization/serialization | 3.2.1 | GPL-2.0+ | Library defining a Serializer and a Deserializer interface and basic utilities | Jeroen De Dauw |
| squizlabs/php_codesniffer | 2.3.4 | BSD-3-Clause | PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. | Greg Sherwood |
| symfony/console | 2.7.6 | MIT | Symfony Console Component | Fabien Potencier and Symfony Community |
| symfony/yaml | 2.7.6 | MIT | Symfony Yaml Component | Fabien Potencier and Symfony Community |
| tomzx/finder | dev-master | MIT | Improved, Symfony Finder compatible finder. | Tom Rochette |
| twitter/bootstrap | 3.3.5 | MIT | The most popular front-end framework for developing responsive, mobile first projects on the web. | Jacob Thornton and Mark Otto |
| wikimedia/assert | 0.2.2 | MIT | Provides runtime assertions | Daniel Kinzler |
| wikimedia/avro | 1.7.7 | Apache-2.0 | A library for using Apache Avro with PHP. | Michael Glaesemann, Andy Wick, Saleem Shafi, A B, Doug Cutting and Tom White |
| wikimedia/cdb | 1.3.0 | GPL-2.0+ | Constant Database (CDB) wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are absent. | Tim Starling, Chad Horohoe and Ori Livneh |
| wikimedia/cldr-plural-rule-parser | 1.0.0 | GPL-2.0+ | Evaluates plural rules specified in the CLDR project notation. | Tim Starling and Niklas Laxström |
| wikimedia/composer-merge-plugin | 1.2.1 | MIT | Composer plugin to merge multiple composer.json files | Bryan Davis |
| wikimedia/ip-set | 1.0.1 | GPL-2.0+ | Efficiently match IP addresses against a set of CIDR specifications. | Brandon Black |
| wikimedia/php-session-serializer | 1.0.2 | GPL-2.0+ | Provides methods like PHP's session_encode and session_decode that don't mess with $_SESSION | Brad Jorsch |
| wikimedia/utfnormal | 1.0.3 | GPL-2.0+ | Contains
Unicode normalization routines, including both pure PHP implementations and automatic use of the 'intl' PHP extension when present |
Brion Vibber |
| wikimedia/wrappedstring | 2.0.0 | MIT | Automatically compact sequentially-outputted strings that share a common prefix / suffix pair. | Timo Tijhof |
| zordius/lightncandy | 0.18 | MIT | An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ). | Zordius Chen |
, , , , , , , , , , , , , , , , , , , , , , , , , , , and
anchorencode, arraydefine, arraydiff, arrayindex, arrayintersect, arraymap, arraymaptemplate, arraymerge, arrayprint, arrayreset, arraysearch, arraysearcharray, arraysize, arrayslice, arraysort, arrayunion, arrayunique, ask, autoedit, basepagename, basepagenamee, bidi, calendarenddate, calendarstartdate, canonicalurl, canonicalurle, cascadingsources, clear_external_data, compound_query, concept, coordinates, count, counter, declare, default_form, defaultsort, display_external_table, display_line, display_map, display_point, display_points, displaytitle, distance, drilldowninfo, drilldownlink, explode, expr, external_value, filepath, finddestination, for_external_table, formatdate, formatnum, forminput, formlink, formredlink, fullpagename, fullpagenamee, fullurl, fullurle, gender, geocode, geodistance, get_db_data, get_file_data, get_ldap_data, get_soap_data, get_web_data, grammar, if, ifanon, ifblocked, ifeq, iferror, ifexist, ifexpr, ifingroup, ifsysop, info, int, interlanguagelink, interlanguagelist, language, lc, lcfirst, len, localurl, localurle, mapsdoc, meetingminutesform, meetingminutestemplate, namespace, namespacee, namespacenumber, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pageid, pagename, pagenamee, pagesincategory, pagesize, plural, pos, protectionlevel, queryformlink, rel2abs, replace, revisionday, revisionday2, revisionid, revisionmonth, revisionmonth1, revisiontimestamp, revisionuser, revisionyear, rootpagename, rootpagenamee, rpos, set, set_internal, set_internal_recurring_event, set_recurring_event, show, signupfields, smwdoc, special, speciale, splist, store_external_table, sub, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subobject, subpagecount, subpagelist, subpagename, subpagenamee, subpages, switch, switchtablink, synopsize, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel,
titleparts, uc, ucfirst, urldecode, urlencode and widgetFustbariclation (talk) 15:55, 11 November 2015 (UTC)
- Obviously, you have to make sure that the output from load.php comes with the right MIME type, which is "text/css"! 88.130.80.101 (talk) 16:28, 11 November 2015 (UTC)
- Yes, thank you, but I'd worked that out.
- What I don't understand is how to do that, and why it is giving the wrong MIME type.
- Do you know? Fustbariclation (talk) 20:09, 11 November 2015 (UTC)
- Open one of those URLs on your browser, like for example http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=ext.smw.style%7Cext.smw.tooltip.styles&only=styles&skin=vector
- I get a Fatal error: Call to undefined function RelPath\getRelativePath() in /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderModule.php on line 437
- Why are you using an alpha version of MediaWiki instead of a stable release like 1.25? Ciencia Al Poder (talk) 20:59, 11 November 2015 (UTC)
- Thank you! I think that's the problem. It's because I used composer without the --no-dev option.
- I'll fix that and see what happens.
- Actually, I woke up this morning thinking that might be worth trying - so thank you for the encouragement. Fustbariclation (talk) 07:39, 12 November 2015 (UTC)
- Well, I'm afraid that I've still got the problem with no skin showing. I think I've cleaned up my versions.
- Are these looking better?
| Product | Version |
|---|---|
| MediaWiki | 1.25.3 |
| PHP | 5.5.29 (cgi-fcgi) |
| MySQL | 5.5.34-cll-lve |
- == Entry point URLs ==
| Entry point | URL |
|---|---|
| Article path | /wiki/index.php?title=$1
|
| Script path | /wiki
|
| index.php | /wiki/index.php
|
| api.php | /wiki/api.php
|
| load.php | /wiki/load.php
|
- == Installed skins ==
| Skin | Version | License | Description | Authors |
|---|---|---|---|---|
| Chameleon | 1.1.4 | GPLv3+ | The Chameleon skin | Stephan Gambke |
| Vector | – (31e1a44) | GPL-2.0+ | Modern version of MonoBook with fresh look and many usability improvements | Trevor Parscal, Roan Kattouw and others |
- == Installed extensions ==
| Semantic extensions | ||||
|---|---|---|---|---|
| Extension | Version | License | Description | Authors |
| Semantic Breadcrumb Links | 1.1.0 | GPL-2.0+ | A Semantic MediaWiki extension to build breadcrumb links from an attributive property filter | James Hong Kong |
| Semantic Compound Queries | 0.4 | A parser function that displays multiple semantic queries at the same time | Yaron Koren | |
| Semantic Drilldown | 2.0 | License | A drilldown interface for navigating through semantic data | Yaron Koren and others |
| Semantic Extra Special Properties | 1.3.1 | GPL-2.0+ | Adds some extra special properties to all pages | Leo Wallentin, James Hong Kong and others |
| Semantic Glossary | 1.1.2 | GPL-2.0+ | A glossary extension with a Semantic MediaWiki backend | Stephan Gambke and James Hong Kong |
| Semantic Interlanguage Links | 1.1.0 | GPL-2.0+ | A Semantic MediaWiki extension to create and manage interlanguage links | James Hong Kong |
| Semantic Internal Objects | 0.8.1 | Setting of internal objects in Semantic MediaWiki | Yaron Koren | |
| Semantic Maps | 3.2 | GPL-2.0+ | Provides the ability to view and edit coordinate data stored with the Semantic MediaWiki extension | Jeroen De Dauw |
| Semantic MediaWiki | 2.3 | GPL-2.0+ | Making your wiki more accessible - for machines and humans (online documentation) | Markus Krötzsch, Jeroen De Dauw, James Hong Kong and others |
| Semantic Meeting Minutes | 0.3.0 | Provides a simple method to enter meeting minutes into MediaWiki using Semantic Forms and embed minutes into related pages | James Montalvo | |
| Semantic Meta Tags | 1.1.0 | GPL-2.0+ | Allows to provide meta tags generated from semantic annotations | James Hong Kong |
| Semantic Result Formats | 2.3 | GPL-2.0+ | Additional result formats for Semantic MediaWiki queries | James Hong Kong, Stephan Gambke, Jeroen De Dauw, Yaron Koren and others |
| Semantic Signup | 1.0 | GPL-3.0+ | A MediaWiki extension built on top of Semantic Forms allowing to populate a user page with semantic data at signup time | Serg Kutny, Jeroen De Dauw and others |
| Semantic Watchlist | 1.0 | GPL-3.0+ | Lets users be notified of specific changes to Semantic MediaWiki data | Jeroen De Dauw for WikiWorks |
| SemanticFormsSelect | 1.2.1 | Generate a select field in Semantic Form which values are from query | Jasonzhang and Toniher | |
| SemanticTasks | 1.5.0 | Email notifications for assigned or updated tasks | Steren Giannini and Ryan Lane | |
| Special pages | ||||
| Extension | Version | License | Description | Authors |
| Admin Links | 0.2.1 | Adds a special page that holds helpful links for administrators | Yaron Koren | |
| Data Transfer | 0.6 | GPL-2.0+ | Allows for importing and exporting data contained in template calls | Yaron Koren |
| MaintenanceShell | 0.5.0 | Wiki interface for maintenance scripts | Andrew Fitzgerald and Timo Tijhof | |
| Replace Text | 1.0.1 | Provides a special page to allow administrators to do a global string find-and-replace on all the content pages of a wiki | Yaron Koren and Niklas Laxström | |
| Semantic Forms | 3.4 | GPL-2.0+ | Forms for adding and editing semantic data | Yaron Koren, Stephan Gambke and others |
| Parser hooks | ||||
| Extension | Version | License | Description | Authors |
| Arrays | 2.0rc3 alpha | License | Store and compute named arrays | Li Ding, Jie Bao and Daniel Werner |
| External Data | 1.8.1 | Allows for retrieving structured data from external URLs, databases and other sources | Yaron Koren and others | |
| Graphviz | 1.6.1(1515b85) | License | Allows embedding Graphviz markup and generates inline images | CoffMan, MasterOfDesaster, Thomas Hummel and Keith Welter |
| Header Tabs | 1.0.1 | License | Adds tabs to the page separating top-level sections | Sergey Chernyshev, Yaron Koren and Olivier Finlay Beaton |
| Lingo | 1.2.0(42e98a6) | GPL-2.0+ | Provides hover-over tool tips on pages from words defined on the Terminology page | Barry Coughlan, Stephan Gambke and others |
| Maps | 3.4 | License | Enables embedding of dynamic maps into wiki pages, geocoding of addresses and other geographical operations. | Jeroen De Dauw |
| NumerAlpha | 0.6.0 | Provides an incremental tag with zero padded numbers, roman and alpha numbers | Thierry G. Veilleux and James Montalvo | |
| Page Schemas | 0.4.5 | License | Defines the data structure for all pages in a category using XML | Yaron Koren, Ankit Garg and others |
| ParserFunctions | 1.6.0 | License | Enhance parser with logical functions | Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic |
| Skinny | 0.2 | License | Handy tools for advanced skinning. Move content from the article to the skin, and set skin on a page by page basis. | Andru Vallance |
| SubPageList | 1.2.0 | License | Allows to list and count subpages | Jeroen De Dauw |
| UserFunctions | 2.6.1(8452f70) | GPL-2.0+ | Enhance parser with user functions | Ross McClure, Toni Hermoso Pulido and others |
| Widgets | 1.1 | Allows wiki administrators to add free-form widgets to the wiki by editing pages within the Widget namespace. Community-contributed widgets can be found on MediaWikiWidgets.org | Sergey Chernyshev and others | |
| DataValues | ||||
| Extension | Version | License | Description | Authors |
| DataTypes | 0.5.1 | GPL-2.0+ | Collection of data type definitions | The Wikidata team |
| DataValues | 1.0 | GPL-2.0+ | Collection of objects representing various kinds of values | Jeroen De Dauw |
| DataValues Common | 0.2.3 | GPL-2.0+ | Contains common implementations of the interfaces defined by DataValuesInterfaces | Jeroen De Dauw |
| DataValues Geo | 1.1.4 | GPL-2.0+ | Geographical value objects, parsers and formatters | Jeroen De Dauw and The Wikidata team |
| DataValues Interfaces | 0.1.5 | GPL-2.0+ | Defines interfaces for ValueParsers, ValueFormatters and ValueValidators | Jeroen De Dauw |
| DataValues Validators | 0.1.2 | GPL-2.0+ | Contains common ValueValidator implementations | Jeroen De Dauw and The Wikidata team |
| Other | ||||
| Extension | Version | License | Description | Authors |
| Bootstrap | 1.1.3 | GPLv3+ | Provides the Bootstrap framework in the wiki | Stephan Gambke and James Hong Kong |
| Guzzle JSON Auth | 0.1.0 | MIT | <Authenticate with a JSON endpoint using a configurable Guzzle client> | Marc Würth and Other contributors |
| HeaderFooter | 2.1.0 | Enables per-page/per-namespace headers and footers | Jean-Lou Dupont, James Montalvo, Douglas Mason | |
| Model | 0.1 | License | ORM Abstraction model for mediawiki developers | Vedmaka |
| ParserHooks | 1.4.0 | License | OOP interface for creating MediaWiki parser hooks in a declarative fashion | Jeroen De Dauw |
| Piwik Integration | 2.4.0 | Adding Piwik Tracking Code | Isb1009, DaSch and Youri van den Bogert | |
| TalkRight | 1.5.0 | Adds a talk permission independent from article edition
|
P.Leveque, Marc Noirot and James Montalvo | |
| Validator | 2.0.4 | GPL-2.0+ | Declarative parameter processing library | Jeroen De Dauw |
| Voting | 0.1 | License | Enables multi-criteria customizable rankings of the articles. Provides configuration page. | WikiVote! |
- == Installed libraries ==
- == Parser extension tags ==
- , , , , , , , , , , , , , , , , , , , , , , , , , , , and
- == Parser function hooks ==
- anchorencode, arraydefine, arraydiff, arrayindex, arrayintersect, arraymap, arraymaptemplate, arraymerge, arrayprint, arrayreset, arraysearch, arraysearcharray, arraysize, arrayslice, arraysort, arrayunion, arrayunique, ask, autoedit, basepagename, basepagenamee, calendarenddate, calendarstartdate, canonicalurl, canonicalurle, cascadingsources, clear_external_data, compound_query, concept, coordinates, count, counter, declare, default_form, defaultsort, display_external_table, display_line, display_map, display_point, display_points, displaytitle, distance, drilldowninfo, drilldownlink, explode, expr, external_value, filepath, finddestination, for_external_table, formatdate, formatnum, forminput, formlink, formredlink, fullpagename, fullpagenamee, fullurl, fullurle, gender, geocode, geodistance, get_db_data, get_file_data, get_ldap_data, get_soap_data, get_web_data, grammar, if, ifanon, ifblocked, ifeq, iferror, ifexist, ifexpr, ifingroup, ifsysop, imageurl, info, int, interlanguagelink, interlanguagelist, language, layout, lc, lcfirst, len, localurl, localurle, mapsdoc, meetingminutesform, meetingminutestemplate, movetoskin, namespace, namespacee, namespacenumber, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pageid, pagename, pagenamee, pagesincategory, pagesize, plural, pos, protectionlevel, queryformlink, rel2abs, replace, revisionday, revisionday2, revisionid, revisionmonth, revisionmonth1, revisiontimestamp, revisionuser, revisionyear, rootpagename, rootpagenamee, rpos, set, set_internal, set_internal_recurring_event, set_recurring_event, setskin, show, signupfields, skinsert, smwdoc, special, speciale, splist, store_external_table, sub, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subobject, subpagecount, subpagelist, subpagename, subpagenamee, subpages, switch, switchtablink, synopsize, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel, titleparts, uc, ucfirst, urldecode, urlencode and widget Fustbariclation (talk) 07:04, 13 November 2015 (UTC)
- First of all: You still use the master branch of the Vector skin. You should use a stable release for all extensions, skins and MediaWiki itself, too. Second thing: Please run
composer updateor use the mediawiki/core/vendor git repository to get the correct version of all dependencies. In your case, I assume, that you already has the installed dependencies of the master branch, which are incompatible with the stable release, which results in the following error for the style modules (that's why you have no skin): exception 'Less_Exception_Parser' with message 'File `mediawiki.mixins` not found. in buttons.less' in /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php:2581 Stack trace: #0 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(309): Less_Parser->Error('File `mediawiki...') #1 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(265): Less_Parser->parseFile('mediawiki.mixin...', 'mediawiki.mixin...', true) #2 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(193): Less_Tree_Import->ParseImport('mediawiki.mixin...', 'mediawiki.mixin...', Object(Less_Environment)) #3 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Object(Less_Environment)) #4 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(235): Less_Tree_Ruleset->evalImports(Object(Less_Environment)) #5 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(70): Less_Tree_Ruleset->PrepareRuleset(Object(Less_Environment)) #6 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(186): Less_Tree_Ruleset->compile(Object(Less_Environment)) #7 /home/servi145/public_html/wiki/vendor/less.php/less.php/lessc.inc.php(131): Less_Parser->getCss() #8 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(970): lessc->compileFile('/home/servi145/...') #9 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(916): ResourceLoaderFileModule->compileLessFile('/home/servi145/...', Object(lessc)) #10 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(886): ResourceLoaderFileModule->readStyleFile('resources/src/m...', false, Object(ResourceLoaderContext)) #11 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(419): ResourceLoaderFileModule->readStyleFiles(Array, false, Object(ResourceLoaderContext)) #12 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(952): ResourceLoaderFileModule->getStyles(Object(ResourceLoaderContext)) #13 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(642): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array, Array) #14 /home/servi145/public_html/wiki/load.php(42): ResourceLoader->respond(Object(ResourceLoaderContext)) #15 {main} */ /* exception 'Less_Exception_Parser' with message 'File `mediawiki.mixins` not found. in screen.less' in /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php:2581 Stack trace: #0 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(309): Less_Parser->Error('File `mediawiki...') #1 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(265): Less_Parser->parseFile('mediawiki.mixin...', 'mediawiki.mixin...', true) #2 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(193): Less_Tree_Import->ParseImport('mediawiki.mixin...', 'mediawiki.mixin...', Object(Less_Environment)) #3 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Object(Less_Environment)) #4 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(269): Less_Tree_Ruleset->evalImports(Object(Less_Environment)) #5 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(193): Less_Tree_Import->ParseImport('/home/servi145/...', 'components', Object(Less_Environment)) #6 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Object(Less_Environment)) #7 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(235): Less_Tree_Ruleset->evalImports(Object(Less_Environment)) #8 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(70): Less_Tree_Ruleset->PrepareRuleset(Object(Less_Environment)) #9 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(186): Less_Tree_Ruleset->compile(Object(Less_Environment)) #10 /home/servi145/public_html/wiki/vendor/less.php/less.php/lessc.inc.php(131): Less_Parser->getCss() #11 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(970): lessc->compileFile('/home/servi145/...') #12 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(916): ResourceLoaderFileModule->compileLessFile('/home/servi145/...', Object(lessc)) #13 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(886): ResourceLoaderFileModule->readStyleFile('screen.less', false, Object(ResourceLoaderContext)) #14 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(419): ResourceLoaderFileModule->readStyleFiles(Array, false, Object(ResourceLoaderContext)) #15 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(952): ResourceLoaderFileModule->getStyles(Object(ResourceLoaderContext)) #16 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(642): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array, Array) #17 /home/servi145/public_html/wiki/load.php(42): ResourceLoader->respond(Object(ResourceLoaderContext)) #18 {main} */
- (source) Florianschmidtwelzow (talk) 10:12, 13 November 2015 (UTC)
- Thank you very much! That's extremely helpful.
- I see exactly what I've done wrong. On the vector page, I missed the composer entry and used the git download instead. I've corrected that.
- It would be nice if there was a sample composer.json file with all the extensions at the proper release - then it would be just a matter of removing the unwanted ones, and idiots like me wouldn't make this sort of silly mistake. Fustbariclation (talk) 10:22, 13 November 2015 (UTC)
- If you would use a release tarball, you wouldn't have such problems ;) And MediaWiki and any other extension, that needs composer dependencies, has a composer.json included :) So I don't know, what you mean :) Florianschmidtwelzow (talk) 11:03, 13 November 2015 (UTC)
- Sorry, this is related, but slightly different. I'll put in a separate question if necessary.
- There seems to be no version for vector. Composer gives me:
- - Installation request for mediawiki/vector-skin * -> satisfiable by mediawiki/vector-skin[1.x-dev, dev-master]
- So, to load the vector skin, I need to set:
- "minimum-stability": "dev",
- "prefer-stable": true,
- Which is why, I think, I ended up putting the stability to 'dev'. Even if I set minimum stability to 'alpha', it won't install vector. Fustbariclation (talk) 10:48, 13 November 2015 (UTC)
- Please note, that composer isn't one of the really supported installation ways. You should use the Installation guide on the skin/extension page (||Skin:Vector#Installation|see Vector]]) to install the skin/extension. Other ways may work, but maybe needs some more knowledge about the installation method and how it's used in the MediaWiki universum :) Florianschmidtwelzow (talk) 11:07, 13 November 2015 (UTC)
Install mediawiki with Oracle PHP Catchable fatal error
After completing database configuration form, there's Server error 500. Checking the logs, we can find the following message:
PHP Catchable fatal error: Argument 1 passed to DatabaseOracle::__construct() must be an array, string given, called in /mediawiki/app/includes/installer/OracleInstaller.php on line 176 and defined in /mediawiki/app/includes/db/DatabaseOracle.php on line 210, referer: http://myhost:1112/app/mw-config/index.php?page=DBConnect 200.216.71.240 (talk) 17:36, 11 November 2015 (UTC)
- Oracle is not supported. See Manual:Installation requirements#Database server
- I've created a bug for you: T118420 Ciencia Al Poder (talk) 21:12, 11 November 2015 (UTC)
- I started to work into. Please see advances in provided link T118420 Thanks a lot. Fheredia (talk) 20:29, 28 June 2018 (UTC)
Project logo (ladwiki)
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 uploaded an updated Wiki.png to my project. Why isn't the logo changing, even after I bypass the cache? StevenJ81 (talk) 02:23, 12 November 2015 (UTC)
- Manual:FAQ#How do I change the logo.3F Malyacko (talk) 09:55, 12 November 2015 (UTC)
- OK. But
- *I don't know how or where to do "Then add the $wgLogo line to LocalSettings.php, for example:" — and
- *I gave the new file the same name, so I don't understand why the LocalSettings file isn't just reading the new version of the logo. Thanks. StevenJ81 (talk) 15:13, 12 November 2015 (UTC)
- the logo should be in /resources/assets;
- find the $wgLogo line in LocalSettings.php (main directory) and copypaste this --> $wgLogo = "{$wgScriptPath}/resources/assets/[yourfile].[ext]";
- the name of the file you upload in that directory and the name of the file in the $wgLogo line SHOULD BE THE SAME (i.e. "My file.png" --> {$wgScriptPath}/resources/assets/My file.png )
- CTRL + F5 or any other command to purge cache Sannita (talk) 17:36, 12 November 2015 (UTC)
- This is a Wikimedia project I`m talking about—Ladino Wikipedia. I don`t think I have direct access to the places you are describing. StevenJ81 (talk) 18:00, 12 November 2015 (UTC)
- You should have specified that's for a WMF wiki first ;)
- Looking at m:Requests for logos, you should request it on phabricator. Ciencia Al Poder (talk) 19:45, 12 November 2015 (UTC)
- Well, um ... if you look at the title of this thread, it includes "ladwiki", which is the usual working name for Ladino Wikipedia. So I thought that would have been understood. In any case, it was opened at phabricator:T118491. Thanks for your help. StevenJ81 (talk) 19:58, 12 November 2015 (UTC)
SEO on media wiki
Hi,
I've seen a few extensions for seo on media wiki, but any user will be able to edit the meta tags and title from the page? Will be posible to edit the meta ant title on every page or it will a general content?
the extensions I'm talking about are these:
Extension:Add HTML Meta and Title 177.138.74.58 (talk) 02:40, 12 November 2015 (UTC)
- in Extension:Add HTML Meta and Title it says:
- When you enter the following in a wiki page: ...
- This means it's a change per page, not for all pages. Ciencia Al Poder (talk) 10:53, 12 November 2015 (UTC)
- Thanks for answering me!
- But will the users be able to edit or only the administrators? 2804:14C:34:2482:9D0F:C81D:14:2111 (talk) 12:46, 18 November 2015 (UTC)
- It depends if users are able to edit pages or edit is restricted to administrators. Ciencia Al Poder (talk) 21:01, 18 November 2015 (UTC)
Linking URL's which have square brackets in them.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I'm trying to create a link to a URL which contains square brackets in it. Is this possible and how do I do this?
e.g.: [http://server.local/findMe.pl?logic=([itemId http://server.local/findMe.pl?logic=([itemId]%20eq%20'001')&title=Sample]
Thanks,
Frank Frank.tonjes (talk) 10:13, 12 November 2015 (UTC)
- You need to URLEncode them.
- For example:
[http://example.com/?{{urlencode:args[]}}=something TEST]- produces:
- TEST Ciencia Al Poder (talk) 10:50, 12 November 2015 (UTC)
wikitable sortable ne fonctionne plus après migration 1.16.5 vers 1.25.3
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.
bonjour
depuis que j'ai effectué la migration mediawiki de 1.16.5 vers 1.25.3 (chez free.fr) le tableau géré par wikitable sortable ne propose plus de trier ce tableau
voir ma page: http://yan.clot.free.fr/wiki/index.php?title=Portail_Randonnee
exemple de code:
| Nom | Carte | Départ | Moins haut | Plus haut | Dénivellé | Horaire | Raquette | Date rando |
|---|---|---|---|---|---|---|---|---|
| Mont Gros | 3841OT | 900 | 850 | 1272 | 500 | 3h00 | N | 01.04.2011 |
| Turini | 3741ET | 1889 | 1780 | 2080 | 550 | 3h40 | N | 01.11.2013 |
salutations Ycsoft (talk) 12:20, 12 November 2015 (UTC)
- All cells of your table are headings (they use the "!" syntax instead of "|"). That's the problem. Only the first row should use cell headings. Ciencia Al Poder (talk) 20:04, 12 November 2015 (UTC)
- super !
- çà fonctionne !!
- Merci
- +++
- Great !
- it works !!
- Thank you Ycsoft (talk) 21:05, 12 November 2015 (UTC)
Does MediaWiki not come with a standard template repository?
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.
If not where can I find template coding that I can copy paste to generate my own standard template repository. 143.112.144.129 (talk) 13:50, 12 November 2015 (UTC)
- It does not, but see the content bundler rfc where we are talking about that.
- If you find a template you want to use, you can use the wiki's Special:Export page to download it for import onto your own wiki using Special:Import. ☠MarkAHershberger☢(talk)☣ 15:05, 12 November 2015 (UTC)
- Fantastic thank you
- Hey thank you! 143.112.144.129 (talk) 15:24, 12 November 2015 (UTC)
Impossible to upload a file (MW 1.25.2)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've tried for a very long time to solve this on my own, but I couldn't. I know it is a fairly recurring problem, 'cos I saw lots of posts like that with different versions.
I cannot upload files on my wiki (which is on a private server, so no links). Details are the following:
- MediaWiki 1.25.2
- PHP 5.6.12-0+deb8u1 (apache2handler)
- MySQL 5.5.44-0+deb8u1
Error is: Could not create directory "mwstore://local-backend/local-public/8/88".
I inserted the debug thing and this happens to be the problem:
- Warning: failed to mkdir "/8/88" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300
Details in LocalSettings are the following:
$wgEnableUploads = true;
$wgFileBackends[] = array(
'name' => 'local-backend',
'class' => 'FSFileBackend',
'lockManager' => 'nullLockManager',
'containerPaths' => array(
'local-public' => "{$wgUploadDirectory}",
'local-thumb' => "{$wgUploadDirectory}/thumb",
'local-deleted' => $wgDeletedDirectory,
'local-temp' => "{$wgUploadDirectory}/temp",
),
'fileMode' => 0644,
);
$wgLocalFileRepo = array (
'class' => 'LocalRepo',
'name' => 'local',
'directory' => $wgUploadDirectory,
'scriptDirUrl' => $wgScriptPath,
'scriptExtension' => $wgScriptExtension,
'url' => $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath,
'hashLevels' => $wgHashedUploadDirectory ? 2 : 0,
'thumbScriptUrl' => $wgThumbnailScriptPath,
'transformVia404' => !$wgGenerateThumbnailOnParse,
'deletedDir' => $wgDeletedDirectory,
'deletedHashLevels' => 3,
'backend' => 'local-backend',
);
What should I do?
Thanks. Sannita (talk) 15:56, 12 November 2015 (UTC)
- Looks like MediaWiki does not have the necessary write permissions.
- Try to execute this command on your server:
sudo chown -R www-data:www-data /var/www/html/mediawiki/images
Please let me know if that fixed your issue. Southparkfan (talk) 16:01, 12 November 2015 (UTC)
- Nothing, unfortunately. Anyway, now the warning appears to be:
- Warning: failed to mkdir "1/b/b3" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Sannita (talk) 17:19, 12 November 2015 (UTC)
- Try again when you deleted wgLocalFileRepo and wgFileBackends? Those don't need to be present here. Southparkfan (talk) 17:23, 12 November 2015 (UTC)
- Deleted those two, and hell broke loose.
- [c4d5f3af] 2015-11-12 17:27:01: irreversible errore "MWException" type
- Sannita (talk) 17:28, 12 November 2015 (UTC)
Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: failed to mkdir "/var/www/html/mediawiki/images/lockdir" mode 0777 [Called from wfMkdirParents in /var/www/html/mediawiki/includes/GlobalFunctions.php at line 2540] in /var/www/html/mediawiki/includes/debug/MWDebug.php on line 300 Warning: fopen(/var/www/html/mediawiki/images/lockdir/huk0h3ehm6bx2vhjobjxlf2zzck3tro.lock): failed to open stream: No such file or directory in /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php on line 125 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mediawiki/includes/filebackend/lockmanager/FSLockManager.php:125) in /var/www/html/mediawiki/includes/WebResponse.php on line 37 Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStoreDB::get)). in /var/www/html/mediawiki/includes/db/Database.php on line 4362
- Do you have a "?>" in your PHP settings (if so, please remove)? Also, I see you got an exception: can you set $wgShowExceptionDetails to true for more debug output? Southparkfan (talk) 18:06, 12 November 2015 (UTC)
- The folder /var/www/html/mediawiki/images/ should have appropriate permissions, recursively. To be sure it's not a permission problem, set mode 777 to this folder recursively.
- If that also fails, your server may have some security daemon like SELinux or apparmor that prevents MediaWiki from creating files and directories. Ciencia Al Poder (talk) 19:43, 12 November 2015 (UTC)
- Eh. not 777 really... that gives execution permissions to uploaders, It should be 755 (recursively). See also Manual:Configuring file uploads. —TheDJ (Not WMF) (talk • contribs) 11:38, 16 November 2015 (UTC)
- Yeah, I suggested 777 To be sure it's not a permission problem (owner/group may be wrong, etc). Of course, once the issue is isolated, it should be changed to a saner default Ciencia Al Poder (talk) 20:20, 16 November 2015 (UTC)
- Ok, so I put $wgShowExceptionDetails = true and changed permissions recursively to 777.
- If permissions are on 777, everything's fine.
- If permissions are on 755, it gives me this error:
- Sannita (talk) 16:10, 17 November 2015 (UTC)
[46306a00] /index.php/Speciale:Carica MWException from line 1856 of /var/www/html/mediawiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Logo_ICCU_3.png.' Backtrace: #0 /var/www/html/mediawiki/includes/filerepo/file/LocalFile.php(1148): LocalFile->lock() #1 /var/www/html/mediawiki/includes/upload/UploadBase.php(715): LocalFile->upload(string, string, string, integer, array, boolean, User) #2 /var/www/html/mediawiki/includes/specials/SpecialUpload.php(476): UploadBase->performUpload(string, string, boolean, User) #3 /var/www/html/mediawiki/includes/specials/SpecialUpload.php(195): SpecialUpload->processUpload() #4 /var/www/html/mediawiki/includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL) #5 /var/www/html/mediawiki/includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(NULL) #6 /var/www/html/mediawiki/includes/MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext) #7 /var/www/html/mediawiki/includes/MediaWiki.php(566): MediaWiki->performRequest() #8 /var/www/html/mediawiki/includes/MediaWiki.php(414): MediaWiki->main() #9 /var/www/html/mediawiki/index.php(41): MediaWiki->run() #10 {main}- That means the owner of the directory is not the same as the account where the webserver is running.
- You should use
chownrecursively to set the user and group appropriately, so the owner matches the user account of the server. - You can probably check, when you have permissions as 777, the owner of new files that are created on the server, and use that as the owner. Ciencia Al Poder (talk) 19:45, 17 November 2015 (UTC)
- 755 means: owner can read/write/execute, group/others can read/execute. You want to set 766: owner can read/write/execute, group/others can read/write (see http://chmod-calculator.com/).
- Southparkfan (talk) 19:09, 17 November 2015 (UTC)
chmod -R 766 /var/www/html/mediawiki/images
- Actually, I'm not sure if you want to give other things access. But you suggest that the owner/group of the directory might be wrong, so 766 should work anyway. Southparkfan (talk) 19:10, 17 November 2015 (UTC)
- Just to give a feedback, sorry for being so late... everything's ok now, it worked. :) Sannita (talk) 15:14, 27 April 2016 (UTC)
i want to uninstall
please uninstall this from my computer. swfraser stephen.fraser2@ 2602:306:CFB2:D1F0:D042:F6DC:845D:CD6B (talk) 16:54, 12 November 2015 (UTC)
- Depending on what you mean with "this" there are different ways on how to uninstall it.
- If you mean MediaWiki, then you should follow this tutorial: Manual:Uninstallation. 88.130.121.53 (talk) 18:08, 12 November 2015 (UTC)
erreur interne (MWException) sur importation fichier jpg
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.
Bonjour J'ai récemment migré de 1.16.5 vers 1.25.3 (suite à migration free.fr php 5.1.3 vers 5.6.8) C'est la première importation d'image que je fais depuis. j'ai une erreur: [5ccbecd2] 2015-11-13 12:37:03: Erreur fatale de type « MWException »
Si j'upload le fichier via filezilla, l'image ne s'affiche pas dans ma page wiki avec la syntaxe [ [ Image:monimage.jpg|400px ] ] et mediawiki indique un lien cassé..
Une idée ? Ma page présentant le problème: http://yan.clot.free.fr/wiki/index.php?title=Baou_St_Jeannet merci d'avance...
NB: le fichier image se nomme BaouGaude.jpg et existe avec les droits semblable aux autres images dans ./wiki/images Ycsoft (talk) 12:44, 13 November 2015 (UTC)
- About the Erreur fatale de type « MWException », you need to set $wgShowExceptionDetails to true in LocalSettings.php to see the details of the error message. That will help to see the cause of the problem.
- The part about how to link a file using [[Image: ]] syntax was already discussed here. Have you tried that solution? Ciencia Al Poder (talk) 13:46, 14 November 2015 (UTC)
- Bonjour,
- Une info supplémentaire: je suis chez le fai free.fr qui ne permet PAS d'utiliser l'instruction chmod...
- Voici le détail après ouverture $wgShowExceptionDetails:
- [596ac55a] /wiki/index.php?title=Sp%C3%A9cial:T%C3%A9l%C3%A9verser MWException from line 1856 of /var/www/sda/6/a/yan.clot/wiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'BaouGaudetest.jpg.'
- Backtrace:
- 0 /var/www/sda/6/a/yan.clot/wiki/includes/filerepo/file/LocalFile.php(1148): LocalFile->lock()
- 1 /var/www/sda/6/a/yan.clot/wiki/includes/upload/UploadBase.php(725): LocalFile->upload(string, string, string, integer, array, boolean, User)
- 2 /var/www/sda/6/a/yan.clot/wiki/includes/specials/SpecialUpload.php(484): UploadBase->performUpload(string, string, boolean, User)
- 3 /var/www/sda/6/a/yan.clot/wiki/includes/specials/SpecialUpload.php(195): SpecialUpload->processUpload()
- 4 /var/www/sda/6/a/yan.clot/wiki/includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)
- 5 /var/www/sda/6/a/yan.clot/wiki/includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(NULL)
- 6 /var/www/sda/6/a/yan.clot/wiki/includes/MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)
- 7 /var/www/sda/6/a/yan.clot/wiki/includes/MediaWiki.php(566): MediaWiki->performRequest()
- 8 /var/www/sda/6/a/yan.clot/wiki/includes/MediaWiki.php(414): MediaWiki->main()
- 9 /var/www/sda/6/a/yan.clot/wiki/index.php(41): MediaWiki->run()
- 10 {main} Ycsoft (talk) 10:10, 15 November 2015 (UTC)
- en ce qui concerne "how to link a file using...", j'ai essayé, mais sans succès...: le simple lien fonctionne, mais le résultat est l'affichage du fichier à l'écran... (le résultat recherché étant la demande d'enregistrer le fichier sur la machine local = download)... L'autre solution est impossible chez free.fr car je n'ai pas accès au shell... Ycsoft (talk) 15:35, 15 November 2015 (UTC)
- Someone else seems to have documented the issue, with a solution, here: Manual:Installation Médiawiki chez free.fr Ciencia Al Poder (talk) 17:33, 15 November 2015 (UTC)
- Bonjour,
- J'ai suivi le topo:
- 1: modif: includes/globalfunctions.php (rajoute fonction newFlock retourne toujours vrai)
- 2: modif appel fonctions dans includes/filebackend/FSLockManager.php
- 3: modif appel fonctions dans includes/jobqueue/jobrunner.php
- 4: modif appel fonctions dans includes/utils/UIDGenerator.php
- ==> Toujours le même problème...
- [ac02a71c] /wiki/index.php?title=Sp%C3%A9cial:T%C3%A9l%C3%A9verser MWException from line 1856 of /var/www/sda/6/a/yan.clot/wiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'BaouGaudetest.jpg.'
- Backtrace:
- 0 /var/www/sda/6/a/yan.clot/wiki/includes/filerepo/file/LocalFile.php(1148): LocalFile->lock()
- 1 /var/www/sda/6/a/yan.clot/wiki/includes/upload/UploadBase.php(725): LocalFile->upload(string, string, string, integer, array, boolean, User)
- 2 /var/www/sda/6/a/yan.clot/wiki/includes/specials/SpecialUpload.php(484): UploadBase->performUpload(string, string, boolean, User)
- 3 /var/www/sda/6/a/yan.clot/wiki/includes/specials/SpecialUpload.php(195): SpecialUpload->processUpload()
- 4 /var/www/sda/6/a/yan.clot/wiki/includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)
- 5 /var/www/sda/6/a/yan.clot/wiki/includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(NULL)
- 6 /var/www/sda/6/a/yan.clot/wiki/includes/MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)
- 7 /var/www/sda/6/a/yan.clot/wiki/includes/MediaWiki.php(566): MediaWiki->performRequest()
- 8 /var/www/sda/6/a/yan.clot/wiki/includes/MediaWiki.php(414): MediaWiki->main()
- 9 /var/www/sda/6/a/yan.clot/wiki/index.php(41): MediaWiki->run()
- 10 {main} Ycsoft (talk) 12:38, 16 November 2015 (UTC)
- Bonjour
- je ne sais pas si çà peut avoir un rapport, mais lors de ma migration 1.16.5 vers 1.25.3, le répertoire 'images' existait déjà avec les sous répertoires 'archive', 'deleted', 'lockdir', 'temp' et 'thumb'
- je n'y ai pas touché
- c'est donc l'arorescence de la v1.16.5
- est-ce comptabible avec 1.25.3 ? Ycsoft (talk) 09:42, 17 November 2015 (UTC)
- The folder structure is the same, that shouldn't be a problem Ciencia Al Poder (talk) 10:34, 18 November 2015 (UTC)
- Bonjour,
- La seule solution est elle de revenir à la version antérieure 1.16.5 qui fonctionnait sans problème ? Ycsoft (talk) 14:09, 21 November 2015 (UTC)
- finalement, j'ai refais la manipulation et ce coup ci, çà fonctionne !
- j'avais surement dû oublier quelquechose !
- Merci encore ! Ycsoft (talk) 11:38, 22 November 2015 (UTC)
skins error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I setup a testwiki with mediawiki 1.25 (latest version), default skin = Vector.
when i try to load another skin such as Gamepress, Blueprint etc. i get blank page or i get this error page:
Whoops! The default skin for your wiki, defined in $wgDefaultSkin as “gamepress”, is not available.
Your installation seems to include the following skins. See Manual: Skin configuration for information how to enable them and choose the default.
bouquet/ Bouquet (disabled)cologneblue/ CologneBlue (enabled)deepsea/ DeepSea (disabled)gamepress/ Gamepress (enabled) <<<<<<<<<<-------------modern/ Modern (enabled)monobook/ MonoBook (enabled)tweeki/ Tweeki (disabled)vector/ Vector (enabled)
in LocalSettings.php:
$wgDefaultSkin = “gamepress”;the same with all other skins behalve the four by installation.
What goes wrong here?
Regards,
Erik
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.25.3 |
| PHP | 5.6.15 (cgi-fcgi) |
| MySQL | 5.5.45-log |
Entry point URLs
| Entry point | URL |
|---|---|
| Article path | /testwiki/index.php?title=$1
|
| Script path | /testwiki
|
| index.php | /testwiki/index.php
|
| api.php | /testwiki/api.php
|
| load.php | /testwiki/load.php
|
Installed skins
| Skin | Version | License | Description | Authors |
|---|---|---|---|---|
| Cologne Blue | – | GPL-2.0+ | A lightweight skin with minimal formatting | Lee Daniel Crocker and others |
| Gamepress | 1.0.6 | Easy-to-use gaming-oriented skin | Aleksandra Łączek and Jack Phoenix | |
| Modern | – | GPL-2.0+ | A blue/grey theme with sidebar and top bar. Derived from MonoBook | River Tarnell and others |
| MonoBook | – | GPL-2.0+ | The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background | Gabriel Wicke and others |
| Vector | – | GPL-2.0+ | Modern version of MonoBook with fresh look and many usability improvements | Trevor Parscal, Roan Kattouw and others |
Installed extensions
| Parser hooks | ||||
|---|---|---|---|---|
| Extension | Version | License | Description | Authors |
| ParserFunctions | 1.6.0 | License | Enhance parser with logical functions | Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic |
| Media handlers | ||||
| Extension | Version | License | Description | Authors |
| PDF Handler | – | GPL-2.0+ | Handler for viewing PDF files in image mode. | Martin Seidel and Mike Połtyn |
| Spam prevention | ||||
| Extension | Version | License | Description | Authors |
| SpamBlacklist | – | Regex-based anti-spam tool allowing to blacklist URLs in pages and email addresses for registered users | Tim Starling, John Du Hart and Daniel Kinzler | |
| Other | ||||
| Extension | Version | License | Description | Authors |
| WikiEditor | 0.4.0 | License | Provides an extendable wikitext editing interface and many feature-providing modules | Trevor Parscal, Roan Kattouw, Nimish Gautam and Adam Miller |
Installed libraries
| Library | Version |
|---|---|
| cssjanus/cssjanus | 1.1.1 |
| leafo/lessphp | 0.5.0 |
| liuggio/statsd-php-client | 1.0.12 |
| oojs/oojs-ui | 0.11.3 |
| psr/log | 1.0.0 |
| wikimedia/cdb | 1.0.1 |
| wikimedia/composer-merge-plugin | 1.0.0 |
| wikimedia/utfnormal | 1.0.2 |
| zordius/lightncandy | 0.18 |
, , and
anchorencode, basepagename, basepagenamee, canonicalurl, canonicalurle, cascadingsources, defaultsort, displaytitle, expr, filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl, fullurle, gender, grammar, if, ifeq, iferror, ifexist, ifexpr, int, language, lc, lcfirst, localurl, localurle, namespace, namespacee, namespacenumber, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pageid, pagename, pagenamee, pagesincategory, pagesize, plural, protectionlevel, rel2abs, revisionday, revisionday2, revisionid, revisionmonth, revisionmonth1, revisiontimestamp, revisionuser, revisionyear, rootpagename, rootpagenamee, special, speciale, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename, subpagenamee, switch, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel, titleparts, uc, ucfirst and urlencode
- What you have there in LocalSettings.php looks good. Is it maybe relevant to first include the skin file and to later set it as default skin? Meaning: Does it help to change the order of these lines?
- If this does not help, then I would search the source code for the error message "The default skin for your wiki, defined in". Obviously, this text is coming from the language label called "default-skin-not-found". I would then search for this label and read the code to see, under which conditions this error happens. That should help prevent these conditions... 88.130.85.8 (talk) 12:42, 14 November 2015 (UTC)
- "Meaning: Does it help to change the order of these lines?"
- I tried it, but no changes.
- searching the source code a little later, because this ask more time from me.
- Thanks for your reply! 80.56.217.247 (talk) 10:01, 16 November 2015 (UTC)
- Maybe there's an issue with the new skin registration system... try using wfLoadSkin( 'Gamepress' ); instead of require_once "$IP/skins/Gamepress/Gamepress.php"; Ciencia Al Poder (talk) 10:15, 17 November 2015 (UTC)
- Looks like you've got some curly quotes around gamepress in LocalSettings.php! Try changing them to single quotes
' '. This, that and the other (talk) 02:55, 18 November 2015 (UTC)
Wrong parentid values in enwiki XML dumps
Hi,
I'm working with the enwiki-20151002 dump, and have noticed many cases (around 170k) where the parentid value in a revision is wrong.
Easiest example to verify this:
In file enwiki-20151002-pages-meta-history14.xml-p003920011p003924999.7z (16MB), you may find this:
<revision>
<id>263728646</id>
<parentid>246108841</parentid>
<timestamp>2009-01-13T02:52:26Z</timestamp>
...
</revision>
However, by inspecting the pages history, you may see that 246108841 is not the correct parent, but rather there are two other revisions that happened between 246108841 and 263728646.
Thx,
ealmansi 139.19.61.211 (talk) 15:53, 13 November 2015 (UTC)
- I have file a bugreport. —TheDJ (Not WMF) (talk • contribs) 17:58, 13 November 2015 (UTC)
Searchbar not auto-populating
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.
Manual:$wgEnableMWSuggest is what I used to enable for the searchbar to show me results as I typed. I see this was removed from my previous version (1.19) to my current one (1.25.3) and "enabled by default".
But nothing happens. It does not appear to be enabled and I don't know how to get it back. Help? CvyvvZkmSUDowVf (talk) 02:47, 14 November 2015 (UTC)
- Needed to disable the Vector extension, apparently. Found that in a random place. CvyvvZkmSUDowVf (talk) 03:08, 14 November 2015 (UTC)
i want build a encyclopedia like wikipedia for china
how can i use page from wikipedia? is there any easily way to do this?? Iefnuy (talk) 11:11, 14 November 2015 (UTC)
- Do you want to mirror the Chinese Wikipedia? That is possible...
- Another option would be to export pages from the Chinese WP and to import them into your own wiki. 88.130.85.8 (talk) 12:34, 14 November 2015 (UTC)
- yes . but i also want could edit it for wiki,not just them.
- and how to import them into my own wiki? is there have a way to reach it? a easy way? Iefnuy (talk) 13:53, 14 November 2015 (UTC)
- See https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content for the legal aspects. Malyacko (talk) 09:21, 16 November 2015 (UTC)
- thank you very munch. Iefnuy (talk) 15:20, 16 November 2015 (UTC)
- thank you very munch. Iefnuy (talk) 14:55, 16 November 2015 (UTC)
Memory leak
Hello everyone. There seems to be a memory leak on this wiki: http://dragon-mania-legends-wiki.mobga.me/Main_Page, but we cannot figure out where. Is there a script/extension or any other method to determine the memory leak? 188.24.73.36 (talk) 12:12, 14 November 2015 (UTC)
- As far as I know there doesn't exist one. You might want to check if any one the extensions might cause it by disabling extensions one by one, if you haven't done this already. Wiki13 (talk) 12:25, 14 November 2015 (UTC)
- You should do a small update to MediaWiki 1.25.3 so that your wiki again is secure. Your current version is slightly outdated and may be insecure.
- Apart from that, where do you have memory problems? How do these problems look like? Any error messages? 88.130.85.8 (talk) 12:32, 14 November 2015 (UTC)
- I'll try the one with extensions, but I don't think that might be the problem since those extensions are used by other wikis too.
- Well, at some point, the whole site went down and the server had to be restarted through sudo commands. The chat seems to lag from time to time. As for error messages, when using ?debug=1, this is what I get:
- Warning: array_merge_recursive(): Argument #1 is not an array in /srv/dml-wiki/includes/registration/ExtensionProcessor.php on line 294
- Strict Standards: Only variables should be assigned by reference in /srv/dml-wiki/extensions/DynamicPageList/DPLMain.php on line 53 188.24.73.36 (talk) 19:03, 14 November 2015 (UTC)
- I've replaced DPL (third-party) with DPL3 so the error starting with 'Strict' was replaced by
- Notice: Use of undefined constant DPL_VERSION - assumed 'DPL_VERSION' in /srv/dml-wiki/extensions/DynamicPageList/classes/Parse.php on line 238
- Notice: Undefined offset: 3 in /srv/dml-wiki/extensions/DynamicPageList/classes/ListMode.php on line 97 188.24.73.36 (talk) 01:17, 15 November 2015 (UTC)
- The warning should be fixed; I guess it might be caused by some extension, which you are using. From this message alone it is not possible to say, by which one.
- The undefined constant should in fact get defined before it is used, but having it undefined does not really do harm as far as I can tell. The undefined offset is trivial and not the reason for your problems. If you want to have these two issues fixed, you should contact the authors of the DynamicPageList extension.
- I don't think that these problems can be the reason for any speed issue. What chat is it that you are using and that is lagging from time to time? 88.130.86.62 (talk) 03:38, 16 November 2015 (UTC)
- Well, anyone any suggestions? 188.24.73.36 (talk) 21:50, 16 November 2015 (UTC)
- Oh, sorry, I didn't notice you replied.
- Well, how could I provide you with more information? That's the only thing I am seeing when using ?debug=1. I've looked it up and found something on stacksoverflow, but wasn't really helpful.
- The chat I am using is MediaWikiChat, but I am thinking it's not because of the chat, but because of the memory issue. I've also disabled some of the 'most-consuming' extensions for an hour each such as Abuse filter, Title blacklist, Spam blacklist, Chat, Forums, Mobile Frontend. None had a major impact on the memory. 188.24.73.36 (talk) 21:54, 16 November 2015 (UTC)
- This exact same problem happened again on the same site years later, on a different version of mediawiki. If the issue isn't an extension, then it has to be a javascript addon or something other addon. All must be disabled one-by-one until we know which. So FYI for people having a memory leak, it isn't just extensions, it could be a widget or gadget or some other addon snippet of code. TiltedCerebellum (talk) 03:01, 18 April 2020 (UTC)
MWException from line 337
Hello, I am upgrading old mediawiki 1.16 to 1.25.3, I followed the instruction in Manual:Upgrade but I got this error. Can anyone help please?
[100a9282] /databank/index.php?title=Main_Page MWException from line 337 of /web/htdocs/www.swx.it/home/databank/includes/MagicWord.php: Error: invalid magic word '' Backtrace: #0 /web/htdocs/www.swx.it/home/databank/includes/MagicWord.php(262): MagicWord->load(NULL) #1 /web/htdocs/www.swx.it/home/databank/includes/MagicWord.php(760): MagicWord::get(NULL) #2 /web/htdocs/www.swx.it/home/databank/includes/MagicWord.php(929): MagicWordArray->getHash() #3 /web/htdocs/www.swx.it/home/databank/includes/parser/Parser.php(3465): MagicWordArray->matchStartToEnd(string)
and many others I can't copy there. AaylaSecuraIT (talk) 18:19, 14 November 2015 (UTC)
- Disable all extensions, and then enable them one by one until you find what one causes this error. Be sure all extensions are upgraded as well Ciencia Al Poder (talk) 17:43, 15 November 2015 (UTC)
Size of search box
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.
The default size of the search box has been recently changed. This size was already used on Wikipedia through MediaWiki:Vector.css. GTrang (talk) 22:47, 14 November 2015 (UTC)
- Ummm, thanks for the information? Ciencia Al Poder (talk) 17:37, 15 November 2015 (UTC)
- If the above is true, this means that the fix from MediaWIki:Vector.css can now be removed again. It now is superfluous. 88.130.86.62 (talk) 21:10, 15 November 2015 (UTC)
- It has already been removed by Edokter, answering an edit request on the talk page. GTrang (talk) 22:39, 15 November 2015 (UTC)
- So does this solve your request? 88.130.86.62 (talk) 03:33, 16 November 2015 (UTC)
Sidebar refuses to update.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am trying to get my sidebar to update with some basic edits but everything I try refuses to show. I've tried editing the main sidebar page, the subpage of my languge /en I've purged the cache(s), altered all the cache settings and nothing. I've searched and Google'd following others suggestions which all did not help. I am at a complete loss as to why this page refuses to update. Any ideas? 50.37.20.225 (talk) 08:04, 15 November 2015 (UTC)
- See Manual:Interface/Sidebar and feel free to describe how you perform the "basic edits" exactly. Malyacko (talk) 09:20, 16 November 2015 (UTC)
- Hi, Not OP here, but I have a wiki with this issue. I have followed all the documented steps on the Sidebar Manual from above and it is not working. I have purged the sidebar page, touched LocalSettings.php, truncated objectcache table, ran rebuildmessages.php, disabled all javascript, removed all extensions, tried multiple skins, disabled wgEnableSidebarCache, verified that wgUseDatabaseMessages is set to true. And it still will not update.
- Wiki Link: http://wikimon.net/MediaWiki:Sidebar
- Wiki Version: http://wikimon.net/Special:Version
- Please someone have an answer for me. It's driving me batty. Dkpat (talk) 00:54, 20 November 2015 (UTC)
- You need to ensure you have your system messages in alignment with naming conventions on your personal wiki. For example if you have imported a large amount of templates or help files from mediawiki you may have inadvertently copied system message pages. Go to special pages and verify you don't have a value overriding your main site name. A quick indicator of if this the problem is if you click your site logo, does that target your site main page or mediawiki. If it's media wiki that's a good sign that's part of the problem.
- Another possible issue is you may have a template that is setting the site page name to something else. Basically you have set a variation within your template inadvertently that is overriding or using parser or magic words to change the main page.
- One last possibility is you may have a CSS page/sidebar page on your site itself that is causing reference issues. Give that a go and that might give you your issue.
- Good luck and if anything this gives you a scent to chase.
- AsherGrey AsherGrey (talk) 11:43, 27 December 2015 (UTC)
- I appreciate you chiming in with possible problems! The real culprit in my case was that memcached was failing on the server, and after A root server admin restarted it, the Sidebar updated correctly. Dkpat (talk) 17:32, 20 January 2016 (UTC)
Enable excel spreadsheet upload and enable editing.
Hello,
The details of the mediawiki are as below:-
MediaWiki1.21.2
PHP5.3.3 (Apache Handleri)
MySQL5.1.73-log
You can use the link "http://techmesrv.tk/mediawiki/index.php?title=Special:Version"
for details. This is test link analogous to production one.
I want Microsoft excel to be uploaded and the spreadsheet to be editable. I followed the link, Extension:Spreadsheet but not working.
How can I enable that feature using mediawiki.. Pauljanygodwin (talk) 17:35, 16 November 2015 (UTC)
- Unrelated to your question, but for your own security, please update your MediaWiki installation!
- The Spreadsheet extension has last been updated in May 2013. It might be that it is no longer working with curent versions of MediaWiki.
- Basically, in order to upload files to your installation see Manual:Configuring file uploads! For Excel files, you wil have to allow uploading xls and xlsx files.
- According to the extension manual, the extension then should be able to somehow work with an uploaded file.
- Should you encounter problems or errors, you can find information on how to debug this on Manual:How to debug! 88.130.109.115 (talk) 19:15, 16 November 2015 (UTC)
- Hello,Thank you for reply.I have upgraded to '1.25.3', however, after the upgrade, none of the extensions are working. I have done the following.Changed the entry 'require_once' to 'wfLoadExtensions' in the configuration file '/var/www/html/mediawiki/LocalSettings.php'.
- Executing the below command throws the error.
- ]# php maintenance/convertExtensionToRegistration.php extensions/ClipUpload/ClipUpload.phpPHP Fatal error: Uncaught exception 'Exception' with message '/var/www/html/mediawiki/extensions/ConfirmEdit/extension.json does not exist!' in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php:101Stack trace:#0 /var/www/html/mediawiki/includes/GlobalFunctions.php(200): ExtensionRegistry->queue('/var/www/html/m...')#1 /var/www/html/mediawiki/LocalSettings.php(155): wfLoadExtensions(Array)#2 /var/www/html/mediawiki/maintenance/doMaintenance.php(83): require('/var/www/html/m...')#3 /var/www/html/mediawiki/maintenance/convertExtensionToRegistration.php(226): require_once('/var/www/html/m...')#4 {main}thrown in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php on line 101
- I refrerred the link
- https://www.mediawiki.org/wiki/Manual:Extension_registration#Migration_for_extension_developersKindly assistHello , Pauljanygodwin (talk) 12:18, 19 November 2015 (UTC)
- This problem is happening, because you are using wfLoadExtensions() on an extension, which does not have an extension.json file. See Extension:ConfirmEdit for how to set it up correctly!
- You need to
require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";- the central ConfirmEdit.php file. Then you can include the different captcha mechanisms using wfLoadExtensions(), e.g.
wfLoadExtension( 'ConfirmEdit/QuestyCaptcha' );- to use the Questy Captcha. 88.130.123.139 (talk) 12:28, 19 November 2015 (UTC)
- Hello,
- I have installed required extensions by downloading from below link:-
- https://www.mediawiki.org/wiki/Special:ExtensionDistributor
- Now, what I want is the excel file need to be uploaded and to be editable like 'Google Spreadsheet'. I have installed the spreadsheet and phpexcel(This extension was already installed in ) extension. Still, it is not possible.
- I can upload excel file and it is only available as a link.
- Which extension I need to install for file to be viewed as 'Google Spreadsheet'. Kindly let me know the steps also.
- --Paul Pauljanygodwin (talk) 07:56, 20 November 2015 (UTC)
- Hello,
- Can anyone assist with this query.... Pauljanygodwin (talk) 11:40, 23 November 2015 (UTC)
- I have not used the spreadsheet extension myself.
- The extension works by inserting a <spreadsheet sheet="0" file="SomeExcelFile.xlsx" /> tag in a wiki page. How did that display before and what exactly is it that is no longer working now or that is different now?
- Second aspect: Does the extension allow writing a file? According to Extension:Spreadsheet, it allows reading. It does not mention, that it could also write them. So, if you want a functionality to write tables - like oogle Spreadsheet does - then Extension:Spreadsheet might just not be able to do that. 88.130.105.59 (talk) 12:46, 23 November 2015 (UTC)
- Hello,
- Thanks for the steps. It is working now.
- Right now, I am facing issue with images not loading as shown below. When I click above the image, it shows. Where/How should I check. I cannot find any error log in apache. I only find some error regarding thumbnail which is missing. Assist please... Pauljanygodwin (talk) 13:08, 29 November 2015 (UTC)
- Be sure you haven't set $wgGenerateThumbnailOnParse to false, and the images folder has the correct permissions so the server can write on it new thumbnails.
- You can also try forcing the load of one thumbnail with thumb.php and see if it works or throws any error, in which case setting $wgShowExceptionDetails to true may tell you the error. Ciencia Al Poder (talk) 20:52, 29 November 2015 (UTC)
- Hello,
- 1. $wgGenerateThumbnailOnParse set to 'true' only.
- 2. Images folder has full permission.
- --
- tail /etc/httpd/conf/httpd.conf
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/[^/]+/[^/]+$ /w/thumb_handler.php [L,QSA]
- # If your $wgHashedUploadDirectory is false, remove the first two steps after thumb/
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/[^/]+/[^/]+$ /w/thumb_handler.php [L,QSA]
- # If your $wgHashedUploadDirectory is false, remove the first two steps after thumb/archive/
- --
- 3. $wgShowExceptionDetails to true may tell you the error. The $wgShowExceptionDetails is set to true only.
- [root@nmsinframonitoring ]# grep wgGenerateThumbnailOnParse ./includes/DefaultSettings.php
- $wgGenerateThumbnailOnParse = true;
- [root@nmsinframonitoring ]# ls -ld /var/www/html/xxxwiki/images
- drwxrwxrwx. 22 root root 4096 Nov 26 10:25 /var/www/html/xxxwiki/images
- [root@nmsinframonitoring ]# grep wgShowExceptionDetails LocalSettings.php
- $wgShowExceptionDetails = true;
- [root@nmsinframonitoring ]#
- Still images not loading. Pauljanygodwin (talk) 14:21, 10 December 2015 (UTC)
- Can you please make a request to thumb.php (directly from the browser) passing the appropriate parameters and tell us what do you see? There should be an error message there if it can't generate an image Ciencia Al Poder (talk) 20:44, 10 December 2015 (UTC)
- Hello,
- I do not understand the correct link to be given for 'thump.php'. From my understanding, I have called for thumbs.php. Showing the error as 'Error creating thumbnail: Image was not scaled, is the requested width bigger than the source?'.
- Find the below uploaded links for error, location of thumbs.php, image (Capture.PNG) and way thumbnail is shown on clicking image.
- http://workupload.com/file/iGQ1CGuZ
- http://workupload.com/file/wv3gQtRO
- http://workupload.com/file/1W6Jun6u Pauljanygodwin (talk) 07:15, 20 December 2015 (UTC)
- Ok, the p=206 parameter shouldn't be used here, because PNG images don't have multiple pages. Also, try a smaller width, like 20 or similar (the w=600 parameter), because the error indicates the image is smaller than 600px Ciencia Al Poder (talk) 12:05, 20 December 2015 (UTC)
- Hello,
- Still same error. Check the link.
- http://workupload.com/file/d8YA6ZeN Pauljanygodwin (talk) 06:14, 21 December 2015 (UTC)
- I'm a bit deceived of not having a more meaningful error message on the thumb.php URL having $wgShowExceptionDetails set to true :(
- You can try setting a debug log (see Manual:How to debug#Setting up a debug log file), reload that particular thumb.php URL, and see if it gives more information Ciencia Al Poder (talk) 10:45, 21 December 2015 (UTC)
- Hello,
- I enabled debug logs. This is the error I see in that log, which does not seems to be related to thumb.php.
- [root@xxx]# pwd
- /var/log/mediawiki
- [root@xxxi]# tail debug-wiki.log
- Unstubbing $wgParser on call of $wgParser::setHook from registerEmbedDocumentHandler
- Parser: using preprocessor: Preprocessor_DOM
- Fully initialised
- Connected to database 0 at localhost
- SQL ERROR (ignored): Table 'wiki.poll_info' doesn't exist (localhost)
- SQL ERROR (ignored): Table 'wiki.poll_vote' doesn't exist (localhost)
- [BsMemcached] BsConfig: Fetching settings from DB
- DatabaseBase::query: Writes done: UPDATE `page` SET page_random = RAND() WHERE page_random = N
- SQL ERROR (ignored): Table 'wiki.profiling' doesn't exist (localhost)
- SQL ERROR (ignored): Table 'wiki.hitcounter' doesn't exist (localhost)
- [root@xxx]#
- What I can see from the apache error logs is '400' error, stating request send(http://10.240.11.51/nxtgenwiki/thumb.php?f=Capture1.PNG&w=20) is incorrect. Find the apache error log below.
- <IP> - - [30/Dec/2015:10:57:26 +0530] "GET /nxtgenwiki/thumb.php?f=Capture1.PNG&w=20 HTTP/1.1" 400 268
- Pauljanygodwin (talk) 06:21, 30 December 2015 (UTC)
- Well, that tail of the debug log doesn't correspond to a thumb.php URL request, because thumb.php doesn't need to call the parser. That seems a normal page request. Ciencia Al Poder (talk) 10:41, 30 December 2015 (UTC)
- Hello,
- I think, here apache error log is relevant and I see that it is throwing 400 error saying request send is incorrect. See the error log for details.
- [30/Dec/2015:10:57:26 +0530] "GET /nxtgenwiki/thumb.php?f=Capture1.PNG&w=20 HTTP/1.1" 400 268
- Is there any issue here ? Pauljanygodwin (talk) 12:22, 30 December 2015 (UTC)
- It may be that the request doesn't even arrive to mediawiki because apache throws the error.
- That error may be caused by incorrect rewrite rules Ciencia Al Poder (talk) 20:38, 30 December 2015 (UTC)
- Hello,
- Issue with images not loading is fixed by changing the pixel size.
- --File:m2.PNG|400px----
- Once the pixel size is raised, images started loading.
- ---File:m2.PNG|800px--
- This way, increasing pixel size fixed this issue for all. Pauljanygodwin (talk) 11:56, 26 January 2016 (UTC)
API (ajax): Check if categories are in certain parent categories
What's the best way to check if an array of categories is in a ceratin category? E.g. check if Edit is in MediaWiki components:
var test = inCats( "Edit", "MediaWiki components" );
test should return true or the name "MediaWiki components" so I can have fun with the tested cats.
I wrote a function but wasted hours on the each loop in the ajax result: http://stackoverflow.com/questions/33745653/return-falue-from-function-ajax-data-each Subfader (talk) 22:48, 16 November 2015 (UTC)
- Nobody? So maybe I should use the PHP API instead. Subfader (talk) 11:44, 18 November 2015 (UTC)
Comment extension this support desk is using?
Hi all,
I was interested in utilizing a threaded, comment-style talk system on my wiki and felt like this one here at the support desk was one of the best examples. It seems as if mediawiki uses "Liquid Threads" here, but when I go to the extension page, it has multiple warnings about being unsupported.
Any ideas how this threading system then works, or any suggestions on your own favorite extension for a similar effect?
Thanks, Josh Joshkking (talk) 02:15, 17 November 2015 (UTC)
- It's Extension:Flow on this page. AKlapper (WMF) (talk) 07:20, 17 November 2015 (UTC)
- Ah, I thought Flow was still in beta. Does mediawiki use a more refined version of Flow, or does this page just make-do with the beta status? Joshkking (talk) 13:40, 17 November 2015 (UTC)
Automatically adding text across a whole namespace?
Hi all,
Does anyone know a way to automatically add text/format pages for all pages in a namespace upon their creation?
I'm familiar with semantic forms and have seen the manual on preloaded text, but as I'd like to do this for all the "Talk" pages on my wiki, neither of the mentioned are viable choices.
Thanks, Josh Joshkking (talk) 02:18, 17 November 2015 (UTC)
Alternatives to Pipe ?
I would like to send multiple search requests to wikipedia api using Query:List=search
(/w/api.php?action=query&list=search&format=json&srsearch=keyword1|keyword2|keyword3......)
Pipe (|) doesn't work , is there any other alternative ? 180.151.140.7 (talk) 12:47, 17 November 2015 (UTC)
- I'm pretty sure the search api doesn't allow multiple different searches in one request Ciencia Al Poder (talk) 10:33, 18 November 2015 (UTC)
Visual Editor
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone,
This may be a dumb question. We have been running MediaWiki 1.23.3 and Visual Editor 0.1.0. Is there any update to Visual Editor? Also will Visual Editor be included in the new releases of MediaWiki?
Thanks. 184.61.135.254 (talk) 15:32, 17 November 2015 (UTC)
- VisualEditor is constantly updated, but to keep up for those updates you'd need to run the current master of MediaWiki code from git, because it uses new features not available on latests stable releases of MediaWiki. Ciencia Al Poder (talk) 10:32, 18 November 2015 (UTC)
- Thanks Ciencia. I updated the MW 1.25 and realized I had to update Visual Editor and Parsoid extensions. I am all good now. 184.61.135.254 (talk) 17:43, 19 November 2015 (UTC)
Low resolution images getting different URL's on two Wiki sites
Hi
We have two Media Wiki sites
On one of the sites, If I use a tag like the following:
[[Image:virgin-atlantic-waste-gas-fuel.jpg | 200px]]
[[Image:virgin-atlantic-waste-gas-fuel.jpg]]
The page's source HTML reads like the following:
</p><p><a href="/wiki/index.php?title=File:Virgin-atlantic-waste-gas-fuel.jpg" class="image"><img alt="Virgin-atlantic-waste-gas-fuel.jpg" src="/wiki/images/1/1f/Virgin-atlantic-waste-gas-fuel.jpg" width="200" height="155"/></a>
</p><p><br />
<a href="/wiki/index.php?title=File:Virgin-atlantic-waste-gas-fuel.jpg" class="image"><img alt="Virgin-atlantic-waste-gas-fuel.jpg" src="/wiki/images/1/1f/Virgin-atlantic-waste-gas-fuel.jpg" width="728" height="565" /></a>
</p>
On the other site
In a new wiki article we entered the below text:
[[File:Example.jpg]]
[[File:Example.jpg| 100px]]
Looking at the source code of the generated page:
Looking at the source code of the generated page:
</p><p><a href="/sandbox/index.php/File:Example.jpg" class="image"><img alt="Example.jpg" src="http://ServerName/WikiImages//sandbox/a/a9/Example.jpg" width="400" height="267" /></a>
</p><p><a href="/sandbox/index.php/File:Example.jpg" class="image"><img alt="Example.jpg" src="ServerName/WikiImages//sandbox/thumb/a/a9/Example.jpg/100px-Example.jpg" width="100" height="67" /></a>
I cannot understand the difference between the two wiki sites
any ideas why the images are stored differently
in the second case the code automatically puts the images in a folder which has the image name and then renames the low res image as well
Any ideas
Thanks NavRitu (talk) 15:53, 17 November 2015 (UTC)
- It may depend on different MediaWiki versions.
- And also the original size of the image. If the original image is smaller than the thumb, MediaWiki normally shouldn't create a new file that's larger than the original, except for rasterized SVG. Ciencia Al Poder (talk) 10:30, 18 November 2015 (UTC)
Magic word "NUMBEROFUSERS" shows zero
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.
Since the registration of a new user named "Lok991754-3" the magic word "NUMBEROFUSERS" shows zero. This happens here:
http://www.mobadaten.info/wiki/Spezial:Statistik
The wiki runs on Mediwiki 1.23.11 - the current LTS version. Before the registration of that specific user the magic word shows the correct numbers of registered users.
One could think, it is the hyphen in the username, that is causing the effect.
Thanks in advance for some advice to repair the magic word. Wgkderdicke (talk) 00:13, 18 November 2015 (UTC)
- The magic word NUMBEROFUSERS is using this function:
- https://github.com/wikimedia/mediawiki/blob/31cd8cd486ca2573ae56949f9eb0c575985d985c/includes/SiteStats.php#L156
- So it basically reads the value from ss_users from the [[Manual:|site_stats]] table. And that value should basically be the result of
SELECT COUNT(*) FROM user;- There might be a maintenance script called initStats.php, which fills the site_stats table again. However, the easiest fix might be to run the count query from above and to manually set the ss_users field to the according value. 88.130.68.127 (talk) 00:56, 18 November 2015 (UTC)
- If you have shell access on the server, change to your MediaWiki installation directory and execute the following command:
php maintenance/initSiteStats.php --updateThis, that and the other (talk) 02:48, 18 November 2015 (UTC)- I have chosen the easy way, as suggested by 88.130.68.127. The magic word tells again the numbers of users. I should keep an eye on that counter in case of new registrations. Tanks once again. Wgkderdicke (talk) 22:58, 18 November 2015 (UTC)
Can't upload Mediawiki 1.25 - 7GB database
I upgraded from 1.19 to 1.25 but it did not load up properly.
Was this due to the size of the database? Kuhitkuhit (talk) 03:13, 18 November 2015 (UTC)
- Could you please elaborate on "did not load up"? Ciencia Al Poder (talk) 10:28, 18 November 2015 (UTC)
Error with subsections
Hi,
We have an error when we have several subchapters on a wikipage and there is one user working on one subchapter and another on another chapter. There is error on saving and we cannot save, unless the user try multiple times and keep a draft in microsoft word.
What could be the problem?
Best regars
Jon Jonbhaug (talk) 09:11, 18 November 2015 (UTC)
- If you get an error message, that would be useful to know what's happening. Ciencia Al Poder (talk) 10:27, 18 November 2015 (UTC)
- I got an note that it was a bug in mediawiki, making it not possible to work on same webpage and different section at the same time. Jonbhaug (talk) 08:54, 20 November 2015 (UTC)
User admin for 1.25.3
I just updated to 1.25. The User admin extension from my previous version is not working, getting an internal server error. I cannot find any new extensions.
MediaWiki 1.25.3
PHP 5.3.10-1ubuntu3.11 (apache2handler)
MySQL 5.5.31-0ubuntu0.12.04.1 193.127.238.42 (talk) 14:12, 18 November 2015 (UTC)
- The Extension:UserAdmin is currently not compatible with MediaWiki 1.21 and newer. This extension is looking for a maintainer - maybe you can help here!
- First step: Follow the steps on how to debug in order to debug this error. Then reproduce the error again to see, what the exact error message is! 88.130.123.139 (talk) 14:32, 18 November 2015 (UTC)
- Another solution: Reading the Readme of this extension, I realize that most of its functionality is available through other extensions, which are compatible with MediaWiki 1.25.
- What are the functions you used it for? 88.130.123.139 (talk) 14:34, 18 November 2015 (UTC)
- More for user administration, creating accounts, deleting. so forth. 193.127.238.42 (talk) 14:56, 18 November 2015 (UTC)
- If configured accordingly, many aspects, which I would call "user administration" can be done by normal administrators (e.g. blocking, assigning permission and so on). For the deletion of accounts you might be interested in Extension:UserMerge. Together with Extension:Nuke you will also be able to mass-delete spam pages (see Manual:Combating spam. 88.130.123.139 (talk) 19:49, 18 November 2015 (UTC)
Vietnamese
Vietnamese: Tôi có thể đề tên của tôi khi biên soạn 1 đoạn trên wiki không? Vì nội dung của tôi đi kèm với nội dung người khác. Tôi muốn họ biết đó là những đoạn của riêng các tác giả khác nhau.
From Google Translate: Can I name my problem when compiling one paragraph on wiki it? Since content comes with different content. I want them to know it's own pieces of different authors. Duongdunginfo (talk) 15:49, 18 November 2015 (UTC)
- Hi!
- I understand you are speaking about different paragraphs in your wiki. You want that people know, that different texts have been written by different people.
- One way to show people, who wrote a text, is to add a signature behind the text like so: --~~~~. In your own wiki you can do this. In Wikipedia articles, this is not done. 88.130.123.139 (talk) 19:58, 18 November 2015 (UTC)
- Or, in Vietnamese with Google Translate: Tôi hiểu bạn đang nói về đoạn khác nhau trong wiki của bạn. Bạn muốn mọi người biết, mà các văn bản khác nhau đã được viết bởi những người khác nhau.
- Một cách để cho mọi người thấy, người đã viết một văn bản, là thêm một chữ ký phía sau văn bản như vậy: --~~~~. Trong wiki riêng của bạn, bạn có thể làm điều này. Trong những bài viết Wikipedia, điều này không được thực hiện. ☠MarkAHershberger☢(talk)☣ 20:06, 18 November 2015 (UTC)
Fetch user email address from mediawiki using API
I am trying to link my wiki to another tool for sharing data, for authentication and user recognition I need to fetch and compare user email address from mediawiki.
I am using APIs for retrieving data, please let me know a way in which I can get the user email address using APIs Anoopjv4 (talk) 17:40, 18 November 2015 (UTC)
- API:Userinfo allows you to get the email address of the currently logged in user.
- I don't know, if you can retrieve the email address of other users using the API - after all this is sensitive data, which needs to be protected. But if you have direct access to the wiki database, you can read it out from there. 88.130.123.139 (talk) 20:01, 18 November 2015 (UTC)
- email address and user preferences are private and there isn't an api to retrieve this info (except for the current logged-in user).
- You can use Extension:OAuth to check that the user is authenticated, by getting the user name Extension:OAuth#Identify the User (optional), but you won't get the email address with OAuth Ciencia Al Poder (talk) 21:37, 18 November 2015 (UTC)
InstantCommons is not working
- Hello everyone,
- InstantCommons on my website (http://ru.factografia.com/) is suddenly not showing the pictures and displaying instead the broken file path in red colour? Its as for Russian and so for Ukranian version. It was working fine during most than one year. What can be the problem?
- Thanks. Klymets (talk) 17:50, 18 November 2015 (UTC)
- This was announced in https://lists.wikimedia.org/pipermail/mediawiki-announce/2015-October/000183.html. If you run a MediaWiki instance you probably want to subscribe to that mailing list. AKlapper (WMF) (talk) 22:33, 18 November 2015 (UTC)
- You should upgrade your wiki. 1.23 is the new LTS. Until that is possible, point your wiki to https. ☠MarkAHershberger☢(talk)☣ 20:04, 18 November 2015 (UTC)
- OK. I try it. Thanks. Klymets (talk) 21:53, 18 November 2015 (UTC)
MediaWiki 1.25.3 Extensions
I keep getting these errors every time I make a change to the LocalSettings.php file. What are the configuration steps I need to take to allow the extensions to go through?
PHP Fatal error: Uncaught exception 'Exception' with message '/var/lib/mediawiki-1.25.3/extensions/Validator/extension.json does not exist!' in /var/lib/mediawiki-1.25.3/includes/registration/ExtensionRegistry.php:101
Stack trace:
#0 /var/lib/mediawiki-1.25.3/includes/GlobalFunctions.php(181): ExtensionRegistry->queue('/var/lib/mediaw...')
#1 /var/lib/mediawiki-1.25.3/LocalSettings.php(200): wfLoadExtension('Validator')
#2 /var/lib/mediawiki-1.25.3/maintenance/doMaintenance.php(83): require('/var/lib/mediaw...')
#3 /var/lib/mediawiki-1.25.3/maintenance/update.php(216): require_once('/var/lib/mediaw...')
#4 {main}
thrown in /var/lib/mediawiki-1.25.3/includes/registration/ExtensionRegistry.php on line 101
216.252.207.22 (talk) 19:38, 18 November 2015 (UTC)
- I'm going to guess that you didn't read the installation instructions: [2] ☠MarkAHershberger☢(talk)☣ 19:57, 18 November 2015 (UTC)
LDAP Authentication Error (ldap_connect)
Hi,
LDAP authentication keeps failing. I have already installed the updated plugin.
The code within LocalSettings.php works, but debuglog shows:
- Start request POST /index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page HTTP HEADERS: HOST: mis-wiki.gbsorg.net CONNECTION: keep-alive CONTENT-LENGTH: 132 CACHE-CONTROL: max-age=0 ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 ORIGIN: http://mis-wiki.gbsorg.net UPGRADE-INSECURE-REQUESTS: 1 USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 CONTENT-TYPE: application/x-www-form-urlencoded REFERER: http://mis-wiki.gbsorg.net/index.php?title=Special:UserLogin&returnto=Main+Page ACCEPT-ENCODING: gzip, deflate ACCEPT-LANGUAGE: en-US,en;q=0.8 COOKIE: mis_wikiUserName=Administrator; mis_wikiLoggedOut=1447893258; mis_wiki_session=3o7btlqe9abn40mrlcf1rbq2e2
- [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff
- [caches] LocalisationCache: using store LCStoreDB
- Fully initialised
- IP: 10.54.9.20
- Schema "mediawiki" added to the search path
- Connected to database 0 at 10.54.1.21
- [MessageCache] MessageCache::load: Loading en... got from global cache
- [ldap] 2.1.0 Entering validDomain
- [ldap] 2.1.0 User is using a valid domain (CONCENTRIX).
- [ldap] 2.1.0 Setting domain as: CONCENTRIX
- Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser
- Parser: using preprocessor: Preprocessor_DOM
- Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
- [ldap] 2.1.0 Entering getCanonicalName
- [ldap] 2.1.0 Username is: Donneil.matugas
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Munged username: Donneil.matugas
- User: cache miss for user 2
- User: loading options for user 2 from database.
- [ldap] 2.1.0 Entering authenticate for username Donneil.matugas
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering Connect
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Using SSL
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Using servers: ldaps://concentrix.com:636
- [error-json] {"id":"71ee2b5d","type":"ErrorException","file":"/home/webuser/apps/mediawiki/extensions/LdapAuthentication/LdapAuthentication.php","line":169,"message":"PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine","suppressed":true,"url":"/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page","backtrace":[{"function":"handleError","class":"MWExceptionHandler","type":"::","args":["integer","string","string","integer","array"]},{"file":"/home/webuser/apps/mediawiki/extensions/LdapAuthentication/LdapAuthentication.php","line":169,"function":"ldap_connect","args":["string","integer"]},{"file":"/home/webuser/apps/mediawiki/extensions/LdapAuthentication/LdapAuthentication.php","line":605,"function":"ldap_connect","class":"LdapAuthenticationPlugin","type":"::","args":["string"]},{"file":"/home/webuser/apps/mediawiki/extensions/LdapAuthentication/LdapAuthentication.php","line":678,"function":"connect","class":"LdapAuthenticationPlugin","type":"->","args":[]},{"file":"/home/webuser/apps/mediawiki/includes/User.php","line":3938,"function":"authenticate","class":"LdapAuthenticationPlugin","type":"->","args":["string","string"]},{"file":"/home/webuser/apps/mediawiki/includes/specials/SpecialUserlogin.php","line":747,"function":"checkPassword","class":"User","type":"->","args":["string"]},{"file":"/home/webuser/apps/mediawiki/includes/specials/SpecialUserlogin.php","line":912,"function":"authenticateUserData","class":"LoginForm","type":"->","args":[]},{"file":"/home/webuser/apps/mediawiki/includes/specials/SpecialUserlogin.php","line":322,"function":"processLogin","class":"LoginForm","type":"->","args":[]},{"file":"/home/webuser/apps/mediawiki/includes/specialpage/SpecialPage.php","line":384,"function":"execute","class":"LoginForm","type":"->","args":["NULL"]},{"file":"/home/webuser/apps/mediawiki/includes/specialpage/SpecialPageFactory.php","line":582,"function":"run","class":"SpecialPage","type":"->","args":["NULL"]},{"file":"/home/webuser/apps/mediawiki/includes/MediaWiki.php","line":267,"function":"executePath","class":"SpecialPageFactory","type":"::","args":["Title","RequestContext"]},{"file":"/home/webuser/apps/mediawiki/includes/MediaWiki.php","line":566,"function":"performRequest","class":"MediaWiki","type":"->","args":[]},{"file":"/home/webuser/apps/mediawiki/includes/MediaWiki.php","line":414,"function":"main","class":"MediaWiki","type":"->","args":[]},{"file":"/home/webuser/apps/mediawiki/index.php","line":41,"function":"run","class":"MediaWiki","type":"->","args":[]}]}
- [ldap] 2.1.0 PHP's LDAP connect method returned null, this likely implies a misconfiguration of the plugin.
- [ldap] 2.1.0 Entering strict.
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Returning true in strict().
- [ldap] 2.1.0 Entering allowPasswordChange
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering modifyUITemplate
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [ldap] 2.1.0 Entering getDomain
- [gitinfo] Computed cacheFile= for /home/webuser/apps/mediawiki
- [gitinfo] Cache incomplete for /home/webuser/apps/mediawiki
- DarthLynux (talk) 02:49, 19 November 2015 (UTC)
- Ignore the TimZone error, that's already been fixed. DarthLynux (talk) 07:21, 19 November 2015 (UTC)
List of disambiguation pages with more links
Is there a list of disambiguation pages with more links for every language?
There is a list, but it is olny for English Wikipedia Vivaelcelta (talk) 04:08, 19 November 2015 (UTC)
Receiving a database error when trying to make new pages or look at account page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We have installed the mediawiki software and it is up to date. We have tried two ways of making a new page, both of which result in a database error.
1) Making a link on the existing main page, then clicking on that link to edit, which results in the following error:
A database query error has occurred. This may indicate a bug in the software.
- Query:SELECT pt_user AS user,pt_reason AS reason,pt_expiry AS expiry,pt_create_perm AS permission FROM [SP].[protected_titles] WHERE pt_namespace = '0' AND pt_title = 'JP_Morgan_Chase'
- Function:
Title::getTitleProtection - Error: 156 [SQLSTATE 42000][Error Code 156][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near the keyword 'user'. [SQLSTATE 42000][Error Code 8180][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Statement(s) could not be prepared. [SQLSTATE 01000][Error Code 16954][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Executing SQL directly; no cursor.
2) Amending the URL from the index.php page, which creates this error:
MediaWiki internal error.
Original exception: [292bc729] /mw/mediawiki-1.25.2/index.php/JPMorganChase DBQueryError from line 1246 of C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\db\Database.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 pt_user AS user,pt_reason AS reason,pt_expiry AS expiry,pt_create_perm AS permission FROM [SP].[protected_titles] WHERE pt_namespace = '0' AND pt_title = 'JPMorganChase'
Function: Title::getTitleProtection
Error: 156 [SQLSTATE 42000][Error Code 156][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near the keyword 'user'.
[SQLSTATE 42000][Error Code 8180][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Statement(s) could not be prepared.
[SQLSTATE 01000][Error Code 16954][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Executing SQL directly; no cursor.
Backtrace:
#0 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\db\Database.php(1205): DatabaseBase->reportQueryError(string, integer, string, string, boolean)
#1 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\db\DatabaseMssql.php(423): DatabaseBase->query(string, string)
#2 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2566): DatabaseMssql->select(string, array, array, string)
#3 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2979): Title->getTitleProtection()
#4 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2815): Title->loadRestrictions()
#5 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2144): Title->getRestrictions(string)
#6 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2485): Title->checkPageRestrictions(string, User, array, string, boolean)
#7 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(1900): Title->getUserPermissionsErrorsInternal(string, User, boolean, boolean)
#8 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(1882): Title->userCan(string, User, boolean)
#9 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\page\Article.php(525): Title->quickUserCan(string, User)
#10 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\actions\ViewAction.php(44): Article->view()
#11 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\MediaWiki.php(395): ViewAction->show()
#12 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\MediaWiki.php(273): MediaWiki->performAction(Article, Title)
#13 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\MediaWiki.php(566): MediaWiki->performRequest()
#14 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\MediaWiki.php(414): MediaWiki->main()
#15 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\index.php(41): MediaWiki->run()
#16 {main}
Exception caught inside exception handler: [2acaaeac] /mw/mediawiki-1.25.2/index.php/JPMorganChase DBQueryError from line 1246 of C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\db\Database.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 pt_user AS user,pt_reason AS reason,pt_expiry AS expiry,pt_create_perm AS permission FROM [SP].[protected_titles] WHERE pt_namespace = '0' AND pt_title = 'JPMorganChase'
Function: Title::getTitleProtection
Error: 156 [SQLSTATE 42000][Error Code 156][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near the keyword 'user'.
[SQLSTATE 42000][Error Code 8180][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Statement(s) could not be prepared.
[SQLSTATE 01000][Error Code 16954][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Executing SQL directly; no cursor.
Backtrace:
#0 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\db\Database.php(1205): DatabaseBase->reportQueryError(string, integer, string, string, boolean)
#1 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\db\DatabaseMssql.php(423): DatabaseBase->query(string, string)
#2 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2566): DatabaseMssql->select(string, array, array, string)
#3 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2979): Title->getTitleProtection()
#4 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2815): Title->loadRestrictions()
#5 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2144): Title->getRestrictions(string)
#6 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(2485): Title->checkPageRestrictions(string, User, array, string, boolean)
#7 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\Title.php(1900): Title->getUserPermissionsErrorsInternal(string, User, string, boolean)
#8 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\skins\Skin.php(663): Title->userCan(string, User)
#9 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\skins\SkinTemplate.php(277): Skin->getUndeleteLink()
#10 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\skins\SkinTemplate.php(230): SkinTemplate->prepareQuickTemplate(OutputPage)
#11 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\OutputPage.php(2288): SkinTemplate->outputPage()
#12 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\exception\MWException.php(204): OutputPage->output()
#13 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\exception\MWException.php(245): MWException->reportHTML()
#14 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\exception\MWExceptionHandler.php(59): MWException->report()
#15 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\exception\MWExceptionHandler.php(169): MWExceptionHandler::report(DBQueryError)
#16 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\includes\MediaWiki.php(428): MWExceptionHandler::handleException(DBQueryError)
#17 C:\inetpub\wwwroot\Support\mw\mediawiki-1.25.2\index.php(41): MediaWiki->run()
#18 {main}
We get the same error as above when trying to click to the user page in the logged in state. It seems to be some kind of error in the SQL query, which is odd because we did not alter any of the code. Any ideas on what could be causing the error?
Many thanks! 66.29.243.106 (talk) 05:03, 19 November 2015 (UTC)
- SQLServer is not supported in MediaWiki. You should use other database server. See Manual:Installation requirements#Database server
- This error has been reported as T118973 Ciencia Al Poder (talk) 10:45, 19 November 2015 (UTC)
- WOOHOO!! the fix in the linked task worked. Thanks so much!! 66.29.243.106 (talk) 21:12, 19 November 2015 (UTC)
Upgrade path from old version to new version
Hello,
We have an older version of MediaWiki installed, 1.16.2. I would like to upgrade it to the latest version 1.25. Can the old version be upgraded without too many issues, or should i step the upgrade, go to 1.20 then 1.24 then 1.25 etc.? Fxsti01 (talk) 20:10, 19 November 2015 (UTC)
- Hi!
- I am glad you asked!
- You should follow our manual at upgrade and you should be fine. Basically you can upgrade in one single step. You might have to do some adjustments regarding your PHP and MySQL versions, like upgrading these versions. Also you should make sure you have a working backup of your wiki (files and database) before you start.
- How difficult your upgrade will be depends on the number of extensions you use, if these extensions are available for the new MediaWiki version as well, on the size of the wiki and some other factors. For simple, smaller wikis with e.g. a few thousand pages and no special extensions, an upgrade should be fairly easy and should go smoothly.
- Finally, should you encounter any errors, don't hesitate to follow how to debug and post further questions here in this thread! 88.130.77.167 (talk) 22:06, 19 November 2015 (UTC)
"redlink=1" -> 302 Moved Temporarily. Change response code to 200?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I've an old Mediawiki Version:
MediaWiki: 1.15.1
PHP: 5.4.45 (cgi-fcgi)
MySQL: 5.5.40-log
Problem/Case:
If article does not exist yet = Red hyperlink it behaves in my version like:
http://xy.com/wiki/index.php?title=AAA&action=edit&redlink=1 - 302 Moved Temporarily
goes to (redirect)
http://xy.com/wiki/AAA - 404 Not Found
Now I see that Wikipedia makes "redlink=1" URL to a HTTP status code 200.
(like https://de.wikipedia.org/w/index.php?title=Procure-to-Pay&action=edit&redlink=1)
How can I change that also in my Mediawiki like Wikipedia?
Was this a mistake/bug (to generate 302 instead of 200) from the version 1.15.1?
(Google Webmasterools discovered this errors too)
Best regards
Mark 2A02:AA16:9100:8300:242C:64BC:84C1:D41A (talk) 20:21, 19 November 2015 (UTC)
- Before you start thinking about error codes, for the security of your own data, you should better upgrade.
- Error code 200 means: The expected content is present at this location. If in contrast, like for a red link, there in fact is no content at the according location, then ending up with an error 404 is correct. Getting a status code of 200 would be wrong. If Wikipedia in fact serves error pages with a 200 status code, then this should be fixed. 88.130.77.167 (talk) 22:01, 19 November 2015 (UTC)
- Yes, upgrade should be the best way, but for the moment I would fix this issue with the HTTP status codes. 2A02:AA16:9100:8300:242C:64BC:84C1:D41A (talk) 22:39, 19 November 2015 (UTC)
- There's no error in wikipedia:
- https://de.wikipedia.org/w/index.php?title=Procure-to-Pay&action=edit&redlink=1 is not a 404 because you're going to the editing form of the page, which does exist. A different thing is to access the page without action=edit.
- The particular &redlink=1 URL parameter is a workaround in case cache fails. For example, you create a page, and an existing link to it doesn't get updated, if you follow a redlink but the article already exists, it will redirect you to the page without presenting the edit window.
- There must be some error in your wiki that makes MediaWiki think that page exists, and it's redirecting you to the article, but in the end it doesn't exist. Ciencia Al Poder (talk) 10:47, 20 November 2015 (UTC)
- @Ciencia Al Poder
- thanks for the explanation!
- I think I found the "error". My Wiki is not a everyone write/create Wiki . So I have in mye LocalSettings.php:
- $wgGroupPermissions['*']['edit'] = false;
- $wgGroupPermissions['*']['createpage'] = false;
- In fact, in this situation a normal user by following a red link come's not to a editing form of the page, because he has no rights to write.
- If I chage both to =true; it works like Wikipedia.
- But whats better for a Website or SEO in my case that only the Admin have rights tho write; to have redlinks with 302 or 200 (If I found a way to make it 200 only for Admins too)?
- Thanks
- Mark 31.10.154.128 (talk) 14:29, 20 November 2015 (UTC)
- Well, that makes sense. In MediaWiki 1.25 the behavior hasn't changed, so I've created T119292 Ciencia Al Poder (talk) 11:49, 21 November 2015 (UTC)
- @Ciencia Al Poder
- I've found a way to redirect the redlinks article page from the old one 302 to the new 200 HTTP status code, although the permission is for all is false.
- Shoud I do that? 31.10.154.128 (talk) 16:14, 22 November 2015 (UTC)
- Do you mean "should do" as in hack MediaWiki core? That's up to you, but see also do not hack MediaWiki core. Ciencia Al Poder (talk) 18:26, 22 November 2015 (UTC)
Where is the Template:CREATIONDATE magic word?
What is the magic word to return the creation date of the current page? Sparkie82 (talk) 20:25, 19 November 2015 (UTC)
- There is no such magic word.
- If you want to add it, a guide is here: Manual:Magic_words. 88.130.77.167 (talk) 21:57, 19 November 2015 (UTC)
Find pages based on last updated?
Is there a code / special page that will allow me to view the list of active pages based upon the date in which they were last updated? 173.186.244.245 (talk) 21:50, 19 November 2015 (UTC)
- You mean Special:RecentChanges? 88.130.77.167 (talk) 21:53, 19 November 2015 (UTC)
- No That shows all the recent changes. I was looking for a list of when the pages themselves were last updated. My goal is to see how long its been since some of the pages were updated to see if they either need to be updated or are outdated and need to be removed from our wiki entirely. 173.186.244.247 (talk) 21:07, 20 November 2015 (UTC)
- Special:AncientPages. Despite the name, it's based on the last edited date, not creation date. 121.214.9.27 (talk) 09:53, 21 November 2015 (UTC)
Clickable .svg image not clickable in wiki page
I've uploaded a clickable .svg file.
It works perfectly in a browser, just as a file. You can click on all the elements.
When I include it as an image in the wiki, though, it only allows a click on the whole image.
Here's the clickable image:
http://takingserviceforward.org/wiki/images/ASM_model.svg
When I include it on a page like this, it doesn't work:
<nowiki>
</nowiki>[[Image:ASM_model.svg|1000px]]
This is what I have in the LocalSettings.php file:
"
require_once "$IP/extensions/NativeSvgHandler/NativeSvgHandler.php";
$wgAllowTitlesInSVG = true;
$wgSVGConverter = false;
" Fustbariclation (talk) 04:40, 20 November 2015 (UTC)
- SVG images are not rendered as SVG on the page, but they are rasterized as a PNG image instead, so browsers that don't support SVG can display it. This is tracked as T5593
- For your particular use case, you may want to use Extension:ImageMap instead, which define regions of an image that link to different pages or external URLs. Ciencia Al Poder (talk) 10:41, 20 November 2015 (UTC)
- Yes, that would be a real nuisance. Oddly, though, if I look at the web inspector in Safari, it actually shows it as an SVG. I've attached the screenshot
- [3] Fustbariclation (talk) 12:28, 21 November 2015 (UTC)
- Ah, I didn't noticed you were using the NativeSvgHandler extension.
- It seems the extension outputs the SVG image inside an <img> tag, but according to this, the resulting image won't be interactive. So basically, the SVG is displayed but doesn't take account user interaction. Ciencia Al Poder (talk) 12:34, 21 November 2015 (UTC)
- Oh, dear! Thank you, though - I'll just have to display it as an external link... maybe I could fake the wiki border to make it look seamless..
- What a pity they strip out the links. I understand that they want to strip out scripts, but links seem to be throwing out the baby with the bathwater. Fustbariclation (talk) 12:37, 21 November 2015 (UTC)
- I wonder if there have been any changes since.
- This is EXACTLY what I would like to do. A link in an SVG (from Draw.io).
- I'll keep searching. Oerzzz (talk) 10:39, 15 March 2018 (UTC)
- Bumping Oerzzz. I also want to be able to do exactly that, from svg's generated in Draw.io.
- Also found that it is currently not possible to upload a Draw.io svg; an error is generated: "This SVG file contains an illegal namespace "http://www.w3.org/1999/xhtml".". Anyone know what the solution to this might be? 217.236.242.245 (talk) 13:58, 22 May 2018 (UTC)
- Look at the code of that svg file. The namespace xhtml is for HTML files, not SVG, hence the error is correct. Are you sure you downloaded a SVG from that page and not a HTML? Ciencia Al Poder (talk) 14:29, 22 May 2018 (UTC)
- It is possible to achieve it by rendering the svg as an html object in the wiki page:
- LocalSettings.php:
$wgRawHtml = true;
- WikiPage:
<html> <object data="http://example/my_file.svg" type="image/svg+xml"> </object> </html>
- It is important to explicitly use the closing tag </object>, otherwise the page will not be rendered correctly. J. Xavier Atero 21:23, 23 July 2019 (UTC)
- Thanks to Xavi. I am at least able to do what I want on my local wiki ! Phcalle (talk) 18:47, 18 March 2021 (UTC)
- @Xavi: While using the object tag works for me, I have the problem that the clicked URLs will only be rendered in the image area, not in the top window, what I would expect when the URLs point to other wiki pages. Omerzu (talk) 12:04, 10 July 2023 (UTC)
Thougts of keeping track of status of article review and mediawiki in a knowledgebased studygroup?
I work in a group at the university with about 10 people working with knowledge. We use mediawiki as a knowledgebase for our project. We receive or find about 100 newsarticles per day, We keep the url adress. Our problem is how to know which reports we have processed, what the information in the report means, who is processing it, and what the status of process is, what it updated in mediawiki. With 100 reports every day, that means up to 365X100 a year. Meaning eventually that the system will brake down if it is not flexibel enoug. Does anyone have an idea or thought of how to solve it within the mediawiki? Jonbhaug (talk) 09:28, 20 November 2015 (UTC)
Is it possible to rename a page without changing its url?
Hello,
I would like to know if it's possible to rename a page without changing its url?
Thank you. 81.192.184.24 (talk) 12:27, 20 November 2015 (UTC)
- No, it's not. The name of the page always is what you will have in the URL.
- What however is possible is to set up a redirect from the old location to the new one. That way people, who access the old URL, will automatically be redirected to the new URL. 88.130.68.148 (talk) 13:00, 20 November 2015 (UTC)
Username conditioned and uploading vs. creating pages
Hello everyone.
I have two questions to ask:
- Is there a possibility to condition username editing based on the user's editing into other namespaces? For example: a user cannot edit his userspace more than the number of edits they have in the main space or category namespace.
- Is there a way to let users, that don't have the create page permission, upload images? Because if a user has the right to upload images, they won't be able to upload anyway since the image creates a page of its own (thus being prevented by not having the create page permission).
Thanks in advance! 79.118.22.67 (talk) 14:49, 20 November 2015 (UTC)
- For the first question: I am not aware that something like that exists, but it should be possible to write an extension, which checks the edit numbers in the different namespaces and then allows or disallows an edit.
- By default, uploading an image always also creates an image page. Therefor the "edit" user right currently is required in order for the "upload" right to take effect. Following this logic, I could imagine that you could allow a user to upload files, if no page got created. However, I don't know of a possibility to get this situation currently. In MediaWiki, all images are bound to a wiki page. This is a basic principle and I don't think it would be easily possible to change this (witout having to change huge parts of MediaWiki). 88.130.68.148 (talk) 16:24, 20 November 2015 (UTC)
Unlinking data ranges on split views
I am using Paraview 4.0.1 64 bit version. I am comparing data mapped onto the same article in two windows side by side. I want to scale the range of one relative to the other but when I change the colour range of one it automatically updates the other to the same range as soon as I click into the second view. Because the update of the second view doesn't happen immediately I could cope using the save screenshot ability, but that imposes the same range on both screen before printing. I have searched the Wiki and the user manual pdf file, and searched the web but failed to find a solution. Any advise would be gratefully received.
Chris 20.133.40.13 (talk) 16:09, 20 November 2015 (UTC)
- This site is for requesting assistance with MediaWiki, a wiki software package. We have no connection with ParaView. For ParaView, check out the resources available at http://www.paraview.org/resources/ This, that and the other (talk) 03:45, 21 November 2015 (UTC)
Scribuntu for Wikipedia Templates
I'm trying to use Scribuntu (from Scribunto-REL1_25-468bfc1.tar.gz) to run Template:Infobox (to start). I'm running MW 1.25.3 with PHP 5.5.9-1ubuntu4.14 (apache2handler) and MySQL 5.5.46-0ubuntu0.14.04.2 (in case you care). I've tried lua 5, 5.1.5 and 5.2.3 packages each with different results. I've read that Lua 5.2 deprecated the setfenv() function which seems to cause it to come to grief. Using 5.1 seems to run for awhile - but for too long with voluminous lua log output of RX and TX messages, occasionally interspersed with this line:
Error: bad argument #1 to 'title.new' (number or string expected, got nil)
...before finally announcing to the browser user:
Lua error: Internal error: The interpreter exited with status 152.
Can't fish anymore, but I hope someone might have a clue as to what can be done to configure it to operate successfully or otherwise diagnose the problem. It obviously runs on Wikipedia. Bill Michaelson (talk) 17:40, 20 November 2015 (UTC)
- According to [4]: CODE 152 means that the program received signal 24 (=152-128). Signal 24 is SIGXCPU.
- SIGXCPU is CPU time limit reached.
- You may need to set or increase the cpuLimit setting (see details in Extension:Scribunto) Ciencia Al Poder (talk) 10:58, 23 November 2015 (UTC)
Unknown column 'page_counter' in 'field list' in mediawiki 1.25.3?
I've setup mediawiki 1.25.3 successfully via CLI (maintanence/install.php). I can see the website just fine, no errors when running the scripts, etc. However, when importing a standard dump (http://dumps.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles-multistream.xml.bz2), I run into loads of 'page_counter' errors such as:
ERROR 1054 (42S22) at line 8458: Unknown column 'page_counter' in 'field list'
OTOH if I manually create the schema shown in http://www.joe0.com/2013/09/30/how-to-create-mysql-database-out-of-wikipedia-xml-dump-enwiki-latest-pages-articles-multistream-xml/ I have no problem with importing the dump.
I've also tried running the update.php script (although this is a fresh installation) right after running install.php, but no scucess. Note that I've tried this directly from 1.25.3 or 1.25.2 and updating the DB tables (via update.php.) 67.188.213.143 (talk) 05:54, 21 November 2015 (UTC)
- The closest and most recent issue I found was Project:Support desk/Flow/2015/09#h-Help:Trying_to_get_MediaWiki_again_going_(backup_MediaWiki_1.13.3)-2015-09-17T15:46:00.000Z other issues which are a few years old mention manually adding the missing SQL but (1) I would expect any known problems to be solved and (2) patching sql cannot be the correct long term solution... 67.188.213.143 (talk) 06:01, 21 November 2015 (UTC)
- You wrote:
However, when importing a standard dump (http://dumps.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles-multistream.xml.bz2), I run into loads of 'page_counter' errors
- What method did you use to import that dump? The
importDump.phpcommand line script? If so, it is very strange that you would get those errors. This, that and the other (talk) 08:58, 21 November 2015 (UTC)- I used the mwdump tool to try to import the dump
- Here's the output from install.php and update.php, everything looks in order -- again this is NOT an update, simply a fresh install http://codepaste.net/qu1ufj
- Any ideas? thanks. 67.188.213.143 (talk) 16:31, 21 November 2015 (UTC)
- It seems that using importDump.php works, however it is painfully slow (it is suggested for a reason to use wmdumper for large dumps -- in this case 45G). All in all it is too slow to be considered usable.
- importDump.php: 0.88 pages/sec 0.88 revs/sec
- wmdumper.jar: 710.038pages/sec 710.027/sec
- That is ridiculous! 67.188.213.143 (talk) 19:06, 21 November 2015 (UTC)
- Hm, I would be inclined to blame PHP for that slowness. It might be faster under HHVM. Or maybe we just need to rewrite MediaWiki's importer... This, that and the other (talk) 06:18, 22 November 2015 (UTC)
- Looking at the URL the user gives on the first post, it seems using Manual:MWDumper, which seems to fail in this case. MWDumper seems to not be updated recently. You may need to install Extension:HitCounters to get those fields back again Ciencia Al Poder (talk) 12:53, 21 November 2015 (UTC)
- I'm running into the same issue. At least the update.php script (which runs successfully, no errors/warnings) mentions the page_counters after installing HitCounters, but still not luck with the described errors...
...page table does not contain page_counter field.67.188.213.143 (talk) 21:16, 21 November 2015 (UTC)- What do you see if you try running the
DESCRIBE page;SQL command from a command-line SQL client? This, that and the other (talk) 06:23, 22 November 2015 (UTC)
Missing sorting tables
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, after adding js and css, missing sorting tables: http://www.floomby.ru/s2/MUfcPH - I do not have. How can I return it? EvangelionI (talk) 20:12, 21 November 2015 (UTC)
- Your screenshot shows a sortable table. Two of the three columns are sortable. You have marked the arrows with a red circle.
- What is the question?
- Does the sorting no longer work?
- With a current version of MediaWiki and the Vector skin, sortable tables should be working out of the box. They are part of MediaWiki and you only need to add the class (was it called "sortable"?) to the table. No need to manually add CSS or JS styles - these styles are already part of the according ResourceLoader module. It should ... just be working. 88.130.99.27 (talk) 20:19, 21 November 2015 (UTC)
- It worked, but now no. http://www.floomby.ru/s2/uUf5Uy EvangelionI (talk) 20:23, 21 November 2015 (UTC)
- Try with
- 88.130.99.27 (talk) 20:36, 21 November 2015 (UTC)
{|class="standard sortable" !N...!!K...!!class="unsortable"|U... |- |D||r||3 |- |} - http://www.floomby.ru/s2/JUf5rw
- I have added the js for the comment with the image. http://www.floomby.ru/s2/3Uf5tU and then the sorting is lost EvangelionI (talk) 20:43, 21 November 2015 (UTC)
- Is the missing function getCookie(). Here I found it here https://github.com/mustafaderyol/Toyota-Japon-Restorant/blob/7bbe66461a9eb466469dd366c0be55ea533a1dce/src/main/webapp/static/script/libs/cookie.js EvangelionI (talk) 11:43, 22 November 2015 (UTC)
Uncheck redirect
Is there a way to have the 'leave a redirect' unchecked by default when moving pages? I have looked everywhere, but could not find any such option nor in default settings.php. 79.118.22.67 (talk) 09:40, 22 November 2015 (UTC)
- I would look for something like this inside my user preferences.
- If you in fact want to change this for all users in your own wiki, then I would set the according user preference (if any) through $wgDefaultUserOptions.
- If such a user preference does not yet exist, it might be an idea to create an according bugreport. 88.130.82.8 (talk) 14:43, 22 November 2015 (UTC)
- That's the first place where I have looked for it and couldn't find it. I don't think it's a bug though. 79.118.22.67 (talk) 15:29, 22 November 2015 (UTC)
- Either such a function is there - then it obviously is not documented in a way that it would be findable. Or this function does not exist, in which case, since you obviously want it, it might make sense to add it. :-) 88.130.82.8 (talk) 16:16, 22 November 2015 (UTC)
viewing new map on zumo590lm
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
hi all,
just downloaded maps of Australia, works great in mapsource and basecamp.
planned my routes in mapsource, sent maps and route to micro sd card, and am unable to view map and routes, have looked at my maps and the osm has a tick, as does cn Europe 2016, but cannot view oz map, help please.
thanks Nastyf1 (talk) 15:19, 22 November 2015 (UTC)
- Hi and welcome on the MediaWiki support desk!
- This page is related to MediaWiki, the software used to run wikis like Wikipedia.
- If your matter is related to MediaWiki, we need more information on how and what you are doing.
- If you in contrast are in fact speaking about a different software (mapsource and basecamp), then you should better ask at different places - where people know more about these softwares. We unfortunately don't. 88.130.82.8 (talk) 16:58, 22 November 2015 (UTC)
Includeonly, noinclude, and onlyinclude with system messages
Do the includeonly, noinclude, and onlyinclude tags work correctly in pages in the MediaWiki namespace? That is, is it true that text within onlyinclude tags will be displayed in system messages if there are any and otherwise, text within includeonly tags will be displayed, but text within noinclude tags will not be displayed? GTrang (talk) 17:02, 22 November 2015 (UTC)
- No. System messages are not transcluded on page like templates. Some of them are parsed, and others are output just escaping HTML. So only includeonly and onlyinclude would be shown on messages that are parsed, or everything (including the tags) if the message is not parsed.
- Also, for performance reasons, you'd want your messages to be lightweight, so avoid using templates and complex tags on them. Ciencia Al Poder (talk) 10:45, 23 November 2015 (UTC)
Images do not show up
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.
In uncyclopedia:tl:destinyjosh:Destiny Josh Gallery, images don't appear. They just show the content of alt= or the filename which is a clickable link to its page. I don't know how to explain this. I need help, please.
See: http://destinyjosh.esy.es/wiki/Destiny_Josh_Gallery
Thanks,
Stranger195 (talk) 10:32, 23 November 2015 (UTC)
- Maybe you have $wgGenerateThumbnailOnParse off?
- I've accessed the file description page of one of them and the file description page had broken thumbs as well. I managed to force the generation of one of them using thumb.php. Ciencia Al Poder (talk) 10:42, 23 November 2015 (UTC)
- Let me check. Luis/stranger195 (talk • contribs • guestbook) 10:49, 23 November 2015 (UTC)
- It was. I changed it to true and all images work!
- Thanks! :) Luis/stranger195 (talk • contribs • guestbook) 10:52, 23 November 2015 (UTC)
Short URL, 404
Setting up a system of Short URL on my wiki, I get page 404.
Wiki is here: jantanoo.info.
At first, I edited .htaccess in my / (which is not physically root, therefore it defined in /.htaccess).
Since I've read I should put all the instructions into the .htaccess that is situated in MW folder, I have done this. But, before and after this, I still get 404.
My hosting provider warned me that I should use directive RewriteBase in the same folder I've installed the script. So, I prefer to define it in both of the root and MW folder.
/.htaccess
# Do not remove this line, otherwise mod_rewrite rules will stop working RewriteBase / DirectoryIndex /w/index.php <FilesMatch "\.(php)$"> php_value auto_append_file none </FilesMatch>
/w/.htaccess (a folder with MW content)
RewriteBase /w/
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
MW 1.19.24. PHP 5.2.* (as listed, only God knows, what does it mean). MySQL 5.1. Атомный трамвай (talk) 10:39, 23 November 2015 (UTC)
- Unrelated to your question: For the security of your own data, you should really update MediaWiki to a supported version!
- Our guide on how to set up short URLs is here: Short URLs.
- Finally, your wiki is not reachable currently - the link you provided only gives an error 404 so that I couldn't have a look at what might be wrong. 88.130.105.59 (talk) 12:50, 23 November 2015 (UTC)
- If it would be reachable, there's no problem. I thought listed configs could show what is wrong by their own.
- I really would like to upgrade MW, but, since I've read that further versions require PHP 5.3 — which is not provided by my hosting provider — I haven't done upgrade.
- I've been reading this manual. If it would help me, I wasn't to write here also. Атомный трамвай (talk) 14:58, 23 November 2015 (UTC)
- I suspect that your rewrite base is wrong. And having two .htaccess files that attempt the rewriting is confusing. If possible, you should put the rewrite rules in the top .htaccess.
- I have to ask: what keeps you on this hosting provider? Effort to move? Cost? Something else?
- Did you ask them if they plan to upgrade php? 5.2.0 was released 9 years ago. The most recent 5.2 release -- 5.2.17 -- was released almost 5 years ago. ☠MarkAHershberger☢(talk)☣ 16:51, 23 November 2015 (UTC)
Default Date upload wizard
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.
You can see here we have to always select date in upload wizard. But before was not like this. There was default current date was selected. This is very useless thing which we do. Who are want to change date they can change from default. But mostly person use today's date. So this is very burden for all. Can someone change this ? ~ NehalDaveND (talk) 12:56, 23 November 2015 (UTC)
- I've created a task in phabricator for this. ☠MarkAHershberger☢(talk)☣ 16:36, 23 November 2015 (UTC)
- Hi!
- We had that feature, but took it out because Commons complained that people were uploading files clearly created in the 19th century (as an example) with a date field of 2015-08-02 or whatever. We decided that a slight inconvenience for some portion of uploaders was better than lots of extra work for Commons admins.
- I hope that makes sense! MarkTraceur (talk) 16:37, 23 November 2015 (UTC)
File upload error permissions windows 2012
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.
OS: Windows Server 2012 R2
Mediawiki 1.23.10
PHP 5.4.24 (cgi-fcgi)
MySQL 5.1.73-community
I receive the upload warning error Could not create directory "mwstore://local-backend/local-public/4/46".
but I have already set the following:
PHP Setting:
file_uploads ON
LocalSettings :
$wgEnableUploads = true;
Permissions Settings:
C:\Windows\Temp - IIS_IUSRS - Full Permissions (previously Read-Execute/Write/Modify
C:\Inetpub\sites\Mediawiki\Images - Full Permissions (previously Read-Execute/Write/Modify
Yet I still am getting the error above and the php log error:
[23-Nov-2015 10:33:27 America/Anchorage] PHP Warning: failed to mkdir "C:\inetpub\sites\Mediawiki\images\8\8f" mode 0777 [Called from wfMkdirParents in C:\inetpub\sites\Mediawiki\includes\GlobalFunctions.php at line 2672] in C:\inetpub\sites\Mediawiki\includes\debug\Debug.php on line 303
Am I missing anything to get file uploads operational?
The Mime message is also a correct type for upload. MindMyBool (talk) 19:59, 23 November 2015 (UTC)
- You said you gave permissions to C:\Inetpub\Mediawiki\Images but MediaWiki is trying to write on C:\inetpub\sites\Mediawiki\images
- Is that a typo? Ciencia Al Poder (talk) 21:23, 23 November 2015 (UTC)
- Yep that is typo, got dropped off when I renamed the directory from its original title. MindMyBool (talk) 22:16, 23 November 2015 (UTC)
Page Replication
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 an interest in replicating a wiki page within an existing page so that when the source page is edited, the replicated pages will reflect that change. Is that a possibility within MediaWiki? Thillhouse2 (talk) 13:25, 24 November 2015 (UTC)
- Apparently, this is called Transclusion. Here is the link to this solution: Transclusion Thillhouse2 (talk) 13:36, 24 November 2015 (UTC)
- Absolutely, transcluding a template is what you should do. 88.130.78.137 (talk) 14:58, 24 November 2015 (UTC)
1.25 Media wiki user administration
Does anyone know of an extension that I can use for user administration. Edit, Delete users. There is nothing currently I can find. 193.127.238.42 (talk) 15:04, 24 November 2015 (UTC)
- See your other topic called "User admin for 1.25.3" for answers. 88.130.78.137 (talk) 16:27, 24 November 2015 (UTC)
Problema installazione
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.
Ciao a tutti, quando vado a installare mediawiki su centos7 ho il seguente errore:
Impossibile trovare un driver adatto per il database! È necessario installare un driver per PHP. I seguenti formati di database sono supportati: MySQL (o compatibile), PostgreSQL, Oracle, Microsoft SQL Server, SQLite.
Se compili PHP autonomamente, riconfiguralo attivando un client database, per esempio utilizzando ./configure --with-mysqli. Qualora avessi installato PHP per mezzo di un pacchetto Debian o Ubuntu, allora devi installare anche il pacchetto php5-mysql.
Cosa sbaglio??
PHP e installato, MariaDb idem... Furlaniyuri (talk) 17:57, 24 November 2015 (UTC)
- Buon giorno!
- I understand that you are trying to install MediaWiki, but MediaWiki tells you that it would not find a usable database system. You are using Debian or Ubuntu with PHP and MariaDB.
- Make sure that MariaDB is actually active. You can check the output of a PHP file with the content
<?php phpinfo()- to see, if MariaDB is activated. If it is not, you still have to activate it. 88.130.78.137 (talk) 18:35, 24 November 2015 (UTC)
- Yes,yes, I am installing mediawiki...
- i have create the file php with the content <?php phpinfo() ; ?>..
- But don't check the output on my browser...
- MariaBd is installed, whene i lunch this comand:
- yum -y install mariadb-server mariadb
- this is message return:
- Il pacchetto 1:mariadb-server-5.5.44-1.el7_1.x86_64 è già installato e aggiornato all'ultima versione
- Il pacchetto 1:mariadb-5.5.44-1.el7_1.x86_64 è già installato e aggiornato all'ultima versione
- Niente da fare
- Where is the problem :(
Furlaniyuri (talk) 08:32, 25 November 2015 (UTC)
sudo yum install php5-mysqli).West Carrollton, Ohio mayor
Hi,
I just looked up to see what wiki had for West Carrollton. The site was updated in October, 2015. Our mayor is Jeff Sanner. I am now wondering how much of the information is incorrect. Do you have local people updating the site? Can this be corrected? Thanks. 64.56.102.50 (talk) 22:34, 24 November 2015 (UTC)
- Hi!
- Obviously there currently is no one, who updated the wikipage of your city - but you can do that:
- When you are on the page (
- ), use the "Edit" tab in the upper right hand corner and you can edit the page yourself! In the table, just replace the name "Brendan Donald" by "Jeff Sanner" and hit the "Save page" button! 88.130.78.137 (talk) 00:20, 25 November 2015 (UTC)
- Yeah, and the working link to the wiki page is en:West Carrollton, Ohio. :-) 88.130.78.137 (talk) 00:22, 25 November 2015 (UTC)
Disable "redlinks" (hyperlink) in MW?
Hello everybody,
short basic question: Can I disable "redlinks" in my old private MediaWiki 1.16?
-> If an article doesn't exists, MediaWiki should not create a hyperlink to (action=edit) in the article page where the "redlink" is written. (not via css .hidden-redlink a.new {display:none !important;})
Like:
In Articlepage:
if reference article exists = echo <a href="/wiki/Article-Name" title="/Article-Name">Article-Name</a>
else
reference article doesn't exists = echo <p>Article-Name</p>
Demo screenshot: http://i.imgur.com/gABc25Z.png?1
Thanks :) 2A02:AA16:9100:8300:6151:29F0:4FEA:DEC5 (talk) 00:49, 25 November 2015 (UTC)
- You should be able to do that using the LinkBegin hook. Ciencia Al Poder (talk) 10:28, 25 November 2015 (UTC)
protected article
how make a protected article? Markazmedia (talk) 09:11, 25 November 2015 (UTC)
[SOLVED] Extension Echo - Invalid object cache type "db-replicated" requested. It is not present in $wgObjectCaches.
Hello guys,
I'm trying to include the Echo extension on my Wiki, but is returning an internal error of Mediawiki.
The exception thrown is as follows:
Invalid object cache type "db-replicated" requested. It is not present in $wgObjectCaches.
Someone would know help me?
Thank you! 189.5.226.97 (talk) 10:46, 25 November 2015 (UTC)
- Which MediaWiki version? Which Echo version? When is that exception thrown exactly? 94.113.130.16 (talk) 11:45, 26 November 2015 (UTC)
- The Wiki version is 1.24.1
- The exception is thrown after login
- With that I can not access Special: Version to check the Echo version
- Is there any place within the extent that I can see which version?
- Anyway, it was the last version available in https://www.mediawiki.org/wiki/Extension:Echo 179.177.231.144 (talk) 13:27, 26 November 2015 (UTC)
- Since you said that you have MediaWiki 1.24, you should download the 1.24 version of Echo, not the "latest version available". Does that solve your problem? This, that and the other (talk) 10:00, 27 November 2015 (UTC)
- Integration problem of Echo extent resolved.
- I downloaded another version, compatible with the version of MediaWiki 1.24 and it worked properly.
- Thank you for your help 189.5.227.24 (talk) 17:23, 1 December 2015 (UTC)
User creation not sending random generated password
- Hi there,
- I am using MediaWiki 1.24.0. When I create new users, and choose "Use a temporary random password and send it to the specified email address" the user will recieve the mail defined in "MediaWiki:Confirmemail_body" but not the random password mail.
- Do I have to enable that some where, or is there a variable containing the password to be used in the "MediaWiki:Confirmemail_body"?
- Thanks a lot! Tormate (talk) 11:05, 25 November 2015 (UTC)
- Furthermore, you are running ancient unsupported software. For your own safety, please upgrade: Download 94.113.130.16 (talk) 11:44, 26 November 2015 (UTC)
- I'm looking into it, but in the meantime, I've created a task in Phabricator since this sounds like a bug. ☠MarkAHershberger☢(talk)☣ 20:11, 25 November 2015 (UTC)
- I just checked the source and your users should be getting the text of [[MediaWiki:createaccount-text]] with the password substituted for $3. ☠MarkAHershberger☢(talk)☣ 20:32, 25 November 2015 (UTC)
How to hide source from anons?
In a custom namespace we save data that contains email addresses. These addresses shouldn't be accessible by anons.
With helpf of the lockdown extension I said that anons can't edit this namespace. However they still can view the source and thus see the email address.
Is there any way to disable "view source" for anons?
The only thing I found was Extension:ProtectSource but it's still in beta... Stefahn (talk) 11:45, 25 November 2015 (UTC)
- Is it enough to remove the links from the UI? You could use the answer hereI.
- I do have a way to hide the source, but it is a custom extension that I've been meaning to improve and release. ☠MarkAHershberger☢(talk)☣ 20:02, 25 November 2015 (UTC)
- Thanks for your reply, Mark.
- Removing the links from the UI is not enough.
- When do you think your extension will be released? Stefahn (talk) 10:00, 22 December 2015 (UTC)
Category retrieval
Would it be possible that I receive help from you on this code: http://pastebin.com/WWnNG96g?
Here is how it works. Using this function <span class="listpages">category (without category:)</span>, the script retrieves all the pages from the specified category one under each other in a bulleted list. It also makes them linkable.
Here is the best example I can come up with
* Page 1
* Page 2
* Page 3
so forth and so on.
What I would like this code to do (apart form what it already does) is to have options to retrieve pages that are in a category and are not in other specified categories. i.e. They are in category 1, category 2 and 3, but I only want to retrieve them if they are in the first category. In addition, I would also wish for a reverse function. i.e. Only if they are in the categories I specify.
That's number 1. Number 2 would be for the list to sort itself automatically on rows after it reaches a certain number. Example: let us say there are 30 pages in there. I would want for those 30 pages to sort themselves 10 on a row (so 3 rows).
Example:
* Page 1
* Page 2
* Page 3
|
* Page 4
* Page 5
* Page 6
Any help is much appreciated and I would be very grateful for it. 79.118.22.67 (talk) 12:58, 25 November 2015 (UTC)
- You can use the API:Categorymembers generator and then use prop=categories, so you get all members of a category and in turn, categories for each page. You'll have to filter on client side, though.
- Example: members of Category:1847 deaths, with their categories Ciencia Al Poder (talk) 10:27, 26 November 2015 (UTC)
- But that doesn't sort it on rows...
- And neither does it make exceptions (i.e. page is in category 1, but is also in category 2 = don't show it). 92.82.28.212 (talk) 21:23, 26 November 2015 (UTC)
- That's what I said, you must do the filtering on client side. There's no API that does that automatically for you. Ciencia Al Poder (talk) 10:06, 27 November 2015 (UTC)
- Well, but isn't there a code/function that can be added to the above script? It would be much easier to just use <span class="listpages">category (without category:)</span>.
- Anyway, how is the filtering done? 92.82.28.212 (talk) 17:13, 27 November 2015 (UTC)
Help with the "code" template importation from wikipedia
Hello, I just copy/pasted lua guiding style from Wikipedia. Now it's missing some template like "code" to be correctly displayed. Would anyone with the necessary permissions do the importation properly? Doing copy/paste is of course possible, but it is not a good way to do it, as all history get lost, and it possibly may concern a lot of manual work if there are templates in the templates, plus all documentations pages. Alternatively, I could also do the import myself if anyone would give me the required system permissions. Psychoslave (talk) 13:46, 25 November 2015 (UTC)
- So, you want someone to delete the page and export the page from Wikipedia with templates and then import it here? ☠MarkAHershberger☢(talk)☣ 19:58, 25 November 2015 (UTC)
- I don't want to delete all templates that the page is using. Just import them here. For the lua coding stlyle page, I'm not against a deletion, but I'm basicaly just demanding to moving it here with a forwarding link. What do you think ? Could you do that ? Psychoslave (talk) 15:56, 5 December 2015 (UTC)
- I'm not opposed to moving it here, but I really have no opinion. Have you posted on the talk page there? ☠MarkAHershberger☢(talk)☣ 19:33, 10 December 2015 (UTC)
- No. ^^ Psychoslave (talk) 00:20, 3 January 2016 (UTC)
How to start a second wiki on a bigger scale - while still running the smaller one
Hi MediWiki makers,
I am using MediaWiki in my company since 7 years now, which turned out to be a big success story: 2500 articles and 2Million page views in a community of 80 engineers!
This was created for one design site. But now, my world went bigger - I am responsible for ~20 design sites, so I intended to start a second wiki on another server. My intention is to keep wiki 1 running (never change a winning team, right?).
However, some of the articles in wiki1 are interesting also in the bigger group.
Any best practice you have for me how to set up wiki 2 is more than welcome. Especially: Is there a possibility, that a search in wiki2 extends the search automatically into wiki1 if nothing was found? and: What is the best method for common articles (like redirects between the wikis? - or something better?)
Thanks a lot for your help !
PS: Searched the help topics, found a bit, but not quite what I was looking for. Sorry if I should have overseen something. Vebert (talk) 16:48, 25 November 2015 (UTC)
- You probably want to set up a wiki farm and have an aggregate search. I don't know how to do the aggregate search, but @Cindy.cicalese has done a lot of work on wiki farms and may have some pointers for you. ☠MarkAHershberger☢(talk)☣ 19:56, 25 November 2015 (UTC)
- Thanks a lot Mark. I will reach out ot Cindy. Vebert (talk) 12:08, 26 November 2015 (UTC)
- We use interwiki linking [0] and some transclusion [1,2] to share content between wikis in our wiki farms. What we use past that we have developed in house and is still experimental. We prototyped several extensions that allow search and diff across wikis in a wiki farm using the interwiki table, but they are not yet ready to be released. Our VIKI extension [3] allows you to create and traverse a network graph of your wiki. We created a plugin for VIKI that allows the network graph to cross wiki boundaries using information from the interwiki table, but we have not yet had a chance to release that plugin.
- This is a topic that we would like to address further when time permits.
- [0] https://www.mediawiki.org/wiki/Manual:Interwiki
- [1] https://www.mediawiki.org/wiki/Transclusion
- [2] https://www.mediawiki.org/wiki/Manual:$wgEnableScaryTranscluding
- [3] https://www.mediawiki.org/wiki/Extension:VIKI Cindy.cicalese (talk) 14:42, 30 November 2015 (UTC)
Mediawiki Visual Editor Read-Only?
Hi there, I have been running the mediawiki for 6 mths, and today the visual editor came up with Error loading data from server: readonly wiki readonly modevisualeditor error loading data from server: readonly wiki readonly mode. Then, it got stuck at the blue progress bar. Ideas? AmazingTrans (talk) 21:16, 25 November 2015 (UTC)
- maybe the parsoid server is not running? Ciencia Al Poder (talk) 21:26, 25 November 2015 (UTC)
Change Title/page name of wiki
Hi:
I'm trying to help out a friend of mine with changing the wiki page for a book that he's written, etc. How can I go about changing the name of the wiki page; currently it states https://en.wikipedia.org/wiki/User:Cdoechogroup (Title: User:Cdoechogroup) and want to change it to be actually what is should state as the title, "Echo Group" (maybe the page be renamed as https://en.wikipedia.org/wiki/Echo Group. How can I make the change?
Your guidance would be greatly appreciated.
Cheer,
DP Dponnamperuma (talk) 17:16, 26 November 2015 (UTC)
- You should move the page. See en:Wikipedia:Moving a page for a guide.
- I am not very familiar with the rules of the English Wikipedia, but your article looks like its styling might still need some adjustment until it looks like the other articles do.
- Apart from the I doubt that the book meets the criteria mentioned in en:Wikipedia:Notability - which could make the article a candidate for deletion... 88.130.80.169 (talk) 19:10, 26 November 2015 (UTC)
[solved] ResourceLoader failed after upgrade to MW1.26.0
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://zh.moegirl.org/load.php?debug=false&lang=zh&modules=startup&only=scripts&skin=vector
Using
| MediaWiki | 1.26.0 |
| HHVM | 3.7.1-dev (srv) |
| MySQL | 5.6.20 |
| ICU | 50.1.2 |
| Elasticsearch | 1.4.2 |
/*
Internal error
Internal error
Problematic modules: {"startup":"error"}
*/
if (window.console && console.error) {console.error("Internal error\n\nInternal error\n\nProblematic modules: {\"startup\":\"error\"}");} Deletedaccount4567435 (talk) 20:58, 26 November 2015 (UTC)
- error message appear even if all extension turned off......
- /*
- exception 'LogicException' with message 'getDefinitionSummary must call parent method' in /wiki/includes/resourceloader/ResourceLoaderModule.php:626
- Stack trace:
- #0 /wiki/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule->getVersionHash()
- #1 (): Closure$ResourceLoader::getCombinedVersion()
- #2 /wiki/includes/resourceloader/ResourceLoader.php(644): array_map()
- #3 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(415): ResourceLoader->getCombinedVersion()
- #4 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(388): ResourceLoaderStartUpModule->getAllModuleHashes()
- #5 /wiki/includes/resourceloader/ResourceLoaderModule.php(624): ResourceLoaderStartUpModule->getDefinitionSummary()
- #6 /wiki/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule->getVersionHash()
- #7 (): Closure$ResourceLoader::getCombinedVersion()
- #8 /wiki/includes/resourceloader/ResourceLoader.php(644): array_map()
- #9 /wiki/includes/resourceloader/ResourceLoader.php(696): ResourceLoader->getCombinedVersion()
- #10 /wiki/load.php(47): ResourceLoader->respond()
- #11 {main}
- exception 'LogicException' with message 'getDefinitionSummary must call parent method' in /wiki/includes/resourceloader/ResourceLoaderModule.php:626
- Stack trace:
- #0 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(216): ResourceLoaderModule->getVersionHash()
- #1 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(361): ResourceLoaderStartUpModule->getModuleRegistrations()
- #2 /wiki/includes/resourceloader/ResourceLoaderModule.php(501): ResourceLoaderStartUpModule->getScript()
- #3 /wiki/includes/resourceloader/ResourceLoaderModule.php(469): ResourceLoaderModule->buildContent()
- #4 /wiki/includes/resourceloader/ResourceLoader.php(998): ResourceLoaderModule->getModuleContent()
- #5 /wiki/includes/resourceloader/ResourceLoader.php(723): ResourceLoader->makeModuleResponse()
- #6 /wiki/load.php(47): ResourceLoader->respond()
- #7 {main}
- Problematic modules: {"startup":"error"}
- */
- if (window.console && console.error) {console.error("exception 'LogicException' with message 'getDefinitionSummary must call parent method' in /wiki/includes/resourceloader/ResourceLoaderModule.php:626\nStack trace:\n#0 /wiki/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule-\u003EgetVersionHash()\n#1 (): Closure$ResourceLoader::getCombinedVersion()\n#2 /wiki/includes/resourceloader/ResourceLoader.php(644): array_map()\n#3 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(415): ResourceLoader-\u003EgetCombinedVersion()\n#4 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(388): ResourceLoaderStartUpModule-\u003EgetAllModuleHashes()\n#5 /wiki/includes/resourceloader/ResourceLoaderModule.php(624): ResourceLoaderStartUpModule-\u003EgetDefinitionSummary()\n#6 /wiki/includes/resourceloader/ResourceLoader.php(643): ResourceLoaderModule-\u003EgetVersionHash()\n#7 (): Closure$ResourceLoader::getCombinedVersion()\n#8 /wiki/includes/resourceloader/ResourceLoader.php(644): array_map()\n#9 /wiki/includes/resourceloader/ResourceLoader.php(696): ResourceLoader-\u003EgetCombinedVersion()\n#10 /wiki/load.php(47): ResourceLoader-\u003Erespond()\n#11 {main}\n\nexception 'LogicException' with message 'getDefinitionSummary must call parent method' in /wiki/includes/resourceloader/ResourceLoaderModule.php:626\nStack trace:\n#0 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(216): ResourceLoaderModule-\u003EgetVersionHash()\n#1 /wiki/includes/resourceloader/ResourceLoaderStartUpModule.php(361): ResourceLoaderStartUpModule-\u003EgetModuleRegistrations()\n#2 /wiki/includes/resourceloader/ResourceLoaderModule.php(501): ResourceLoaderStartUpModule-\u003EgetScript()\n#3 /wiki/includes/resourceloader/ResourceLoaderModule.php(469): ResourceLoaderModule-\u003EbuildContent()\n#4 /wiki/includes/resourceloader/ResourceLoader.php(998): ResourceLoaderModule-\u003EgetModuleContent()\n#5 /wiki/includes/resourceloader/ResourceLoader.php(723): ResourceLoader-\u003EmakeModuleResponse()\n#6 /wiki/load.php(47): ResourceLoader-\u003Erespond()\n#7 {main}\n\nProblematic modules: {\"startup\":\"error\"}");} Deletedaccount4567435 (talk) 21:28, 26 November 2015 (UTC)
- Problem caused by extension EventLogging. download 1.26.0 stable version solve it. (Note: master version of this extension does not work for me) Deletedaccount4567435 (talk) 00:45, 27 November 2015 (UTC)
How to properly install Composer for MW1.26 with hhvm????
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.
There are only hhvm and NO PHP on my server. I can't install php due to conflict problem with other software. I tried to set up
alias composer="hhvm -v ResourceLimit.SocketDefaultTimeout=30 -v Http.SlowQueryThreshold=30000 -v Eval.Jit=false /usr/local/bin/composer"
then run composer update under /wiki , it install something like these:
- Installing jakub-onderka/php-parallel-lint (v0.9)
Loading from cache
- Installing symfony/yaml (v2.7.7)
Loading from cache
- Installing phpunit/php-text-template (1.2.1)
Loading from cache
- Installing phpunit/phpunit-mock-objects (1.2.3)
Resourceloader does not function properly. So I tried run composer update under /wiki/vendor
it
Updating dependencies (including require-dev)
- Removing justinrainbow/json-schema (1.5.0)
- Removing mediawiki/mediawiki-codesniffer (v0.3.0)
- Removing squizlabs/php_codesniffer (2.3.0)
- Removing phpunit/phpunit (3.7.37)
- Removing phpunit/php-code-coverage (1.2.18)
- Removing phpunit/php-file-iterator (1.4.1)
- Removing phpunit/php-token-stream (1.2.2)
- Removing phpunit/php-timer (1.0.7)
- Removing phpunit/phpunit-mock-objects (1.2.3)
- Removing phpunit/php-text-template (1.2.1)
- Removing symfony/yaml (v2.7.7)
- Removing jakub-onderka/php-parallel-lint (v0.9)
- Installing firebase/php-jwt (v2.1.0)
Downloading: 100%
- Installing symfony/process (v2.7.3)
Downloading: 100%
- Installing kzykhys/pygments (v1.0.0)
Downloading: 100%
- Installing ruflin/elastica (2.2.0)
Downloading: 100%
Unfortunately none of these location nor setting get all these package which required by MW installed properly. really needs some help. Deletedaccount4567435 (talk) 22:51, 26 November 2015 (UTC)
- Is this related to the ResourceLoader problem?
- If you are using the release tarball, then you do not need composer at all. The tarball comes with fitting composer files - there is no need to update anything with composer. 88.130.80.169 (talk) 23:18, 26 November 2015 (UTC)
- Yes, I believe that's what instruction wrote.
- However, when you run update.php, it will require you install/update composer for both tar release and git version. Deletedaccount4567435 (talk) 23:41, 26 November 2015 (UTC)
- Yes, I saw that myself, but using composer is not what you should do:
- I olved that problem with these steps:
- I removed the composer stuff from the vendor/ directory again, I removed composer.json and composer.lock from the MediaWiki root folder.
- Then I copied over the contents from the mediawiki tarball again.
- After that running update.php should report that all dependencies are up to date. 88.130.80.169 (talk) 23:54, 26 November 2015 (UTC)
- This work for me! Thank you! They should not include composer.lock file in the tarball Deletedaccount4567435 (talk) 00:44, 27 November 2015 (UTC)
- The tarball does not contain a composer.lock file.
- However, should a wrong or an old lock file be present, it also won't delete it. And this leads to problems. 88.130.80.169 (talk) 00:53, 27 November 2015 (UTC)
- Please unpack tarball on a new and empty folder, not over the old MediaWiki installation, as stated in Manual:Upgrading! Ciencia Al Poder (talk) 10:10, 27 November 2015 (UTC)
how can i delete my mediawiki site??
hello.... as title says i wanna know how can i delete a mediawiki site??? if its possible, only founder of mediawiki site can delete it right?? or can other admins delete it too?? pls give a detailed answer..... 159.203.26.154 (talk) 07:43, 27 November 2015 (UTC)
- Delete the whole site?? Yeah, you'll have to ask the wiki's operator about that... This, that and the other (talk) 09:57, 27 November 2015 (UTC)
- yeah whole site.. so only way to delete mediawiki site is to contact wiki's operater....??? 159.203.26.154 (talk) 12:46, 27 November 2015 (UTC)
- To delete a complete installation you will need file system access to remove the files and you will need the rights to delete the database.
- See Manual:Uninstallation for more details! 88.130.96.210 (talk) 13:41, 27 November 2015 (UTC)
- thanx for link!!
- is there any video or screenshot tutorial for that uninstallation thing, though?? it'd make things easy for me if theres any.... 159.203.26.154 (talk) 14:19, 27 November 2015 (UTC)
- I don't think so. Access the server the way you usually do, through FTP, through a web interface of your host or whatever. Then it is really just deleting files and database. That's all there is to it. :-) 88.130.89.159 (talk) 16:19, 27 November 2015 (UTC)
- There's Manual:Uninstallation FWIW Ciencia Al Poder (talk) 16:34, 27 November 2015 (UTC)
MediaWiki site user authentication?
How can i protect my mediawiki site from being accessed publicly? I am trying to setup a wiki for my company and dont want external users to have access to it. 217.110.186.24 (talk) 09:32, 27 November 2015 (UTC)
MW 1.26: How to fix "style module should define its position explicitly" warning for custom skin?
After updating the latest stable release of Mediawiki 1.26. my custom skin throws the following warning:
Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.addThis ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in \w\includes\OutputPage.php at line 621] in C:\xampp\htdocs\w\includes\debug\MWDebug.php on line 300
According to this page this can be fixed via editing the skins' skin.json, which is currently not existing for my skin (has never been required before). Does anyone know how to fix this?
In the release notes (line 95 ff) it's also mentioned that all skis and extensions should have set a ""manifest_version" property corresponding to the schema version they were written for. The only supported version currently is "1"."
So this means all custom skins require a skin.json from now on?
CayceP (talk) 11:20, 27 November 2015 (UTC)
- You can or cannot use a skin.json file. That is not the point.
- The thing is that your skin somewhere defines configuration for ResourceModules: Either in one of its PHP files as $wgResourceModules or in skin.json in ResourceModules. Inside there, below the entry for the styles (e.g. below skins.vector.styles), you will have to add a position like so (code from skin.json of the Vector skin):
"ResourceModules": { "skins.vector.styles": { "position": "top", "styles": { "screen.less": { "media": "screen" }, ...- As for the switch to skin.json: Yes, registering a skin using a skin.json file is the new way to go. See Manual:Extension registration for more details! 88.130.80.169 (talk) 11:38, 27 November 2015 (UTC)
- Yes, I figured that much and tried that, which did not help. Since I created my skin according to the skinning manual, I don't know how/where to provide the the skins.vector.styles
- in my skin.php file, since in the manual is only described on how provide one style name, not several.
$wgResourceModules['skins.foobar'] = array('styles' => array('resources/screen.css' => array( 'media' => 'screen' ),),'remoteSkinPath' => 'FooBar','localBasePath' => __DIR__,);- The only way where I see a possibility to this, is in the skin.json, which means I (and all other people with a custom skin, I presume) have to rebuild my custom skin.
- So I did that, created a new version based on the ExampleSkin, but this didn't work either, it still throws the warning and in now it no longer loads/displays my .css file. CayceP (talk) 17:14, 27 November 2015 (UTC)
$wgResourceModules['skins.foobar'] = array( 'position' => 'top', 'styles' => array( 'resources/screen.css' => array( 'media' => 'screen' ), ), 'remoteSkinPath' => 'FooBar', 'localBasePath' => __DIR__, );
- should solve the problem.
- Using skin.json is an alternative; it also works woth the PHP array, which I posted here. Basically you have to add the "position" key - no matter, if you are using PHP code or a skin.json file. 88.130.97.228 (talk) 17:49, 27 November 2015 (UTC)
- How should this get added to a dependency of an extension, for example SemanticFormsInputs datepicker. I'm using the default Vector skin.
- I had tried added in a position element like below, but doesn't seem to help here and not quite sure what I'm doing. I think it's called the dependency 'jquery.ui.datepicker', but don't know where it's defined.
- $wgResourceModules['ext.semanticformsinputs.datepicker'] = array(
- 'position' => 'top',
- 'localBasePath' => $dir,
- 'remoteExtPath' => 'SemanticFormsInputs',
- 'scripts' => 'libs/datepicker.js',
- 'dependencies' => array(
- 'jquery.ui.datepicker',
- 'ext.semanticforms.main'
- ),
- );
- I had also responded here
- Extension talk:Semantic Forms Inputs/Archive 2/Flow export#h-"style_module_should_define_its_position_explicitly"_when_used_with_1.26alpha_(7-2015-09-28T12:48:00.000Z Kc5vcx (talk) 17:03, 30 November 2015 (UTC)
- Ah ha, it's in resources/Resources.php. This works now. Should it be added to the release (I don't have developer access)?
- 'jquery.ui.datepicker' => array(
- 'position' => 'top',
- 'scripts' => 'resources/lib/jquery.ui/jquery.ui.datepicker.js', Kc5vcx (talk) 17:08, 30 November 2015 (UTC)
- @Kc5vcx, Have you followed How to become a MediaWiki hacker?
- You can also open a task on phabricator. Ciencia Al Poder (talk) 22:24, 30 November 2015 (UTC)
Troubleshooting upload session failure issues
First, appologies - I'm running in Windows Server 2012 in IIS 8.5 and not in any LAMP emulation, PHP manually installed, MySQL running normally. I'm also using the NTLMActiveDirectory extension to authenticate my users against AD and create accounts automatically. I have a question on that extension's talk page for assistance in case it is related.
My symptoms are:
All functions appear to be working normally, including creating/changing/saving pages, however the upload file process results in a "Sorry! We could not process your edit due to a loss of session data." failure. I am not getting this error when using anything except file uploads.
When connected to the host server and using the same upload link via a localhost connection, the file saves perfectly fine.
Permissions appear to be granted properly to the PHP and web folders and I can see that the PHP session folder is populating with files, but uploads do not work outside of localhost.
This is the only clue I have to go on at this point, so I was hoping someone could point me in the right direction. I'm assuming there's a possability that the NTLMActiveDirectory plugin is in play, but that doesn't explain why things work fine (and are also authenticated properly) when on localhost.
So, sorry that this is a windows question, but my hands are mostly tied in terms of the environment available for this project. Jalbarnes (talk) 17:13, 27 November 2015 (UTC)
- Additional info: this is an internal wiki I am setting up for my customer, so I can't provide a link. I also have a DEV server not using the NTLMActiveDirectory plugin that appears to work fine and I don't see any difference in configuration outside of the authentication extension...
- PHP is version 5.5.29 and MediaWiki 1.25.2
- I was hoping that someone could give some clues for this session error based on the difference in functionality between a local and remote connection. Jalbarnes (talk) 18:09, 27 November 2015 (UTC)
MW1.26 can't move page. How to fix this?
Fatal error: include(): Cannot redeclare class cdb\reader in /wiki/vendor/composer/ClassLoader.php on line 412 Deletedaccount4567435 (talk) 17:51, 27 November 2015 (UTC)
- If you upgraded, please be sure to unpack the installation files on a new empty directory instead of overwriting the old files. Ciencia Al Poder (talk) 12:41, 28 November 2015 (UTC)
No LocalSettings - but there is..?
Ok, bizarre situation. I set up a mediawiki yesterday, and at first it kept telling me there was no LocalSettings even though I did put it in the right folder. Now, it is working at some moments and not at others, and it even differs per computer. Yesterday, it wasn't working on my personal laptop, but it was working on a pc at work. Later it was working on my phone, but not on another phone, and now it isn't working on the pc at work, but it is working on my personal laptop. I mean, there seems to be no logic behind this, although I'm sure there is somewhere. Does anyone have any suggestions on where to start looking? The wiki is www.greenofficemaastricht.nl/wiki/ Rgjleclaire (talk) 23:05, 27 November 2015 (UTC)
- Very strange. I have now visited your wiki (well only the "Login required" page actually as the wiki obviously is configured to only show that page to anonymous users), but it seems to be working: The wiki is styled correctly and I do see the login page.
- What exactly do you mean with "does not work"? 88.130.97.228 (talk) 23:41, 27 November 2015 (UTC)
- PS: The LocalSettings.php file is at the right place currently. 88.130.97.228 (talk) 23:42, 27 November 2015 (UTC)
- Hi: when I say it doesn't work, I mean it randomly gives the error that LocalSettings is not present. Sometimes it gives you this error, and sometimes it doesn't.
- It's on different pc's, and switching browser or clearing caches and stuff doesn't seem to matter. I can't explain it. Rgjleclaire (talk) 00:21, 28 November 2015 (UTC)
- Any other ideas? Rgjleclaire (talk) 08:24, 29 November 2015 (UTC)
- Not from my side at the moment, sorry.
- Maybe someone else can help here! 88.130.70.240 (talk) 13:00, 29 November 2015 (UTC)
Splash skin isn't loading after upgrading to MW-1.26
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The skin was working fine in v1.25.2 but now after upgrading my wiki to 1.26 and configuring splash as default skin as before, it just shows plain texts without any styling at all as if there is no skin. 1.39.49.57 (talk) 06:49, 28 November 2015 (UTC)
- Two steps:
- First, at the bottom of your LocalSettings.php file, please add the line
$wgResourceLoaderDebug = true;- Then, second step, please have a look inside the source code of an affected page.
- In the head of this page, you will have a number of links pointing to load.php. Please visit each of these links!
- In all of these links you should see some CSS styles. In your case, you will most likely not have CSS styles, but you will see a PHP error in at least one of these links.
- What is the error message? 88.130.97.228 (talk) 12:23, 28 November 2015 (UTC)
- Hey, Thanks for replying.
- So, I added the code in my localsettings.php and refreshed the main page but it's still the same with no errors showing up anywhere on the page or on any other pages on my wiki. There are no links in the head either.
- Also, every page on the wiki is showing up like this, so it is not just one page issue. The css used "inside" the wiki page is however working fine. The issue is that the navigation links, footer links, site's name, create account/login links, etc are not showing as configured in the skin's CSS. They are like:
- ●Create an account
- ●log in
- Navigation
- ●Main page
- ●recent changes
- ●Random page
- Tools
- ●What links here
- ●Related Changes
- ●Special pages
- ■Main Page
- ■Discussion
- ■Edit
- ■History 1.39.101.40 (talk) 10:15, 29 November 2015 (UTC)
- I've installed it on 1.26 and indeed it fails to load styles. With $wgShowExceptionDetails, loading load.php with &modules=skins.splash&only=styles&skin=splash gives me:
exception 'Less_Exception_Chunk' with message 'ParseError: Unexpected input in screen.less on line 396, column 3 394| border: none; 395| height: 1px; 396| padding: 0; 397| margin: .5em 0; 398| display: list-item !ie; 399| list-style: url('images/hr.png') inside !ie;' in /home/www/lib/mediawiki-1.26.0/vendor/oyejorge/less.php/lib/Less/Parser.php:543- I'm not sure what's up with that line, as removing it gives the same error on the avobe line, etc
- Removing from that line until the end of the ruleset "}" stopts the error, though.
- I suspect there's a bug in the less parser of MediaWiki Ciencia Al Poder (talk) 11:39, 29 November 2015 (UTC)
- Well, probably. Some changes have been done on the screen.less file after it was branched for REL1_26, but they weren't backported to the 1_26 release. I've asked a backport in phab:rSSPL7666707e469dc2f4d3f2810662a0cf22235a9beb Ciencia Al Poder (talk) 11:48, 29 November 2015 (UTC)
- The new less parser of 1.26 chokes on some expressions, which still worked in 1.25. One of these expressions is "!ie". The expression "!ie" can no longer be used - remove it!
- If you need styles, which are only used by Internet Explorer, you can instead use the underscore hack, e.g.
_display: list-item;_list-style: url('images/hr.png') inside;- The according CSS in the Splash skin should be fixed! 88.130.70.240 (talk) 12:54, 29 November 2015 (UTC)
- This message was written by 1.39.50.46, but the filter didn't allow to post it.
- Matiia (talk) 20:04, 29 November 2015 (UTC)
Well, the problem got solved by removing "!ie" from lines 398| display: list-item !ie; & 400| filter: alpha(opacity=0) !ie; as pointed out by Ciencia Al Poder in the error he posted above It looks like it has problem only with the "!ie" in those line. I wonder why the less parser would choke on the expression only in those lines? Anyway, the problem is solved. Thank you '88.130.70.240' and Ciencia Al Poder for helping. You guys are awesome! :)
Flow Extension not load
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 enable flow in this page of my wiki but not load page for post a comment. Beginneruser (talk) 16:48, 28 November 2015 (UTC)
- Maybe unrelated, but the developer console of your web browser shows "Error: Unknown dependency: ext.gadget.enwp-boxes" on that page (which might potentially influence the behavior). AKlapper (WMF) (talk) 11:06, 29 November 2015 (UTC)
- I see a JavaScript error:
Error: Unknown dependency: ext.gadget.enwp-boxes - You seem to have a broken gadget Ciencia Al Poder (talk) 11:10, 29 November 2015 (UTC)
- Tanks soo much.
- Problems was in gadget. Beginneruser (talk) 08:41, 1 December 2015 (UTC)
MW1.26 : javascriptSlideshow extension 1.23
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.
with this new medawiki version I get this error in orange color
Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.slideshow.css ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in C:\wamp\www\mediawiki-1.26.0\includes\OutputPage.php at line 621] in C:\wamp\www\mediawiki-1.26.0\includes\debug\MWDebug.php on line 300
and there is no new version of this exetension : how to solve this warning which mask the top of my site 78.206.72.23 (talk) 17:06, 28 November 2015 (UTC)
- See https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2015/11#h-MW_1.26%3A_How_to_fix_%22style_module_should_define_its_position_explicitly%22_warning-2015-11-27T11%3A20%3A00.000Z
- I'll add this to the Release Note page at 1.26. 88.130.104.228 (talk) 22:28, 28 November 2015 (UTC)
Changing the resoluton of the logo ( $wgLogo )
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 the logo working, but the resolution is poor, so, on a large screen it has poor definition.
I've looked at the .css files, but I'm still not sure, being a novice with css, how I should arrange for a higher resolution image to be used.
This line looks like the correct one to change:
"
/* change the logo */
#p-logo a { background: url(http://en.wikipedia.org/upload/wiki.png) 35% 50% no-repeat !important; }
"
I'm not sure what I should change it to. I tied, in common.css, to do it, but, obviously, I need some guidance. This was my attempt:
#p-logo a { background: url(http://en.wikipedia.org/upload/wiki.png) 35% 50% no-repeat !important;
background-size: 135px 135px;}
I know I'm in the right part of the world, because the logo disappears.
I'm not wanting to change the size, though, I'm wanting to change the resolution. Fustbariclation (talk) 15:44, 29 November 2015 (UTC)
- See Manual:$wgLogoHD Ciencia Al Poder (talk) 20:40, 29 November 2015 (UTC)
- Message posted by Fustbariclation on the summary instead of a new message:
- ----
- I'm still confused. This is purely my misunderstanding, I know, but I have tried looking it up.
- As I understand it, if you have an image of 135px x 135px, then the image has 18225 pixels. That's it. You can't have a higher definition image if you're constrained to 135px x 135px.
- Now, the manual entry above says: "The scaled logo size should be under 135x135 pixels, the same as $wgLogo."
- What do they mean by the 'scaled logo size'?
- My screen has 2560 x 1440pixels, and its aspect ration is 16:9, that is 60cm x 34cm with a screen diagonal of 69cm (27"). So that means that it has 3686400 pixels over 2010cm² - so it has 1834 pixels per cm, or 4658 pixels per inch.
- On this screen, a 135x135 pixel image will be 3686400 / 18225 = 0.0049 of the screen -> 9.85 cm² -> 3.138 cm x 3.138cm in size.
- So, are they saying that, the image should be 9.85 cm² @ 1834 pixels per cm - if it is to be shown on this size screen?
- If that's what they mean, and I'm not sure if this is making sense, then for these devices, a 135 x 135 pixel image would be:
- iPhone 5: 128ppc (326 ppi) - .219cm x .219cm
- IPhone 6Plus: 158ppc (401 ppi) - .270cm x .270cm
- Macbook 12-inch 89ppc (226ppi) - 0.15cm x 0.15cm
- iMac 27" - 9.85 cm² @ 1834ppc - 3.138 cm x 3.138cm in size.
- Is that correct?
- If so, I suppose my three logos ought to be something like:
- 3.138 x 3.138cm @ 1843
- 2.369cm x 2.369 @ 1380
- 1.6cm x 1.6 cm@ 917
- Would that work?
- ---- Ciencia Al Poder (talk) 10:39, 2 December 2015 (UTC)
- The scaled logo size should be under 135x135 pixels
- This means: 2x logo should be under 270x270 pixels (135 * 2), and so on... Ciencia Al Poder (talk) 10:42, 2 December 2015 (UTC)
- Ah, OK, thank you, I've been over complicating it! Fustbariclation (talk) 12:14, 2 December 2015 (UTC)
- After seeing your dialogue, I have improved the documentation at [Manual:$wgLogoHD]] accordingly. 88.130.126.158 (talk) 13:19, 2 December 2015 (UTC)
editing
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
when editing a page the inserted syntax is not recognized by the Mediawiki. The extension WikiEditor is installed. Please help 90.191.190.204 (talk) 18:18, 29 November 2015 (UTC)
- Is that a public wiki and can you provide a link? Which MediaWiki version? For general info, also see How to debug Malyacko (talk) 10:01, 30 November 2015 (UTC)
- Mediawiki 1.26.0
- Yes, this is a public wiki http://www.sakulugu.ee/ This wiki is in Estonian. Please find the article Raamatukogud for example. 213.219.84.59 (talk) 12:24, 30 November 2015 (UTC)
- On your page http://www.sakulugu.ee/Raamatukogud, wiki syntax basically is working. Although the "ref" tag is not recognized correctly, the extension Cite is installed.
- Reason for your problems is the <nowiki> tag, which you have in the middle of the text and which is not closed. So, if MediaWiki does no longer parse following text on that page, then this is expected behaviour. 88.130.121.72 (talk) 13:07, 30 November 2015 (UTC)
Why my comment was considered as a "Temporary mass bot attack"?
I was replying to a thread and as I clicked the reply button, a red message appeard saying that my comment matches with the "Temporary mass bot attack" and before that it was saying that my comment was detected as a spam.
I can't even post the message here which I was trying to send because that too will be blocked.
The message contains some CSS codes and texts related to the thread. I'm not spamming! 1.39.50.46 (talk) 19:26, 29 November 2015 (UTC)
- Hi. We have had for a long time problem with bots spreading spam and for that we needed to create filters to deal with that. Unfortunately it's difficult to create filters that only stops the bad guys and let everyone else through. So something in your last contribution was too similar to what the bots is adding. We are constantly tweaking the filters to get rid of all false positive hits. Tegel (talk) 19:34, 29 November 2015 (UTC)
- So, how am I suppose to post the message here on support desk so it doesn't look similar to a bot attack? Is there any other way? 1.39.50.46 (talk) 19:46, 29 November 2015 (UTC)
- If you create an account and make a few edits (for example, on your userpage), you will be able to post your message. Matiia (talk) 19:57, 29 November 2015 (UTC)
- My recommendation is to not add IP-addresses in the comment. That can be interpreted as telephone numbers. Tegel (talk) 20:06, 29 November 2015 (UTC)
- I've posted your message on Project:Support desk/Flow/2015/11#h-Splash_skin_isn't_loading_after_upgrading_to_MW-1.26-2015-11-28T06:49:00.000Z for you. Matiia (talk) 20:08, 29 November 2015 (UTC)
- @Matiia Thank you!
- Can you tell me what part of my comment made the 'anti-spam bot' misunderstood it as a spam? So that I can avoid it in the future. Jos187 (talk) 20:23, 29 November 2015 (UTC)
- I have this and similar other problems as well. For example, I cannot post internal links to Flow topics - maybe due to the random numbers in them? Well, I don't know the reason; it just is not working. 88.130.70.240 (talk) 23:32, 29 November 2015 (UTC)
Securing uploads directory on NGINX
Hi,
I'm using NGINX as the webserver instead of Apache. During the installation process I got a warning "Your default directory for uploads is vulnerable to arbitrary scripts execution." The doc the installer linked to was Manual:Security, but that manual only contained apache.conf files for how to address the issue. Is there an equivalent action I can take on NGINX to prevent arbitrary scripts execution on NGINX in the images directory? Thanks. Uploads2015 (talk) 03:03, 30 November 2015 (UTC)
MediaWiki 1.26
"MediaWiki 1.26"
"Thumbnail of creation error: Unable to save thumbnail to destination"
Is displayed Zakizakizaki (talk) 05:28, 30 November 2015 (UTC)
- Do Project:Support desk/Flow/2012/05#h-Error_creating_thumbnail:_Unable_to_save_thumbnail_to_destination-2012-05-31T09:11:00.000Z or Talk:MediaWiki 1.19 help? Malyacko (talk) 10:00, 30 November 2015 (UTC)
Old skins
Hi, is there any reason why a skin I'm trying to use from around 2012-2013 is no longer working? It used to work back in 2012 and nothing has changed in the skin's code. I've done the needed require_once statement and that should be enough, right? It's not even showing up as an option in my preferences. I'm on MediaWiki 1.26 Uploads2015 (talk) 05:59, 30 November 2015 (UTC)
- The core of MediaWiki changes continuously, and extensions and skins usually need to be adapted, from version to version, so they continue to work.
- If the skin is hosted on Wikimedia's git repository, it may have a recent version that works with MediaWiki 1.26. You'll need to redownload it. Otherwise you would need to ask the maintainer to update it, or try to update it yourself. See also Manual:Extension registration Ciencia Al Poder (talk) 10:19, 30 November 2015 (UTC)
Prevent redlinks from appearing for guests
I use mediawiki as a Content Management System. So, I removed create account, edit etc. for guests. I don't want to show redlinks to be displayed for guests, and instead wanted the text to appear without the link. I used the code below in Localsettings. However, it's not working flawlessly. Sometimes, redlinks are being shown to guests. But I noticed that whenever I touch(update) localsettings file, redlinks are not showed to guests. I use filecaching. Suspecting that file caching may be the reason why guests are seeing redlinks, I tried to disable it for logged in users, but no luck. Any help is highly appreciated.
$wgHooks['LinkBegin'][] = 'ExampleExtension::exampleExtensionLinkBegin';
class ExampleExtension {
public static function exampleExtensionLinkBegin( $dummy, $target, &$html, &$customAttribs, $query, &$options, &$ret ) {
global $wgUser, $wgUseFileCache;
if ( !$wgUser->isLoggedIn() ) {
if ( $target->exists() ) {
$wgUseFileCache = false;
return true;
} else {
$ret = $html;
return false;
}
}
} //exampleExtensionLinkBegin
}
123.201.238.20 (talk) 09:10, 30 November 2015 (UTC)
- Hmm, I suggested that in Project:Support desk/Flow/2015/11#h-Disable_"redlinks"_(hyperlink)_in_MW?-2015-11-25T00:49:00.000Z but that may have issues with cache
- Disabling the cache inside this hook doesn't seem to be a good idea, anyway. Once the page is already cached (created by a logged-in user), this hook won't be called for anons, because the cached page will be served instead without being reparsed.
- Also, you're disabling the cache for not logged-in users, but it would make sense to do the other way round: disable cache for logged-in users.
- You could probably disable file cache directly in LocalSettings.php by checking session cookies, outside of any hook. At this stage $wgUser is still not populated to see if the user is logged in, so you won't be able to use it, but checking the presence of session cookies could be a viable option. Ciencia Al Poder (talk) 10:37, 30 November 2015 (UTC)
- I tried it all, but it seems that it works only when Localsettings has been updated. For eg, if I login and work on few pages, redlinks appear. When I check as a guest on another browser, the redlinks appear. At this point, If I update localsettings by just adding few spaces at the end, redlinks disappear for guests. I think it has got something to do with localsettings, but I can't figure out how to hide redlinks for guests... 123.201.234.26 (talk) 13:38, 30 November 2015 (UTC)
- Editing LocalSettings.php makes Manual:$wgCacheEpoch to be updated, invalidating HTML cache Ciencia Al Poder (talk) 21:58, 30 November 2015 (UTC)
- Hello, I have the same need with MediaWIki 1.34.1.
- But now the hook "LinkBegin" is deprecated and replaced by "Manual:Hooks/HtmlPageLinkRendererBegin"
- I cannot make it work now, could you help please ? Nicolas NALLET Wiki-Valley.com (talk) 17:37, 2 April 2020 (UTC)
- Hi Nicolas,
- I have had the same issue and have brought this approach into an Mediawiki extension that follows the updated interfaces.
- Feel free to give it a try: https://github.com/marohh/mediawikiRemoveRedlinks Wikimalte (talk) 11:55, 8 April 2020 (UTC)
- You may want to create an extension page here for your extension. Ciencia Al Poder (talk) 19:53, 8 April 2020 (UTC)
- Thanks a lot Wikimalte I will try it ! I can help you to create an extension page here if you want. Nicolas NALLET Wiki-Valley.com (talk) 06:58, 9 April 2020 (UTC)
- I've prepared an extension page here: https://www.mediawiki.org/wiki/Extension:RemoveRedlinks Wikimalte (talk) 07:31, 9 April 2020 (UTC)
Imported infobox templates from Wikipedia, got rogue HTML
Hi,
I'm new to mediawiki and I've created one and have been importing some infobox templates from Wikipedia, it's mostly all worked fine, however I have one issue on this page: https://libdemwiki.org.uk/Tim_Farron </td></tr> is added to the top of the page and I don't know why.. The HTML is invalid somewhere, but I'm unsure how as the templates are copied from wikipedia which works fine.
https://libdemwiki.org.uk/Template:Infobox
https://libdemwiki.org.uk/Template:Infobox_officeholder
https://libdemwiki.org.uk/Special:Version is my version page, i'm using 1.26.0 - i've installed Scribunto and ParserFunctions in order for the template code to work.
Any ideas? I understand HTML, but not the template language mediawiki uses!
Thanks Icecold (talk) 10:30, 30 November 2015 (UTC)
- Did you ever figure this out? I have the same issue with the same template. Hmmm. Stmcnerney (talk) 18:56, 5 July 2016 (UTC)
Your edit was aborted by an ArticleSave hook / Anonymous edit i.c.w. VisualEditor
After a succesfull setup of Parsoid and VisualEditor on Centos 6.7 i came accross this error while editing a page as anounymous user.
We use the Moderator Extension for moderating edits. This works fine... I think it has got something to do with the combination of both.
Please help me out here.
Error: Your edit was aborted by an ArticleSave hook 195.240.151.236 (talk) 15:50, 30 November 2015 (UTC)
1.26, wiki logo now disappears on mouse-over
I have an established wiki built under 1.24, with an extensive CSS modification file. One of the CSS changes is to set the hover color of links and add a graphic underline. This has worked perfectly in body, sidebar and top nav for about a year.
With the update to 1.26, everything works fine EXCEPT that mousing over the wiki logo now makes it disappear, with a base fragment of the graphic link underline appearing in its place (centered in the logo space). I have laboriously removed link redefinition lines and discovered that it's the background definition that is mucking up the wiki logo; remove it and everything works fine (except, of course, that my links no longer have the graphic underline); put it back in, even with the strongest 'negating' I can apply to the wiki logo class, and the disappearing act occurs.
Here is the CSS code that changes my link colors and positions the graphic underline:
a:link, a:visited {
color: #0077bb !important;
text-decoration:none;
padding-bottom: 3px;
}
a:hover,a:active {
color:#eeaa00 !important;
text-decoration:none;
background: url(/mh_media/linkbar.jpg) repeat-x 100% 100%;
padding-bottom: 3px;
white-space: nowrap;
}
Again, if I remove that background statement, the wiki logo action is fine. Put it back, with any number of different parameters, and attempts to frame a 'not' statement under .mw-wiki-logo, and the logo disappears on mouseover. (I had a few code bits in the original to negate link changes for the logo; they no longer seem to matter.)
Any thoughts on how I can keep my link code as-is (functionally, at least) and not have the logo flash out of existence on mouseover?
Site is at www m a x h e a d r o o m com (obfuscating to keep this out of the search lists). Thanks. 71.235.251.78 (talk) 17:16, 30 November 2015 (UTC)
- It may be worth adding that the effect does NOT happen on the "Powered by MediaWiki" logo in the footer... 71.235.251.78 (talk) 17:23, 30 November 2015 (UTC)
- The problem is caused by the background, which you define for a:hover:
a:hover, a:active {background: rgba(0, 0, 0, 0) url(/mh_media/linkbar.jpg) repeat-x scroll 100% 100%;}- Do I understand it correctly that you in fact want the links in the page content to be underlined, and all other links should stay normal? In that case, you should prepend your rules with something like .mw-body-content like so:
.mw-body-content a:hover, .mw-body-content a:active {...}88.130.65.86 (talk) 20:11, 30 November 2015 (UTC)- No, I'd like it to use my specified color set, and use the graphic underline, for all text links. This was working as desired under 1.24, but now the same code (and every attempt to adjust it) produces the odd action for the wiki logo image. 71.235.251.78 (talk) 20:14, 30 November 2015 (UTC)
- Limiting my link definitions to those two body classes fixes the logo problem, but at the cost of removing the graphic underline from all the top and sidebar nav links. I'd rather find a fix that specifically blocks the attributes from the icon link, so that all other text links in and out of the content show the underline effect. 71.235.251.78 (talk) 20:19, 30 November 2015 (UTC)
- Fixed the problem with:
.mw-wiki-logo {background-image: url(/resources/assets/mhcom_max_animated.gif) !important;}- which forces the logo image to always point to the correct file. This is at best a workaround, though, since changing the icon definition would not change this override.
- With this additional pointer, which seems to say that the wiki icon is used as a background, and my background statement for links is overriding it on hover and active - can anyone write me a true fix that will short-circuit the override my code is trying to apply to the logo background? 71.235.251.78 (talk) 20:48, 30 November 2015 (UTC)
- Hmm, I personally don't think the logo is a text link.
- Ok, two possible solutions:
- Either you put your special styles to all links and then you remove it again from the logo link.
- Or you specially set it only for those parts of the page, where you want them to be, e.g. page content, sidebar, footer, whatever else.
- For example:
/* Change styling of each and every link */a:hover, a:active {background: rgba(0, 0, 0, 0) url(/mh_media/linkbar.jpg) repeat-x scroll 100% 100%;/* ... */}/* Undo these changes for the logo link */.mw-wiki-logo a:hover, .mw-wiki-logo a:active {background: none; /* untested */}88.130.65.86 (talk) 20:52, 30 November 2015 (UTC)- I understand (completely) the process of doing a global style, then using a specific "unstyle" to remove selected styles that would otherwise be included. I've done that throughout this and other sites. However, I've completely exhausted the options and combinations for trying to "unstyle" just .mw-wiki-logo, as nothing including various !important'ed entries has the slightest effect. Only two things have had any effect on the problem: NOT using the background effect as part of the link redefinition, and using the above hard override to force the wiki logo background (which is how it's displayed) to a specific file. The latter works, but it's painfully kludgy.
- The logo may or may not be a text link, but I can't find or figure out where to block the global link redefinition from applying to it - I can only assume it's somewhere higher in the code than .mw-wiki-logo. I was/am hoping someone more familar with the code could point me to the effective point of change; in the meantime, I will keep drudging through it myself. 71.235.251.78 (talk) 15:02, 1 December 2015 (UTC)
Code php like page in mediawiki
Hello
I would like to put in a page a code php like:
<?php
echo "hello world"
?>
But I can do it. I try to use Extension:RawCodeFile but mediawiki say me that geshi.php doesn't exist, but I put it in the right directory.
Any ideas?
Thanks Centinela77 1982 (talk) 17:51, 30 November 2015 (UTC)
- Which version of MediaWiki are you using?
- I don't know, how the RawCodeFile extension is working, but for MediaWiki 1.26, the GeSHi extension has undergone a major rewrite. Especially, it in fact is no longer using the GeSHi highlighter, but Pygments. If you are using MediaWiki 1.26, this might contribute to the problem. 88.130.65.86 (talk) 20:01, 30 November 2015 (UTC)
- Extension:SyntaxHighlight GeSHi should be what you want. Jasper Deng (talk) 01:12, 1 December 2015 (UTC)
- GeSHi does syntax highlighting, but the RawCodeFile extension also offers a download link, which GeSHi does not have. So GeSHi is not a full replacement for RawCodeFile. 88.130.65.86 (talk) 12:54, 1 December 2015 (UTC)
Unable to run update.php
I have several Wikis hosted on the same Mediawiki installation. I use the Giant Switch Statement (as described here: Manual:Wiki family) to achieve this. However, this seems to make me unable to run the update.php script.
In PuTTY I go to my maintainance folder as required and then I try running the php script from there using "php update.php". Then it gives me the following error:
PHP Notice: Undefined index: SERVER_NAME in /var/www/html/w/LocalSettings.php on line 12
This wiki is not available. Check configuration.root@soulslike:/var/www/html/w/maintenance#
How should I go about updating my tables? I need to update them to install this extention (Extension:TitleKey) and will possibly need to use it in the future to update my Mediawiki installation. Also, I don't know why the Wiki would suggest the Giant Switch Statement at all if this causes errors in the Mediawiki updating process... Swennet (talk) 21:03, 30 November 2015 (UTC)
- UPDATE: I manually ran the update for each of my LocalSettings.php files by commenting out the Giant Switch Statement and temporarily including a LocalSettings file that was called by the Switch Statement. It was a bit of a time consuming fix but it did the trick. Swennet (talk) 22:03, 30 November 2015 (UTC)
- The wiki family page tells you to use $_SERVER['SERVER_NAME'] in the switch structure. However, the SERVER_NAME is not available when you run PHP from the CLI.
- You should be able to use php_uname("n") instead. 88.130.65.86 (talk) 22:10, 30 November 2015 (UTC)
sidebar not showing up
Hello,
I have just installed MediaWiki and my Main page does not have a side bar.
instead all of the sidebar information is "inline" and under the main page content.
What settings do I need to change to get the cool sidebar like you have? 74.85.17.253 (talk) 21:34, 30 November 2015 (UTC)
- it looks like it has the information... it is just not rendering it in the correct manner. 74.85.17.253 (talk) 21:35, 30 November 2015 (UTC)
- Does it look like Manual:Errors and symptoms#The wiki appears without styles applied and images are missing? Ciencia Al Poder (talk) 22:19, 30 November 2015 (UTC)
- so... I see the "Max" message... but which .htaccess file do need to change ... there are quite a few of them ? 184.106.105.55 (talk) 23:52, 30 November 2015 (UTC)
- I am looking at "https://www.mediawiki.org/wiki/Manual:Load.php" 184.106.105.55 (talk) 23:52, 30 November 2015 (UTC)
- this is what I typed: http://localhost/Wiki%5Cmediawiki-1.26.0/load.php
- This is what I got:
/* This file is the Web entry point for MediaWiki's ResourceLoader:<https://www.mediawiki.org/wiki/ResourceLoader>. In this request,no modules were requested. Max made me put this here. */184.106.105.55 (talk) 00:02, 1 December 2015 (UTC)- Ok, that's fine, but you should probably look at each request that contains in the URL "only=styles". Open them and see if it has some error message at the top of them (you may need to set $wgShowExceptionDetails to true to see a detailed error message), or if they're just completely blank pages
- You can access easily those URLs by opening the developer's console of your browser (usually hitting F12 or F11) and reloading the page while you're on the network tab Ciencia Al Poder (talk) 10:34, 1 December 2015 (UTC)
- This sounds similar to the problem I had yesterday. Try switching to a different skin. If that fixes things, then you have the same issue I do and I've opened a ticket for it. https://phabricator.wikimedia.org/T119934 Ryan7273 (talk) 14:20, 1 December 2015 (UTC)
- Any other possible reasons this may be occurring? 184.106.105.55 (talk) 17:13, 1 December 2015 (UTC)
- Ryan7273 - this is EXACTLY what is occurring with my site as well ... 184.106.105.55 (talk) 17:16, 1 December 2015 (UTC)
- BTW... I tried to create an account... but I have been "black listed" for some reason... (not a very friendly site :-( ) 184.106.105.55 (talk) 17:17, 1 December 2015 (UTC)
- I have an account now - Yay ! MikeLiss1234 (talk) 21:15, 1 December 2015 (UTC)
- Here I have got the same problem. I moved from one debian server to another and updated mediawiki from 1.31.14 to 1.33.4 . After that I found that sidebar is under content of the site and font is also different. After a long period of unsuccessful experiments I changed skin from Vector to Timeless and everything became better. Monobook looks also like Vector. Timeless seems to be the only skin that works with mediawiki 1.33.4 . All our users told me that we should go back to Vector because it was so familiar, but I don't know how to manage that.
- Best regards. Sancho HGH (talk) 08:41, 14 September 2021 (UTC)
Problems with link structure for uncreated pages
It took me a long time and a lot of trial and error to set up my htaccess file to do what I want. Almost everything is working now except for one thing: Uncreated pages (redlinks).
Almost every redlink still includes index.php in the URL structure for some reason. This wouldn't be much of a problem except for one thing: It also adds index.php to the title of the page.
For example: If I create a new link in a wiki page called "Test Link". Then clicking on the link will redirect me to the following url: http://mysite.com/wiki/Test_Link/index.php?title=Test&veaction=edit&redlink=1
The location of the "/index.php" part makes the Wiki Page title show up like: Test Link/index.php
Obviously this is highly undesirable but I have not found any way to fix this!
My htaccess file looks like this:
AllowOverride All
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B] Swennet (talk) 22:28, 30 November 2015 (UTC)
- Of the rules you posted, only the first block is reevant for your problem.
- At Manual:Short_URL/Apache we have a guide on how to set up Short URLs correctly. 88.130.65.86 (talk) 22:49, 30 November 2015 (UTC)
- Hi, thank you for your reply. I did spend hours looking at the page you linked and everything else I could find on the topic. But to be frank, it's all just one big incoherent mess and most of the solutions I found were quite lacking. I did get most of the URLs set up exactly how I want them to, but only the redlinks do not seem to be working properly and I can't figure out why. Swennet (talk) 22:59, 30 November 2015 (UTC)
- Is it possible that this is related to the https://www.mediawiki.org/wiki/Extension:VisualEditor extension? Swennet (talk) 23:11, 30 November 2015 (UTC)