PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   images in /data directory not being renamed during upgrade! (http://www.photopost.com/forum/photopost-pro-installation-upgrades/116321-images-data-directory-not-being-renamed-during-upgrade.html)

ironlogik October 21st, 2005 10:12 AM

images in /data directory not being renamed during upgrade!
 
Please help.

I've been trying for almost a week now and no progress.

I was running PP 4.86 + vB 3.0.x

Recently upgraded to vB 3.5.0 GOLD and am now trying to upgrade to PP 5.21

My method: Old live PP install was in /photos on my domain. I unzipped the 5.21 zip file into a directory called /photos2/. Edited the config-inc and config.int files with my correct data and paths that point to /photos2. I also point it to a new DB which is a copy of my old 4.86 DB so that I dont have to touch the live copy. I then copy over the /data and /uploads folders into /photos2 and chmod -R 777 both of them. I run the upgrade script starting at the 4.85/4.86 point and everything goes through seemingly fine except for some "already existing" errors on the 4.85 step 1 which seems to be common.

The rest of the install seems to go fine and I can login to PP afterwards, but all the images and thumbs are broken. They point to images with apparently prepended #'s on them, which arent there. So I'm assuming one of the upgrade steps renames the files in /data? This doenst make sense because its been properly chmodded to 777 recursively.

BTW- I've tried this numerous times, all with fresh DB's and fresh install directories. Just so that steps were not duplicated.

One question actually -- in Step 2 for the 4.86 upgrade, when it renames the DATA directory... in the next page shoud it verbosely list the files that have been renamed? Or not?

I'm out of ideas. Please help!

Chuck S October 21st, 2005 10:29 AM

We dont rename the data directory. More than likely your error is in something your doing with trying to do in the replication process

Your data path is in your database not files. Basically the 485-486 upgrade creates directories underneath your data directories of medium thumbs and mini then your medium images and thumbnail images are renamed and moved. Then on the last step your entries on the photo table the bigimage is renamed to userid on front of image

As long as everything is ran as it is suppose to be ran and all paths etc are right and images exist where they should be you should be fine.

Any issues with this upgrade resolve to 3 things

1. user's data path is wrong

2. permissions on data directories not 777

3. step 3 is ran more than once resulting in userid being prepended on images more than once.

ironlogik October 22nd, 2005 01:54 PM

Thanks for the quick reply Chuck.

I've tried many more times and double-checked my configs, heck, even chmodded every file in my photopost directory recursively with 777 and no go. I even took down my old live copy and ran the upgrade from the original path (/photos), and no go. Step 3 in the 4.8x upgrade was screwing me over by prepending the userID on every image filename in the DB, while step 2 was not renaming them to facilitate step 3.

However, I have gotten it to work now, and the way I did it was by skipping Step 3 in the 4.8x upgrade. Every other step before and after it I did. Now my photopost looks to be up and running 100%.

Please tell me if there are any negative consequences to skipping this step. In my eyes there don't seem to be any. Ive uploaded some test images to make sure my PP is working and it looks fine. You can take a look at my live PP running now @ http://www.toyotanation.com/photos/

Chuck S October 22nd, 2005 02:01 PM

That would mean you did step3 if it works. I can say that without a doubt as if step3 had not been done they would not show. It is pretty absolute in the new code we do not parse the userid before the image after PP5 so your bigimage field in photos in step3 had to have been run prepending the userid to the image name in the bigimage field

Looks fine EXAMPLE HERE

http://www.toyotanation.com/photos/s....php/photo/200

You say you did not do step3 yet look here is a very old photo

Look at this user 2 image is being shown.

Look at the code in showphoto

$imgurl = "{$Globals['datadir']}/$storecat/medium/$bigimage";

That means you definately ran STEP 3 of the upgrade ;)

ironlogik October 22nd, 2005 02:21 PM

could it be that i was possibly running PP 5.x before the upgrade?!? In my old config-inc.php it says:

// PhotoPost Pro Version Number
$VERSION = "4.86";

Is there any other way of confirming the version number of an installation?

This would explain EVERYTHING!

Chuck S October 22nd, 2005 02:30 PM

It could have been indeed you where already running 5.0

would not be the first time someone was mistaken about what version they are running


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

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97