[Solved]: No images during install script [Solved]: No images during install script
 

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

[Solved]: No images during install script

Started by keithsnell1, June 11, 2008, 12:58:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

keithsnell1

I've spent many many hours reading the forum and trying various fixes; however, I can't seem to get a successful install (CmpFetch 2.0 into Coppermine 1.4.16  bridged  with SMF 1.1.4.)  URL: http://community.spiritofphotography.com

Most forum posts imply that I should be hard-coding a path in the cmpfetch_config.php file.  I've tried hardcoding a path, but that didn't seem to fix the issue.  The images are not appearing in the install script where they should, or on my homepage.

I'm using the following PHP code:
include "./coppermine/cpmfetch.php";
  $objCpm = new cpm("./coppermine/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();

and my home page returns an error stating:  Fatal error: Cannot instantiate non-existent class: cpm in /home/content/k/e/i/keithsnell/html/community/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 2

Perhaps someone smarter than I can look at the attached debug file and tell me the specific path that I should be writing into the cmpfetch_config.php file?  I'm not a PHP or Unix expert, and so may be getting the semantics wrong.

I've attached the install errors and debug information below.  Any help would be appreciated.

CpmFetch Installer for release 2.0.0
http://cpmfetch.fistfullofcode.com

Test images - found a total of 1048 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
despairsm.jpg

2 views    Duosm.jpg

2 views    whispersoftsm.jpg

1 views    profilepd.jpg

4 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=
force=true
Command install issued to script
* * BEGIN SERVER SETTINGS * *
SERVER SCRIPT_NAME: /coppermine/cpmfetch/install.php
SERVER PATH_TRANSLATED: /home/content/k/e/i/keithsnell/html/coppermine/cpmfetch/
install.php
SERVER SCRIPT_FILENAME: /cgi-bin/php
SERVER DOCUMENT_ROOT: /home/content/k/e/i/keithsnell/html
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: coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiIyZjRhZmZjZGJlYWRm
ODVjOGIyZDA5YzIxYmE3NTM1MyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtz
OjM6ImxpdiI7YTozOntpOjA7czozOiI1NzEiO2k6MTtzOjM6IjU0OSI7aToyO3M6MzoiOTQ4Ijt9fQ%3
D%3D; PHPSESSID=3fe8ba049b09a3d29d08671419fb1923; SMFCookie297=a%3A4%3A%7Bi%3A0%
3Bs%3A1%3A%221%22%3Bi%3A1%3Bs%3A40%3A%22dd48fa872490914d9e8844fe32a0b09a5223ab47
%22%3Bi%3A2%3Bi%3A1402342579%3Bi%3A3%3Bi%3A2%3B%7D
SERVER HTTP_HOST: spiritofphotography.com
SERVER HTTP_KEEP_ALIVE: 300
SERVER HTTP_REFERER: http://spiritofphotography.com/coppermine/cpmfetch/install.
php
SERVER HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1
.14) Gecko/20080404 Firefox/2.0.0.14
SERVER REMOTE_ADDR: 75.163.165.227
SERVER REMOTE_PORT: 25985
SERVER SCRIPT_URI: http://www.spiritofphotography.com/coppermine/cpmfetch/instal
l.php
SERVER SCRIPT_URL: /coppermine/cpmfetch/install.php
SERVER SERVER_ADMIN: support@supportwebsite.com
SERVER SERVER_NAME: www.spiritofphotography.com
SERVER SERVER_PORT: 80
SERVER SERVER_SOFTWARE: Apache
SERVER GATEWAY_INTERFACE: CGI/1.1
SERVER SERVER_PROTOCOL: HTTP/1.1
SERVER REQUEST_METHOD: GET
SERVER QUERY_STRING: do=install&force=true
SERVER REQUEST_URI: /coppermine/cpmfetch/install.php?do=install&force=true
SERVER PATH_INFO: /coppermine/cpmfetch/install.php
SERVER PATH: /bin:/usr/bin:/usr/local/bin
SERVER PHP_SELF: /coppermine/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: 15
CONFIG: album_list_cols: 3
CONFIG: display_pic_info: 1
CONFIG: alb_list_thumb_size: 120
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: 1
CONFIG: allow_user_registration: 1
CONFIG: allow_unlogged_access: 1
CONFIG: allow_duplicate_emails_addr: 0
CONFIG: caption_in_thumbview: 1
CONFIG: views_in_thumbview: 0
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://spiritofphotography.com/coppermine/
CONFIG: home_target: http://community.spiritofphotography.com
CONFIG: custom_lnk_name:
CONFIG: custom_lnk_url:
CONFIG: enable_smilies: 1
CONFIG: filter_bad_words: 0
CONFIG: forbiden_fname_char: $/\\:*?"'<>|` &
CONFIG: fullpath: albums/
CONFIG: gallery_admin_email: keithsnell@earthlink.net
CONFIG: gallery_description:
CONFIG: gallery_name: Spirit of Photography Community Galleries
CONFIG: im_options: -antialias
CONFIG: impath:
CONFIG: jpeg_qual: 80
CONFIG: keep_votes_time: 30
CONFIG: lang: english
CONFIG: main_page_layout: lastup,1/lastcom,1/toprated,1/breadcrumb/catlist/albli
st/onlinestats
CONFIG: main_table_width: 100%
CONFIG: make_intermediate: 0
CONFIG: max_com_lines: 10
CONFIG: max_com_size: 512
CONFIG: max_com_wlength: 38
CONFIG: max_img_desc_length: 512
CONFIG: max_tabs: 12
CONFIG: max_upl_size: 6000
CONFIG: max_upl_width_height: 1000
CONFIG: auto_resize: 1
CONFIG: min_votes_for_rating: 1
CONFIG: normal_pfx: normal_
CONFIG: offline: 0
CONFIG: picture_table_width: 100%
CONFIG: picture_width: 800
CONFIG: read_exif_data: 1
CONFIG: reg_requires_valid_email: 1
CONFIG: subcat_level: 3
CONFIG: theme: smf_1-1_rc2
CONFIG: thumbcols: 5
CONFIG: thumbrows: 4
CONFIG: thumb_method: gd2
CONFIG: thumb_pfx: thumb_
CONFIG: thumb_width: 120
CONFIG: userpics: userpics/
CONFIG: vanity_block: 0
CONFIG: user_profile1_name: Location
CONFIG: user_profile2_name: Interests
CONFIG: user_profile3_name: Website
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: 0
CONFIG: show_private: 0
CONFIG: first_level: 1
CONFIG: display_film_strip: 1
CONFIG: display_film_strip_filename: 0
CONFIG: max_film_strip_items: 7
CONFIG: thumb_use: any
CONFIG: read_iptc_data: 1
CONFIG: reg_notify_admin_email: 1
CONFIG: disable_comment_flood_protect: 1
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: 1
CONFIG: display_faq: 1
CONFIG: show_bbcode_help: 0
CONFIG: log_ecards: 0
CONFIG: email_comment_notification: 1
CONFIG: enable_zipdownload: 0
CONFIG: slideshow_interval: 4000
CONFIG: log_mode: 0
CONFIG: media_autostart: 1
CONFIG: enable_encrypted_passwords: 1
CONFIG: time_offset: -7
CONFIG: ban_private_ip: 0
CONFIG: smtp_host:
CONFIG: smtp_username:
CONFIG: smtp_password:
CONFIG: enable_plugins: 1
CONFIG: enable_help: 1
CONFIG: categories_alpha_sort: 0
CONFIG: login_threshold: 5
CONFIG: login_expiry: 10
CONFIG: allow_email_change: 1
CONFIG: clickable_keyword_search: 1
CONFIG: users_can_edit_pics: 1
CONFIG: show_which_exif: 0|0|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|1|1|1|0|1|0|0|1|0
|0|0|0|0|1|0|0|0|0|0|0|0|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|
CONFIG: link_pic_count: 0
CONFIG: bridge_enable: 1
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: 1
CONFIG: comments_anon_pfx: Guest_
CONFIG: admin_activation: 0
CONFIG: fex_enable: 1
CONFIG: record_online_users: 9
CONFIG: record_online_date: 1209688701
CONFIG: mod_updates_duration: 10
* * END CPG CONFIG TABLE * *
* * BEGIN CPG BRIDGE TABLE * *
BRIDGE: short_name: smf10
BRIDGE: license_number:
BRIDGE: db_database_name:
BRIDGE: db_hostname:
BRIDGE: db_username:
BRIDGE: db_password:
BRIDGE: full_forum_url: http://www.spiritofphotography.com/community
BRIDGE: relative_path_of_forum_from_webroot:
BRIDGE: relative_path_to_config_file: ../community/
BRIDGE: logout_flag:
BRIDGE: use_post_based_groups: 1
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: 2008-02-29 14:02:03
* * 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.16
Closing init file
* * Generating Dynamic Defaults * *
filesystem_path_to_cpg:/
domain_name:www.spiritofphotography.com
cpg_album_url:http://spiritofphotography.com/coppermine/albums/
cpg_url:http://spiritofphotography.com/coppermine/
* * Assigning bridged settings * *
Bridge_enable: 1
Bridge_short_name: smf10
Setting bridge as smf10
Opening cpmfetch config file: cpmfetch_config.php
Writing cpmfetch config file cpmfetch_config.php
Completed writing config file
Producing output screen and exiting


Hein Traag

Before we talk support you need to upgrade to 1.4.18 a.s.a.p. At the moment you are running <!--Coppermine Photo Gallery 1.4.16 (stable)-->

poubao

try to change the permission files to 755 or 775 in CPG
Poubao :)
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

keithsnell1

Hein Traag,

I've updated to version 1.4.18.  I'm still having the same install issues with CmpFetch.  Can you help please? 

Please have a little simpathy.  I'm not a "software" guy.  When I took computer programming in college we were still using punch cards.

Keith

keithsnell1

Poubao,

Thank you for trying to help.  Can you provide a little more detail about specifically what files I need to change, and how to go about doing this? 

Thank you,

Keith

poubao

#5
in your debug list, i can read this:
CONFIG: default_dir_mode: 0755
CONFIG: default_file_mode: 0644
Change the chmod to 0755, or 775 in your cpg admin panel
be sure of the path of the cpmfetch folder
you must upload a new empty config file from the unzipped package of cpmfetch and run the cpmfetch/install.php again.
Poubao :D
(Ihad the same issue with cpmfetch, i change the CHMOD, and cpmfetch works now for me)
Or may be it's a bridge issue?, if you can, install a standalone test gallery, and test cpmfetch
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

keithsnell1

Poubao,

Thank you for your help.  I changed the CHMOD to 755, then tried 775 and the images would still not show.  (I changed back to the defaults, just to be safe.)  I've also tried updating the path to cpg, but I'm not sure I'm getting it right.  Can you tell me what the path should be?

Thank you again for trying to help a newbie

Keith

Nibbler

It's worth learning how paths work if you run a website.

You have cpmfetch here:
/home/content/k/e/i/keithsnell/html/coppermine/cpmfetch/cpmfetch.php

You have your SMF thing here:
/home/content/k/e/i/keithsnell/html/community

Therefore the path should be this:


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


If that fails use the full path:


  include "/home/content/k/e/i/keithsnell/html/coppermine/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/content/k/e/i/keithsnell/html/coppermine/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();

keithsnell1

Nibbler,

Thank you.  I'm slowly learning...  I'm making progress.  Now instead of returning an error, the website displays:

CF-Error  CF-Error  CF-Error  CF-Error  CF-Error  CF-Error  CF-Error  CF-Error
despairsm.jpg Duosm.jpg  whispersoftsm.jpg  profilepd.jpg

Which is the same thing being displayed on the CmpFetch install page when I run the install. 

Clicking on the name of the .jpg takes me to the right image, so something is working right.  I just can't get the image thumbnails to display properly.  (or get rid of the CF-Error msg.)

Thank you again for your help.

Keith

keithsnell1

Nibbler,

I suspect that my problem might be here:
* * Generating Dynamic Defaults * *
filesystem_path_to_cpg:/

But I'm not sure how to fix it.  Do I need to "hard code" this file system path, and if so, how?

Thanks again,

Keith

Nibbler


keithsnell1

Yes!  Yeah!  You are my hero.

How do I buy you a beer?

Keith