Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Theme Upgrade from 1.4 to 1.5  (Read 4542 times)

0 Members and 1 Guest are viewing this topic.

TCWORLD

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Theme Upgrade from 1.4 to 1.5
« on: July 16, 2010, 11:50:13 pm »

I have read through the information in the documentation about upgrading themes from cpg1.4 to cpg1.5. Following that, I have adapted the CSS and HTML files for the theme i am using (a modified version of GrimmDF). However, as I have never used PHP script, I am so far unable to adapt the theme.php file - and without knowledge of what to do, and what information to look for I am stuck.

The theme works unadapted when logged out, however, as soon as I log in I can see nothing but a blank page and the following:

"Template error
Failed to find block 'exif_manager' (#<!-- BEGIN exif_manager -->(.*?)<!-- END exif_manager -->#s) in :"

Which suggest that there is something in theme.php for the admin pages that cpg1.5 doesn't like.

I would be most grateful for any assistance in modifying the theme.

Theme components are at:
http://www.railways-in-miniature.co.uk/gallery/themes/GrimmDF (which should be accessable to you)

the gallery home page is here:
http://www.railways-in-miniature.co.uk/gallery/index.php

without knowing PHP myself, or knowing anyone who does, I am at a loss. As the rest of my site has been made to match this image template, it would be very difficult to change to a different theme.

For the moment, I can access the admin pages by using the &theme= after index.php, but when making changes to the gallery it is difficult to see how they look to the public as I have to log out and clear IE's temp and cookie files to see it (I cant install firefox).



Tom
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Theme Upgrade from 1.4 to 1.5
« Reply #1 on: July 16, 2010, 11:53:34 pm »

Please attach your theme.php as theme.php.txt.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

TCWORLD

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Theme Upgrade from 1.4 to 1.5
« Reply #2 on: July 16, 2010, 11:59:34 pm »

Attached.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Theme Upgrade from 1.4 to 1.5
« Reply #3 on: July 17, 2010, 01:14:33 am »

I modified a few things, of course keep a backup of the theme.php you are currently using but give this one a try.
I don't have a 1.5.x gallery so this is untested.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Theme Upgrade from 1.4 to 1.5
« Reply #4 on: July 17, 2010, 07:42:50 am »

Use an empty theme.php file and you should be fine.
Logged

TCWORLD

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Theme Upgrade from 1.4 to 1.5
« Reply #5 on: July 17, 2010, 10:45:03 am »

Jeff you are brilliant.

One of the changes you made caused the theme to not load, but once that line was restored to the line in the old theme.php, the whole thing now works perfectly.

Thanks very very much for your help!
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Theme Upgrade from 1.4 to 1.5
« Reply #6 on: July 17, 2010, 09:34:28 pm »

Glad it worked, thanks for properly resolving. That file was pretty messy, you should try what Joachim says:
Use an empty theme.php file and you should be fine.
and see if that works just as well.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 21 queries.