Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Server migration -> broken paths  (Read 2299 times)

0 Members and 1 Guest are viewing this topic.

prokops

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Server migration -> broken paths
« 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

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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Server migration -> broken paths
« Reply #1 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

prokops

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Server migration -> broken paths
« Reply #2 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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Server migration -> broken paths
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Server migration -> broken paths
« Reply #4 on: June 22, 2011, 12:35:08 am »

Firefox error console returns:

Quote
Error: 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....
Quote
Error: 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.

prokops

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Server migration -> broken paths
« Reply #5 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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Server migration -> broken paths
« Reply #6 on: June 23, 2011, 10:06:19 pm »

Well done Joe.

Good luck with your site prokops. ;D
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.