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: [Solved]: getimagesize problem  (Read 2385 times)

0 Members and 1 Guest are viewing this topic.

bradenkeith

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Braden Keith.com
[Solved]: getimagesize problem
« on: February 27, 2008, 01:05:47 am »

Let me start out by saying, I have searched the forums and have come up with no correct solution. So here goes nothing

My normal picture (after you click from the thumbnail) is shown as a little speck. Can't even make it out, except for a grey box. You can click on it however and see the fullsized image. I put it in debug and saw that it couldn't execute function.getimagesize. You can see an example here: http://nationfordbaseball.com/pictures/displayimage-14-1.html

So here's the debug it asked me to post here:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 186b2bbc0dfe121188821cac2e725aba
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 347
            [1] => 346
            [2] => 342
            [3] => 341
            [4] => 340
        )

)

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM coppermine_filetypes; (0s)
    [1] => select * from coppermine_plugins order by priority asc; (0s)
    [2] => delete from `braden_nfhsbball`.coppermine_sessions where time<1204066580 and remember=0; (0s)
    [3] => delete from `braden_nfhsbball`.coppermine_sessions where time<1202860580; (0s)
    [4] => select user_id from `braden_nfhsbball`.coppermine_sessions where session_id=md5("15a7e67923c7e4e42330224e6a2ef0fc950c856c8049ff88efdc9fa2c00c9c73"); (0s)
    [5] => select user_id as id, user_password as password from `braden_nfhsbball`.coppermine_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `braden_nfhsbball`.coppermine_users AS u INNER JOIN `braden_nfhsbball`.coppermine_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `braden_nfhsbball`.coppermine_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 coppermine_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  coppermine_usergroups WHERE group_id= 1 (0s)
    [10] => update `braden_nfhsbball`.coppermine_sessions set time='1204070180' where session_id=md5('15a7e67923c7e4e42330224e6a2ef0fc950c856c8049ff88efdc9fa2c00c9c73'); (0s)
    [11] => SELECT user_favpics FROM coppermine_favpics WHERE user_id = 1 (0s)
    [12] => SELECT * FROM coppermine_shop_config ORDER BY 'priority' (0s)
    [13] => DELETE FROM coppermine_banned WHERE expiry < '2008-02-27 04:56:20' (0s)
    [14] => SELECT * FROM coppermine_banned WHERE (ip_addr='208.104.240.121' OR ip_addr='208.104.240.121' OR user_id=1) AND brute_force=0 (0s)
    [15] => SELECT title,keyword from coppermine_albums WHERE aid='14' (0s)
    [16] => SELECT COUNT(*) from coppermine_pictures WHERE ((aid='14'  ) )   (0s)
    [17] => SELECT * from coppermine_pictures WHERE ((aid='14'  ) )   ORDER BY filename ASC  LIMIT 1 ,1 (0s)
    [18] => SELECT title, comments, votes, category, aid FROM coppermine_albums WHERE aid='14' LIMIT 1 (0s)
    [19] => SELECT name, parent FROM coppermine_categories WHERE cid = '5' (0s)
    [20] => SELECT * FROM coppermine_shop_prices WHERE aid=14 (0s)
    [21] => SELECT * FROM coppermine_exif WHERE filename='albums/Frank Roach Tournament 2-25/DSC_1683.jpg' (0s)
    [22] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM coppermine_comments WHERE pid='310' ORDER BY msg_id ASC (0s)
    [23] => SELECT COUNT(*) FROM coppermine_pictures WHERE approved = 'NO' (0s)
    [24] => SELECT title,keyword from coppermine_albums WHERE aid='14' (0s)
    [25] => SELECT COUNT(*) from coppermine_pictures WHERE ((aid='14'  ) )   (0s)
    [26] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from coppermine_pictures WHERE ((aid='14'  ) )   ORDER BY filename ASC  LIMIT 0 ,10 (0s)
)

==========================
GET :
------------------
Array
(
    [album] => 14
    [pos] => 1
)

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

==========================
VERSION INFO :
------------------
PHP version: 5.2.1 - OK
------------------
mySQL version: 5.0.32-Debian_7etch1~bpo.1-log
------------------
Coppermine version: 1.4.16(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.32
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2
Linked Version 1.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/local/php5/lib/php | .:/usr/local/php5/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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.083 seconds - 27 queries in 0 seconds - Album set : ; Meta set: ;


^^Man I hope there weren't any passwords in there, couldn't find any... :D

It also asked to give you this stuff:

/plugins/photo_shop/codebase.php

    * Notice line 194: Undefined index: cd
    * Notice line 194: Undefined index: photo

/include/themes.inc.php

    * Notice line 2240: Undefined index: uid
    * Notice line 1943: Undefined index: uid

/themes/ipodlounge/theme.php

    * Warning line 155: getimagesize(albums/Frank%20Roach%20Tournament%202-25/normal_DSC_1683.jpg) [function.getimagesize]: failed to open stream: No such file or directory

/include/exif_php.inc.php

    * Notice line 71: Undefined index: IFD0
    * Notice line 74: Undefined index: SubIFD
    * Notice line 77: Undefined index: SubIFD
    * Notice line 81: Undefined index: IFD1OffSet

/displayimage.php

    * Notice line 319: Undefined variable: meta_keywords

Any help is much appreciated.
« Last Edit: February 28, 2008, 08:30:20 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: getimagesize problem
« Reply #1 on: February 27, 2008, 06:51:26 am »

1) Don't post debug_output unless requested

2) Leave notices_display turned off unless you understand what notices mean

3) You're refering to the intermediate images, not the thumbnails

4) You're using a load of mods (gif overlay and photo shop) that might interfere

5) Don't use spaces in folder names. The file that gets embedded is http://nationfordbaseball.com/pictures/albums/Frank%20Roach%20Tournament%202-25/normal_DSC_1683.jpg - a folder named "Frank Roach Tournament 2-25" is not a bright idea to have.

6) Test if getimagesize is disabled by your webhost (it's a standard PHP function that some webhosts disable for reasons of resources consumption). If this is the case, review the transparent gif overlay mod and get rid of the width and height attributes.
Logged

bradenkeith

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Braden Keith.com
Re: getimagesize problem
« Reply #2 on: February 27, 2008, 01:33:24 pm »

Thanks for the reply.

I stated in my first one that I was talking about the intermediate images.

The path to the images is what screwed it up. I shortened it to frt225 and it worked. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.