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: Batch uploader doesn't work but flash does  (Read 11048 times)

0 Members and 1 Guest are viewing this topic.

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Batch uploader doesn't work but flash does
« on: August 16, 2010, 06:20:05 pm »

http://www.largiader.com/album/

Problem is new since upgrading to 1.5.8 from 1.4.x. Using the new curved theme that came with 1.5.8.

I can FTP images into the /albums/uploads/whatever directory but the batch uploader briefly (sometimes) shows the status screen with the padlock icon for the images but sometimes just goes straight to the "Edit files" page and the new images aren't there. When I check, they have been deleted from the directory.

The individual file uploader seems to work OK.

I have always had the following in my "Notices" line:
Code: [Select]
/include/functions.inc.php

    * Notice line 184: Undefined index: dbcharset
    * Notice line 4304: Undefined variable: result


And the following (remainder of this post) is what is in the debug info immeditaly after the last failed attempt:

Code: [Select]
USER:
------------------
Array
(
    [ID] => e2ac73cb46b4b9af559075aecb7944a0
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 246
            [1] => 236
            [2] => 240
            [3] => 252
            [4] => 245
        )

    [lap] => 2
    [theme] => curve
    [liv_a] => Array
        (
            [0] => 1
            [1] => 19
            [2] => 9
        )

)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg14x_config [include/init.inc.php:181] (1 ms)
    [1] => SELECT * FROM cpg14x_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
    [2] => SELECT user_id, time FROM `largiad_670rio`.cpg14x_sessions WHERE session_id = '1ded587f55784ecab6b05a3a18e834ee' [bridge/coppermine.inc.php:264] (0 ms)
    [3] => SELECT user_id, user_password FROM `largiad_670rio`.cpg14x_users WHERE user_id = 1 [bridge/coppermine.inc.php:276] (1 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `largiad_670rio`.cpg14x_users AS u LEFT JOIN `largiad_670rio`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0 ms)
    [5] => SELECT user_group_list FROM `largiad_670rio`.cpg14x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:202] (0 ms)
    [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:321] (0 ms)
    [7] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:325] (0 ms)
    [8] => SELECT lang_id FROM cpg14x_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [9] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
    [10] => DELETE FROM cpg14x_banned WHERE expiry < '2010-08-16 11:10:47' [include/init.inc.php:443] (1 ms)
    [11] => SELECT null FROM cpg14x_banned WHERE (user_id=1 OR '76.5.94.255' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [12] => SELECT title, category, keyword FROM cpg14x_albums  WHERE aid = '9' [editpics.php:103] (1 ms)
    [13] => SELECT aid, title, IF(category = 0, CONCAT('> ', title), CONCAT(name,' < ',title)) AS cat_title FROM cpg14x_albums LEFT JOIN cpg14x_categories ON cid = category WHERE category < '10000' ORDER BY cat_title [editpics.php:732] (0 ms)
    [14] => SELECT aid , title FROM cpg14x_albums WHERE category = 10001 [editpics.php:694] (0 ms)
    [15] => SELECT COUNT(*) FROM cpg14x_pictures WHERE aid = '9' [editpics.php:862] (1 ms)
    [16] => SELECT p.*,a.category FROM cpg14x_pictures as p  INNER JOIN cpg14x_albums as a  ON a.aid = p.aid  WHERE p.aid = '9'  ORDER BY p.pid DESC LIMIT 0, 25 [editpics.php:873] (3 ms)
    [17] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' [include/functions.inc.php:2409] (0 ms)
    [18] => SELECT lang_id, abbr FROM cpg14x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2315] (0 ms)
    [19] => DELETE FROM cpg14x_temp_messages WHERE time < 1281971448 [include/functions.inc.php:4911] (0 ms)
    [20] => SELECT extension, mime, content, player FROM cpg14x_filetypes [include/functions.inc.php:5780] (0 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [__utma] => 43966520.896287974.1253621419.1280858245.1280866725.239
    [__utmz] => 43966520.1279041379.237.10.utmcsr=advrider.com|utmccn=(referral)|utmcmd=referral|utmcct=/forums/showthread.php
    [coppermine_data] => YTo3OntzOjI6IklEIjtzOjMyOiJlMmFjNzNjYjQ2YjRiOWFmNTU5MDc1YWVjYjc5NDRhMCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTo1OntpOjA7czozOiIyNDYiO2k6MTtzOjM6IjIzNiI7aToyO3M6MzoiMjQwIjtpOjM7czozOiIyNTIiO2k6NDtzOjM6IjI0NSI7fXM6MzoibGFwIjtpOjI7czo1OiJ0aGVtZSI7czo1OiJjdXJ2ZSI7czo1OiJsaXZfYSI7YTozOntpOjA7aToxO2k6MTtpOjE5O2k6MjtpOjk7fX0=
    [76b58ab70e80fec50456f214dddbc680] => de1be37c9cd2603b0ed0f2775b7272b4
    [PHPSESSID] => d8d3f47fd3f6ea86e94495b6bb4ba530
    [logintheme] => cpanel
    [cprelogin] => no
    [cpsession] => NoyKcV8EhbW6VFe4s93sxEOKvee4r2mZYUQ2Nsc_DmFYaoGgVBXVqCIXg8cDss8c
)

