Topic on Project:Support desk

[RESOLVED] Logo not showing on main page

7
Gini2014 (talkcontribs)

Hi,

I need to upload a logo on my newly created mediawiki page. I tried images in sizes of 150x150, 135x135 and also 130x130. All do not show when I try. Steps I did do upload the image :

1) Open LocalSettings.php (located in /path/to/document/root/mediawiki)

2) Checked the path where the images are uploaded (/path/to/document/root/mediawiki/resources/assets). This path is represented by the variable $wgLogo.

3) I rename the current image name which is wiki.png to wikibak.png.

4) Then I upload the new image in this directory (abc.png), and change the path of the variable $wgLogo to the new image

  (/path/to/document/root/mediawiki/resources/assets/abc.png).

5) However, even after doing this, I do not see the logo on the mediawiki page. The logo section just appears blank.

    • Not to forget I did change the $wgEnableUploads variable to "true".

How can I resolve this issue and see the logo I want?

31.150.205.72 (talkcontribs)

Hi!

The correct size is 135x135 pixels. Manual:$wgLogo has all the information you need.

You should not overwrite or rename the original image. Instead, upload your own logo to a new file, e.g. inside the images/ folder, maybe as images/logo.png.

Then in LocalSettings.php, at the very bottom, add this line:

$wgLogo = "{$wgScriptPath}/images/logo.png";

Save the LocalSettings.php file, empty your browser cache and view your wiki again!

Should you after doing these steps not see the logo, I guess it's most probably a caching issue. In that case it would help if you gave us the wiki URL, so that we can have a look!

31.150.205.72 (talkcontribs)
Gini2014 (talkcontribs)

I changed the path of $wgLogo to the complete path to the logo image :

$wgLogo = "/home/web/microsite/mediawiki/images/air-asia-logo_130x130.png";

Also, I changed the variable $wgEnableUploads to true :

$wgEnableUploads = true;

Now, I get a blank image on my wiki page. What is the reason for this?

This is my wiki page :

http://wiki.airasia.com/index.php/Main_Page

88.130.105.204 (talkcontribs)

Trying to access your server, I currently get a "server not found" error.

Anyway, $wgLogo must be set to a relative URL. Meaning not to the path in the filesystem, but to that URL, under which I can access the logo file on your server. Since I cannot access your server currently, I guess that it is either

$wgLogo = "/mediawiki/images/air-asia-logo_130x130.png";

or

 $wgLogo = "/images/air-asia-logo_130x130.png";

Having a look at the URL, which you provided above, I think the second case is the correct one.

65.196.107.197 (talkcontribs)

In my case I did everything right but forgot to set permissions on my logo file. so please do as below:

Image size should be set to 135x135 pixels. and always set image permissions as following;

chown apache:apache wikilogo.png

chmod 644 wikilogo.png

This how I resolved