PDA

View Full Version : vbpicgallery 10 - not showing pics


cope
10-28-2007, 06:09 AM
Hi guys,

Love the new vbpicgallery!
I'm having a problem though, I've upgraded from a previous version and I'm missing all of my photo's... They are in a directory with 777, and all the pics are 644. The vbconfig has been set up with the right path, and $vbpg_use_fs = 1;

Please help, my members are going to revolt soon!

Mark

Greg
10-28-2007, 08:50 AM
You have to upgrade to the new folder structure. There is a utility in there to do it.

Back up first. The instructions should be in the read me txt file.

cope
10-28-2007, 09:11 AM
This is what I get.... any ideas?

Page: 1 of 4

Moving /home/vcco/www/images/vbpicgallery/i6.jpg to...
/home/vcco/www/images/vbpicgallery/3/i6.jpg


Warning: filesize() [function.filesize]: stat failed for /home/vcco/www/images/vbpicgallery/t6.jpg in /admincp/updtvbpgfs.php on line 152

Warning: filesize() [function.filesize]: stat failed for /home/vcco/www/images/vbpicgallery/i6.jpg in /admincp/updtvbpgfs.php on line 153

Warning: file_get_contents(/home/vcco/www/images/vbpicgallery/t6.jpg) [function.file-get-contents]: failed to open stream: No such file or directory in /admincp/updtvbpgfs.php on line 158

Warning: file_get_contents(/home/vcco/www/images/vbpicgallery/i6.jpg) [function.file-get-contents]: failed to open stream: No such file or directory in /admincp/updtvbpgfs.php on line 159
t 3 - 6 OK

Warning: unlink(/home/vcco/www/images/vbpicgallery/t6.jpg) [function.unlink]: No such file or directory in /admincp/updtvbpgfs.php on line 188
i 3 - 6 OK

Warning: unlink(/home/vcco/www/images/vbpicgallery/i6.jpg) [function.unlink]: No such file or directory in /admincp/updtvbpgfs.php on line 198
Moving /home/vcco/www/images/vbpicgallery/i7.jpg to...
/home/vcco/www/images/vbpicgallery/3/i7.jpg

Greg
10-28-2007, 09:36 AM
Looks like the path is wrong. But there could be permissions errors.

That is the path that was in your vbpgconfig.php?

cope
10-28-2007, 09:43 AM
I think I have found the error.... a lot of my files are called vbgarage{i,t}[0..9].jpg...
I have to find a way to mass rename 1500 files....

any ideas?

Greg
10-28-2007, 09:54 AM
do the numbers correlate? Damn, I have to look at that code someday. Looks a little too familiar.

In any event, I can tell you how to edit the script and do it quicker. yes?

Greg
10-28-2007, 10:00 AM
Now I came up with what I have below. But if the pics are named that way, I can't see how things worked at all? We don't use that naming convention. I'm confused.

Is this an upgrade from my vBPicGallery or a free copy from somewhere?


Open the updtvbpgfs.php and find...

// create path to old image and thumb file
$vbg_oldimage = $vbpg_path . "/i" . $image[vbpicgalleryid] . $ext;
$vbg_oldthumb = $vbpg_path . "/t" . $image[vbpicgalleryid] . ".jpg";


Change to...

// create path to old image and thumb file
$vbg_oldimage = $vbpg_path . "/vbgaragei" . $image[vbpicgalleryid] . $ext;
$vbg_oldthumb = $vbpg_path . "/vbgaraget" . $image[vbpicgalleryid] . ".jpg";

cope
10-29-2007, 03:45 AM
I was using vbgarage, then you took it over, I kept using it, then you changed it to vbpicgallery and I bought it installed fine, now I'm here :)

I'll give that a shot and let you know how it went

it has moved a few, but it looks as if I have around 350 orphaned images.. I query the database for the image id of the image i.e. vbgaragei944.jpg (the 944) and it isn't found....

How did this happen? Any ideas how to fix it?

Greg
10-29-2007, 08:24 AM
I don't remember making file names like that. I'm lost for suggestions short of reading your php files and looking at your DB.