PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old May 16th, 2010, 12:11 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Location: NYC
Posts: 63
customfields_entries not deleted when image is deleted

vbgallery version 2.5

When deleting any image that has custom fields, the corresponding entry in tha ppgal_customfields_entries table is not deleted.

This happens on both methods for deleting an image:
  • on showimage.php - FileTools > Delete This File > Perform Action
  • on editimage.php - Delete This File > Delete

Not fixing this bug results in many unnecessary "dead" entries in the ppgal_customfields_entries table
antivirus is offline   Reply With Quote
Old May 18th, 2010, 03:26 PM   #2 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
good find...
this comes from the fact that hardly anyone uses the customfields...

to fix open forum/includes/functions_gallery.php
find
Code:
Content visible to verified customers only.
below add:
Code:
Content visible to verified customers only.
(imgid is not a typo.. its not imageid but imgid)

That should fix the problem.
(couldnt test it.. as i dont have vb 3.8 installed anymore)
-------------
Now the problem that persists is what to do with the leftovers.

this depends on how many images you have..

you can do it the hard way..
open any file.. showimage is a good example

after

Code:
Content visible to verified customers only.
add

Code:
Content visible to verified customers only.
Now check the highest imageid you have... (go to phpmyadmin and sort table ppgal_images by imageid)

if its smaller than 30000, run the page, remove the code you added on showimage (for example) and you are done.

but if its higher, for example 65123

then you have to run the page 3 times.. changing $startimage 3 times
run it once as it is...
then open file change $startimage = 0; to startimage = 30000;
run the file again...
then open file change $startimage = 30000; to startimage = 60000;
run the file again...
then open file change $startimage = 60000; to startimage = 90000;
run it again...
basically you move up by 30000, until your highest imageid is included in the nummer..

You are done.. remove what you have added in showimage or whereever..


Luc

PS: i chose 30000 because i know that with around 50.000 depending on your mysql settings you can run into memory problems..

Last edited by Luciano; May 18th, 2010 at 10:32 PM.
Luciano is offline   Reply With Quote
Old May 25th, 2010, 10:24 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Location: NYC
Posts: 63
Sounds good Luciano, thanks!
antivirus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image data wont be deleted zkilzz Photopost Pro Bug Reports 1 December 15th, 2006 02:52 AM
Change text in "Your image has been deleted" e-mails? digidivakathy Photopost Pro How Do I...? 1 September 25th, 2006 08:44 PM
Medium Sized Image Deleted memorybugs Photopost Pro Installation & Upgrades 2 April 20th, 2006 06:41 PM
"Your image has been deleted" e-mails? digidivakathy Photopost Pro How Do I...? 3 February 11th, 2006 08:05 AM
Deleted Image still shows on Recent Photos sfm_aceman Photopost Pro Installation & Upgrades 2 November 10th, 2005 12:48 PM


All times are GMT -5. The time now is 01:18 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0