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: upload fine, but cant place files in any album  (Read 4398 times)

0 Members and 1 Guest are viewing this topic.

allanmoller

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
upload fine, but cant place files in any album
« on: March 06, 2006, 10:46:46 am »

hi, hope anyone can help new at php.

i used to be able to upload pictures to http://www.kazam.dk/billeder/index.php my page. but suddenly i get an error. i can upload but it will not place the file.

i have change every back to fack default but i still cant upload.

also i cant mass upload pictures. every pic is under the limited size
« Last Edit: March 07, 2006, 05:13:26 pm by TranzNDance »
Logged

Nibbler

  • Guest
Logged

allanmoller

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: upload fine, but cant place files in any album
« Reply #2 on: March 06, 2006, 02:37:15 pm »

still dosnt work.

user: test2
kode: fisse
Logged

allanmoller

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: upload fine, but cant place files in any album
« Reply #3 on: March 06, 2006, 03:10:20 pm »

USER:
------------------
Array
(
    [ID] => 47c9308ce72f1fafd0ec3af8b996c630
    [am] => 1
    [lang] => danish
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => allanmoller
    [groups] => Array
        (
           
  • => 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] => 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] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg140_filetypes; (0s)
  • [1] => select * from cpg140_plugins order by priority asc; (0s)
        [2] => delete from `kazam_dk`.cpg140_sessions where time<1141650563 and remember=0; (0s)
        [3] => delete from `kazam_dk`.cpg140_sessions where time<1140444563; (0s)
        [4] => select user_id from `kazam_dk`.cpg140_sessions where session_id=md5("2391389b2ce3fc4c443fa4e66cbd84ef035d1da208fc2dbb910a1ca9b77b92ce"); (0s)
        [5] => select user_id as id, user_password as password from `kazam_dk`.cpg140_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 `kazam_dk`.cpg140_users AS u INNER JOIN `kazam_dk`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `kazam_dk`.cpg140_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 cpg140_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
        [10] => update `kazam_dk`.cpg140_sessions set time='1141654163' where session_id=md5('2391389b2ce3fc4c443fa4e66cbd84ef035d1da208fc2dbb910a1ca9b77b92ce'); (0s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2006-03-06 14:09:23' (0s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='212.242.148.244' OR ip_addr='212.242.148.244' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT category, title, aid, keyword, description, alb_password_hint FROM cpg140_albums WHERE aid='13' (0.001s)
        [15] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0s)
        [16] => SELECT title,keyword from cpg140_albums WHERE aid='13' (0s)
        [17] => SELECT COUNT(*) from cpg140_pictures WHERE ((aid='13'  ) )   (0s)
        [18] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg140_pictures WHERE ((aid='13'  ) )   ORDER BY filename ASC  LIMIT 0 ,12 (0s)
    )

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.24_Debian-10sarge1-log
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
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: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.24
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.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
safe_mode_gid | Off | Off
safe_mode_include_dir | /usr/lib/php | /usr/lib/php
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
sql.safe_mode | Off | Off
disable_functions | disk_total_space, diskfreespace | disk_total_space, diskfreespace
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 | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/b1sendmail -t -i | /usr/sbin/b1sendmail -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 | 12M | 12M
post_max_size | 12M | 12M
==========================
Page generated in 1.08 seconds - 19 queries in 0.001 seconds - Album set : ; Meta set: ;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upload fine, but cant place files in any album
« Reply #4 on: March 06, 2006, 10:43:57 pm »

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Quote
4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
Do exactly as suggested.
Logged

allanmoller

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: upload fine, but cant place files in any album
« Reply #5 on: March 07, 2006, 04:39:03 pm »

The file 'albums/userpics/10001/00.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127


Cmd line :
convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10001/00.jpg' 'albums/userpics/10001/thumb_00.jpg'



The convert program said:



File: /customers/kazam.dk/kazam.dk/httpd.www/billeder/db_input.php - Line: 391

this is what it says
Logged

Nibbler

  • Guest
Re: upload fine, but cant place files in any album
« Reply #6 on: March 07, 2006, 04:45:00 pm »

127 means you either don't have imagemagick installed or you set the path wrong.
Logged

allanmoller

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: upload fine, but cant place files in any album
« Reply #7 on: March 07, 2006, 04:59:36 pm »

i havnt used imagemagick before, and then it worked fine. the error should be in this line coppermine says

            cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_insert_pic'], $uploaded_pic) . '<br /><br />' . $ERROR, __FILE__, __LINE__, true);

for me it looks like it cant decrease the pic, but what do i know.  :)
Logged

allanmoller

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: upload fine, but cant place files in any album
« Reply #8 on: March 07, 2006, 05:04:18 pm »

hmmm found the mistake thx to both of you, the error was me i had under config said that i used imagemagick wich i didnt, changed it to gd version 2,x

and then it worked. thx  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 21 queries.