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: Template error after album move (and delete) into new category  (Read 6234 times)

0 Members and 1 Guest are viewing this topic.

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Template error after album move (and delete) into new category
« on: September 21, 2006, 04:47:14 am »

I did some "remodeling" and moved some albums while deleting others.

I've noticed the search engines are still sending traffic to the old album urls which are resulting in errors like this one for this url:

http://www.aeronauticpictures.com/royalty-free-stock-footage/thumbnails.php?album=1

Code: [Select]
Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">

<snipped rest - can see at above url>


I tried setting up a 301 redirect in .htaccess but that did not work. Did search these boards before posting. Ideas? Solutions?

Live site: http://www.aeronauticpictures.com/royalty-free-stock-footage/

I had started this gallery thinking I could post these discs as single images with single Quicktime files in albums of the same subject (i.e., album of all aerials, poster image of available disc and single QT movie on click).

Instead I've now got the categories, sub-cats and albums are now = full contents of these discs. So lots of stuff got deleted or moved...

Thanks!
« Last Edit: October 01, 2006, 02:50:53 pm by GauGau »
Logged

eruss

  • Supporter
  • Coppermine frequent poster
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 105
Re: Template error after album move (and delete) into new category
« Reply #1 on: September 21, 2006, 05:21:51 am »

If an album is deleted through the Admin interface, you should get an error that reads "The selected album/file does not exist !" and is surrounded by your theme (with menu buttons to click).

Did you delete the albums via FTP or via the Admin interface?
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #2 on: September 21, 2006, 05:31:36 am »

Did you delete the albums via FTP or via the Admin interface?

Hi Eruss - thanks for the help.

Via album manager - select album - delete - confirm.

Quote
4.3.4 Deleting albums

    * Choose a category from the dropdown list
    * Click on the album you want to delete
    * Click the "Delete" button
    * Confirm the alert box with "OK" (Are you sure you want to delete this album ? All files and comments it contains will be lost !)
    * Click "Apply modifications"
    * After clicking to Apply Modification, confirm your intent in the alert box with &the quot;OK" (Are you sure you want to make these modifications ? button.)

That's what I did.

ALSO: Since that error calls itself a template error, although I did not mod the hardwired template much at all, I just switched to classic and tried that url again and it returned the exact same error.
« Last Edit: September 21, 2006, 05:39:12 am by Aeronautic »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #3 on: September 21, 2006, 06:29:15 am »

Upgrade to most recent version (currently 1.4.9)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #4 on: September 21, 2006, 07:18:53 am »

Sami,

Thank you for the reply. I will do the upgrade. But is there any quick fix until I take care of the upgrade?

Thanks again!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #5 on: September 21, 2006, 07:24:29 am »

Try to re-upload fresh copy of your theme
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #6 on: September 21, 2006, 07:34:42 am »

I'll try that - but as noted above, I switched from Hardwired to Classic as a test. Same problem.

Again, thank you for the help.

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #7 on: September 21, 2006, 07:41:12 am »

Then it means that you've edited include/themes.inc.php which is not recommanded , in this case re-upload fresh copy of themes.inc.php
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #8 on: September 21, 2006, 08:05:28 am »

Actually, I did not.

Just double checked and the file date is the same as the others in the /include directory (except as noted below) - and when I edit a file, I save the original (renamed) - nothing like that here.

Uploaded a fresh copy anyway in case the server copy got corrupted - no change.

I have edited:

/include/functions.inc.php (just uploaded original file - no change)

/themes/hardwired/template.html

/displayimage.php (for alt tags)

Hmmm.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #9 on: September 21, 2006, 02:09:17 pm »

sorry but i'm out of any idea , maybe others can help you ...
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Nibbler

  • Guest
Re: Template error after album move (and delete) into new category
« Reply #10 on: September 21, 2006, 11:07:29 pm »

Enable debug mode.
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #11 on: September 22, 2006, 02:01:39 am »

Nibbler - thanks.

I'm in the middle of many QT movie uploads at the moment, but will debug and post here.

I did turn it on before and hit that url. Got the same error - or page "result," with zero debug data.

In the immortal words of the Governator, I'll be back.

Sami - thank you too for the effort.

Okay - very strange - just tested the sample "old" url in first post (missing album). Logged in (as admin) and using Netscape/Mozilla, I got a normal "The selected album/file does not exist !"

I could live with that error as all the page navigation is intact.

So I tried it again (not logged in) in IE 6 and got the original "Template error" reported in first post.

Hmmm.

« Last Edit: September 22, 2006, 02:07:11 am by Aeronautic »
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #12 on: September 24, 2006, 02:46:51 am »

Is there a way for me to create these deleted album numbers again? Or does CPG only add new albums with increasing digits?

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #13 on: September 24, 2006, 06:30:25 am »

Is there a way for me to create these deleted album numbers again?
Yes there is you can create those album manualy by phpmyadmin

Does CPG only add new albums with increasing digits?
Yes if you using CPG interface to create an album it will increasing ...
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #14 on: September 24, 2006, 06:42:58 pm »

Hi Sami,

Thanks for the reply. I looked at phpmyadmin last night while backing up the database/site.

It seems pretty straight forward but I did not want to mess with it until I saw a reply here. I just need to get into the albums table and add a record with the missing ids it seems.

It looks like once the table record is created with the ID, the rest of the modifications I can make from CPG, no?

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #15 on: September 24, 2006, 06:53:48 pm »

you MUST fill first 9 column (aid,title,visibility,uploads,comments,votes,pos,category,thumb) with info by phpmyadmin and then you can modify them with CPG
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #16 on: September 24, 2006, 06:56:52 pm »

Thank you!

Glad I waited for your reply. This just may be a fix for this issue... I'll update the thread with the results.

Much appreciated.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Template error after album move (and delete) into new category
« Reply #17 on: September 24, 2006, 07:05:10 pm »

Please be carefull with that and first create a backup ...
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #18 on: September 24, 2006, 10:16:23 pm »

Album 1 in - not pretty but better than the template error.

See original post for test.

Rest of the site still seems to be working too.

Have several more to go. I've been a bit puzzled by what is required and the options for the POS field. I'm going to increment them making sure there is no duplication in the category.

Edit: All in and all "seem" to be working. So far it looks like I did not break the site in any other way.

There is no reason not to "re-use" these albums now with new names - I take it?

Even though the SERPs will be wrong for a while at least folks will find content that looks like the site is working, not the old error message or new (but better!) empty album message.

Still not sure why the album deletion (from album admin, no less) resulted in such as nasty error, but it is a cautionary tale.

MODS: I think you can mark this solved. Would still like a little feedback on the POS issue and if I got it right - anything - as long as it is not duplicated in the album?

PS. I tweaked the language file a little bit to tell folks the file or album has moved and to click the Home menu link - hopefully that will keep them on the site.

Thanks for all the help!!!
« Last Edit: September 25, 2006, 07:56:54 pm by Aeronautic »
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Template error after album move (and delete) into new category
« Reply #19 on: October 02, 2006, 11:52:16 pm »

Post script. Gallery now 1.4.9

While I've not "undone" any of the fixes outlined in this thread, the test url in the first post is working as desired so I managed not to break anything else in the process.
Logged
Pages: [1]   Go Up
 

Page created in 0.045 seconds with 21 queries.