i was upload well , now i cant i was upload well , now i cant
 

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]

Main Menu

i was upload well , now i cant

Started by moataz, December 23, 2004, 08:43:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

moataz

well it was perfect , i was upload very good using gd, now every time i got message like:
not gd extension or php is does not have gd lirary.

i aso got the following blog when log:

USER:
------------------
Array
(
   [ID] => c68e89ecf4cc0521dbe8dc72f18f88e4
   [am] => 1
   [theme] => mac_ox_x
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_group] => 1
   [user_active] => YES
   [user_name] => moataz
   [user_password] => ********
   [user_lastvisit] => 2004-12-23 12:52:23
   [user_regdate] => 2004-12-23 05:06:29
   [user_group_list] =>
   [user_email] =>
   [user_website] =>
   [user_location] =>
   [user_interests] =>
   [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] => 0
   [priv_upl_need_approval] => 0
   [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 cpg232_filetypes;
       [1] => SELECT * FROM cpg232_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '3d1e3ff467f3ed44b674e863917dcfad'
       [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 cpg232_usergroups WHERE group_id in (1)
       [3] => SELECT group_name FROM  cpg232_usergroups WHERE group_id= 1
       [4] => DELETE FROM cpg232_banned WHERE expiry < 1103830260
       [5] => SELECT * FROM cpg232_banned WHERE ip_addr='62.114.185.121' OR ip_addr='62.114.185.121' OR user_id=1
       [6] => SELECT cid, name, description, thumb FROM cpg232_categories WHERE parent = ''  ORDER BY pos
       [7] => SELECT aid FROM cpg232_albums as a WHERE category>=10000
       [8] => SELECT count(*) FROM cpg232_pictures as p, cpg232_albums as a WHERE p.aid = a.aid AND category >= 10000
       [9] => SELECT cid, name, description, thumb FROM cpg232_categories WHERE parent = '1'  ORDER BY pos
       [10] => SELECT aid FROM cpg232_albums as a WHERE category = '0'
       [11] => SELECT count(*) FROM cpg232_albums as a WHERE 1
       [12] => SELECT count(*) FROM cpg232_pictures as p LEFT JOIN cpg232_albums as a ON a.aid=p.aid WHERE 1
       [13] => SELECT count(*) FROM cpg232_comments as c LEFT JOIN cpg232_pictures as p ON c.pid=p.pid LEFT JOIN cpg232_albums as a ON a.aid=p.aid WHERE 1
       [14] => SELECT count(*) FROM cpg232_categories WHERE 1
       [15] => SELECT sum(hits) FROM cpg232_pictures as p LEFT JOIN cpg232_albums as a ON p.aid=a.aid WHERE 1
       [16] => SELECT count(*) FROM cpg232_albums as a WHERE category = '0'
       [17] => SELECT COUNT(*) from cpg232_pictures WHERE approved = 'YES'
       [18] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg232_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
       [19] => SELECT COUNT(*) from cpg232_pictures WHERE approved = 'YES'
       [20] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg232_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.3 - OK
    ------------------
    mySQL version: 4.0.14-nt
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.7
    ==========================
    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 | .;C:\php5\pear | .;C:\php5\pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | no value | no value
    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 | 10M | 10M
    post_max_size | 20M | 20M
    ==========================
    Page generated in 1.383 seconds - 21 queries in 1.052 seconds - Album set :



    then when i upload i got the following:


    USER:
    ------------------
    Array
    (
       [ID] => c68e89ecf4cc0521dbe8dc72f18f88e4
       [am] => 1
       [theme] => mac_ox_x
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       [user_id] => 1
       [user_group] => 1
       [user_active] => YES
       [user_name] => moataz
       [user_password] => ********
       [user_lastvisit] => 2004-12-23 12:52:23
       [user_regdate] => 2004-12-23 05:06:29
       [user_group_list] =>
       [user_email] =>
       [user_website] =>
       [user_location] =>
       [user_interests] =>
       [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] => 0
       [priv_upl_need_approval] => 0
       [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 cpg232_filetypes;
       [1] => SELECT * FROM cpg232_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '3d1e3ff467f3ed44b674e863917dcfad'
       [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 cpg232_usergroups WHERE group_id in (1)
       [3] => SELECT group_name FROM  cpg232_usergroups WHERE group_id= 1
       [4] => DELETE FROM cpg232_banned WHERE expiry < 1103830799
       [5] => SELECT * FROM cpg232_banned WHERE ip_addr='62.114.185.121' OR ip_addr='62.114.185.121' OR user_id=1
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
       [URI_array] => Array
           (
               
  • =>
               [1] =>
               [2] =>
           )

       [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.3 - OK
    ------------------
    mySQL version: 4.0.14-nt
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.7
    ==========================
    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 | .;C:\php5\pear | .;C:\php5\pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | no value | no value
    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 | 10M | 10M
    post_max_size | 20M | 20M
    ==========================
    Page generated in 1.256 seconds - 6 queries in 0.353 seconds - Album set :


    finally after click continue i found :
    PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

    File: d:\websites\getnewmarketcom\hakagioie\include\picmgmt.inc.php - Line: 203

    please help asap

    u can log using test , test to http://hakagioie.getnewmarket.com

Hein Traag

I assume your hosting this on your own computer.
Seeing this line suggests as much: include_path | .;C:\php5\pear | .;C:\php5\pear

Try downloadin imagemagick and installing that on the system your hosting the gallery on.
http://www.imagemagick.org/

Info on GD2 Windows here http://www.psychostats.com/docs/ps2/chapter.php?sec=37

Nibbler

I'd guess you forgot to setup gd support when you updated to php 5.0.3 - I think you need to uncomment a line in php.ini.

moataz

well i use a server in australia , not in my pc.
i donno how to edit php.ini nor how to setup gd or im as i do not run the sever i just host

Nibbler

Then ask your host to enable GD or IM support.

moataz

ok , ill do, now i wana allow one member to choose between categories and i do no want her to use administrator tools ony upload files and specify to which category from ones i created..is it possible

Joachim Müller

1 question per thread! Read the docs.

Joachim