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: ftp - batch upload: cannot select directory  (Read 5042 times)

0 Members and 1 Guest are viewing this topic.

tallis

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
ftp - batch upload: cannot select directory
« on: July 20, 2006, 11:01:57 pm »

Hi there,

After installing cpg 1.4.8 sucessfully a couple of days ago
and doing some configuration work, I still haven't managed
to upload at least a single picture.

My ftp program tells me they are already there but cpg does
not recognize them.

The add batch button tells me to select the directory in which
I have uploaded the pictures, but my browser (Firefox 1.5 on a
mac) doesn't even diplay the dialog-box.
On a different browser I can see the box, but there are no
directories visible to choose from. [*see php transcript below]

On single file upload I get the message that the files cannot
or could not be moved.


What can be done?

Oh, all the rights are set to 777 ...

« Last Edit: July 20, 2006, 11:29:22 pm by tallis »
Logged

tallis

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: ftp - batch upload: cannot select directory
« Reply #1 on: July 20, 2006, 11:33:33 pm »

I've done some more testing e.g. created a new, different album
- this time I get a reply along the lines that the script cannot write
into the folder albums/userpics/

I will attach the debug info in a new message - so it can be easily
skipped ...
Logged

tallis

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
ftp - batch upload: cannot select directory
« Reply #2 on: July 20, 2006, 11:34:10 pm »

here goes:

*
USER:
------------------
Array
(
    [ID] => 57766a1b835d6d33a59c9f4c759d0044
    [am] => 1
    [lang] => german
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => web295
    [groups] => Array
        (
           
  • => 1

        )

    [disk_max] => 102400
    [disk_min] => 102400
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 102400
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.001s)
  • [1] => select * from cpg148_plugins order by priority asc; (0s)
        [2] => delete from `usr_web295_3`.cpg148_sessions where time<1153422905 and remember=0; (0.001s)
        [3] => delete from `usr_web295_3`.cpg148_sessions where time<1152216905; (0s)
        [4] => select user_id from `usr_web295_3`.cpg148_sessions where session_id=md5("7311be5ebea8b30c2fe871fbcb54401a675531b98156b283e6e47d51cdee9a98"); (0s)
        [5] => select user_id as id, user_password as password from `usr_web295_3`.cpg148_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `usr_web295_3`.cpg148_users AS u INNER JOIN `usr_web295_3`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `usr_web295_3`.cpg148_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => 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 cpg148_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0s)
        [10] => update `usr_web295_3`.cpg148_sessions set time='1153426505' where session_id=md5('7311be5ebea8b30c2fe871fbcb54401a675531b98156b283e6e47d51cdee9a98'); (0s)
        [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.006s)
        [12] => DELETE FROM cpg148_banned WHERE expiry < '2006-07-20 21:15:06' (0s)
        [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='217.225.22.122' OR ip_addr='217.225.22.122' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg148_albums WHERE 1 (0s)
        [15] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 4.1.10a
    ------------------
    Coppermine version: 1.4.8(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: 2.0 or higher
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XBM Support:
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.10a
    MYSQL_MODULE_TYPE none
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.2
    Linked Version 1.2.2
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | On
    safe_mode_exec_dir | /srv/www/htdocs/empty/ | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /srv/www/htdocs/empty/ | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | . | .:
    open_basedir | /srv/www/htdocs/web295/html/:/srv/www/htdocs/web295/phptmp/:/srv/www/htdocs/web295/files/:/srv/www/htdocs/web295/atd/ | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i -f web295@www.musikgym.de | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.543 seconds - 16 queries in 0.009 seconds - Album set : ; Meta set: ;
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: ftp - batch upload: cannot select directory
« Reply #3 on: July 21, 2006, 12:03:46 am »

Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ftp - batch upload: cannot select directory
« Reply #4 on: July 21, 2006, 06:32:57 am »

You're probably self-hosted on a Windows machine. Switch the batch-add interface from "browsable" to "classic". Don't post debug_output unless requested.
Logged

tallis

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: ftp - batch upload: cannot select directory
« Reply #5 on: July 21, 2006, 11:49:22 pm »

Quote
You're probably self-hosted on a Windows machine.
Sorry but you're wrong. I told you that I#m using FF on a MAC.
My webhoster is www.revido.de

Quote
Switch the batch-add interface from "browsable" to "classic".
so I did. - have switched back and forth. no avail...

Some more helpful ideas?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: ftp - batch upload: cannot select directory
« Reply #6 on: July 21, 2006, 11:58:47 pm »

Quote
On single file upload I get the message that the files cannot
or could not be moved.

Quote
Oh, all the rights are set to 777 ...

try 755 and ask your webhost for correct CHMOD or permission for write
Logged
‍I don't answer to PM with support question
Please post your issue to related board

tallis

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: ftp - batch upload: cannot select directory
« Reply #7 on: July 22, 2006, 12:35:58 am »

I've just tried setting all permissions to 755 and still get the following
error message on single file upload:
Quote
In das Zielverzeichnis alben/userbilder/ kann vom Skript nicht geschrieben werden!
Datei: /srv/www/htdocs/web295/html/cpg148/db_input.php - Zeile: 331
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: ftp - batch upload: cannot select directory
« Reply #8 on: July 22, 2006, 12:40:56 am »

Please post english error under english board
I'm sure your error ( as it's refrence to line 331 of db_input.php ) is permission to write under album folder , so as I said before ask your host for correct permission and make sure you've set it correctly
Logged
‍I don't answer to PM with support question
Please post your issue to related board

tallis

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: ftp - batch upload: cannot select directory
« Reply #9 on: July 22, 2006, 01:38:40 am »

Please post english error under english board

Well, I had just found out that GauGau is a native German speaker,
but anyway, here goes:
the script cannot write into the target directory albums/userpics!
filei: /srv/www/htdocs/web295/html/cpg148/db_input.php - Zeile: 331
« Last Edit: July 22, 2006, 10:25:15 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ftp - batch upload: cannot select directory
« Reply #10 on: July 22, 2006, 10:30:51 am »

You can temporarily switch your language to english to English error messages by going to http://yoursite.tld/your_coppermine_folder/?lang=english. Go back to German with http://yoursite.tld/your_coppermine_folder/?lang=xxx

Well, I had just found out that GauGau is a native German speaker,
That doesn't matter, I'm not the only supporter. German postings are only allowed on the German support board.

do as suggested under trouble shooting docs
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
In fact you should do as suggested in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

As bmossavari already pointed out: get your permissions fixed. As suggested in the docs (permissions section):
Quote
If you can't figure how to set permissions properly, ask your webhost for support.
Nothing we could possibly do to help you.
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 19 queries.