Deploy to Shared Hosting - Themes (css/images) not displaying properly

Topics: General, Troubleshooting
Oct 20, 2012 at 1:40 PM

Hi,

I recently deployed Orchard to a shared hosting environment. It deploys okay only it displays as raw html markup.

The startup page doesn't have any style applied, the main site (after initial config) is the same as is the admin section.

On first investigation it seemed that it couldn't reach the themed resources. I thought it might be a security on the themes folder as I had to allow write access to the App_Data folder to even get that far. However this didn't fix anything.

I then installed a new theme for the gallery and set this as default and hey presto I had a theme applied. Everything looked groovy. Only the dashboard still had no style applied. So it seemed that the right access permissions existed on the Themes folder at least (and subsequent subfolders).

The next thing I tried was to set the original Theme Machine back as default. And this resulted in no styling yet again. Weird!

Is there rewrite rules at play here that are screwing things up? Although I can live with using another Theme than the Theme Machine I can't live without a style in the admin section.

All ideas welcome.

Oct 20, 2012 at 1:51 PM

Just to add another piece of information: when I look at the web requests on the home page I see I'm getting 'HTTP/1.1 500 Internal Server Error' on the GET of the 'TheThemeMachine/Styles/Site.css'

Oct 20, 2012 at 2:22 PM

I suppose the essence of the problem is why is this happening below. Both folders have the exact same permissions...

http://.../Themes/TheThemeMachine/Styles/Site.css        This gives an Internal error 500
http://.../Themes/Contoso/Styles/Site.css                       This is a new theme installed directly from the gallery and I can get to this fine??

What's going on with the TheThemeMachine and TheAdmin themes?

Oct 20, 2012 at 7:06 PM

I found a post that solves the problem

http://orchard.codeplex.com/discussions/397724