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]: Re: Error Upload Pics  (Read 4859 times)

0 Members and 1 Guest are viewing this topic.

ucenicul

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Re: Error Upload Pics
« on: March 09, 2009, 09:46:37 pm »

Hi! Today we have updated photo gallery from 1.4.20 to version 1.4.21. Working for a few hours to solve a problem that appeared after the update to the latest version. It is the first major problem encountered by me in the past 4 years, since using coppermine. Please, help me to solve this situation. Everything seems normal, but can not add pictures in the gallery, is: "The previous file could not be placed. You have successfully placed all the files." Add some parts of code and I hope you understand what problem we have ...

Code: [Select]
USER:
------------------
Array
(
    [ID] => 5c8f849c625da32caf03ff2b7b20f203
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 147
        )

)

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

    [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] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => delete from `flacara_copp1`.cpg_sessions where time<1236623950 and remember=0; (0s)
    [2] => delete from `flacara_copp1`.cpg_sessions where time<1235417950; (0s)
    [3] => select user_id from `flacara_copp1`.cpg_sessions where session_id = '97485ed6349cb19e32d01056cab28f04' (0s)
    [4] => select user_id as id, user_password as password from `flacara_copp1`.cpg_users where user_id=1 (0s)
    [5] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `flacara_copp1`.cpg_users AS u INNER JOIN `flacara_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [6] => SELECT user_group_list FROM `flacara_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [7] => 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 cpg_usergroups WHERE group_id in (1) (0s)
    [8] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [9] => update `flacara_copp1`.cpg_sessions set time='1236627550' where session_id = '97485ed6349cb19e32d01056cab28f04' (0s)
    [10] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
    [11] => DELETE FROM cpg_banned WHERE expiry < '2009-03-09 19:39:10' (0s)
    [12] => SELECT * FROM cpg_banned WHERE (ip_addr='92.82.32.134' OR ip_addr='92.82.32.134' OR user_id=1) AND brute_force=0 (0s)
    [13] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = ''  ORDER BY pos (0s)
    [14] => SELECT aid FROM cpg_albums WHERE category = 2 (0s)
    [15] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [16] => SELECT count(*) FROM cpg_albums as a WHERE category = '2' (0s)
    [17] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,4 (0s)
    [18] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (16, 9, 8, 1)GROUP BY a.aid (0s)
    [19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='228' (0s)
    [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='200' (0s)
    [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='172' (0s)
    [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='192' (0s)
    [23] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '2'  ORDER BY pos (0s)
    [24] => SELECT aid FROM cpg_albums WHERE category = 4 (0s)
    [25] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
    [26] => SELECT count(*) FROM cpg_albums as a WHERE category = '4' (0s)
    [27] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,1 (0s)
    [28] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (4)GROUP BY a.aid (0s)
    [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='135' (0s)
    [30] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '4'  ORDER BY pos (0s)
    [31] => SELECT aid FROM cpg_albums WHERE category = 3 (0s)
    [32] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [33] => SELECT count(*) FROM cpg_albums as a WHERE category = '3' (0s)
    [34] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,1 (0s)
    [35] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3)GROUP BY a.aid (0s)
    [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='124' (0s)
    [37] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '3'  ORDER BY pos (0s)
    [38] => SELECT aid FROM cpg_albums WHERE category = 6 (0s)
    [39] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [40] => SELECT count(*) FROM cpg_albums as a WHERE category = '6' (0s)
    [41] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,2 (0s)
    [42] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (7, 6)GROUP BY a.aid (0s)
    [43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='151' (0s)
    [44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='149' (0s)
    [45] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '6'  ORDER BY pos (0s)
    [46] => SELECT aid FROM cpg_albums WHERE category = 5 (0s)
    [47] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
    [48] => SELECT count(*) FROM cpg_albums as a WHERE category = '5' (0s)
    [49] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,2 (0s)
    [50] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (5, 25)GROUP BY a.aid (0s)
    [51] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='142' (0s)
    [52] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '5'  ORDER BY pos (0s)
    [53] => SELECT aid FROM cpg_albums as a WHERE category>=10000 (0s)
    [54] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [55] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '1'  ORDER BY pos (0s)
    [56] => SELECT aid FROM cpg_albums as a WHERE category = '0' (0s)
    [57] => SELECT count(*) FROM cpg_albums as a WHERE 1 (0s)
    [58] => SELECT count(*) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [59] => SELECT count(*) FROM cpg_comments as c LEFT JOIN cpg_pictures as p ON c.pid=p.pid LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [60] => SELECT count(*) FROM cpg_categories WHERE 1 (0s)
    [61] => SELECT sum(hits) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [62] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    [63] => SELECT count(*) FROM cpg_albums as a WHERE category = '0' (0s)
    [64] => SELECT * FROM cpg_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 4 (0.005s)
    [65] => SELECT COUNT(*) from cpg_pictures WHERE approved = 'YES'  (0s)
    [66] => SELECT * FROM cpg_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,4 (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.5 - OK
------------------
mySQL version: 4.1.22-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 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
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 | show_source, system, passthru, exec,popen, proc_open | show_source, system, passthru, exec,popen, proc_open
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/flacara/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp | 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 | 20 | 20
max_input_time | -1 | -1
upload_max_filesize | 10M | 10M
post_max_size | 55M | 55M
==========================
Page generated in 0.131 seconds - 67 queries in 0.005 seconds - Album set : ; Meta set: ;

Other parts of the code appeared to upload files and admin tools

Code: [Select]
/include/functions.inc.php

    * Warning line 2986: cannot yet handle MBCS in html_entity_decode()!
    * Warning line 2986: cannot yet handle MBCS in html_entity_decode()!
    * Warning line 2986: cannot yet handle MBCS in html_entity_decode()!
......................................

/upload.php

    * Notice line 1979: Undefined variable: file_failure_array
    * Notice line 1980: Undefined variable: URI_failure_array
    * Notice line 1981: Undefined variable: zip_failure_array

/include/picmgmt.inc.php

    * Notice line 205: Undefined index: OS
    * Notice line 210: Undefined variable: retval
    * Warning line 210: exec() has been disabled for security reasons
    * Notice line 214: Undefined variable: retval
    * Warning line 283: chmod() [function.chmod]: No such file or directory
    * Warning line 285: getimagesize(./albums/edit/preview_c33dc09a.jpg) [function.getimagesize]: failed to open stream: No such file or directory
    * Warning line 288: unlink(./albums/edit/preview_c33dc09a.jpg) [function.unlink]: No such file or directory

/upload.php

    * Notice line 2191: Undefined index: user1
    * Notice line 2192: Undefined index: user2
    * Notice line 2193: Undefined index: user3
    * Notice line 2194: Undefined index: user4

/include/picmgmt.inc.php

    * Notice line 205: Undefined index: OS
    * Notice line 210: Undefined variable: retval
    * Warning line 210: exec() has been disabled for security reasons
    * Notice line 214: Undefined variable: retval
    * Warning line 283: chmod() [function.chmod]: No such file or directory
    * Warning line 285: getimagesize(albums/userpics/10001/thumb_disp_4.jpg) [function.getimagesize]: failed to open stream: No such file or directory
    * Warning line 288: unlink(albums/userpics/10001/thumb_disp_4.jpg) [function.unlink]: No such file or directory

Admin tools

/include/functions.inc.php

    * Notice line 2732: Undefined variable: i

I'm stuck, I hope to help me, thanks in advance!
« Last Edit: March 10, 2009, 07:16:05 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Error Upload Pics
« Reply #1 on: March 09, 2009, 09:57:51 pm »

You didn't even read the thread you hijacked...

In any case, the error is right there in your post.

Code: [Select]
exec() has been disabled for security reasons

If exec() is disabled you can't use ImageMagick. Switch to GD2 in config if available.
Logged

ucenicul

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Error Upload Pics
« Reply #2 on: March 09, 2009, 10:20:13 pm »

I need to edit a file ... or company that hosts my gallery has to make changes?
Logged

Nibbler

  • Guest
Logged

ucenicul

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Error Upload Pics
« Reply #4 on: March 10, 2009, 04:51:54 pm »

I checked the instructions provided by you, and I understand that the settings should be made to the server. I hope I understood correctly. Now contact the company that hosts my photo gallery and return if the problem is not solved. Thanks.
Logged

ucenicul

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Error Upload Pics
« Reply #5 on: March 10, 2009, 06:24:10 pm »

Now go right! The company that hosts my photo gallery has made the necessary settings. Thanks for technical assistance.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.