Prosilver with 1.5 Prosilver with 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

Prosilver with 1.5

Started by Bill Hildyard, March 30, 2010, 08:53:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bill Hildyard

Hi I am trying to install amidly customised version of Prosilver to 1.5 however despite follow all the upgrade themes instructions I am getting the following error:

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

Full text of error page attached, any thoughts.

Cheers

Bill

Jeff Bailey

Almost
Quote from: Jeff Bailey on March 30, 2010, 08:55:37 PM
Then create a new one with your themes theme.php and template.html attached and a link to your site.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Bill Hildyard

Sorry.

Files attached. http://www.gasteria.org.uk/Gallery/

Cheers

Bill


Joachim Müller

Actually I suggest zipping your custom theme folder and attaching the zip to your posting.
You appear to be using an editor that is not up to the task, with double line-breaks showing through for me. You have copied nonsensical code from somewhere you shouldn't have copied from: your theme.php file end in mid-air withif (!function_exists('theme_display_image')) {  //{THEMES}

function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)

{

    global $HTTP_COOKIE_VARS, $CONFIG;



    starttable();

    echo $nav_menu;

    endtable();

    starttable();

    if ($CONFIG['display_film_strip'] == 1) {

echo "<tr><td width='200' class='tableb'
, which is of course incomplete and will cause errors.
Try the files I have attached instead for a start.

Joachim

P.S. In the short time span you have been around on this forum you have an impressive record of not respecting board rules and misbehaviour. You have been told about board rules often enough now, so the tolerance is zero as far as you breaking the rules is concerned.

Bill Hildyard

Sorry :-[ I am appreciative of the help.

I tried those two files but still getting the same error and it is defiantly to do with the theme as if I remove the Prosilver folder Coppermine opens with the default theme, zipped theme folder attached.

Regards

Bill

Joachim Müller

So you picked a theme that is one of the hardest to port from cpg1.4.x to cpg1.5.x, as nearly every item that can be changed was changed, and you try to use it without even having looked at
Quote from: http://documentation.coppermine-gallery.net/en/theme_upgrade_14x-15x.htm#theme_convert_themeConverting cpg1.4.x themes to cpg1.5.x
[...]
Edit theme.php
Many notable things have happened that will influence your modifications to your theme.php.
If you can, empty your copy of theme.php (of course you should keep a backup somewhere safe as a precaution) and then re-add the changes you need as if you were creating your custom theme from scratch, copying the relevant bits you want to see changed from the sample theme (as suggested in "The sample theme - a template to copy from") and then modifying your edits as you see fit.

The reason for the template error is the fact that vital items in the definition for $template_gallery_admin_menu in theme.php are missing. To make the theme sort-of work as expected, just get rid of that definition and the definition for the user admin menu as well. However, I can't see the point in using that very theme unless you run a forum with that theme as well.

Bill Hildyard

Yes I will have a forum running the same theme and a website the looks similar too, unfortunately, not my idea.

Bangs head against the wall, don't know how I missed that I did all the other changes above it, less haste more speed methinks. Will give it a go.

Thanks

Bill

Bill Hildyard

Decided to start a fresh with modifying Curve instead.

Thanks Bill

Bill Hildyard

I hope I have done right marking it resolved?

Bill

Joachim Müller

That was correct, thank you.