Topic on Project:Support desk

Some images and text not showing

10
JFokker (talkcontribs)
87.123.34.189 (talkcontribs)

Two questions:

  • What is it that you are missing?
  • How have you moved the wiki? Have you exported/imported the data or have you copied the complete database with a tool like mysqldump? Using something like mysqldump is recommended.
110.149.164.23 (talkcontribs)

You used a different name for the project namespace (Keukenwiki instead of WoonWerkWiki).

JFokker (talkcontribs)

Thanks. Renaming the Project Namespace to WoonWerkWiki did the trick.

But how do I change the name of the project namespace and not loose this text?

And I am still missing the favicon and the search icon image and the Powered by Mediawiki image.

JFokker (talkcontribs)

This is my local settings.php

I think it doesn't load the skins folder correctly

# Protect against web entry

if ( !defined( 'MEDIAWIKI' ) ) {

exit;

}

## Uncomment this to disable output compression

$wgDisableOutputCompression = false;

$wgSitename = "WoonWerkWiki";

## 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:

## http://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "/wiki/w"; ## "http://keukenwiki.nl/index.php";

$wgScriptExtension = ".php";

$wgArticlePath = '/wiki/w/$1';

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://keukenwiki.nl";

## The relative URL path to the skins directory

$wgStylePath = "/wiki/w/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             = "/wiki/w/images/logo.png";

$wgFavicon = "/wiki/w/favicon.ico";

This post was hidden by 87.123.26.85 (history)
87.123.26.85 (talkcontribs)

For the favicon and the Powered by MediaWiki image: When I hit the according URLs, I get a wiki page instead. I guess your RewriteRules are rewriting these requests to the index.php script of MediaWiki.

It might help to prepend the according RewriteRule with a condition so that it only kicks in, if the requested "thing" is not an existing file:

RewriteCond %{REQUEST_FILENAME} !-f
# If it is not an existing file, then rewrite the request to index.php
RewriteRule .....
JFokker (talkcontribs)

Thanks that did the trick that it showed them.

But I still get these problems in the console: Failed to load resource: the server responded with a status of 404 (Not Found) http://keukenwiki.nl/wiki/w/skins/vector/images/search-ltr.png?303 Failed to load resource: the server responded with a status of 404 (Not Found) http://keukenwiki.nl/wiki/w/Skins/common/images/poweredby_mediawiki_88x31.png Failed to load resource: the server responded with a status of 404 (Not Found) http://keukenwiki.nl/wiki/w/Skins/common/images/magnify-clip.png

This is my .htaccess

    1. http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
  1. Enable the rewrite engine

RewriteEngine On

  1. www to non-www

RewriteCond %{HTTP_HOST} !^keukenwiki\.nl$ [NC] RewriteRule ^(.*)$ http://keukenwiki.nl/$1 [R=301,L]

  1. Load css

RewriteRule (api|load)\.php - [L]

  1. Short url for wiki pages

RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/w/index.php [L]

  1. Redirect to Main Page

RewriteRule ^/*$ %{DOCUMENT_ROOT}/wiki/w/index.php [L]

87.123.63.222 (talkcontribs)

The search-ltr.png image displays correctly for me.

For the poweredby_mediawiki_88x31.png link, please note the capital "S" in Skins. However this happens, this capital S is wrong. It should be a small s - then the image shows up. The link for this image, as it shows up in the source code of your pages is correct, with small s. The image is displayed correctly for me. Same for the magnify-clip.png.

I do not see any of the problems you mentioned. However, if they should reappear, it should help to disable rewriting for the skins/ folder.

JFokker (talkcontribs)

Yes I see. All problems are solved. Thanks for the help.