batch add problem: 1)directory list wont show up and 2)thumbs wont show up batch add problem: 1)directory list wont show up and 2)thumbs wont show up
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

batch add problem: 1)directory list wont show up and 2)thumbs wont show up

Started by indierockmedia, May 09, 2005, 01:05:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

indierockmedia

hi, i was using CPG 1.2 and it was working fine. i went to batch add pics and the directory lists in my "userpics" directory showed up. i have two subfolders in the "userpics" gallery, both chmod to 777 but when i clicked on the directory to place the files into appropiate albums, the thumbnail previews showed up as broken images. but when i added them to the albums, they showed up fine (full size and thumbnail showed up fine in the album list).

so i upgraded to1.3. now when i go to the batch add, the folders in the "userpics" directory dont show up. i get the text:

"This function allows you to add a batch of file that your have uploaded to your server by FTP.
Select the directory where you have uploaded your files"


but the directories arent there so i cant add anything. anyone know why?

mikey

Nibbler

You create a new folder in the albums directory, and upload your files into this new directory. Please check the manual.

indierockmedia

yeah i just found some answers whle searching old posts. i just moved all my pics up one directory to the "albums" and not "userpics". (for years ive used CPG and put photos in 'userpics' and it worked fine.. so i didnt think to read up on that being the problem) and it works. but i get php errors above the new thumbnails area once i click onto a directory. everything still lists, but i get this: (i hid the absolute path for security reasons)

Notice: Undefined variable: fullimagesize in /home/.----/----/bradley----.net/photos/searchnew.php on line 136

Notice: Undefined variable: fullimagesize in /home/.----/----/bradley----.net/photos/searchnew.php on line 137

those lines are:
    if (filesize($picname) && is_readable($picname)) {
        //$fullimagesize = getimagesize($picname); COMMENTED OUT FOR VIDEO SUPPORT
        $winsizeX = ($fullimagesize[0] + 16);
        $winsizeY = ($fullimagesize[1] + 16);

what could that be?

mikey

indierockmedia

the errors went away when i switched to "no" for intermediate pictures in the config.. weird

kegobeer

You moved directories to a new location but you didn't update your Coppermine database.  If you use phpMyAdmin and examine the pictures table, you will see what I'm talking about.  You have to update the image locations so Coppermine knows where to look for your pictures.

You shouldn't have moved the directories at all; you should have created new directories to ftp your images into and started using them for your new uploads.  In fact, that's what I recommend you do - put the directories back to where they were, then create new directories in the /albums directory for your new uploads.  Much easier than changing the paths for all of your pictures in the database.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots