Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: FTP/batchadd not working  (Read 9252 times)

0 Members and 1 Guest are viewing this topic.

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
[Solved]: FTP/batchadd not working
« on: April 03, 2009, 06:09:24 pm »

Hi !!

i've just installed Stramm and everything works fine except that i can't add pictures by FTP (i can upload files to the gallery the regular way).

i get a redX instead of my pictures : (I tried to change the CHMOD to 777 and 755 but i have the same error).

i made caps :



« Last Edit: April 04, 2009, 12:55:32 pm by Joachim Müller »
Logged

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #1 on: April 03, 2009, 06:24:07 pm »

Ok so apparently the batch add works but i still get the thumbnails preview as a redx.
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #3 on: April 03, 2009, 08:29:40 pm »

^ thanks i did that but it didn't change anything, i can upload by using FTP it's just the thumbnails preview like in the caps i made that aren't showing.
Logged

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #4 on: April 03, 2009, 10:32:13 pm »

sorry i didn't got why you gave me the link

here's the code:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 84b2629310ff90dd48b8f57d7af73893
    [am] => 1
    [lang] => french
    [liv] => Array
        (
            [0] => 3888
            [1] => 174
            [2] => 12934
            [3] => 12933
            [4] => 13356
        )

    [lap] => 1
    [search] => Array
        (
            [search] => Captures
            [album] => search
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [owner_name] => on
            [type] => AND
            [filename] => on
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                    [owner_name] => on
                    [filename] => on
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => nadioz
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM photos_filetypes; (0.001s)
    [1] => select * from photos_plugins order by priority asc; (0.001s)
    [2] => delete from `db214441150`.photos_sessions where time<1238786543 and remember=0; (0.052s)
    [3] => delete from `db214441150`.photos_sessions where time<1237580543; (0.022s)
    [4] => select user_id from `db214441150`.photos_sessions where session_id = 'f326baf0ae3909fc69c0e2efdfcd934d' (0.026s)
    [5] => select user_id as id, user_password as password from `db214441150`.photos_users where user_id=1 (0.023s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `db214441150`.photos_users AS u INNER JOIN `db214441150`.photos_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `db214441150`.photos_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 photos_usergroups WHERE group_id in (1) (0.002s)
    [9] => SELECT group_name FROM  photos_usergroups WHERE group_id= 1 (0s)
    [10] => update `db214441150`.photos_sessions set time='1238790144' where session_id = 'f326baf0ae3909fc69c0e2efdfcd934d' (0.041s)
    [11] => SELECT user_favpics FROM photos_favpics WHERE user_id = 1 (0.001s)
    [12] => SELECT count(*) FROM  photos_pms WHERE owner=1 (0s)
    [13] => SELECT count(*) FROM  photos_pms WHERE owner=1 AND showed='0' (0s)
    [14] => SELECT count(*) FROM  photos_buddy WHERE user_id=1 (0s)
    [15] => SELECT count(*) FROM  photos_buddy_req WHERE buddy_to=1 (0s)
    [16] => DELETE FROM photos_banned WHERE expiry < '2009-04-03 20:22:24' (0.017s)
    [17] => SELECT * FROM photos_banned WHERE (ip_addr='83.152.85.20' OR ip_addr='83.152.85.20' OR user_id=1) AND brute_force=0 (0.031s)
    [18] => SELECT category, title, aid, keyword, description, alb_password_hint FROM photos_albums WHERE aid='148' (0.013s)
    [19] => SELECT name, parent FROM photos_categories WHERE cid = '110' (0.035s)
    [20] => SELECT cid, name, parent FROM photos_categories WHERE cid = '8' (0s)
    [21] => SELECT COUNT(*) FROM photos_pictures WHERE approved = 'NO' (0s)
    [22] => SELECT title,keyword from photos_albums WHERE aid='148' (0.031s)
    [23] => SELECT COUNT(*) from photos_pictures WHERE ((aid='148'  ) )   (0.026s)
    [24] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, votes, pic_rating, title, caption,hits,owner_id,owner_name from photos_pictures WHERE ((aid='148'  ) )   ORDER BY filename ASC  LIMIT 0 ,30 (0.037s)
)

==========================
GET :
------------------
Array
(
    [album] => 148
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.9 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.21(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.67
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr//include/mysql
MYSQL_LIBS -L/usr//lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php | .:/usr/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 1.027 seconds - 25 queries in 0.36 seconds - Album set : ; Meta set: ;
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: FTP/batchadd not working
« Reply #5 on: April 03, 2009, 11:10:07 pm »

If you have already did what Stramm linked, now do the next point too. Read this: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support
Logged
Read Docs and Search the Forum before posting. - Soporte en espaņol
--*--
Fabricio Ferrero's Website

Catching up! :)

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #6 on: April 04, 2009, 12:07:28 am »

^ ok thanks

here's the right code

Code: [Select]
USER:
------------------
Array
(
    [ID] => 84b2629310ff90dd48b8f57d7af73893
    [am] => 1
    [lang] => french
    [liv] => Array
        (
            [0] => 3888
            [1] => 174
            [2] => 12934
            [3] => 12933
            [4] => 13356
        )

    [lap] => 1
    [search] => Array
        (
            [search] => Captures
            [album] => search
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [owner_name] => on
            [type] => AND
            [filename] => on
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                    [owner_name] => on
                    [filename] => on
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => nadioz
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM photos_filetypes; (0.001s)
    [1] => select * from photos_plugins order by priority asc; (0.004s)
    [2] => delete from `db214441150`.photos_sessions where time<1238792190 and remember=0; (0.041s)
    [3] => delete from `db214441150`.photos_sessions where time<1237586190; (0.011s)
    [4] => select user_id from `db214441150`.photos_sessions where session_id = 'f326baf0ae3909fc69c0e2efdfcd934d' (0.007s)
    [5] => select user_id as id, user_password as password from `db214441150`.photos_users where user_id=1 (0.034s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `db214441150`.photos_users AS u INNER JOIN `db214441150`.photos_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `db214441150`.photos_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 photos_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  photos_usergroups WHERE group_id= 1 (0s)
    [10] => update `db214441150`.photos_sessions set time='1238795790' where session_id = 'f326baf0ae3909fc69c0e2efdfcd934d' (0.011s)
    [11] => SELECT user_favpics FROM photos_favpics WHERE user_id = 1 (0.001s)
    [12] => SELECT count(*) FROM  photos_pms WHERE owner=1 (0s)
    [13] => SELECT count(*) FROM  photos_pms WHERE owner=1 AND showed='0' (0s)
    [14] => SELECT count(*) FROM  photos_buddy WHERE user_id=1 (0s)
    [15] => SELECT count(*) FROM  photos_buddy_req WHERE buddy_to=1 (0s)
    [16] => DELETE FROM photos_banned WHERE expiry < '2009-04-03 21:56:30' (0.001s)
    [17] => SELECT * FROM photos_banned WHERE (ip_addr='83.152.85.20' OR ip_addr='83.152.85.20' OR user_id=1) AND brute_force=0 (0.001s)
    [18] => SELECT aid, title FROM photos_albums WHERE 1 (0.004s)
    [19] => SELECT COUNT(*) FROM photos_pictures WHERE approved = 'NO' (0s)
    [20] => SELECT filepath, filename FROM photos_pictures WHERE filepath LIKE 'event/2009/ToptopmanAfterParty%' (0.093s)
    [21] => SELECT aid, title FROM photos_albums WHERE category = 0 (0.038s)
    [22] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM photos_albums as a, photos_categories as c WHERE a.category = c.cid AND a.category < '10000' (0.069s)
    [23] => SELECT aid, CONCAT('(', user_name, ') ', a.title) AS title
                                                        FROM photos_albums AS a
                                                        INNER JOIN `db214441150`.photos_users AS u
                                                        ON category = (10000 + 1) AND user_id = 1 ORDER BY title (0.008s)
)

==========================
GET :
------------------
Array
(
    [startdir] => event/2009/ToptopmanAfterParty
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.9 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.21(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.67
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr//include/mysql
MYSQL_LIBS -L/usr//lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php | .:/usr/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.723 seconds - 24 queries in 0.326 seconds - Album set : ; Meta set: ;


http://lovelylopez.net/photos

username : saraM
password: nadieuz
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: FTP/batchadd not working
« Reply #7 on: April 04, 2009, 12:15:32 am »

Quote
Do not post debug_output unless requested.
It's the second time you post it, please, do not post unless requested as suggested on the docs.

When I login I get the error "Sorry there is no album where you are allowed to upload files" so how am I suppoused to test?

Create an album please.
Logged
Read Docs and Search the Forum before posting. - Soporte en espaņol
--*--
Fabricio Ferrero's Website

Catching up! :)

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #8 on: April 04, 2009, 12:35:27 am »

my only problem is the upload by ftp i don't get how i can make an other user able to upload by FTP withouth being an admin.
Logged

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #9 on: April 04, 2009, 12:45:30 am »

I created an album.
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: FTP/batchadd not working
« Reply #10 on: April 04, 2009, 09:35:34 am »

Looks good so far. Please try two things.
- change to classic theme
- temporarily switch to english US as language

then try batch add again

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #11 on: April 04, 2009, 11:15:10 am »

^ i did it but did change anything the batch add work but i just don't the preview thubnails but it's ok i guess.


thanks for your help.
Logged

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: FTP/batchadd not working
« Reply #12 on: April 04, 2009, 11:18:26 am »

^ oh it was the lang, but i couldn't change it in English i had to delete the French lang.

-thanks
Logged

nadioz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 90
Re: [Solved]: FTP/batchadd not working
« Reply #13 on: April 06, 2009, 05:15:57 pm »

In case someone else has the same probleme

The French lang works with the edited one for stramm : http://forum.coppermine-gallery.net/index.php/topic,58416.0.html
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: [Solved]: FTP/batchadd not working
« Reply #14 on: April 06, 2009, 09:44:10 pm »

Thanks for solving your issue
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 19 queries.