Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Batch Add Files Not running properly  (Read 4798 times)

0 Members and 1 Guest are viewing this topic.

soulman

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
[Solved]: Batch Add Files Not running properly
« on: June 18, 2004, 01:32:27 pm »

Hi there,

Just installed CPG1.3.
All installation went fine, only one problem

When I click on "Batch Add Files"

I get a bix which says "Select Directory....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"

And thats it !!, I can select any directory and no directoy paths show up.

I can add files one at a time by using Upload File , but I need to you the Batch upload as I have over 100 photos to upload.

Any help please ???

Thanks

Soulman
 ;D ???
« Last Edit: June 21, 2004, 12:10:23 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch Add Files Not running properly
« Reply #1 on: June 18, 2004, 02:06:09 pm »

did you actually upload files by ftp before going to the batch-add section? Make sure to create directories within "albums", not userpics. You mustn't use the userpics folder for batch-add, it is reserved for pics being uploaded by http upload. Also make sure your folders don't contain dots in their names. For details, refer to the documentation that comes with coppermine.

GauGau
Logged

Peter HB

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Batch Add Files Not running properly
« Reply #2 on: June 19, 2004, 07:30:05 pm »

Your warning about not using 'userpics' was timely as I was having similar problems, however the problem is only partially solved and I would be grateful for more advice.

My 2 residual problems are:

1  The following error is generated on each image whilst trying to fill some of my albums.

Warning: getimagesize(): Read error! in /home/********/+++++++l/Gallery/include/picmgmt.inc.php on line 219
Unable to create thumbnail or reduced size image.

As the message is misleading I would appreciate some guidance. I have ftp 'd the files in question back to my computer and have no difficulty in opening them and Paint Shop Pro has no difficulty in creating its own thunbnails, so clearly they are not flawed on the server. Could there be a limit within Coppermine that I've reached without knowing it, perhaps in the number of albums? I have 14 albums in 4 categories presently (http://hbsys.co.uk/Gallery) and I cannot install files beyond the last 6 to succeed.

2 A minor problem: what about the directories that are already in 'userpics' from the original cpg 1.2.1 installation?. Is action required?

Many thanks for any help.

Peter HB
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch Add Files Not running properly
« Reply #3 on: June 20, 2004, 03:06:20 pm »

1) CHMOD properly, as suggested in the docs
2) No

GauGau
Logged

Peter HB

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Batch Add Files Not running properly
« Reply #4 on: June 20, 2004, 06:46:38 pm »

Thanks for your response: unfortunately it doesn't address my problem. ALL my upload directories are 755 and ALL the files in them are 644, including the pictures that have been successfully added.

I appreciate that I'm probably suffering from unfamiliarity with Coppermine, but permissions are not the problem and I would appreciate another suggestion if you have the time.

Regards

Peter HB
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Batch Add Files Not running properly
« Reply #5 on: June 20, 2004, 07:54:15 pm »

On many servers the chmod has to be 777 and 666 for coppermine to work.  This is so on one of my sites.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Peter HB

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Batch Add Files Not running properly
« Reply #6 on: June 20, 2004, 10:06:13 pm »

I hear what you say, but if that is the case why did I successfully upload the first 103 images? The failure occurred mid-session and all files have the same permissions, namely 644, and I find it unlikely that my server installation counted files and then stopped at this point as a result of invalid permissions. :)

Thanks for your interest.

Peter HB

Following this post (which I'm now modifying) I discovered that my problem is related to capacity somewhere. I deleted 1 file and discovered that I could then upload another 3.5 before hitting the stops! Unless anyone thinks this could be a Coppermine issue I'll push off and do some checking with my ISP.

Many thanks for all the help.

Peter HB
« Last Edit: June 20, 2004, 10:58:50 pm by Peter HB »
Logged

Peter HB

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: [Solved]: Batch Add Files Not running properly
« Reply #7 on: June 21, 2004, 05:20:14 pm »

Apologies for replying to my own post, but...

The problem is clearly one of resources becoming exhausted and the only question is, "Is this a Coppermine problem". The (singular) MySQL DB is only 70k and my ISP allocated web space is only 25% utilised so there is a probability that Coppermine is involved.

Further information on my previous post is that the ultimate file was only partially created by 'picmgmt.inc.php' - only the upper half of the image appeared in the album, although the thumbnail was intact. A cursory reading of the above script reveals that the failure is detected in the created image; not in the original uploaded one, further suggesting a Coppermine problem - if it was php I would have expected other failures in the previously successful 107 files that were added to my albums.

Any help or guidance would be gratefully received.

Peter HB

Problem solved!
« Last Edit: June 24, 2004, 01:17:30 pm by Peter HB »
Logged

Sogeri

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
    • http://www.orchidspng.com
Re: [Solved]: Batch Add Files Not running properly
« Reply #8 on: August 15, 2004, 12:09:37 pm »

Hi,

Today I upgraded to version 1.3  

I have the same problem. All I get is this:

Select directory  
 
 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
 
 
No actual directory shows.

My paths to the images are:

The album directory *    albums/
The directory for user files *    userpics/

All worked fine in version 1.2

Below is the script that shows in debug mode.

I do appreciate your help.

Thank you.

Wolfgang




USER:
------------------
Array
(
    [ID] => 26a684577d6814330d208ed7e61190f3
    [am] => 1
    [theme] => eyeball
    [liv] => Array
        (
           
  • => 3072

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => D E L E T E D
    [user_password] => D E L E T E D
    [user_lastvisit] => 2004-08-15 04:43:12
    [user_regdate] => 2003-08-17 05:26:25
    [user_group_list] =>
    [user_email] =>
    [user_website] => http://www.orchidspng.com
    [user_location] => Port Moresby, Papua New Guinea
    [user_interests] => orchids, web design
    [user_occupation] => webmaster
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg11d_albumsfiletypes;
  • [1] => SELECT * FROM cpg11d_albumsusers WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '5f4dcc3b5aa765d61d8327deb882cf99'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg11d_albumsusergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg11d_albumsusergroups WHERE group_id= 1
        [4] => DELETE FROM cpg11d_albumsbanned WHERE expiry < 1092563958
        [5] => SELECT * FROM cpg11d_albumsbanned WHERE ip_addr='202.165.192.23' OR ip_addr='202.165.195.151, 202.1.52.44' OR user_id=1
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.8 - OK
    ------------------
    mySQL version: 4.0.20
    ------------------
    Coppermine version: 1.3.1
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.23 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.20
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient  
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
    open_basedir | /hsphere/local/home/bandisch:/usr:/tmp:/var/tmp | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | /usr/sbin/sendmail -t -i -f bit-bucket@us-bsd1.sansolo.com | /usr/sbin/sendmail -t -i -f bit-bucket@us-bsd1.sansolo.com
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.107 seconds - 6 queries in 0.005 seconds - Album set :
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: Batch Add Files Not running properly
« Reply #9 on: August 15, 2004, 12:47:03 pm »

You were never meant to ftp-upload to the userpics folder. Not in cpg1.1, not in cpg1.2.x, and not in cpg1.3.x
In cpg1.3.x, we just enforce this rule by not displaying the userpics folder at all when using batch-add (on the searchnew.php page) to avoid the issues that came up in the past when users were ftp-uploading to the userpics folder (for some it worked, for others it didn't). This is all well documented - reading the docs is higly recommended. Quote from the docs:
Quote
Important: do not create folders or upload to the userpics- nor the edit-folder by ftp: these folders are used by coppermine internally and mustn't be used for any other purpose!
This has as well been asked a thousand times on this board, next time please search before posting.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.