trouble for upload image, some help. thanks trouble for upload image, some help. thanks
 

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

Main Menu

trouble for upload image, some help. thanks

Started by alquimico, June 28, 2005, 01:01:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alquimico

Hi alls, i have some trouble for upload my pictures to my web site, i read here i must give te debug information for wait some help, its see is a problem of path of image macker?, here it is the debug information:

USER:
------------------
Array
(
   [ID] => b0abcae0235e913ef1ae1e3d05ccaf3e
   [am] => 1
   [lang] => spanish
)

==========================
USER DATA:
------------------
Array
(
   [user_name] => alquimico
   [mgroup] => 1
   [0] => 1
   [group_id] => 1
   [1] => Administrators
   [group_name] => Administrators
   [2] => 1024
   [group_quota] => 1024
   [3] => 1
   [has_admin_access] => 1
   [4] => 1
   [can_rate_pictures] => 1
   [5] => 1
   [can_send_ecards] => 1
   [6] => 1
   [can_post_comments] => 1
   [7] => 1
   [can_upload_pictures] => 1
   [8] => 1
   [can_create_albums] => 1
   [9] => 1
   [pub_upl_need_approval] => 1
   [10] => 1
   [priv_upl_need_approval] => 1
   [11] => 0
   [upload_form_config] => 0
   [12] => 0
   [custom_user_upload] => 0
   [13] => 5
   [num_file_upload] => 5
   [14] => 3
   [num_URI_upload] => 3
   [can_see_all_albums] => 1
   [groups] => Array
       (
           [0] => 1
       )

)

==========================
Queries:
------------------
Array
(
   [0] => SELECT extension, mime, content FROM doorsoft_CPG_filetypes;
   [1] => SELECT * FROM doorsoft_CPG_usergroups WHERE group_id = '1'
   [2] => DELETE FROM doorsoft_CPG_banned WHERE expiry < '2005-06-27 18:17:58'
   [3] => SELECT * FROM doorsoft_CPG_banned WHERE ip_addr='200.104.48.23' OR ip_addr='200.104.48.23' OR user_id=1
   [4] => SELECT category FROM doorsoft_CPG_albums WHERE aid='1'
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient  
==========================
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 | /home/vhosts/:/usr/lib/php:/usr/local/lib/php/:/tmp/:/usr/local/xpanel/plugins/:/usr/local/xpanel/conf_php/:/var/www/html/autoinstaller/ | 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 | 30
max_input_time | 30 | -1
upload_max_filesize | 1M | 2M
post_max_size | 2M | 55M
==========================
Page generated in 0,184 seconds - 5 queries in 0,028 seconds - Album set :


and in the up information when i try to upload the picture:

El fichero 'albums/userpics/Amarcord.jpg' no puede ser dado de alta en el album

Error executing ImageMagick - Return value: 127


Cmd line :
/usr/X11R6/bin/convertconvert -quality 80 -antialias -geometry 102x100 'albums/userpics/Amarcord.jpg' 'albums/userpics/thumb_Amarcord.jpg'



The convert program said:



Fichero: /home/vhosts/alquimicosas.zeviafreehost.com/plugins/coppermine_menu/db_input.php - Línea: 319


i check my coppermine configuration for Image Macker and have this default path  /usr/X11R6/bin/convert
i dont know if that is correct or what must be there..
for any help so many thanks, (and sorry for my english)  :)

Joachim Müller

you can't make up the path to ImageMagick's convert executable, you have to "know" it. Ask your webhost for support, or switch the method for resizing images in coppermine's config to "GD" if you don't have ImageMagick. Read the FAQ and ask your webhost for support if you're not sure.

alquimico2

Hi GauGau, thanks for the answer, i have some login problems here, but i can reply again.
well i have no answer for the support of the web host for know the path of ImageMagick, my solution was found other web host, this is very better, and works inmediately with GD, but because i configurate coppermine groups in "sigle upload archive" and works fine, but when change to multiple upload archives or URI, the images files dont upload sucerfull. here is th debug indormation:

USER:
------------------
Array
(
    [ID] => 7dd6c9cfcdc70fc4786b464ccea55da7
    [am] => 1
    [lang] => spanish
    [liv] => Array
        (
            [0] => 2
            [1] => 1
            [2] => 3
            [3] => 4
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_name] => alquimico
    [mgroup] => 1
    [0] => 1
    [group_id] => 1
    [1] => Administrators
    [group_name] => Administrators
    [2] => 0
    [group_quota] => 0
    [3] => 1
    [has_admin_access] => 1
    [4] => 1
    [can_rate_pictures] => 1
    [5] => 1
    [can_send_ecards] => 1
    [6] => 1
    [can_post_comments] => 1
    [7] => 1
    [can_upload_pictures] => 1
    [8] => 1
    [can_create_albums] => 1
    [9] => 0
    [pub_upl_need_approval] => 0
    [10] => 0
    [priv_upl_need_approval] => 0
    [11] => 1
    [upload_form_config] => 1
    [12] => 0
    [custom_user_upload] => 0
    [13] => 5
    [num_file_upload] => 5
    [14] => 3
    [num_URI_upload] => 3
    [can_see_all_albums] => 1
    [groups] => Array
        (
            [0] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM doorsoft_CPG_filetypes;
    [1] => SELECT * FROM doorsoft_CPG_usergroups WHERE group_id = '1'
    [2] => DELETE FROM doorsoft_CPG_banned WHERE expiry < '2005-07-04 04:45:12'
    [3] => SELECT * FROM doorsoft_CPG_banned WHERE ip_addr='200.104.48.23' OR ip_addr='200.104.48.23' OR user_id=1
    [4] => SELECT aid, title FROM doorsoft_CPG_albums WHERE category < 10000 ORDER BY title
    [5] => SELECT aid, title FROM doorsoft_CPG_albums WHERE category='10001' ORDER BY title
)

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

==========================
POST :
------------------
Array
(
    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.3.2
==========================
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 | system,dl,exec | system,dl,exec
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/alquimi:/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,575 seconds - 6 queries in 0,001 seconds - Album set :


what could be the problem now? many thanks for help!   :)

Joachim Müller

don't post the debug_output unless requested, it's not usefull. What's the error message? Are you sure that your new webhost allows you to fopen urls (i.e. upload by URI)? See http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen