Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: CPMfetch doesn't work after site has been moved to different host  (Read 7771 times)

0 Members and 1 Guest are viewing this topic.

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77

Hi,

My site has been moved to another host and now I can't seem to get CMPfetch to work. It keeps linking to my previous host for whatever reason.
Is someone able to help me out?

The CPMfetch code is this;

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

and needs to be directed to teenwolfonline.net/photos instead of teenwolfonline.org/photos.
I'd love to get some help with this. I've cleared my cache three times - with no luck at all.

Thanks in advance,
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4483
    • Windsurf.me
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #1 on: August 13, 2015, 03:27:12 pm »

It has been a long time since I looked at cpmfetch. IIRC it gets the host information from the standard coppermine config information. Please check if that is correct. If that does not work I will take a look when I get home in a couple of days (Ipads are not very usefull for looking at things like this) unless someone else has an idea.

http://documentation.coppermine-gallery.net/en/configuration.htm#admin_general_coppermine-url
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #2 on: August 13, 2015, 09:42:08 pm »

I might be clueless...
What do you mean with 'IIRC'?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #3 on: August 14, 2015, 09:11:42 am »

What do you mean with 'IIRC'?
https://en.wiktionary.org/wiki/IIRC


http://documentation.coppermine-gallery.net/en/configuration.htm#admin_general_coppermine-url
As suspected, that setting is wrong. You can see this in the file information of any picture, e.g. http://teenwolfonline.net/photos/displayimage.php?pid=230 - it still reads
Quote
http://teenwolfonline.org/photos/displayimage.php?pid=230
Logged

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Re: CPMfetch doesn't work after site has been moved to different host
« Reply #4 on: August 14, 2015, 12:43:50 pm »

https://en.wiktionary.org/wiki/IIRC

As suspected, that setting is wrong. You can see this in the file information of any picture, e.g. http://teenwolfonline.net/photos/displayimage.php?pid=230 - it still reads

I've changed the URL in the general settings section, and it still doesn't work.
The site only shows my header now because of a certain missing piece or error with CPMfetch.
Whenever I remove the CPMfetch code, which I'll paste down below, the site works fine... I don't get why it isn't working. Shouldn't it just be easily installed so I only need to copy+paste the right code afterwards?

Code: [Select]
<?php
  
include "./cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,9);
  
$objCpm->cpm_close();
?>

I've also tried

Code: [Select]
<?php
  
include "./photos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./photos/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,9);
  
$objCpm->cpm_close();
?>


A screenshot of what it looks like when I put the code in its place can be found at the attachments.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415

The site only shows my header now because of a certain missing piece or error with CPMfetch.

So we now have a different issue than described in the initial post, just by changing the URL in the config? Make sure that the path is correct when you include cpmfetch.php.
Logged

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77

So we now have a different issue than described in the initial post, just by changing the URL in the config? Make sure that the path is correct when you include cpmfetch.php.

It did that before I changed the URL in the config, I just assumed it was because of the URL it did that in the first place.
Just to make sure I did things right, here's what I've done;

- CMPfetch is uploaded in the CPG/gallery directory. /photos/cpmfetch.
- The gallery is linking to .net now while it used to direct towards .org.
- When I go to the page http://teenwolfonline.net/photos/cpmfetch/install.php, everything's displayed correctly.

And now where things go wrong...
After installing cpmfetch succesfully, as displayed in the attachments, I want to paste the code into its correct position, and that's where it all goes wrong as it doesn't show me the cpmfetch code with the latest images/uploads at all, as I've shown in one of my previous posts. So this whole thing is completely above me, apparantly since I believe I have done everything right. I'll also include a debug log this time;

