Le 04.10.2007 17:40, Brion Vibber a écrit :
Allow me to detail:
1) It is not the normal configuration for thumb.php to appear directly
in <img src> in the HTML output in the wiki.
2) Original-size or larger-size non-rendered thumbs should probably not
be using thumb.php with a larger-than-original specified size.
Thus a non-default configuration must be in effect.
OK, thanks for this clarification. So I am looking for what produces
this problem.
Attached is my
LocalSettings.php.
$wgUseImageMagick = true or false have the same effect.
Attachments are stripped by the mailing list for security.
OK, so here it is. I am not using other settings and
includes/DefaultSettings.php is completely unmodified.
---------------------------------------------------------------------
# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
$IP = "/usr/local/share/mediawiki/site";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "includes/DefaultSettings.php" );
# If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER
) ) {
die( "This script must be run from the command line\n" );
}
} elseif ( empty( $wgNoOutputBuffer ) ) {
## Compress output if the browser supports it
if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}
$wgSitename = "WikiOM";
$wgScriptPath = "/wiki";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs
$wgArticlePath = "$wgScript/$1";
# $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/skins";
$wgStyleDirectory = "$IP/skins";
#$wgLogo = "/wiki/skins/common/images/wiki.png";
#$wgLogo = "/wiki/images/institut_curie.png";
$wgLogo = "/wiki/images/institut_curie_logo_equipe_wiki.png";
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "Nicolas.Stranskyxxxxx";
$wgPasswordSender = "Nicolas.Stranskyxxxxx";
## For a detailed description of the following switches see
##
http://meta.wikimedia.org/Enotif and
http://meta.wikimedia.org/Eauthent
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "xxxx";
$wgDBpassword = "xxxx";
$wgDBprefix = "";
# If you're on MySQL 3.x, this next line must be FALSE:
$wgDBmysql4 = true;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgEnableUploads = true;
$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## 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;
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX = true;
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "fr";
$wgProxyKey = "be8d819d70c74c62103f34c76f7ffed79e50e8e9";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue',
'monobook':
# $wgDefaultSkin = 'monobook';
## 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.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes
your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used
$wgDiff3 = "/usr/bin/diff3";
$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
# Les anonymes sont muets.
$wgGroupPermissions['*']['edit'] = false;
# au moins 3 lettres dans le mdp
$wgMinimalPasswordLength = 3;
# This is the list of preferred extensions for uploading files. Uploading
# files with extensions not in this list will trigger a warning.
$wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg',
'xls', 'pdf',
'ppt' );
$wgVerifyMimeType= false;
# This is a flag to determine whether or not to check file extensions on
# upload.
$wgCheckFileExtensions = true;
# If this is turned off, users may override the warning for files not
# covered by $wgFileExtensions.
$wgStrictFileExtensions = false;
# Warn if uploaded files are larger than this
# 5Mo
$wgUploadSizeWarning = 5 * 1024 * 1024;
$wgSiteSupportPage = '';
$wgSiteSupport = '';
/**
* Set this to the number of authors that you want to be credited below an
* article text. Set it to zero to hide the attribution block, and a
negative
* number (like -1) to show all authors. Note that this will require 2-3
extra
* database hits, which can have a not insignificant impact on
performance for
* large wikis.
*/
$wgMaxCredits = 2;
/** If there are more than $wgMaxCredits authors, show $wgMaxCredits of
them.
* Otherwise, link to a separate credits page. */
$wgShowCreditsIfMax = true;
# Pour avoir le support des file://
$wgUrlProtocols =
'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:|file:\/\/';
/**
* Enable AJAX framework
*/
$wgUseAjax = true;
/**
* Enable auto suggestion for the search bar
* Requires $wgUseAjax to be true too.
* Causes wfSajaxSearch to be added to $wgAjaxExportList
*/
$wgAjaxSearch = true;
/**
* Enable watching/unwatching pages using AJAX.
* Requires $wgUseAjax to be true too.
* Causes wfAjaxWatch to be added to $wgAjaxExportList
*/
$wgAjaxWatch = true;
/** Show watching users in recent changes, watchlist and page history
views */
$wgRCShowWatchingUsers = true;
/** Show watching users in Page views */
$wgPageShowWatchingUsers = false;
$wgShowExceptionDetails = true;
---------------------------------------------------------------------
--
Nicolas STRANSKY
Équipe Oncologie Moléculaire
http://www.curie.fr/equipe/301
Institut Curie - UMR 144 - CNRS Tel : +33 1 42 34 63 40
26, rue d'Ulm - 75248 Paris Cedex 5 - FRANCE Fax : +33 1 42 34 63 49