Jeffrey V. Merkey wrote:
Brion Vibber wrote:
Jeffrey V. Merkey wrote:
Here is a more complete question.
I have attempted to setup SVG to PNG rendering and it does not seem
to work on 1.7.1. I checked the Defaults file in includes and
I have verified rsvg is properly installed. I have also enabled the
DebugLogFile option and attempted to run a trace
the results indicate this section of code is not even activating as
there are no messages being output to indicate
that the RSVG section of code is even becoming active during
rendering. The mine/type detection does appear to work
in that SVG images are in fact detected.
Since you still do not provide any of your SVG-related configuration
settings or
the details of your investigations, I can't guess whether you've simply
configured something wrong. All I can tell you is that if configured
correctly,
it is known to work.
-- brion vibber (brion @
pobox.com)
Ask, and ye shall receive. Here is the LocalSettings.php (passwords
removed) from MediaWiki 1.7.1. It fails with the default
1.7.1 right out of the tar.gz file. I also included the
DefaultSettings.php
Jeff
Splicing in the text for LocalSettings.php. The mailer rejects the
attachments. The only change I made to DefaultSettings.php is the
addition of
a "+" symbol to $wgLegalChars.
Jeff
# 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.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) );
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'
);
}
#$wgDebugLogFile = './debug.log';
$wgUseTidy = true;
$wgTidyBin = 'usr/bin/tidy';
$wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
$wgSitename = "WikiGadugi";
$wgScriptPath = "";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## For more information on customizing the URLs please see:
##
http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
## If using PHP as a CGI module, the ?title= style usually must be used.
$wgArticlePath = "/wiki/$1";
#$wgArticlePath = "$wgScript/$1";
# $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/skins";
$wgStyleDirectory = "$IP/skins";
$wgLogo = "$wgStylePath/common/images/SequoyahStub.jpg";
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "webmaster(a)wikigadugi.org".org";
$wgPasswordSender = "webmaster(a)wikigadugi.org".org";
## 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 = "wikiuser";
$wgDBpassword = "password";
$wgDBprefix = "";
$wgDBtype = "mysql";
# Experimental charset support for MySQL 4.1/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;
$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;
$wgTexvc = './math/texvc';
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "en";
$wgProxyKey =
"1a76ed0ff0e05fadaa9c9db5344ee0a981d4348cb14f36a2209083e6a48da8e8";
## 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 = false;
$wgRightsPage = ""; # Set to the title of a wiki page that describes
your license/copyright
$wgRightsUrl = "http://www.wikigadugi.org/index.php/License";
$wgRightsText = "Wikigadugi Public License";
#$wgRightsIcon = "${wgStylePath}/common/images/gnu-fdl.png";
# $wgRightsCode = "gfdl"; # Not yet used
$wgDiff3 = "/usr/bin/diff3";
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );
$wgUseFileCache = true;
$wgFileCacheDirectory = "/wikidump/chrcache";
$wgShowIPinHeader = false;
$wgUseGzip = false;
$wgAntiLockFlags = ALF_NO_LINK_LOCK | ALF_NO_BLOCK_LOCK;
require_once( "$IP/extensions/Chr2Syl.php" );
require_once( "$IP/extensions/Cite.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
#$wgDebugLogFile = 'debug.log';