I cant see any images!! I cant see any images!!
 

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

I cant see any images!!

Started by charleswbrown, October 29, 2005, 03:55:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charleswbrown

Hi, I have just installed a new version of Coppermine on a new server, then I uploaded my old config-inc.php file and my albums file. I also altered the config-inc.php file to have the same extensions on the database so it says cpg11d rather than the lastest version which is: "cpg132_". I also used the database from my old gallery at www.charlie-brown.co.uk/album.
The whole site works as you can see at www.charleswbrown.com/gallery but none of the images can be found, nor can they be seen in the batch add list. Ive tried permissions at both 777 and 755 and nothing changes, any help?

Here is the debug code:

USER:
------------------
Array
(
    [ID] => d1aab1c5eea0363b1f612f34f8364fe3
    [am] => 1
    [liv] => Array
        (
            [0] => 827
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 7
    [user_group] => 2
    [user_active] => YES
    [user_name] => Charlie
    [user_password] => ********
    [user_lastvisit] => 2005-10-28 18:46:18
    [user_regdate] => 2005-04-16 16:08:27
    [user_group_list] => 1
    [user_email] => ********************
    [user_website] => http://www.charleswbrown.com
    [user_actkey] => 0ce0b636e004d5bd20ff3798c6294682
    [disk_max] => 3000
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [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] => Registered
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 2
    [groups] => Array
        (
            [0] => 1
            [1] => 2
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg11d_filetypes;
    [1] => SELECT * FROM cpg11d_users WHERE user_id='7'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '915068eddff19a55f8428328013ba011'
    [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 cpg11d_usergroups WHERE group_id in (1,2)
    [3] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 2
    [4] => DELETE FROM cpg11d_banned WHERE expiry < '2005-10-28 18:47:01'
    [5] => SELECT * FROM cpg11d_banned WHERE ip_addr='84.12.199.72' OR ip_addr='84.12.199.72' OR user_id=7
    [6] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = ''  ORDER BY pos
    [7] => SELECT aid FROM cpg11d_albums as a WHERE category>=10000
    [8] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category >= 10000
    [9] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '1'  ORDER BY pos
    [10] => SELECT aid FROM cpg11d_albums WHERE category = 4
    [11] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 4
    [12] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '4'
    [13] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,3
    [14] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (25, 26, 44) AND approved = 'YES' GROUP BY aid
    [15] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='877'
    [16] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '4'  ORDER BY pos
    [17] => SELECT aid FROM cpg11d_albums WHERE category = 3
    [18] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 3
    [19] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '3'
    [20] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,3
    [21] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (7, 22, 28) AND approved = 'YES' GROUP BY aid
    [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='936'
    [23] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '3'  ORDER BY pos
    [24] => SELECT aid FROM cpg11d_albums WHERE category = 6
    [25] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 6
    [26] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '6'
    [27] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,14
    [28] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (29, 30, 31, 32, 33, 34, 35, 36, 37, 42, 45, 47, 46, 48) AND approved = 'YES' GROUP BY aid
    [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='994'
    [30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='984'
    [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='798'
    [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='380'
    [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='634'
    [34] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='623'
    [35] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='385'
    [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='884'
    [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='620'
    [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1153'
    [39] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1247'
    [40] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1239'
    [41] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1301'
    [42] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '6'  ORDER BY pos
    [43] => SELECT aid FROM cpg11d_albums WHERE category = 7
    [44] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 7
    [45] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '7'
    [46] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=7 ORDER BY a.pos LIMIT 0,1
    [47] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (39) AND approved = 'YES' GROUP BY aid
    [48] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1010'
    [49] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '7'  ORDER BY pos
    [50] => SELECT aid FROM cpg11d_albums as a WHERE category = '0'
    [51] => SELECT count(*) FROM cpg11d_albums as a WHERE 1
    [52] => SELECT count(*) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE 1
    [53] => SELECT count(*) FROM cpg11d_comments as c LEFT JOIN cpg11d_pictures as p ON c.pid=p.pid LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE 1
    [54] => SELECT count(*) FROM cpg11d_categories WHERE 1
    [55] => SELECT sum(hits) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON p.aid=a.aid WHERE 1
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.1.10a
------------------
Coppermine version: 1.3.5
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.22 compatible)
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -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 | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | 8M | 8M
post_max_size | 8M | 8M
==========================
Page generated in 0.228 seconds - 56 queries in 0.06 seconds - Album set :

Stramm

a testuser account please and put the gallery online

charleswbrown

Gallery Is now online.

Test User Account:

UN: test
PW: test

Stramm

the images arent't on your server or not in the directory they ought to be.. check yourself!

Examples:
http://www.charleswbrown.com/gallery/jrprimrose/normal_DSCF1224.JPG -> 404
ahh.. wanted to give you a few more but it seems you're fiddling around with your config.inc.php
MySQL said: Access denied for user 'Charles'@'10.1.1.159' (using password: YES)

just to mention it. Your coppermine was able to connect to the db... so no need to modify config.inc.php. Just make sure your images are in the right place

Stramm

;) nice, back working now..

your solution:
this folder should exist.. but it doesn't
http://www.charleswbrown.com/gallery/jrprimrose/

you accidently put jrprimrose/ into your albums folder... not good, just move it up one level and all's smooth

charleswbrown

Yeah sorted now, thanks. I had the config file directing to the root of the copper files rather then to albums. Thanks!

charleswbrown

However, all the images have still gone... I can get to time if i type the url but they arent on the coppermine index nor can they be seen in the batch add list...

test user account still active.

Stramm

OK, coppermine looks for your images here
http://www.charleswbrown.com/gallery/jrprimrose
but they are to be found there http://www.charleswbrown.com/gallery/albums/jrprimrose

means you've to change in config the 'The album directory' setting back to 'albums/'




xplicit

Please do not post an admin password!

Could a moderator or yourself adjust your posting?

Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

charleswbrown

OK the account is now a registered one not an admin, i still cant see images. Ive changed it to /albums, the full directory and other forums. They are linking if I use the full URL but they are not appearing in the index or the batch add.

Stramm

works fine for me...
http://www.charleswbrown.com/gallery/displayimage.php?album=lastup&cat=0&pos=4

but it looks like you lost some config settings or you haven't updated your mysql properly... ahm, I just read again. You are updating form cpg1.1? Have you run update.php to create the new db entries?

charleswbrown

Yes done that. Im not actually updating. I downloaded coppermine put the new files on my server then from www.charlie-brown.co.uk/album i took the DB entries, the config file and albuma and changed all the stuff to meet the requirements of www.charleswbrown.com/gallery this might be a lost cause.

Stramm

The images work now as you can see in the link I've posted.
If your question is why despite the menu nothing shows up on the index... then look at your config again -> Album list view  ->The content of the main page
I guess it's empty... read the docs and in the meanwhile add this breadcrumb/catlist/alblist/lastup,2

charleswbrown

Genious, yes it was blank. Rookie mistake.


SOLVED