Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Error on page using cpmfetch?  (Read 6306 times)

0 Members and 1 Guest are viewing this topic.

culedude

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Error on page using cpmfetch?
« on: August 15, 2007, 12:47:42 am »

Hi
Sorry for the newbie question, I have installed cpmfetch on my server and written index1.php which resides in the cpmfetch directory

When loading index1.php I get the following error message, can anybody please help?

Parse error: syntax error, unexpected '<' in /home/photomag/www/www/1/gallery/cpmfetch/index1.php on line 4

---------------------------------------

Code: [Select]
CpmFetch Install Script version 2.0.0
do=install
path=
force=true
Command install issued to script
* * BEGIN SERVER SETTINGS * *
SERVER PATH: /usr/local/bin:/usr/bin:/bin
SERVER DOCUMENT_ROOT: /home/photomag/www/www
SERVER HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, applica
tion/x-shockwave-flash, */*
SERVER HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER HTTP_ACCEPT_LANGUAGE: en-gb
SERVER HTTP_CONNECTION: Keep-Alive
SERVER HTTP_COOKIE: coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiI5MDNlZTdjNGYzODM4
N2Q2ZTY5ZTdhMTA5ZTcyZmMyNyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtz
OjM6ImxpdiI7YTowOnt9fQ%3D%3D; phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologini
d%22%3Bs%3A32%3A%2280c0ec2d5bf922f3b8c990d6f139eecc%22%3Bs%3A6%3A%22userid%22%3B
s%3A1%3A%222%22%3B%7D; 4a1db631296b1e5478a635590c1d8a18=d3e7153708d6d5d1f93d61d6
7672ae41; phpbb2mysql_sid=e23263146faf6962d79304f7976fe2ff; phpbb2mysql_t=a%3A2%
3A%7Bi%3A2%3Bi%3A1187123193%3Bi%3A3%3Bi%3A1187123784%3B%7D
SERVER HTTP_FrontPageEnable: On
SERVER HTTP_HOST: www.photomag.co.uk
SERVER HTTP_REFERER: http://www.photomag.co.uk/1/gallery/cpmfetch/install.php
SERVER HTTP_UA_CPU: x86
SERVER HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)
SERVER REMOTE_ADDR: 81.98.32.253
SERVER REMOTE_PORT: 13293
SERVER SCRIPT_FILENAME: /home/photomag/www/www/1/gallery/cpmfetch/install.php
SERVER SERVER_ADDR: 64.14.68.75
SERVER SERVER_ADMIN: admin@photomag.co.uk
SERVER SERVER_NAME: www.photomag.co.uk
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: /1/gallery/cpmfetch/install.php?do=install&force=true
SERVER SCRIPT_NAME: /1/gallery/cpmfetch/install.php
SERVER PHP_SELF: /1/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: 12
CONFIG: album_list_cols: 2
CONFIG: display_pic_info: 0
CONFIG: alb_list_thumb_size: 50
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: 0
CONFIG: allow_unlogged_access: 1
CONFIG: allow_duplicate_emails_addr: 0
CONFIG: caption_in_thumbview: 1
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://www.photomag.co.uk/1/gallery/
CONFIG: home_target: index.php
CONFIG: custom_lnk_name: Forum
CONFIG: custom_lnk_url: ../board
CONFIG: enable_smilies: 1
CONFIG: filter_bad_words: 0
CONFIG: forbiden_fname_char: $/\\:*?"'<>|` &
CONFIG: fullpath: albums/
CONFIG: gallery_admin_email: tonyl@photomag.co.uk
CONFIG: gallery_description: Your online photo album
CONFIG: gallery_name: Coppermine 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/random,2/lastup,2
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: 12
CONFIG: max_upl_size: 1024
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: 2
CONFIG: theme: core
CONFIG: thumbcols: 4
CONFIG: thumbrows: 3
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
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: 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: 0
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: 0
CONFIG: enable_zipdownload: 1
CONFIG: slideshow_interval: 5000
CONFIG: log_mode: 0
CONFIG: media_autostart: 1
CONFIG: enable_encrypted_passwords: 1
CONFIG: time_offset: 0
CONFIG: ban_private_ip: 0
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: phpbb2018
BRIDGE: license_number:
BRIDGE: db_database_name:
BRIDGE: db_hostname:
BRIDGE: db_username:
BRIDGE: db_password:
BRIDGE: full_forum_url: http://www.photomag.co.uk/board
BRIDGE: relative_path_of_forum_from_webroot:
BRIDGE: relative_path_to_config_file: ../board/
BRIDGE: logout_flag:
BRIDGE: use_post_based_groups: 1
BRIDGE: cookie_prefix: phpbb2mysql
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: 2007-08-13 18:00:28
* * 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:/home/photomag/www/www/1/gallery/
domain_name:www.photomag.co.uk
cpg_album_url:http://www.photomag.co.uk/1/gallery/albums/
cpg_url:http://www.photomag.co.uk/1/gallery/
* * Assigning bridged settings * *
Bridge_enable: 0
Bridge_short_name: phpbb2018
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
« Last Edit: August 15, 2007, 04:15:57 am by Nibbler »
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: Error on page using cpmfetch?
« Reply #1 on: August 15, 2007, 01:13:32 am »

if you have www in your path try taking that out and instead use home

or use the './gallery/cpmfetch path


Logged

Nibbler

  • Guest
Re: Error on page using cpmfetch?
« Reply #2 on: August 15, 2007, 01:14:45 am »

Post the contents of index1.php so we can tell you what the error is.
Logged

culedude

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Error on page using cpmfetch?
« Reply #3 on: August 15, 2007, 01:19:26 am »

This is the php code

<?php
  include_once "./cpmfetch.php";
  $objCpm = new cpm("./cpmfetch_config.php");
  $options = array("subtitle" => "File name : {{pFilename}}");
  $objCpm->cpm_viewLastAddedMedia(1, 4, $options);
  $objCpm->cpm_viewRandomMediaFrom("cat=1",1, 4, $options);
  $objCpm->cpm_close();
?>
Logged

Nibbler

  • Guest
Re: Error on page using cpmfetch?
« Reply #4 on: August 15, 2007, 01:22:39 am »

There is no error in that code. Make sure that is what you actually have on the server.
Logged

culedude

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Error on page using cpmfetch?
« Reply #5 on: August 15, 2007, 01:52:17 am »

Thanks Nibbler

There was a questionmark in my html which threw it all out

Thanks again
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.