Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Any issues between Coppermine and CGIWRAP?  (Read 5592 times)

0 Members and 1 Guest are viewing this topic.

kaotic1

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
[Solved]: Any issues between Coppermine and CGIWRAP?
« on: August 04, 2004, 10:28:00 pm »

I have "successfully" installed and setup Coppermine, but there is this one quirk.  When a new theme is selected from the pull down menu, it results in a page with no images successfully loaded.

My host is running using CGIWRAP to load PHP files.  When initially loading a URL, everything is fine.  However, using the pull-down 'themes' menu, the page is refreshed without any images loading.  I've summaried it somewhat below:

Displays correctly:
1. http://www.ocf.berkeley.edu/~kaos/coppermine/

Displays with 'x'-out images (images not loading):
2. http://www.ocf.berkeley.edu/cgiwrap/cgiwrap/kaos/coppermine/index.php?theme=mac_ox_x

Removing the "cgiwrap/cgiwrap/~" results in a correct display:
3. http://www.ocf.berkeley.edu/~kaos/coppermine/index.php?theme=mac_ox_x

I've passed on this same information to my host and I'm still awaiting a reply from them.  In the meantime, I was wondering if anyone knows of this issue.  I've done a search of this forum, and there was exactly 1 mention of CGIWRAP on an unrelated question.

UPDATE: Some additional debugging has led me to believe that CGIWRAP is improperly interpreting URLs and attempting to load JPG files as scripts.  This is the CGIWRAP-generated URL for one of those images that aren't loading:
http://www.ocf.berkeley.edu/cgiwrap/cgiwrap/kaos/coppermine/themes/mac_ox_x/images/top_panel_r1_c2.jpg

I'm gonna keep picking at this... Any help would be great!

Thanks ahead,
Kao

Here is Coppermine's debug info during Step 2:
Code: [Select]
USER:
------------------
Array
(
    [ID] => 39f3b961e2b2d76ae5b6166e47340c2b
    [am] => 1
    [theme] => mac_ox_x
    [sort] => da
    [liv] => Array
        (
            [0] => 4
            [1] => 3
            [2] => 2
        )

    [search] => ###Blue
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => kaotic1
    [user_password] => ********
    [user_lastvisit] => 2004-08-04 10:14:35
    [user_regdate] => 2004-08-04 10:13:53
    [user_group_list] =>
    [user_email] =>
    [user_website] => www.kaoszone.com
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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
(
    [0] => SELECT extension, mime, content FROM cpg131_filetypes;
    [1] => SELECT * FROM cpg131_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '50221078be6f669a5159901c6534cdb0'
    [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 cpg131_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg131_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg131_banned WHERE expiry < 1091650660
    [5] => SELECT * FROM cpg131_banned WHERE ip_addr='4.5.42.206' OR ip_addr='4.5.42.206' OR user_id=1
    [6] => SELECT cid, name, description, thumb FROM cpg131_categories WHERE parent = ''  ORDER BY pos
    [7] => SELECT aid FROM cpg131_albums as a WHERE category>=10000
    [8] => SELECT count(*) FROM cpg131_pictures as p, cpg131_albums as a WHERE p.aid = a.aid AND category >= 10000
    [9] => SELECT cid, name, description, thumb FROM cpg131_categories WHERE parent = '1'  ORDER BY pos
    [10] => SELECT aid FROM cpg131_albums as a WHERE category = '0'
    [11] => SELECT count(*) FROM cpg131_albums as a WHERE 1
    [12] => SELECT count(*) FROM cpg131_pictures as p LEFT JOIN cpg131_albums as a ON a.aid=p.aid WHERE 1
    [13] => SELECT count(*) FROM cpg131_comments as c LEFT JOIN cpg131_pictures as p ON c.pid=p.pid LEFT JOIN cpg131_albums as a ON a.aid=p.aid WHERE 1
    [14] => SELECT count(*) FROM cpg131_categories WHERE 1
    [15] => SELECT sum(hits) FROM cpg131_pictures as p LEFT JOIN cpg131_albums as a ON p.aid=a.aid WHERE 1
    [16] => SELECT count(*) FROM cpg131_albums as a WHERE category = '0'
    [17] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg131_albums as a LEFT JOIN cpg131_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1
    [18] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg131_pictures WHERE aid IN (1) AND approved = 'YES' GROUP BY aid
    [19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg131_pictures WHERE pid='4'
    [20] => SELECT COUNT(*) from cpg131_pictures WHERE approved = 'YES'
    [21] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg131_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
    [22] => SELECT COUNT(*) from cpg131_pictures WHERE approved = 'YES'
    [23] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg131_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.1
==========================
Module: gd
------------------
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
WBMP Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.41
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/opt/local/packages/mysql-3.23.41/include/mysql
MYSQL_LIBS -L/opt/local/packages/mysql-3.23.41/lib/mysql -lmysqlclient  
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/opt/local/packages/php-4.3.8/lib/php | .:/opt/local/packages/php-4.3.8/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/lib/sendmail -t -i  | /usr/lib/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 | 8M | 8M
==========================
Page generated in 0.748 seconds - 24 queries in 0.031 seconds - Album set :
« Last Edit: August 05, 2004, 08:39:18 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Any issues between Coppermine and CGIWRAP?
« Reply #1 on: August 05, 2004, 08:35:29 am »

There's a problem with your server vars, search the board for "$SCRIPT_NAME" or "CGI". Ask your webhost to configure your server properly.

GauGau
Logged

kaotic1

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Any issues between Coppermine and CGIWRAP?
« Reply #2 on: August 05, 2004, 06:45:34 pm »

Yes, there was an slight bug in our CGIWrap that has now been fixed.

Thanks!
Kao
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.