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: Problem with new photo upload  (Read 4665 times)

0 Members and 1 Guest are viewing this topic.

auskariukas

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Problem with new photo upload
« on: September 03, 2005, 01:22:38 pm »

Hi,
I have photo galery now long:
http://www.auskariukas.tinklapiai.lt/galerija/index.php
But today have now problem with new photo upload.
I upload new photo ant I have info:
"1 uploads were successful.

Please click 'Continue' to add the files to albums."

I click "continue" and, but photo dont show. OK I now want new photo insert i album, but :
"The previous file could not be placed.

You have successfully placed all the files. "

I click "continue" but my new photo, not placed in album.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

auskariukas

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Problem with new photo upload
« Reply #2 on: September 03, 2005, 01:31:33 pm »

OK. I have make this :)

USER:
------------------
Array
(
    [ID] => 31d9e02f1a76aaa571aa6ae1d4f49568
    [am] => 1
    [liv] => Array
        (
           
  • => 95

            [1] => 94
            [2] => 47
            [3] => 44
            [4] => 5
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => auskariukas
    [user_password] => ***********
    [user_lastvisit] => 2005-08-23 01:24:04
    [user_regdate] => 2005-03-17 19:06:48
    [user_group_list] =>
    [user_email] => auskariukas@takas.lt
    [user_website] => http://www.auskariukas.tinklapiai.lt/index.html
    [user_location] => Kaunas
    [user_interests] => foto
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [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] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;

    [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '4536d4d7e5d2c072aa05027ac3379448'
    [2] => 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 cpg132_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg132_banned WHERE expiry < 1125747208
    [5] => SELECT * FROM cpg132_banned WHERE ip_addr='212.00.0.00' OR ip_addr='192.168.00.000, 82.000.000.000' OR user_id=1
    [6] => SELECT category FROM cpg132_albums WHERE aid='10'
)

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

==========================
POST :
------------------
Array
(
    [album] => 10
    [title] => ezeras2
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 1fd046f8
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.25-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2.2
Linked Version 1.2.2.2
==========================
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/tomasr/:/usr/lib/php:/usr/local/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 | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.078 seconds - 7 queries in 0.002 seconds - Album set :
« Last Edit: September 03, 2005, 01:41:28 pm by auskariukas »
Logged

auskariukas

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Problem with new photo upload
« Reply #3 on: September 04, 2005, 01:45:10 pm »

Chmmm I have swich "single file upload only"  in config with "GD" :

PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

File: /home/tomasr/public_html/galerija/include/picmgmt.inc.php - Line: 203




Now I change config "ImageMagic":

The file 'albums/userpics/zuvedra.JPG' can't be inserted in the album
Error executing ImageMagick - Return value: 127
Cmd line :
convert -quality 100 -antialias -geometry 146x100 'albums/userpics/zuvedra.JPG' 'albums/userpics/thumb_zuvedra.JPG'
The convert program said:
sh: convert: command not found
File: /home/tomasr/public_html/galerija/db_input.php - Line: 304
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Problem with new photo upload
« Reply #4 on: September 04, 2005, 05:50:16 pm »

You don't have GD or ImageMagick installed.  You must have GD1/2 (GD2 recommended) or ImageMagick to use Coppermine.  Ask your host for assistance.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

HEki

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Problem with new photo upload
« Reply #6 on: September 07, 2005, 12:40:08 pm »

USER:
------------------
Array
(
    [ID] => 0392a15b5c999facd3c5f3f32f739014
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => HEki
    [user_password] => ********
    [user_lastvisit] => 2005-09-07 03:27:33
    [user_regdate] => 2005-08-14 13:12:32
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg_filetypes;
  • [1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'f791554b6c72e467e799f9c56012b0b4'
        [2] => 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)
        [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg_banned WHERE expiry < '2005-09-07 05:37:00'
        [5] => SELECT * FROM cpg_banned WHERE ip_addr='194.165.120.127' OR ip_addr='194.165.120.127' OR user_id=1
        [6] => SELECT category FROM cpg_albums WHERE aid='4'
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
       
[album] => 4
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.1.10a-standard-log
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/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 | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 50M | 50M
post_max_size | 55M | 55M
==========================
Page generated in 0.053 seconds - 7 queries in 0.001 seconds - Album set :


-----

i just cant upload the files :S

i get this critical error:

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

Error executing ImageMagick - Return value: 127


Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x66 'albums/userpics/10001/IR~1.jpg' 'albums/userpics/10001/thumb_IR~1.jpg'



The convert program said:
sh: line 1: /usr/bin/convert: No such file or directory



File: /home/se7en/public_html/heki/gallery/db_input.php - Line: 305


when i vent in that directory the picture is there ... *beep*???
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Problem with new photo upload
« Reply #7 on: September 07, 2005, 02:32:02 pm »

ImageMagick is not properly installed or not installed at all.  Switch to GD2 - contact your host about the location of ImageMagick binaries.

Please search before posting.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 15 queries.