Thumbnails not displaying in install.php Thumbnails not displaying in install.php
 

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

Thumbnails not displaying in install.php

Started by dvh, September 27, 2008, 10:33:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dvh

Hi,

I've read through the threads with problems similar to mine but I can't seem to figure it out.

My test page http://cursedhyphen.last-dance.org/shedding/test.php uses this code

<?php
  
include "/home/.canaan/danvi/cursedhyphen.last-dance.org/shedding/gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("/home/.canaan/danvi/cursedhyphen.last-dance.org/shedding/gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>



and displays the thumbnails as follow:

QuoteCF-Error  CF-Error  CF-Error  CF-Error  CF-Error  CF-Error  CF-Error  CF-Error
nightmother_18.jpg    nightmother_20.jpg    nightmother_21.jpg    nightmother_19.jpg

I used the full path because I read on some threads that it might solve the problem, but it hasn't.



Here is what my install page says:

QuoteTest images - found a total of 3231 images:
If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here.
CF-Error CF-Error CF-Error CF-Error CF-Error CF-Error CF-Error CF-Error
nightmother_18.jpg

0 views    nightmother_20.jpg

0 views    nightmother_21.jpg

0 views    nightmother_19.jpg

0 views

These images were found and displayed by using the following PHP code:

<?php
  include "./cpmfetch.php";
  $objCpm = new cpm("./cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Please note: Unless you are running this code from the same directory as the cpmfetch_config.php file, you need to alter that path so it can be found. The same goes for the include statement.

For example, if you want to add these images into your home page and your cpmfetch directory is inside your gallery directory (which is named gallery) it would look more like this:

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Please see the web site or the included documentation for more information.

Warnings:
CpmFetch draws configuration information from your CPG database when this installer is run. If you make any significant changes to the CPG configuration, you will need to re-run this installer. Most changes to the CPG config will not require this to be done. Some times that you may want to include:

    * You've made changes to the Coppermine Photo Gallery configuration
    * You've messed up the cpmfetch_config.php file beyond repair
    * Bridged CPG with a forum of some sort

Debug Information:
If you have problems with this installation, you may be asked to provide all or some of the following information. Support for CpmFetch is handled on the Coppermine Photo Gallery forums in this particular board.

CpmFetch Install Script version 2.0.0
do=install
path=/home/.canaan/danvi/cursedhyphen.last-dance.org/shedding/gallery
force=true
Command install issued to script
* * BEGIN SERVER SETTINGS * *
SERVER PATH: /usr/local/bin:/usr/bin:/bin
SERVER DOCUMENT_ROOT: /home/danvi/cursedhyphen.last-dance.org
SERVER HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=
0.8
SERVER HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
SERVER HTTP_ACCEPT_ENCODING: gzip,deflate
SERVER HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
SERVER HTTP_CONNECTION: keep-alive
SERVER HTTP_COOKIE: mjguest[key]=4ed5c1c6d7ec7b6d3a06d2e434ef7a08; mjguest[data]
=status%7Ci%3A3%3Bip%7Cs%3A12%3A%2274.57.33.158%22%3Blanguage%7Cs%3A2%3A%22en%22
%3B; coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiIwYzcwZmRkNTExOWMyOWRlNDUyODM5M2Q
wYWVmNTliYSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTo
yOntpOjA7czoyOiIxNCI7aToxO3M6MjoiMTUiO319; 1eb0583716fa24dce2a6127a080ec7fe=ffa6
697485484be851fa2e760d20f5a6; f99ff72e866dec88b12ae00794461c08=9b29a2ad412634a81
305aeead1047d1e; 8a983e38aebf6b4cc80c9dfbfc7101d9=3a3ef52862b9ae89a5adc11173d49c
46; 7bcd4bb76d91d8698ad789675e0a0174=29fb736a21a71eba42f32c6944ce29af; 96d102001
44f343bbe428dbb7026ed74=afc3516b0e1bbaeb6ea608bfc3f71565; PHPSESSID=612986fcd192
476a3594b3288eacae73
SERVER HTTP_HOST: cursedhyphen.last-dance.org
SERVER HTTP_KEEP_ALIVE: 300
SERVER HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0
.3) Gecko/2008092417 Firefox/2.0.0.14 Megaupload 1.0
SERVER REDIRECT_QUERY_STRING: do=install&force=true&path=/home/.canaan/danvi/cur
sedhyphen.last-dance.org/shedding/gallery
SERVER REDIRECT_STATUS: 200
SERVER REDIRECT_URL: /shedding/gallery/cpmfetch/install.php
SERVER REMOTE_ADDR: 74.57.33.158
SERVER REMOTE_PORT: 4851
SERVER SCRIPT_FILENAME: /dh/cgi-system/php.cgi
SERVER SCRIPT_URI: http://cursedhyphen.last-dance.org/shedding/gallery/cpmfetch/
install.php
SERVER SCRIPT_URL: /shedding/gallery/cpmfetch/install.php
SERVER SERVER_ADDR: 208.113.230.193
SERVER SERVER_ADMIN: webmaster@cursedhyphen.last-dance.org
SERVER SERVER_NAME: cursedhyphen.last-dance.org
SERVER SERVER_PORT: 80
SERVER SERVER_SOFTWARE: Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fa
stcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.8 mod_ssl/2.8.22 OpenSSL/0.9.7e
SERVER GATEWAY_INTERFACE: CGI/1.1
SERVER SERVER_PROTOCOL: HTTP/1.1
SERVER REQUEST_METHOD: GET
SERVER QUERY_STRING: do=install&force=true&path=/home/.canaan/danvi/cursedhyphen
.last-dance.org/shedding/gallery
SERVER REQUEST_URI: /shedding/gallery/cpmfetch/install.php?do=install&force=true
&path=/home/.canaan/danvi/cursedhyphen.last-dance.org/shedding/gallery
SERVER SCRIPT_NAME: /cgi-system/php.cgi
SERVER PATH_INFO: /shedding/gallery/cpmfetch/install.php
SERVER PATH_TRANSLATED: /home/danvi/cursedhyphen.last-dance.org/shedding/gallery
/cpmfetch/install.php
SERVER PHP_SELF: /shedding/gallery/cpmfetch/install.php
SERVER argv: Array
SERVER argc: 1
* * END SERVER SETTINGS * *
Found config file at ../include/config.inc.php
Found init file at ../include/init.inc.php
force set, skipping version checks
Opening config file at ../include/config.inc.php
Retrieving config from database
* * BEGIN CPG CONFIG TABLE * *
CONFIG: albums_per_page: 10
CONFIG: album_list_cols: 2
CONFIG: display_pic_info: 0
CONFIG: alb_list_thumb_size: 75
CONFIG: allowed_mov_types: ALL
CONFIG: allowed_doc_types: doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb
CONFIG: allowed_snd_types: mp3/midi/mid/wma/wav/ogg
CONFIG: allowed_img_types: ALL
CONFIG: allow_private_albums: 0
CONFIG: allow_user_registration: 1
CONFIG: allow_unlogged_access: 0
CONFIG: allow_duplicate_emails_addr: 0
CONFIG: caption_in_thumbview: 0
CONFIG: views_in_thumbview: 1
CONFIG: charset: utf-8
CONFIG: cookie_name: coppermine
CONFIG: cookie_path: /
CONFIG: debug_mode: 0
CONFIG: debug_notice: 0
CONFIG: default_dir_mode: 0755
CONFIG: default_file_mode: 0644
CONFIG: default_sort_order: na
CONFIG: ecards_more_pic_target: http://cursedhyphen.last-dance.org/shedding/gall
ery/
CONFIG: home_target: http://cursedhyphen.last-dance.org/shedding/
CONFIG: custom_lnk_name:
CONFIG: custom_lnk_url:
CONFIG: enable_smilies: 0
CONFIG: filter_bad_words: 1
CONFIG: forbiden_fname_char: $/\\:*?"'<>|` &
CONFIG: fullpath: albums/
CONFIG: gallery_admin_email: shedding.meganfollows@gmail.com
CONFIG: gallery_description: Shedding's photo gallery of Megan Follows
CONFIG: gallery_name: Shedding Photo Gallery
CONFIG: im_options: -antialias
CONFIG: impath:
CONFIG: jpeg_qual: 80
CONFIG: keep_votes_time: 30
CONFIG: lang: english
CONFIG: main_page_layout: breadcrumb/catlist/alblist/lasthits,2/lastup,2/topn
CONFIG: main_table_width: 100%
CONFIG: make_intermediate: 1
CONFIG: max_com_lines: 10
CONFIG: max_com_size: 512
CONFIG: max_com_wlength: 38
CONFIG: max_img_desc_length: 512
CONFIG: max_tabs: 10
CONFIG: max_upl_size: 2500
CONFIG: max_upl_width_height: 2048
CONFIG: auto_resize: 0
CONFIG: min_votes_for_rating: 1
CONFIG: normal_pfx: normal_
CONFIG: offline: 0
CONFIG: picture_table_width: 600
CONFIG: picture_width: 400
CONFIG: read_exif_data: 0
CONFIG: reg_requires_valid_email: 1
CONFIG: subcat_level: 1
CONFIG: theme: shedding_i
CONFIG: thumbcols: 4
CONFIG: thumbrows: 10
CONFIG: thumb_method: gd2
CONFIG: thumb_pfx: thumb_
CONFIG: thumb_width: 100
CONFIG: userpics: userpics/
CONFIG: vanity_block: 1
CONFIG: user_profile1_name: Location
CONFIG: user_profile2_name: Interests
CONFIG: user_profile3_name: Website (if applicable)
CONFIG: user_profile4_name: Occupation
CONFIG: user_profile5_name:
CONFIG: user_profile6_name: Biography
CONFIG: user_field1_name:
CONFIG: user_field2_name:
CONFIG: user_field3_name:
CONFIG: user_field4_name:
CONFIG: display_comment_count: 1
CONFIG: show_private: 0
CONFIG: first_level: 0
CONFIG: display_film_strip: 0
CONFIG: display_film_strip_filename: 0
CONFIG: max_film_strip_items: 5
CONFIG: thumb_use: any
CONFIG: read_iptc_data: 0
CONFIG: reg_notify_admin_email: 0
CONFIG: disable_comment_flood_protect: 0
CONFIG: upl_notify_admin_email: 1
CONFIG: display_uploader: 0
CONFIG: display_filename: 0
CONFIG: language_list: 0
CONFIG: language_flags: 0
CONFIG: theme_list: 0
CONFIG: language_reset: 1
CONFIG: theme_reset: 1
CONFIG: allow_memberlist: 0
CONFIG: display_faq: 0
CONFIG: show_bbcode_help: 1
CONFIG: log_ecards: 0
CONFIG: email_comment_notification: 1
CONFIG: enable_zipdownload: 0
CONFIG: slideshow_interval: 5000
CONFIG: log_mode: 0
CONFIG: media_autostart: 1
CONFIG: enable_encrypted_passwords: 1
CONFIG: time_offset: -5
CONFIG: ban_private_ip: 1
CONFIG: smtp_host:
CONFIG: smtp_username:
CONFIG: smtp_password:
CONFIG: enable_plugins: 1
CONFIG: enable_help: 2
CONFIG: categories_alpha_sort: 0
CONFIG: login_threshold: 5
CONFIG: login_expiry: 10
CONFIG: allow_email_change: 0
CONFIG: clickable_keyword_search: 1
CONFIG: users_can_edit_pics: 0
CONFIG: show_which_exif: |0|0|0|0|0|0|0|0|1|0|1|1|0|0|0|0|0|0|0|0|0|0|0|1|0|0|0|
1|0|0|0|1|1|0|0|0|0|1|0|0|0|1|0|0|1|1|0|0|0|0|0|1|0|1|1
CONFIG: alb_desc_thumb: 1
CONFIG: link_pic_count: 0
CONFIG: bridge_enable: 0
CONFIG: language_fallback: 1
CONFIG: vote_details: 0
CONFIG: hit_details: 0
CONFIG: browse_batch_add: 1
CONFIG: custom_header_path:
CONFIG: custom_footer_path:
CONFIG: comments_sort_descending: 0
CONFIG: report_post: 0
CONFIG: comments_anon_pfx: Guest_
CONFIG: admin_activation: 0
* * END CPG CONFIG TABLE * *
* * BEGIN CPG BRIDGE TABLE * *
BRIDGE: short_name:
BRIDGE: license_number:
BRIDGE: db_database_name:
BRIDGE: db_hostname:
BRIDGE: db_username:
BRIDGE: db_password:
BRIDGE: full_forum_url:
BRIDGE: relative_path_of_forum_from_webroot:
BRIDGE: relative_path_to_config_file:
BRIDGE: logout_flag:
BRIDGE: use_post_based_groups:
BRIDGE: cookie_prefix:
BRIDGE: table_prefix:
BRIDGE: user_table:
BRIDGE: session_table:
BRIDGE: group_table:
BRIDGE: group_relation_table:
BRIDGE: group_mapping_table:
BRIDGE: use_standard_groups: 1
BRIDGE: validating_group:
BRIDGE: guest_group:
BRIDGE: member_group:
BRIDGE: admin_group:
BRIDGE: banned_group:
BRIDGE: global_moderators_group:
BRIDGE: recovery_logon_failures: 0
BRIDGE: recovery_logon_timestamp:
* * END CPG BRIDGE TABLE * *
Closed database connection
Opening init file at ../include/init.inc.php
Reading init file at ../include/init.inc.php
InitFile: CPG Version 1.4.12
Closing init file
* * Generating Dynamic Defaults * *
filesystem_path_to_cpg:/
domain_name:cursedhyphen.last-dance.org
cpg_album_url:http://cursedhyphen.last-dance.org/shedding/gallery/albums/
cpg_url:http://cursedhyphen.last-dance.org/shedding/gallery/
* * Assigning bridged settings * *
Bridge_enable: 0
Bridge_short_name:
Bridging is not enabled in CPG
Opening cpmfetch config file: cpmfetch_config.php
Writing cpmfetch config file cpmfetch_config.php
Completed writing config file
Producing output screen and exiting


Any help would be great. Thanks so much!




dvh

I feel stupid asking this because I've read through a couple of threads describing the same problem. But I just haven't been able to correct the errors.

Sorry about this problem being redundant.

dvh

I can't seem to find an edit button, but you can now ignore this post.
I've used a few php script lines I found on this forum to display last uploaded image thumbnails.

Joachim Müller

For the benefit of others you should resolve your thread properly, i.e. post a link to the thread that helped you solve your issues.

dvh

Quote from: Joachim Müller on September 28, 2008, 09:55:05 AM
For the benefit of others you should resolve your thread properly, i.e. post a link to the thread that helped you solve your issues.

Yeah, sorry, here it is: http://forum.coppermine-gallery.net/index.php/topic,23609.0.html