mediawiki page won't load - fedora 16, MediaWiki version 1.18.2

I created a mediawiki page and it was completely working and I had multiple pages within it. When I edited the $wgLogo = " "; to something I wanted (I put the link to the picture within " ")

I had to edit the logo on the top right but now I can't even load any of my pages, I may have touched something biacsident in my LocalSettings.php file.

Here are the contents of my file: (I edited a part of a comment and made a link into a broken link so I could post)

<?php

# This file was automatically generated by the MediaWiki 1.18.2
# 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:
# Manual:Configuration settings - MediaWiki

# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
        exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename      = "franklinwiki";
$wgMetaNamespace = "Franklinwiki";

## 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 please see:
## Manual:Short URL - MediaWiki
$wgScriptPath       = "/wiki";
$wgScriptExtension  = ".php";

## The protocol and server name to use in fully-qualified URLs
$wgServer           = "http://localhost";

## 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";

*By uncommenting those two lines, when accessing mediawiki it will display in the address bar as:

<span style="color: red; text-decoration:">http://localhost/wiki</span>

and wiki skins will be enabled


The following below is the contents of the <span style="color: blue;  text-decoration:">"/etc/httpd/conf.d/mediawiki.conf" </span>  file

----


# This is a sample configuration for a wiki instance located under
# /var/www/wiki and exposed as h/ttp://thishost/wiki. Please read
# /usr/share/doc/mediawiki-*/README.RPM on whether to use this
# instance or create copies of it.

'''Alias /wiki/skins /usr/share/mediawiki/skins'''
'''Alias /wiki /var/www/wiki'''

# If your DocumentRoot points into the wiki itself all that is needed is

# Alias /skins /usr/share/mediawiki/skins";

## UPO means: this is also a user preference option

$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "apache@localhost";
$wgPasswordSender   = "apache@localhost";

$wgEnotifUserTalk      = false; # UPO
$wgEnotifWatchlist     = false; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "f16host";
$wgDBname           = "mfranklinwiki";
$wgDBuser           = "root";
$wgDBpassword       = "";

# MySQL specific settings
$wgDBprefix         = "";

# MySQL table options to use during installation or update
$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# 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  = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from Wikimedia Commons
$wgUseInstantCommons  = false;

## 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 = "08a1259cf45467feb2dec42c3b656a43ed8d80dc2b29ddda0adf6bf677959163";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "f7d3328de79d9639";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', '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 = "";
# $wgRightsCode = ""; # Not yet used

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";

# Query string length limit for ResourceLoader. You should only set this if
# your web server has a query string length limit (then set it to that limit),
# or if you have suhosin.get.max_value_length set in php.ini (then set it to
# that value)
$wgResourceLoaderMaxQueryLength = -1;



# End of automatically generated settings.
# Add more configuration options below.

---

That's all :confused: Not sure why this happened. I posted this somewhere else on the forums because I wasn't sure as to where this thread should have been made, I apologize in advance.

Presumably you installed this from somewhere, why not restore to the original?

I have information on some of my pages that I need to recover, if i restore I'll lose anything, if I have to do it I will but if theres a way around it, maybe someone could compare their file with mine with that version (i think its the latest) then I might beable to save all my data.

If you could post again using code tags this time, then I'd be able to see which bits were supposed to be which files and which parts.

isn't it in code tags right now?

Because I put it there, yes, but I didn't know your intention. There's things in there which might be invalid syntax, or you trying to point something out or you trying to split it into other files. I can't tell.

ah, well it's all 1 file (LocalSettings.php) from /var/www/wiki

I edited the

$wgLogo             = "$wgStylePath/common/images/wiki.png";

portion of that file but I also think I may have touched something else within that file, I'm pretty sure there's something I either deleted or am using the wrong syntax like you said. Hopefully I can find someone who can compare.

Well if I take the contents of your file completely literally, this stuff is invalid:

*By uncommenting those two lines, when accessing mediawiki it will display in the address bar as:

<span style="color: red; text-decoration:">http://localhost/wiki</span>

and wiki skins will be enabled


The following below is the contents of the <span style="color: blue;  text-decoration:">"/etc/httpd/conf.d/mediawiki.conf" </span>  file

----
1 Like

ooh yes right I think I either added that or overwrote some lines when I was cutting and pasting things, thank you very much so far but even though I took out that part it still doesn't work. Do you by any chance notice any missing syntax in that part of the script?

EDIT: I don't know what I overwrote

Maybe this bit?

'''Alias /wiki/skins /usr/share/mediawiki/skins'''
'''Alias /wiki /var/www/wiki'''
1 Like

Thank you so much Corona you just fixed my whole mediawiki :smiley: I LOVE YOU

Thank you soooo much once again I really appreciate the help you've given me :slight_smile:

1 Like