Quote
CpmFetch Install Script version 2.0.0
do=install
path=
force=true
Command install issued to script
* * BEGIN SERVER SETTINGS * *
SERVER CONTEXT_DOCUMENT_ROOT: /home/teenwolf/public_html
SERVER CONTEXT_PREFIX:
SERVER DOCUMENT_ROOT: /home/teenwolf/public_html
SERVER GATEWAY_INTERFACE: CGI/1.1
SERVER HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/
webp,*/*;q=0.8
SERVER HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
SERVER HTTP_ACCEPT_LANGUAGE: nl,en-US;q=0.8,en;q=0.6,de;q=0.4,hu;q=0.2
SERVER HTTP_CONNECTION: keep-alive
SERVER HTTP_COOKIE: 9b603e83c519c6f858bb785fec97f216=8539280a06019cb1e5ea3a88eb1
d3bff; cpg15x_data=YTozOntzOjI6IklEIjtzOjMyOiJmZjk5NThjYTE4YmNhNzE4MWIzNjY0YmY4M
zc4MjQ4NCI7czoyOiJhbSI7aToxO3M6MzoibGl2IjthOjE6e2k6MDtzOjM6IjIzMCI7fX0%3D; _ga=G
A1.2.677976969.1439468948
SERVER HTTP_HOST: teenwolfonline.net
SERVER HTTP_REFERER: http://teenwolfonline.net/photos/cpmfetch/install.php
SERVER HTTP_UPGRADE_INSECURE_REQUESTS: 1
SERVER HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36
SERVER PATH: /bin:/usr/bin
SERVER QUERY_STRING: do=install&force=true
SERVER REDIRECT_STATUS: 200
SERVER REMOTE_ADDR: 141.105.9.151
SERVER REMOTE_PORT: 53053
SERVER REQUEST_METHOD: GET
SERVER REQUEST_SCHEME: http
SERVER REQUEST_URI: /photos/cpmfetch/install.php?do=install&force=true
SERVER SCRIPT_FILENAME: /home/teenwolf/public_html/photos/cpmfetch/install.php
SERVER SCRIPT_NAME: /photos/cpmfetch/install.php
SERVER SERVER_ADDR: 85.159.237.9
SERVER SERVER_ADMIN: webmaster@teenwolfonline.net
SERVER SERVER_NAME: teenwolfonline.net
SERVER SERVER_PORT: 80
SERVER SERVER_PROTOCOL: HTTP/1.1
SERVER SERVER_SIGNATURE:
Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_b
wlimited/1.4 Server at teenwolfonline.net Port 80


SERVER SERVER_SOFTWARE: Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1
.4
SERVER UNIQUE_ID: Vc376FWf7QkACSfZV-YAAABE
SERVER PHP_SELF: /photos/cpmfetch/install.php
SERVER REQUEST_TIME_FLOAT: 1439562728.24
SERVER REQUEST_TIME: 1439562728
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: admin_activation: 0
CONFIG: alb_desc_thumb: 1
CONFIG: alb_list_thumb_size: 51
CONFIG: album_list_cols: 2
CONFIG: albums_per_page: 12
CONFIG: allow_duplicate_emails_addr: 0
CONFIG: allow_guests_enter_file_details: 0
CONFIG: allowed_doc_types: doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb
CONFIG: allowed_img_types: jpeg/jpg/png/gif
CONFIG: allowed_mov_types: asf/asx/mpg/mpeg/wmv/swf/avi/mov
CONFIG: allowed_snd_types: mp3/midi/mid/wma/wav/ogg
CONFIG: allow_email_change: 1
CONFIG: allow_memberlist: 1
CONFIG: allow_private_albums: 1
CONFIG: allow_unlogged_access: 3
CONFIG: allow_user_account_delete: 0
CONFIG: allow_user_album_keyword: 0
CONFIG: allow_user_edit_after_cat_close: 0
CONFIG: allow_user_move_album: 0
CONFIG: allow_user_registration: 0
CONFIG: allow_user_upload_choice: 1
CONFIG: auto_resize: 0
CONFIG: batch_proc_limit: 1
CONFIG: bridge_enable: 0
CONFIG: browse_batch_add: 1
CONFIG: browse_by_date: 0
CONFIG: caption_in_thumbview: 1
CONFIG: categories_alpha_sort: 0
CONFIG: charset: utf-8
CONFIG: clickable_keyword_search: 1
CONFIG: comment_akismet_api_key:
CONFIG: comment_akismet_counter: 0
CONFIG: comment_akismet_enable: 0
CONFIG: comment_akismet_group: 0
CONFIG: comment_approval: 0
CONFIG: comment_captcha: 1
CONFIG: comment_placeholder: 1
CONFIG: comment_promote_registration: 0
CONFIG: comments_anon_pfx: Guest_
CONFIG: comments_per_page: 20
CONFIG: comments_sort_descending: 0
CONFIG: comment_user_edit: 1
CONFIG: contact_form_guest_email_field: 2
CONFIG: contact_form_guest_enable: 0
CONFIG: contact_form_guest_name_field: 2
CONFIG: contact_form_registered_enable: 1
CONFIG: contact_form_sender_email: 1
CONFIG: contact_form_subject_content: Coppermine gallery contact form
CONFIG: contact_form_subject_field: 0
CONFIG: cookie_name: cpg15x
CONFIG: cookie_path: /
CONFIG: count_admin_hits: 0
CONFIG: count_album_hits: 1
CONFIG: count_file_hits: 1
CONFIG: custom_footer_path:
CONFIG: custom_header_path:
CONFIG: custom_lnk_name:
CONFIG: custom_lnk_url:
CONFIG: debug_mode: 0
CONFIG: debug_notice: 0
CONFIG: default_dir_mode: 0755
CONFIG: default_file_mode: 0644
CONFIG: default_sort_order: na
CONFIG: disable_comment_flood_protect: 0
CONFIG: display_comment_approval_only: 0
CONFIG: display_comment_count: 0
CONFIG: display_coppermine_news: 0
CONFIG: display_filename: 0
CONFIG: display_film_strip: 1
CONFIG: display_pic_info: 0
CONFIG: display_redirection_page: 0
CONFIG: display_reset_boxes_in_config: 0
CONFIG: display_sidebar_guest: 1
CONFIG: display_sidebar_user: 1
CONFIG: display_stats_on_index: 1
CONFIG: display_thumbnail_rating: 0
CONFIG: display_thumbs_batch_add: 1
CONFIG: display_uploader: 0
CONFIG: display_xp_publish_link: 0
CONFIG: ecard_flash: 0
CONFIG: ecards_more_pic_target: http://teenwolfonline.net/photos/
CONFIG: email_comment_notification: 0
CONFIG: enable_encrypted_passwords: 1
CONFIG: enable_help: 1
CONFIG: enable_menu_icons: 2
CONFIG: enable_plugins: 1
CONFIG: enable_smilies: 1
CONFIG: enable_thumb_watermark: 1
CONFIG: enable_unsharp: 0
CONFIG: enable_watermark: 0
CONFIG: enable_zipdownload: 0
CONFIG: filter_bad_words: 0
CONFIG: first_level: 0
CONFIG: forbiden_fname_char: $/\\:*?"'<>|` &#@
CONFIG: fullpath: albums/
CONFIG: fullsize_padding_x: 5
CONFIG: fullsize_padding_y: 3
CONFIG: gallery_admin_email: teenwolfonline@gmail.com
CONFIG: gallery_description: Your #1 Resource for everything Teen Wolf
CONFIG: gallery_name: Teen Wolf Online.org Gallery
CONFIG: global_registration_pw:
CONFIG: guest_token_cleanup: 1438261038
CONFIG: hit_details: 0
CONFIG: home_target: index.php
CONFIG: im_options: -antialias
CONFIG: impath: /usr/bin/
CONFIG: jpeg_qual: 80
CONFIG: keep_votes_time: 30
CONFIG: keyword_separator: ;
CONFIG: lang: english
CONFIG: language_autodetect: 0
CONFIG: link_pic_count: 1
CONFIG: log_ecards: 0
CONFIG: login_expiry: 10
CONFIG: login_method: both
CONFIG: login_threshold: 5
CONFIG: log_mode: 0
CONFIG: main_page_layout: breadcrumb/catlist/alblist/lastup,1/lasthits,1/topn,1/
onlinestats
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_film_strip_items: 5
CONFIG: max_img_desc_length: 512
CONFIG: max_tabs: 12
CONFIG: max_upl_size: 10000
CONFIG: max_upl_width_height: 2053
CONFIG: media_autostart: 1
CONFIG: min_votes_for_rating: 0
CONFIG: normal_pfx: normal_
CONFIG: offline: 0
CONFIG: old_style_rating: 0
CONFIG: orig_pfx: orig_
CONFIG: performance_page_generation_time: 0
CONFIG: performance_page_query_count: 0
CONFIG: performance_page_query_time: 0
CONFIG: performance_timestamp: 0
CONFIG: personal_album_on_registration: 0
CONFIG: picinfo_movie_download_link: 1
CONFIG: picture_table_width: 100%
CONFIG: picture_use: thumb
CONFIG: picture_width: 600
CONFIG: purge_expired_bans: 1
CONFIG: rate_own_files: 0
CONFIG: rating_stars_amount: 5
CONFIG: read_exif_data: 0
CONFIG: read_iptc_data: 0
CONFIG: reduce_watermark: 0
CONFIG: registration_captcha: 1
CONFIG: reg_notify_admin_email: 0
CONFIG: reg_requires_valid_email: 1
CONFIG: report_post: 0
CONFIG: session_cleanup: 1439562118
CONFIG: show_bbcode_help: 1
CONFIG: show_private: 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: silly_safe_mode: 0
CONFIG: site_token: b7fb8bb0bbd99fb6e626bf19b83e84ee
CONFIG: form_token_lifetime: 880
CONFIG: slideshow_hits: 1
CONFIG: slideshow_interval: 5000
CONFIG: smtp_host:
CONFIG: smtp_password:
CONFIG: smtp_username:
CONFIG: subcat_level: 1
CONFIG: tabs_dropdown: 1
CONFIG: theme: twoorgcpg
CONFIG: enable_encrypted_alb_passwords: 1
CONFIG: thumbcols: 4
CONFIG: thumb_height: 100
CONFIG: thumb_method: gd2
CONFIG: thumbnail_to_fullsize: 0
CONFIG: thumb_pfx: thumb_
CONFIG: thumbrows: 1
CONFIG: thumb_use: ex
CONFIG: thumb_width: 100
CONFIG: time_offset: 0
CONFIG: transparent_overlay: 0
CONFIG: unsharp_amount: 120
CONFIG: unsharp_radius: 0.5
CONFIG: unsharp_threshold: 3
CONFIG: upl_notify_admin_email: 0
CONFIG: upload_mechanism: swfupload
CONFIG: user_field1_name:
CONFIG: user_field2_name:
CONFIG: user_field3_name:
CONFIG: user_field4_name:
CONFIG: userpics: userpics/
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_registration_disclaimer: 1
CONFIG: users_can_edit_pics: 0
CONFIG: views_in_thumbview: 1
CONFIG: vote_details: 0
CONFIG: watermark_file: http://teenwolfonline.org/photos/images/watermark.png
CONFIG: watermark_transparency: 50
CONFIG: watermark_transparency_featherx: 0
CONFIG: watermark_transparency_feathery: 0
CONFIG: where_put_watermark: southwest
CONFIG: which_files_to_watermark: original
CONFIG: record_online_users: 37
CONFIG: record_online_date: 1425323155
CONFIG: mod_updates_duration: 10
CONFIG: cookies_need_consent: 0
CONFIG: album_sort_order: pa
CONFIG: custom_sortorder_thumbs: 1
CONFIG: link_last_upload: 0
CONFIG: editpics_ignore_newer_than: 0
CONFIG: upload_create_album_directory: 0
CONFIG: batch_add_hide_existing_files: 0
CONFIG: only_empty_albums: 0
* * END CPG CONFIG TABLE * *
* * BEGIN CPG BRIDGE TABLE * *
BRIDGE: short_name:
BRIDGE: full_forum_url:
BRIDGE: relative_path_to_config_file:
BRIDGE: use_post_based_groups:
BRIDGE: cookie_prefix:
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.5.36
Closing init file
* * Generating Dynamic Defaults * *
filesystem_path_to_cpg:/home/teenwolf/public_html/photos/
domain_name:teenwolfonline.net
cpg_album_url:http://teenwolfonline.net/photos/albums/
cpg_url:http://teenwolfonline.net/photos/
* * 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

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #7 on: August 14, 2015, 04:50:23 pm »

You said
It keeps linking to my previous host for whatever reason.
which means that CPMFetch worked, basically.

But how was that possible if your current issue
The site only shows my header now because of a certain missing piece or error with CPMfetch.
already existed before you changed the URL setting?


However, if I try to open http://teenwolfonline.net/photos/cpmfetch/cpmfetch.php I get this error:
Quote
Strict Standards: Declaration of cpm::debugPrint() should be compatible with cpm_dao::debugPrint() in /home/teenwolf/public_html/photos/cpmfetch/cpmfetch.php on line 50

Which PHP version is installed on your server?
Logged

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Re: CPMfetch doesn't work after site has been moved to different host
« Reply #8 on: August 14, 2015, 04:59:52 pm »

You saidwhich means that CPMFetch worked, basically.

But how was that possible if your current issuealready existed before you changed the URL setting?


However, if I try to open http://teenwolfonline.net/photos/cpmfetch/cpmfetch.php I get this error:
Which PHP version is installed on your server?

The site's server is running on PHP version 5.4.44.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #9 on: August 20, 2015, 05:07:25 pm »

As a quick fix, please disable strict standards messages: http://stackoverflow.com/questions/9983286/disabling-strict-standards-in-php-5-4
Logged

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #10 on: August 20, 2015, 08:08:56 pm »

I will contact my host about it, thank you!
Logged

Manutjee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: CPMfetch doesn't work after site has been moved to different host
« Reply #11 on: August 21, 2015, 01:31:18 pm »

The issue has been solved as the host disabled it.
Thank you very much!
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 20 queries.