Problem loading stylesheet

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 16
Joined: Tue Apr 10, 2007 4:09 pm

Problem loading stylesheet

Postby renatem » Wed May 02, 2007 1:07 pm


I wanted to upload my changed stylesheet from the Web interface, but I get the following error message. My file name HAS the extension .css

The images load without problem.

Home > User > Journal Management > Journal Setup
Step 5. Customizing the Look

* 5. The Look

Errors occurred processing this form:

* Invalid journal stylesheet format. Accepted format is .css.

5.1 Journal Homepage Header

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Wed May 02, 2007 3:04 pm

Hi renatem,

As you might expect, OJS is having trouble determining the type of file you've uploaded. There are a number of posts in this forum discussing how to debug the problem -- search for mime_content_type -- but the most frequent fix, if your server is set up properly, is to remove any comments at the beginning of the CSS file. Comments at the beginning confuse the file type detection process.

Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada

Sharon Hu
Posts: 2
Joined: Wed Sep 26, 2007 4:34 pm

Re: Problem loading stylesheet

Postby Sharon Hu » Thu Sep 27, 2007 9:14 am

Thanks Alec!

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests