 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
September 14th, 2008, 02:27 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Mar 2008
Posts: 5
| Lost my database, but not my files
Never mind how, but I lost my database. I've read Chuck's guide about how to restore from this situation by making a file backup (dataold) and uploading (skip the upload) from the backup directories. Here's the hiccup:
Doing a fresh install of Photopost (6.11) creates three directories in the data directory, 1, 2 and 500. Looking at the database, and the way the uploads happen, sub-directory 1 corresponds to category 1, which is the main category, and created categories are from 501 on. I manually created categories 501-515, which in turn created the sub-directories 501-515. I uploaded (skip the upload) from the backup files, and everything went swimmingly into the subdirectories 501-515, creating categories with database ID's 501-515. All as expected so far.
Now!!!!
When I try to upload to category ID #1 (Main), Photopost complains that it cannot upload to sub-directory 0. I manually created sub-directory 0, and the upload worked, but Main is still category 1 from Photopost's point of view, and the images do not appear when you try to view Main. WTF!!!
Any clues???
Last edited by penningtonj1964; September 17th, 2008 at 09:22 AM.
|
| |
September 14th, 2008, 03:10 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
I am not sure what your trying to say about subcat 0 as that would not be a selection in our software
do you have a url and test login for me to try and upload to cat 1?
|
| |
September 15th, 2008, 05:41 AM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Mar 2008
Posts: 5
|
I'm rebuilding by hand, and at the moment, if you tried this on our site, you'd break all the current work, but what you say is interesting.
My understanding, from observing the behaviour, is that Main is category 1. If I do an insertion of pictures from a server-side backup directory to Main, and the system tries to put it in directory 0, then that sounds to me like an off-by-one error of some kind.
Is the path information stored in the database, or is it constructed on the fly every time from the record ID? If it's in the database, I should be able to change it manually, should I not, then rename the directory?
|
| |
September 15th, 2008, 05:53 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
The photos are stored on disk and info like title description are stored in the photo insert.
You have not provided me with your url here. Why would you be renaming a directory you should not have a directory 0 on the server. You can not upload to main because main can not contain photos.  Maybe thats your issue. You can upload to A Category.
|
| |
September 15th, 2008, 06:27 AM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Mar 2008
Posts: 5
|
That's great information... Thanks.
So you're saying I should never have had anything in the number 1 directory, is that correct? If it is, that answers a question for me.
If I upload to 'A Category' will the photos end up in subdirectory data/1?
Currently my installation is offline, so I can't post access in public - sorry.
|
| |
September 15th, 2008, 06:13 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
No the photos would end up in category 2
If you want photos in category 1 make sure to edit that category and set contains thumbs to yes
I am just saying in a default photopost cat 1 does not contain photos
|
| |
September 17th, 2008, 09:24 AM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Mar 2008
Posts: 5
|
Now I'm getting it. So, setting the 'contains thumbs' to 'yes' enables posting to the main forum, and that would be cat 1, and that would put stuff in the sub-directory '1', is that correct?
BTW - Thanks for all this help. It's been an expensive rebuild so far.
Also, we're now up, so www.grenadaphotogallery.com, and if you register, I'll get you access to rummage around.
Last edited by penningtonj1964; September 17th, 2008 at 09:35 AM.
|
| |
September 17th, 2008, 06:50 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
YES that is the setting you want |
| |
September 18th, 2008, 07:26 AM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Mar 2008
Posts: 5
|
Hate to do this to you, but one more issue has arisen as part of this: Because I copied the existing data directories to create the initial structure (at least I think this is the cause), I have a bunch of thumbnails visible in Photopost that link to nothing. So...
If I delete the contents of a thumbs sub-directory, then rebuild thumbnails from the Photopost 'Scan Database' administration page, will that create thumbnails only for those images that exist in the data directory? In other words, fix the problem?
|
| |
September 18th, 2008, 06:10 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
If you run a scan database rebuild thumbs it will only save those images that truly exist correct.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:29 AM. | |