PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 15th, 2012, 04:18 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
Data Folders Issue

I've been running PP Classifieds since 2006. Today one of my users was having a problem with an image not uploading and I had to look at my Data directly.

I found about 40 sub-directories in the Data Folder. But only 9 have anything in them. Most of those 9 that have images in them have 20K to 30K worth of content -- but one of those 9 folders (coincidentally it's "/data/9/") has 2,384,268 kb and 6500 image files in the folder.

And, a good many of these images go back to 2006.

What do I need to do about this?

Why do I have 30+ folders in my Data directory with nothing in them. And only 9 folders with files in them.

And why does the "Data/9/" subdirectory have 6 years of images in it and is it the one that is so huge?

It appears that images are not being deleted when I daily delete "expired" ads.

I've attached a screen shot of the folders with any content in them, plus a couple that have no content -- but there are 30 more folders without content, as well.
Attached Images
File Type: png Screen Shot 2012-10-15 at 3.15.19 PM.png (40.3 KB, 3 views)
creativepart is offline   Reply With Quote
Old October 15th, 2012, 07:23 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Your data folder is the images for the ads in your site.

Nothing is an issue that I am seeing from your description. empty folders would be common if you have categories that have no content.

Folders with images are related to ads on your site. If you are running the cron task and expiring ads then when you go to admin the old ads should be deleted.

Now note I say should. We issue a delete command on the server on the file paths of any images related to the ad. Now if your server does not delete the image it could be a permissions issue.

I really can not say without clear exact information on the site. I would need to see the folder the category the database etc and see whats what.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 15th, 2012, 10:49 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
Perhaps the old files on the server are left over from long ago then? I run the cron job and delete expired ads every day. But years ago I know that I didn't.

I can try to delete all the old files from /data/9/ folder and see if it's keeping them purged going forward.

None of the other folders seem to be an issue at all.
creativepart is offline   Reply With Quote
Old October 15th, 2012, 10:52 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
I remember discussing a similar issue here in 2008.

Here's a link: Photos in Classifed -- removed automatically?
creativepart is offline   Reply With Quote
Old October 15th, 2012, 10:55 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
Let me ask one other question -- in my file manager, the date on the files is "date last modified". It seems that's the date last modified on my server. Not the date the user last modified it.

I ask because if I have a slue of files with a 2006 last modified date in my data folder that means the file was uploaded (or modified) on my server last in 2006. It can't mean that the user last modified the file on his computer in 2006 and uploaded it yesterday. Can it?
creativepart is offline   Reply With Quote
Old October 16th, 2012, 09:24 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
The date last modified would definately always be whatever your server date it was last modified is.

Remember like I said if you upload an ad and then delete it our program will delete that image.

Now that is not to say your server did not have some type of permissions error where the file where not being deleted at some point back then maybe your permissions are wrong etc

Your asking hypothetical things here hard to really respond without seeing the problem.

If you search your classifieds products table for that image name and it is not found it would be safe to delete it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 16th, 2012, 10:46 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
I did a test today and current ads are deleting the photos when they are deleted from my "expired ad" queue. So, it must be old ads.

I'll clean up all these old files and that should take care of things.

Thanks Chuck
creativepart is offline   Reply With Quote
Old October 16th, 2012, 11:05 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Your welcome. I remember a similar issue with the gallery product with another user years ago.

Say for instance along time ago you had maybe permissions set incorrectly on that data directory to 755 instead of 777 it would be possible like I said that your server would not delete the files.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S 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
Upgrading - Upload Data & Uploads folders? NetRover Photopost Pro Installation & Upgrades 4 November 26th, 2006 02:34 PM
What folders in Data Amedeus Classifieds Installation & Upgrades 4 April 29th, 2006 06:40 PM
Curious about Data folders CEDillard General Discussion 1 September 14th, 2005 03:30 PM
Upgrade question about data folders indiamike Photopost Pro Installation & Upgrades 2 April 14th, 2005 10:27 AM


All times are GMT -5. The time now is 08:35 PM.

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