coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: prokops on June 21, 2011, 12:12:37 PM

Title: Server migration -> broken paths
Post by: prokops on June 21, 2011, 12:12:37 PM
My site had to migrate server. My host informs me that the root structure had to be changed.

Site: http://www.prokop.dk/gallery/index.php (http://www.prokop.dk/gallery/index.php)

Past Path: /web/http/prokop.dk/htdocs
Current Path: /srv/http/prokop.dk/htdocs

The result is that the site works fine, but the theme is shot.

I searched the boards without luck, I searched through the files on my site and I searched through the db. I just can't find the problem.

Please help me.
Thanks in advance.
Title: Re: Server migration -> broken paths
Post by: phill104 on June 21, 2011, 02:37:06 PM
Have you checked the config page?

http://documentation.coppermine-gallery.net/en/configuration.htm#admin_general_coppermine-url

Have you run update.php? If not do so now and see if that helps.
Title: Re: Server migration -> broken paths
Post by: prokops on June 21, 2011, 04:16:29 PM
Hi Phil, thanks for answering

I'm running 1.5.12 (stable), the update script runs all ok and the config panel does not offer change of path.

The problem is therefore not solved, I'm sure it is something trivial, but I can't figure it out.
Title: Re: Server migration -> broken paths
Post by: phill104 on June 21, 2011, 11:32:34 PM
Well the default curve theme is working as expected so it cannot be a cpg configuration problem (I should have checked earlier :-[) but running update.php ould have done no harm.

So it looks as though your theme is the problem though I cannot se why the simple change in server setup would cause problems unless there is something very wrong with your custom theme. Can you post images of how it should look and how it looks now?

Also, please zip your custom theme and attach it to your next post so we can take a look.
Title: Re: Server migration -> broken paths
Post by: Joe Carver on June 22, 2011, 12:35:08 AM
Firefox error console returns:

QuoteError: The stylesheet http://www.prokop.dk/gallery/css/coppermine.css was not loaded because its MIME type, "application/octet-stream", is not "text/css".
Source File: http://www.prokop.dk/gallery/index.php
Line: 0
and....
QuoteError: The stylesheet http://www.prokop.dk/gallery/themes/snowflake/style.css was not loaded because its MIME type, "application/octet-stream", is not "text/css".
Source File: http://www.prokop.dk/gallery/index.php
Line: 0

Good call Phil.
Title: Re: Server migration -> broken paths
Post by: prokops on June 22, 2011, 12:30:43 PM
First of all, thanks to you all.

All my themes didn't work, even the standard ones - I can't imagine how phill could reproduce a sucess on the "curve" theme.
I emailed my host with the mime-type error and the growing suspicion of an server-side css parse disfunction.

Sure enough, host emails me that the new server software (lighttpd) did not have a mime type for css configured and it therefore defaulted to octet-stream.
In other words, no css.

Now fixed.

Thanks again, and I will use the error console from now on in stead of asking stupid questions ;)
Cheers,
prokop
Title: Re: Server migration -> broken paths
Post by: phill104 on June 23, 2011, 10:06:19 PM
Well done Joe.

Good luck with your site prokops. ;D