==========================
SESSION :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version        5.2.9            OK   
MySQL version      5.0.91-community OK   
Coppermine version 1.5.8            stable

==========================
Module: GD
------------------
Exact version                    2.0.34                     
GD Version                       bundled (2.0.34 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                         
XPM Support                      1                         
XBM Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url             http://www.largiader.com/album/             
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          coppermine                                 
cookie_path          /                                           
impath               /usr/bin/                                   
lang                 english                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                curve                                       
thumb_method         im                                         

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                                                 
safe_mode_exec_dir                                       
safe_mode_gid                                             
safe_mode_include_dir                                     
sql.safe_mode                                             
disable_functions                                         
file_uploads             1                               
include_path             .:/usr/lib/php:/usr/local/lib/php
open_basedir                                             
allow_url_fopen          1                               
max_execution_time       30                               
max_input_time           60                               
upload_max_filesize      32M                             
post_max_size            32M                             
memory_limit             32M                             
suhosin.post.max_vars                                     
suhosin.request.max_vars                                 


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     3.06 MiB 4.11 MiB
Page generation  260 ms   260 ms 
Page query time  8 ms     8 ms   
Page query count 21       21     


==========================
               
Logged
My album:  www dot largiader dot com slash album

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch uploader doesn't work but flash does
« Reply #1 on: August 16, 2010, 07:10:36 pm »

Please try again with another browser.
Logged

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Re: Batch uploader doesn't work but flash does
« Reply #2 on: August 16, 2010, 10:03:04 pm »

Was using FF 3.5.11, tried again with IE7. The picture I upload got deleted but the thumb_ and normal_ versions were saved. Still went to the 'Edit pictures' page with the new picture not shown.

This is using batch update. Just to be clear, the one that worked for me was the single 'upload file' from the menu, not the browsable batch uploader.

BTW, I was looking in my error log and I saw that help.php was trying to call out coppermine.cs rather than coppermine.css. Down around line 191.
Logged
My album:  www dot largiader dot com slash album

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch uploader doesn't work but flash does
« Reply #3 on: August 17, 2010, 08:17:28 am »

The picture I upload got deleted but the thumb_ and normal_ versions were saved. Still went to the 'Edit pictures' page with the new picture not shown.
That's not the intended behavior. Please check if none of the Coppermine files has been corrupted during upload (and all cpg1.4.x files has been replaced/deleted). Please also try to install a fresh copy of cpg1.5.8 and check if the same things happen there.


I saw that help.php was trying to call out coppermine.cs rather than coppermine.css.
Fixed in r7831. Thanks.
Logged

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Re: Batch uploader doesn't work but flash does
« Reply #4 on: August 22, 2010, 05:15:35 pm »

I installed all new CPG files but the problem remains. When I use the batch uploader (no matter how I check the 'browseable interface' button, which doesn't seem to make a difference) the files are simply deleted and I arrive at the "Edit files' page without those files present. Using the individual file uploader (getting local files) worked fine.

/edit, /uploads and /userpics are 777 as are all directories within uploads.

What would cause the locked icon that I reported seeing once?
Logged
My album:  www dot largiader dot com slash album
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.