Skip to content

trouble missing images stylesheets

Violet edited this page Dec 10, 2010 · 2 revisions

Images and styles do not show up

Problem

Images and styles don't show up. The layout is completely screwed up and everything is out of place in the admin console, your published site or both.

Typical Causes

  • Some hosts place restrictions on having "static content" loaded from a cgi-bin directory.
  • StaticWebPath is set incorrectly.

Isolating the Issue

Look for a folder called "m-static" or "mt-static". This folder contains all of the static content that Melody uses for its admin console, and it is also the place where Melody plugins install their static content. Open config.cgi and look at the value that is there for "StaticWebPath." Copy and paste that value into your web browser and see if you can access it. If you get a HTTP 404 error, that means that the setting is pointing to the wrong URL or the files are not where they should be on the server. If you get another type of error, chances are your host has security restrictions on where m-static is located.

Resolving the Issue

  • If you get a HTTP 404 error, log into your host by FTP or SSH and verify that the mt-static folder is in the directory that corresponds with the URL that you provided. If you are unsure, contact your host and ask them to verify. For a typical domain, the root folder will begin somewhere like this: /home/your_username_here/public_html (or /public_html/domainname/). Thus /home/your_username_here/public_html/melody/mt-static would correspond to http://www.domain.com/melody/mt-static. Most hosts use this pattern or a minor variation on it.

  • If you get another type of HTTP 400 error, it's typically best to contact your host for verification.

  • In both cases, once you have verified that you can access the mt-static folder in your browser, open config.cgi and update it like this: "StaticWebPath http://www.domain.com/full/path/to/mt-static"

 


Questions, comments, can't find something? Let us know at our community outpost on Get Satisfaction.

Credits

  • Author: Mike Thomsen
  • Edited by: Violet Bliss Dietz
Clone this wiki locally