PDA

View Full Version : Problem moving images during upgrade to 10.0.4


Pages : [1] 2

wpwood3
11-19-2007, 12:30 AM
I'm trying to upgrade from vBPicGallery v4.3.5 Release Revision 8 to vBPicGallery Release 10.0.4.

I have always stored my images in the file system.
When I run updtvbpgfs.php to move my images it appears to work fine but, ALL of the images in the new folders have ZERO file size.

The folders are created correctly and the image files are there but each image file is empty.

HELP!

Greg
11-19-2007, 07:01 AM
You of course made a backup, right?

It's not usually a big deal. PM me FTP access and we'll sort it out.

wpwood3
11-19-2007, 11:37 AM
Yes I have backups but, this is my test server sitting here next to me.
I have not attempted the upgrade on my live server yet.

The old images are still intact in the old single folder system. They were not moved nor deleted in the process.

Is it possible that updtvbpgfs.php has a problem with php 5.1.6?

I'm using CentOS 5
Linux kernel - 2.6.18
Apache - 2.2.3
PHP - 5.1.6
MySQL - 5.0.22

Greg
11-19-2007, 11:44 AM
Many things are possible. I had to fix another similar utility in 10.0.4 though for vB 3.6.6 I think it was. Let me look again. I Know I posted a fixed for http://www.cpurigs.com/forums/showthread.php?t=4287 move2fs.php and this file would have the same bug.

Long story short, I think I have the fix but didn't post it. Let me look. If that don't work out, we'll look closer at your particular situation and see what may be up.

wpwood3
11-19-2007, 11:52 AM
Thanks for your quick reply!

I was hoping to get this upgrade completed today because I'm leaving town for the holidays tomorrow. If we don't reach a solution today then I'll have to put it off until next week. It's not critical either way. My website is still working fine with the old software.

Greg
11-19-2007, 11:54 AM
Try this file and see if it's different. http://www.cpurigs.com/forums/showthread.php?t=4346

wpwood3
11-19-2007, 12:03 PM
Try this file and see if it's different. http://www.cpurigs.com/forums/showthread.php?t=4346

Still the same result.
It creates the folders and places zero size image files in each folder.

wpwood3
11-19-2007, 12:08 PM
How are you finding the path to the OLD images?

Greg
11-19-2007, 12:09 PM
OK, so we get folders and files with names, but zero bytes? This is a home server, right? Since I can get access, it's really hard to write debug code to see what's wrong.

Anyway, what does the output look like at runtime?

wpwood3
11-19-2007, 12:14 PM
OK, so we get folders and files with names, but zero bytes? This is a home server, right? Since I can get access, it's really hard to write debug code to see what's wrong.

Anyway, what does the output look like at runtime?

It looks to me that the script is looking in the wrong place for the OLD images:

Page: 1 of 7

Moving /var/www/web2/vbpg_images/i2.jpg to...
/var/www/web2/vbpg_images/3/i2.jpg

t 3 - 2 OK
i 3 - 2 OK
Moving /var/www/web2/vbpg_images/i3.jpg to...
/var/www/web2/vbpg_images/3/i3.jpg

t 3 - 3 OK
i 3 - 3 OK
Moving /var/www/web2/vbpg_images/i4.gif to...
/var/www/web2/vbpg_images/3/i4.gif

t 3 - 4 OK
i 3 - 4 OK
Moving /var/www/web2/vbpg_images/i5.jpg to...
/var/www/web2/vbpg_images/3/i5.jpg

Greg
11-19-2007, 12:15 PM
I made some edits to the file for php5. I'm not so certain they are the fix, but go back to that thread and download and try the -5 file I just posted.

wpwood3
11-19-2007, 12:17 PM
The OLD images are here:

/var/www/web2/web/shopforum/vbpg_images


But the script is looking for them here:


/var/www/web2/vbpg_images

Greg
11-19-2007, 12:20 PM
It looks to me that the script is looking in the wrong place for the OLD images:


Moving /var/www/web2/vbpg_images/i5.jpg to...
/var/www/web2/vbpg_images/3/i5.jpg

All the old images are in one folder,. vbpg_images, and that's the path you input when you start.

Why do you think it is wrong?

Greg
11-19-2007, 12:22 PM
The OLD images are here:

/var/www/web2/web/shopforum/vbpg_images


But the script is looking for them here:


/var/www/web2/vbpg_images

The script is coded in such a way that the source and destination folder have to be the same. So, at the start you need /var/www/web2/web/shopforum/vbpg_images as your path. You'll have to move them before or after running the utility if you need the images moved to a new folder.

wpwood3
11-19-2007, 12:24 PM
All the old images are in one folder,. vbpg_images, and that's the path you input when you start.

Why do you think it is wrong?NO
The path I have been entering is the path to the NEW images.
I did not see anywhere that I was asked to input the path to the OLD images.

That's why I asked the question. "How does the script know where to find the OLD images"

wpwood3
11-19-2007, 12:26 PM
The script is coded in such a way that the source and destination folder have to be the same. So, at the start you need /var/www/web2/web/shopforum/vbpg_images as your path. You'll have to move them before or after running the utility if you need the images moved to a new folder.Now that makes sense!

How would I have known that?
I don't recall anything in the instructions telling me I had to move my images before running the script. I thought That was the purpose of the script.

My OLD images are located inside my web. Your update instructions specified that the new images had to be outside the web. That's the reason for the move.

Greg
11-19-2007, 12:28 PM
I don't recall where you asked that specifically, but we have enough now I think and post 14 should explain it and get your job done. (I think)

Greg
11-19-2007, 12:30 PM
Now that makes sense!

How would I have known that?
I don't recall anything in the instructions telling me I had to move my images before running the script. I thought That was the purpose of the script.

My OLD images are located inside my web. Your update instructions specified that the new images had to be outside the web. That's the reason for the move.

Yes, I see the confusion. And as many times and people have performed this action, this is the first time I've had to field such a question as a result of that assumption.

So anyway, I hope you understand now how to pull it off. It should be easy enough now and if so, I can update the readme file for others.

wpwood3
11-19-2007, 12:34 PM
It should work fine now.

Thanks much for your help!

Greg
11-19-2007, 12:35 PM
Good deal. Have a great trip. :)