Theme Upgrade from 1.4 to 1.5 Theme Upgrade from 1.4 to 1.5
 

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]

Main Menu

Theme Upgrade from 1.4 to 1.5

Started by TCWORLD, July 16, 2010, 11:50:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

TCWORLD

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

Jeff Bailey

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

TCWORLD


Jeff Bailey

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.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Joachim Müller

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

TCWORLD

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!

Jeff Bailey

Glad it worked, thanks for properly resolving. That file was pretty messy, you should try what Joachim says:
Quote from: Joachim Müller on July 17, 2010, 07:42:50 AM
Use an empty theme.php file and you should be fine.
and see if that works just as well.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford