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 [2]   Go Down

Author Topic: "Not a GD extension", but file is a GD extension.  (Read 18084 times)

0 Members and 1 Guest are viewing this topic.

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: "Not a GD extension", but file is a GD extension.
« Reply #20 on: July 07, 2004, 02:27:19 pm »

When I try to upload .jpg files it works, but when trying to upload .gif files I get the following error. I hope you guys can help me. I'm using lycos for a host. And when i try to upload pictures on my invision forum (same host with GD1) then I am able to upload jpg and gif files.

Error Report
The following uploads encountered errors: 
File Uploads: 
File Name/URL Error Message
1. snakeye.GIF Not a GD extension.



USER:
------------------
Array
(
    [ID] => 98bdc102cc4c4c4c858381f8f9b2bd21
    [am] => 1
    [liv] => Array
        (
           
=> 6
            [1] => 26
            [2] => 25
            [3] => 24
            [4] => 28
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => ******
    [user_password] => ********
    [user_lastvisit] => 2004-07-07 13:53:59
    [user_regdate] => 2004-07-06 20:15:28
    [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] => 1
    [ufc_min] => 1
    [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] => 1
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
=> SELECT extension, mime, content FROM cpg130_filetypes;
    [1] => SELECT * FROM cpg130_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '*********'
    [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 cpg130_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg130_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg130_banned WHERE expiry < 1089202413
    [5] => SELECT * FROM cpg130_banned WHERE ip_addr='137.56.102.60' OR ip_addr='137.56.102.60' OR user_id=1
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.2 - OK
------------------
mySQL version: 4.0.18-log
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
module doesn't exist
==========================
Module: zlib
------------------
module doesn't exist
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /data/apache/php/safe_exec | /data/apache/php/safe_exec
safe_mode_gid | On | On
safe_mode_include_dir | /data/apache/php/mmp_lib:/data/session | /data/apache/php/mmp_lib:/data/session
safe_mode_exec_dir | /data/apache/php/safe_exec | /data/apache/php/safe_exec
sql.safe_mode | Off | Off
disable_functions | highlight_file,diskfreespace, exec, passthru, system, popen, show_source, php_uname, ini_alter, ini_restore, ini_set, getrusage, mysql_list_dbs, get_current_user, set_time_limit, getmyuid, getmypid, dl, leak, chgrp | highlight_file,diskfreespace, exec, passthru, system, popen, show_source, php_uname, ini_alter, ini_restore, ini_set, getrusage, mysql_list_dbs, get_current_user, set_time_limit, getmyuid, getmypid, dl, leak, chgrp
file_uploads | On | On
include_path | .:/data/apache/php/mmp_lib:/data/session | .:/data/apache/php/mmp_lib:/data/session
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail | /usr/sbin/sendmail
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 | 50M | 50M
==========================
Page generated in 0.235 seconds - 6 queries in 0.026 seconds - Album set :
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: "Not a GD extension", but file is a GD extension.
« Reply #21 on: July 07, 2004, 05:40:42 pm »

You do know that GIF isn't supported in GD2, right?  But there's hope: http://www.boutell.com/gd/faq.html
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

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: "Not a GD extension", but file is a GD extension.
« Reply #22 on: July 07, 2004, 06:58:17 pm »

You do know that GIF isn't supported in GD2, right?  But there's hope: http://www.boutell.com/gd/faq.html

O I didn;t know that. But still I find it strange. On my forum (www.racing-forum.net) I got invision forum installed together with a gallery. It uses GD1 and is able to make thumbnails of .gif files. When I enable GD1 on the coppermine photo gallery I still get the same error. So I think it has to do something with the source code. (Only I got no idea what it could be). I haven't made any changes to the code of the coppermine gallery myself.

BTW I'm sorry for the double posts, something went wrong with my computer.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: "Not a GD extension", but file is a GD extension.
« Reply #23 on: July 08, 2004, 12:41:19 am »

BTW I'm sorry for the double posts, something went wrong with my computer.

You actually posted it 5 times, on 2 boards, but as the boards have been having trouble today(at least from where I'm looking),
we'll acept that was the cause.
if this happens again though, please don't keep trying to submit again  ;)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: "Not a GD extension", but file is a GD extension.
« Reply #24 on: July 08, 2004, 08:48:49 pm »

So I can't upload any .gif files at all?  :\'( I'm getting the same error when someone tries to upload a file .JPG (Capital letters) instead of .jpg. Any help would be greatly appreciated.

Thanks in advance,

Snakeye
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: "Not a GD extension", but file is a GD extension.
« Reply #25 on: July 08, 2004, 09:14:46 pm »

[EDIT]
use your database tool, and run the following;
Quote
INSERT INTO CPG_filetypes VALUES ('JPG', 'image/JPG', 'image');
INSERT INTO CPG_filetypes VALUES ('JPEG', 'image/JPEG', 'image');
Note, change the 'CPG' to your actual prefix.


You can change the gif settings in the filetype table, set it to document, then you will be able to upload gif's, but will not have thumbs created.
« Last Edit: July 08, 2004, 09:23:44 pm by Casper »
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: "Not a GD extension", but file is a GD extension.
« Reply #26 on: July 09, 2004, 10:31:33 am »

Thank you. It's now possible to upload gif files. I just edited the displayimagefile a bit to show the real gif file, but just smaller. But the fix for .JPG doesn't work, because it says 'double entry'. It seems the mysql database doesn't make a distinction between .jpg and .JPG. :( Any other suggestions?

Thanks
« Last Edit: July 09, 2004, 11:33:30 am by Snakeye »
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.023 seconds with 19 queries.