forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: vuud on August 26, 2006, 03:54:26 pm

Title: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: vuud on August 26, 2006, 03:54:26 pm
Please post problems with the development version 1.9.0 in here only.  When a new version is released, this thread will be locked.  When the stable 2.0 comes out - the dev support threads will be deleted.

Thank you for your support

Dev version: 1.9.0 will be available at http://cpmfetch.fistfullofcode.com in the downloads section.

Thanks!

Vuud
Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: Davide Renda on August 26, 2006, 04:51:44 pm
I may be blind (maybe too tired... been working today), but on the download page, the latest dev version is copperminefetch-1.5.3-dev; I've clean my cache, cookies, etc and re-loaded the page, but still remains the same?

**got it now - cheers**
Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: vuud on August 26, 2006, 05:10:10 pm
I may be blind (maybe too tired... been working today), but on the download page, the latest dev version is copperminefetch-1.5.3-dev; I've clean my cache, cookies, etc and re-loaded the page, but still remains the same?

**got it now - cheers**

Hah, "will be available"...  was not when I posted it, but as you found - is now.  Make sure you read the releasenote that comes with it or is online.

IMPORTANT:  If you bridge, do not waste your time on this one.  It brings back old problems that 1.6.3 fixed

Title: Bug in Thumbnail path generation
Post by: vuud on August 26, 2006, 06:08:09 pm
There is a bug in the code that generates thumbnail if you install the cpmfetch folder anywhere but in your CPG directory (or off the root if that is your directory).

I will work on this and it will be fixed in version 1.9.1

Sorry for any issues

EDIT: Version 1.9.1 uploaded - you only need to update if you are installing cpmfetch outside the cpg folder.


Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: Davide Renda on August 27, 2006, 12:00:28 am
uncommenting line 32 on cfig_random.php and amending it
Code: [Select]
$cpmfetch->setAllowedTypes(array('.jpg','.gif','.png'));I get error from cfimageget.php line 215 and have no image shown.
Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: vuud on August 27, 2006, 02:52:52 am
uncommenting line 32 on cfig_random.php and amending it
Code: [Select]
$cpmfetch->setAllowedTypes(array('.jpg','.gif','.png'));I get error from cfimageget.php line 215 and have no image shown.



Thanks for the testing... download 1.9.3 - this is fixed, along with some issues with the RSS feeds.

(if you don't overwrite your cpmfetch_config.php file, you do not need to run the install again.  Just dont copy that file to your server.

Vuud

Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: tom_a_sparks on August 27, 2006, 05:29:52 am
I have just downloaded copperminefetch-1.9.3-dev and I am not get radom images and last updated images
(added three new images with a total of 4 images)

Quote
CpmFetch Install Script version 1.9.3
* * BEGIN SERVER SETTINGS * *
SERVER HTTP_HOST: 192.168.2.250
SERVER HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2
) Gecko/20040804 Netscape/7.2 (ax)
SERVER HTTP_ACCEPT: application/x-shockwave-flash,text/xml,application/xml,appli
cation/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jp
eg,image/gif;q=0.2,text/css,*/*;q=0.1
SERVER HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
SERVER HTTP_ACCEPT_ENCODING: gzip,deflate
SERVER HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
SERVER HTTP_KEEP_ALIVE: 300
SERVER HTTP_CONNECTION: keep-alive
SERVER HTTP_REFERER: http://192.168.2.250/gallery/cpmfetch/
SERVER HTTP_COOKIE: phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3
A32%3A%22d206fccd01b5bfca91fedcf2575e246f%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%2
22%22%3B%7D; cpg143_data=YTo0OntzOjI6IklEIjtzOjMyOiIwYmMxY2Q2MzBkNTI5NzMyZDcwNGJ
hMzliNmQ5MmE4ZSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI
7YToxOntpOjA7czoxOiIxIjt9fQ%3D%3D; 0aef038d7511f6d9de80a77742415123=6e2d81ca6cae
bb63e6ac20f084fda90d
SERVER PATH: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
SERVER SystemRoot: C:\WINDOWS
SERVER COMSPEC: C:\WINDOWS\system32\cmd.exe
SERVER PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
SERVER WINDIR: C:\WINDOWS
SERVER SERVER_SIGNATURE:
Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenS SL/0.9.8b mod_autoindex_color PHP/5.1.4 Server at 192.168.2.250 Port 80


SERVER SERVER_SOFTWARE: Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b
mod_autoindex_color PHP/5.1.4
SERVER SERVER_NAME: 192.168.2.250
SERVER SERVER_ADDR: 192.168.2.250
SERVER SERVER_PORT: 80
SERVER REMOTE_ADDR: 192.168.2.150
SERVER DOCUMENT_ROOT: C:/xampplite/htdocs
SERVER SERVER_ADMIN: admin@localhost
SERVER SCRIPT_FILENAME: C:/xampplite/htdocs/gallery/cpmfetch/install.php
SERVER REMOTE_PORT: 2082
SERVER GATEWAY_INTERFACE: CGI/1.1
SERVER SERVER_PROTOCOL: HTTP/1.1
SERVER REQUEST_METHOD: GET
SERVER QUERY_STRING:
SERVER REQUEST_URI: /gallery/cpmfetch/install.php
SERVER SCRIPT_NAME: /gallery/cpmfetch/install.php
SERVER PHP_SELF: /gallery/cpmfetch/install.php
SERVER REQUEST_TIME: 1156649278
SERVER argv: Array
SERVER argc: 0
* * END SERVER SETTINGS * *
Running default command: install
Found config file at ../include/config.inc.php
Found init file at ../include/init.inc.php
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: cpg143
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://192.168.2.250/gallery/
CONFIG: home_target: index.php
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: tom_a_sparks@yahoo.com.au
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: 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: 0
CONFIG: comments_anon_pfx: Guest_
CONFIG: admin_activation: 0
* * END CPG CONFIG 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.8
InitFile: CPG Version stable
Closing init file
* * Generating Dynamic Defaults * *
filesystem_path_to_cpg:C:/xampplite/htdocs/gallery
domain_name:192.168.2.250
cpg_album_url:http://192.168.2.250/gallery/albums/
cpg_url:http://192.168.2.250/gallery/
Opening cpmfetch config file: cpmfetch_config.php
Writing cpmfetch config file cpmfetch_config.php
Completed writing config file
Producing output screen and exiting
Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: vuud on August 27, 2006, 06:16:46 am
I have just downloaded copperminefetch-1.9.3-dev and I am not get radom images and last updated images
(added three new images with a total of 4 images)


Okay, well if you click on this:

http://192.168.2.250/gallery

Does it load your gallery?

Also, can you look at view-source for the area that should display the images and tell me if you see it attempting to show images in there?

Or if you want, do a save-as html for the page and email it to me directly... my debug output has apparently failed me as this looks okay from here.   I will PM you my address.

Thanks for bearing with me.

Vuud



Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: vuud on August 27, 2006, 06:19:23 am

Wait, do you mean the install worked, but using it is funky?

If not...


Okay, well if you click on this:

http://192.168.2.250/gallery

Does it load your gallery?

Also, can you look at view-source for the area that should display the images and tell me if you see it attempting to show images in there?

Or if you want, do a save-as html for the page and email it to me directly... my debug output has apparently failed me as this looks okay from here.   I will PM you my address.

Thanks for bearing with me.

Vuud




Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: tom_a_sparks on August 27, 2006, 07:27:24 am
sorry that address is my in house network address
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: Davide Renda on August 27, 2006, 03:00:06 pm
cfimageget.php file has most of basic lines commented; was it done to force the user in changing them, or is it something forgotten while checking the code itself?

Code: [Select]
<?php 

/**

 * CoppermineFetch :: cfimageget

 * 

 * This is a support library to help grab an image from a coppermine database and display them on normal 

 * HTML page by coming back as an image.  It also contains the object used by any extentions of cfimageget

 * 

 * Usage:  Call this file from an img tag and it will return graphic data to you

 *

 * cfimageget.php - will return random from anywhere in the gallery

 * cfimageget.php?category=1 - will return random image from category 1

 * cfimageget.php?album=1 - will return a random image from album 1

 * cfimageget.php?album=1 - will return a random image from album 1

 *

 * Other options to add on

 * size=[thumb|int|large]

 * cmd=[last|random]

*

* RELEASE VERSION 1.9.3



 * @version $Revision: 1.13 $

 * The presedence is album over category, so if you add in both - you get whatever album is looking for

 */



 

require_once "cpmfetch_dao.php";



// CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE

$ALLOW_DIRECT_ACCESS true;



if (
$ALLOW_DIRECT_ACCESS && substr($_SERVER['SCRIPT_FILENAME'],-14) == "cfimageget.php") {



// This one you need to adjust unless your galler is at http://www.youname.com/photos

// If you installed right to the root of your web site, just use a /

// TODO This should be path to config file

// $urltocpm = "/photos/";

$pathToConfigFile "";



// If no cmd= is submitted, it will do this:

$default_command "random";



// This would allow for non-public photos to be shown if set to FALSE

// $do_not_show_private = true;



// Change these only if you know what you are doing... its determines how your photos are named

// $thumbnailprefix='thumb_';

// $intermedprefix='normal_';

// $fullsizeprefix='';



$cpmfetch = new cfimageget();



// $cpmfetch->setAllowedTypes(array(".jpg",".gif",".png",".bmp")); 



// Dont touch these.  Really.  Honestly.  Really.

// $cpmfetch->setThumbnailPrefix($thumbnailprefix);

// $cpmfetch->setInterPrefix($intermedprefix);

// $cpmfetch->setFullPrefix($fullsizeprefix);

// $cpmfetch->setPrivacyFlagOn($do_not_show_private);

Once having uncommented those lines, all works perfectly  ;)
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on August 27, 2006, 04:18:32 pm
sorry that address is my in house network address

Yes, I realize that.  Otherwise I would have tried it myself (192.168.x.x is IANA private address space)

Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on August 27, 2006, 04:20:15 pm
cfimageget.php file has most of basic lines commented; was it done to force the user in changing them, or is it something forgotten while checking the code itself?

Once having uncommented those lines, all works perfectly  ;)

Alot of the lines are not needed anymore, but I have not had time to properly clean them up.  cfimageget.php worked fine with the comments here...  Some are just ignored - like the prefixes for photos, thats all done by the installer and config file now.  It's on my list to clean it all up and document them better.


Title: Re: SUPPORT FOR VERSION 1.9.0 IN HERE ONLY (Really)
Post by: vuud on August 27, 2006, 04:26:49 pm
Okay, well if you click on this:

http://192.168.2.250/gallery

Does it load your gallery?

Also, can you look at view-source for the area that should display the images and tell me if you see it attempting to show images in there?

Or if you want, do a save-as html for the page and email it to me directly... my debug output has apparently failed me as this looks okay from here.   I will PM you my address.

Thanks for bearing with me.

Vuud



From your output, it looks like the install.php did actually display a picture

http://192.168.2.250/gallery/albums/userpics/10001/thumb_100_0716_sm.jpg

Did it not?  I am guessing you only have one photo in the gallery?





Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: tom_a_sparks on August 28, 2006, 05:52:38 am
yes it did and I have four photos in the gallery
not just one like CpmFetch reports
I changed to the Dev version because the normal version was not working at all :(
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: tom_a_sparks on August 29, 2006, 01:56:49 am
now I am getting a new error messages from the dev version
Quote
Error in getImageTouse: Extension (strtolower): .jpg File:/albums/userpics/10001/thumb_100_0716_sm.jpg
both res and dev are in the cpm folder
with the dev in cpmfetch-dev (1.9.3-dev)
and the res in cpmfetch-res (1.6.4)
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on August 29, 2006, 02:48:16 am
now I am getting a new error messages from the dev versionboth res and dev are in the cpm folder
with the dev in cpmfetch-dev (1.9.3-dev)
and the res in cpmfetch-res (1.6.4)

Can you verify for me that the image it is looking for exists where it mentions?

Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: tom_a_sparks on August 29, 2006, 02:55:49 am
http://192.168.2.250/gallery//albums/userpics/10001/thumb_100_0716_sm.jpg
no image here

but there is here
http://192.168.2.250/gallery/albums/userpics/10001/thumb_100_0716_sm.jpg

also saw this in install.php dev version
Quote
<blockquote></blockquote>
Error in getImageTouse: Extension (strtolower): .jpg  File:/albums/userpics/10001/thumb_100_0716_sm.jpg<br />
<table  >

<tr>

<td><a href="http://192.168.2.250/gallery/displayimage.php?pos=-1"  ><img  src="" alt="100_0716_sm.jpg" title="100_0716_sm.jpg"  /></a><br /><br />2 views</td>
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on August 29, 2006, 03:32:14 am

I thought the double slashes were a thing of the past in the dev version... So it does that during the install.php page?  Missing thumbnails due to double slashes?



http://192.168.2.250/gallery//albums/userpics/10001/thumb_100_0716_sm.jpg
no image here

but there is here
http://192.168.2.250/gallery/albums/userpics/10001/thumb_100_0716_sm.jpg

also saw this in install.php dev version
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: tom_a_sparks on August 29, 2006, 03:44:34 am
I've turned the Bridge on and Bridge off same error

the res verion (1.6.4) cftest.php works???
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on August 29, 2006, 04:10:19 am
I've turned the Bridge on and Bridge off same error

the res verion (1.6.4) cftest.php works???


You never answered my question above about install.php
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: tom_a_sparks on August 30, 2006, 01:50:05 am
yes it is in the install.php on the dev version
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: Slideshow Bob on September 05, 2006, 02:45:09 am
Somewhere in the code, you've got "Coppermine" hard coded.  In my particluar version, the directory is all lowercase.  However, php test reference picture urls appear as:

stuff/Coppermine/imagedisplay...
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: Slideshow Bob on September 05, 2006, 02:52:08 am
Pls ignore my previous post. I read through the debug output and discovered you were getting the URL setting from coppermine itself.  My coppermine install had 'Coppermine' rather than 'coppermine' in the URL variable...
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on September 05, 2006, 03:59:05 am
Pls ignore my previous post. I read through the debug output and discovered you were getting the URL setting from coppermine itself.  My coppermine install had 'Coppermine' rather than 'coppermine' in the URL variable...

Do you think this is the best way to get that URL?  I was thinking that if it worked for CPG, it would work for me...

Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: marinelife on September 19, 2006, 10:34:05 pm
I am having the same problem, Install does not show images in dev 1.9.3
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: Joachim Müller on September 19, 2006, 11:17:12 pm
You already have a thread of your own (http://forum.coppermine-gallery.net/index.php?topic=36403.0), don't try to hijack this one!
Title: Still working on it
Post by: vuud on September 24, 2006, 06:07:07 pm

I am still hard at the next release.  I've recently accepted a longer term consulting contract which is very close to a full time job, plus all my normal work, my four year Buddhism class and all its reading...  So I am working 9am to 11pm most nights.  I do break for lunch and dinner though... so don't worry for me.

Another dev release addressing at least SMF bridging is out next.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: Iced Coffee on November 15, 2006, 10:34:04 am
I am using 1.9.4. I ran the install.php and it shown pictures well. But only when I put the code into my portal.php or fetch.php no pix can be shown. The problem is:

- My home is http://novemberbabies.com, where I put the portal.php and a forum phpbb.
- My CPG gallery is in http://novemberbabies.com/anhcuabe/
- cpg_fetch is located at http://novemberbabies.com/anhcuabe/cpmfetch
- I created a file name fetch.php and put into CPG folder (http://novemberbabies.com/anhcuabe/fetch.php)

I place this code into portal.php and fetch.php to test:
Code: [Select]
<?php
  
include "./cpmfetch.php";
  
$objCpm = new cpm();
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>

But when I ran portal.php, it said:
Quote
cpm_viewLastAddedMedia(1,4); $objCpm->cpm_close(); ?>

When I ran fetch.php it said:
Quote
Error: config file not specified and default not found - did you run the install program?

My questions are:
1. Why the fetch.php did not work? Is there any way I make it work?
2. As CPG is located in a subfolder /anhcuabe/ so is it the cause of the problem for portal.php? How can I make it work?

Thanks.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: Iced Coffee on November 15, 2006, 10:42:45 am
I tried to move the fetch.php to inside http://novemberbabies.com/anhcuabe/cpmfetch/ and it shows pictures well. But I still want to display the pictures in portal.php
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on November 15, 2006, 04:35:22 pm

Hello!

First off the part where it shows cpm cpm_viewLastAddedMedia(1,4); $objCpm->cpm_close(); ?> is strange.  Seems like the portal is not recognizing it as php.  Make sure you have a <?php somewhere

Second, with the $objCpm = new cpm( )

You need to provide a path to the config file where ever that is... by default it will find it and cpg if you are in the same directory.  Otherwise you need to give it a path to it.

This is not well documented - so I take the blame for that.


Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: everettcomstock on November 26, 2006, 07:21:23 pm
Hi,
    I am experiencing a similar problem to Iced Coffee. I have successfully run the install.php file and pictures display. Yet when I call the cpmfetch file from another directory I receive
"Error: config file not specified and default not found - did you run the install program?".

I am uncertain about your response when you said to"

Second, with the $objCpm = new cpm( )

You need to provide a path to the config file where ever that is... by default it will find it and cpg if you are in the same directory.  Otherwise you need to give it a path to it."

Where exactly should the path to the config file be modified? In what file? Are there any other files or dependencies that should also have paths updated?

Thanks for your time and your hard work. It is appreciated.

Everett
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on November 26, 2006, 10:58:51 pm
Hi,
    I am experiencing a similar problem to Iced Coffee. I have successfully run the install.php file and pictures display. Yet when I call the cpmfetch file from another directory I receive
"Error: config file not specified and default not found - did you run the install program?".

I am uncertain about your response when you said to"

Second, with the $objCpm = new cpm( )

You need to provide a path to the config file where ever that is... by default it will find it and cpg if you are in the same directory.  Otherwise you need to give it a path to it."

Where exactly should the path to the config file be modified? In what file? Are there any other files or dependencies that should also have paths updated?

Thanks for your time and your hard work. It is appreciated.

Everett


What!?!?! Is this a complaint about my incomplete and somewhat incoherant technical support!?  Curse you!

:D

Anyway, sorry - the path gets set in the new cpm() statement.

So this:
$objCpm = new cpm( ) ;

becomes:

$objCpm = new cpm("../path/to/cpmfetch/cpmfetch.inc.php");

or whatever you name your config file

Sorry again for the confusion I hath wroght


Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: everettcomstock on November 27, 2006, 09:52:10 am
Thank you VUUD. This has solved my issue.

E
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: rx-one on December 14, 2006, 11:50:20 pm
I've a problem ever mentionned with the install of 1.9.4 :

http://rx-photo.info/fetch/install.php

Code: [Select]
Error in getImageTouse: Extension (strtolower): .jpg File:/albums/shows/maisman/2/thumb_damoisson.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/albums/shows/maisman/1/thumb__MG_6157mod.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/albums/shows/maisman/1/thumb__MG_6148mod.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/albums/shows/maisman/1/thumb__MG_6152mod.jpg

& no images displayed : the code generated is :

Code: [Select]
<td><a href="http://rx-photo.info/displayimage.php?pos=-344"  ><img  src="" alt="damoisson.jpg" title="damoisson.jpg"  /></a><br /><br />11 views</td>
<td><a href="http://rx-photo.info/displayimage.php?pos=-343"  ><img  src="" alt="_MG_6157mod.jpg" title="_MG_6157mod.jpg"  /></a><br /><br />10 views</td>
<td><a href="http://rx-photo.info/displayimage.php?pos=-341"  ><img  src="" alt="_MG_6148mod.jpg" title="_MG_6148mod.jpg"  /></a><br /><br />10 views</td>
<td><a href="http://rx-photo.info/displayimage.php?pos=-342"  ><img  src="" alt="_MG_6152mod.jpg" title="_MG_6152mod.jpg"  /></a><br /><br />10 views</td>

with src for image ... An idea ?
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: rx-one on December 15, 2006, 12:09:03 am
solved by modif found here ( year 2004) suppressing file existe (...) in function, in dao.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on December 15, 2006, 03:05:20 am
solved by modif found here ( year 2004) suppressing file existe (...) in function, in dao.

Messing with the DAO is generally a bad idea, especially from a post so old... what was the solution you found, it may not apply anymore...

Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY
Post by: jam1 on December 25, 2006, 07:55:55 am
Hi there. I've been trying for the past week to display a random image from the cp gallery on my home page ' index.php' but without any luck. I've tried a few different versions of cpmfetch. With version 1.9.4 I can at least see the test page with a few photos but I do not know how to get the code onto my index.php page (my homepage) in order to display an image from the gallery.

coppermine photo gallery is in a file called 'cpg140' from the root
cpmfetch folder is the 'cpg140' folder   (cpg140/cpmfetch)

index.php is at the root.

I have tried various permutations of the following code in order to get the images displayed on my index page:

<?php
  include "./cpmfetch.php";  (I have changed this with "/cpmfetch/cpmfetch.php" and various other combos)
  $objCpm = new cpm();   (I have changed this to "/cpmfetch/cpmfetch.inc.php" and various other )
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

I get error messages such as:
Warning: main(./cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /data/in/s/slsresort/www/index.php on line 126

Warning: main(./cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /data/in/s/slsresort/www/index.php on line 126

Warning: main(./cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /data/in/s/slsresort/www/index.php on line 126

Warning: main() [function.include]: Failed opening './cpmfetch.php' for inclusion (include_path='.:/data/etc/php') in /data/in/s/slsresort/www/index.php on line 126

Fatal error: Cannot instantiate non-existent class: cpm in /data/in/s/slsresort/www/index.php on line 127


Any help would be great.  Thank You (and Merry Christmas)

Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY
Post by: vuud on December 25, 2006, 04:40:24 pm
Hi there. I've been trying for the past week to display a random image from the cp gallery on my home page ' index.php' but without any luck. I've tried a few different versions of cpmfetch. With version 1.9.4 I can at least see the test page with a few photos but I do not know how to get the code onto my index.php page (my homepage) in order to display an image from the gallery.

coppermine photo gallery is in a file called 'cpg140' from the root
cpmfetch folder is the 'cpg140' folder   (cpg140/cpmfetch)

index.php is at the root.

I have tried various permutations of the following code in order to get the images displayed on my index page:

<?php
  include "./cpmfetch.php";  (I have changed this with "/cpmfetch/cpmfetch.php" and various other combos)
  $objCpm = new cpm();   (I have changed this to "/cpmfetch/cpmfetch.inc.php" and various other )
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

I get error messages such as:
Warning: main(./cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /data/in/s/slsresort/www/index.php on line 126

Warning: main(./cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /data/in/s/slsresort/www/index.php on line 126

Warning: main(./cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /data/in/s/slsresort/www/index.php on line 126

Warning: main() [function.include]: Failed opening './cpmfetch.php' for inclusion (include_path='.:/data/etc/php') in /data/in/s/slsresort/www/index.php on line 126

Fatal error: Cannot instantiate non-existent class: cpm in /data/in/s/slsresort/www/index.php on line 127
Any help would be great.  Thank You (and Merry Christmas)


Your entire problem revolves around what paths you are using.  Assuming your index page is in your web root...

Look at what is going on here... understand the paths that are being put in there and why.  There was another thread here where I explained it in great detail, but I forget where.

This is for the 1.9.x series, the old stable would be different, so don't try it.

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


Title: Re: SUPPORT FOR VERSION 1.9.x
Post by: jam1 on December 26, 2006, 05:13:51 am
Hi,
   Thank you for replying so promptly. I tried the code that you suggested (I actually had tried this code at an earlier time). When I do, I get the following error:

Error: config file ./cpg140/cpmfetch/cpmfetch.inc.php specified but was not found

cpg140 directory is definitely there. It is the directory with all of the coppermine files and gallery and it is at the root level.
index.php is at the root level
cpmfetch is a directory within the cpg140 directory

Title: Re: SUPPORT FOR VERSION 1.9.4
Post by: jam1 on December 26, 2006, 05:46:04 am
Hold the press - I see the error of my ways!

Of course it can't find the file cpmfetch.inc.php - it's not in the 1.9.4 version
So I changed it from cpmfetch.inc.php to cpmfetch_config.php and it works!!!!  :D

Thanks again!
Title: Re: SUPPORT FOR VERSION 1.9.x
Post by: vuud on December 27, 2006, 12:27:17 am
Hi,
   Thank you for replying so promptly. I tried the code that you suggested (I actually had tried this code at an earlier time). When I do, I get the following error:

Error: config file ./cpg140/cpmfetch/cpmfetch.inc.php specified but was not found

cpg140 directory is definitely there. It is the directory with all of the coppermine files and gallery and it is at the root level.
index.php is at the root level
cpmfetch is a directory within the cpg140 directory



Is the cpmfetch.inc.php file there?  It gets generated when you run the install.php program


Title: Re: SUPPORT FOR VERSION 1.9.x
Post by: Figanomics on December 27, 2006, 04:50:50 pm
Is the cpmfetch.inc.php file there?  It gets generated when you run the install.php program




I'm having the exact same problem. cpmfetch.inc.php hasn't been generated.

However I get the following error:

Code: [Select]
Fatal error: Call to undefined method cpm::viewLastAddedMedia() in /figureimages.co.uk/latestimage.php on line 6
http://www.figureimages.co.uk/latestimage.php
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: Figanomics on December 27, 2006, 04:52:00 pm
Hmm I can't edit y post. Ah well. I forgot to add the following information:

Code: [Select]
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
$source "cat=4,5,6,7,8,9,10,11,13,34";
$options = array( 'imagelink' => 'album' 'imagewidth' => '200' );
$objCpm->viewLastAddedMedia(1,1,"",$options);
$objCpm->cpm_close();
?>


I'm not the best at coding so I gather it may be an error on my part.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on December 27, 2006, 05:08:44 pm
Hmm I can't edit y post. Ah well. I forgot to add the following information:

Code: [Select]
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
$source "cat=4,5,6,7,8,9,10,11,13,34";
$options = array( 'imagelink' => 'album' 'imagewidth' => '200' );
$objCpm->viewLastAddedMedia(1,1,"",$options);
$objCpm->cpm_close();
?>



I'm not the best at coding so I gather it may be an error on my part.


It's just like the error says... it can't be found.  the actual call you want is below:

Code: [Select]
$objCpm->cpm_viewLastAddedMedia(1,1,"",$options);
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: Figanomics on December 27, 2006, 05:47:51 pm
I feel like an idiot. :P You're a legend. :) Thanks.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: cgc0202 on December 31, 2006, 02:00:48 pm
Hi Vuud,

I do not know what version the others are talking about, I am trying to make the cpmfetch v1.9.5.

Here are what I have tried:

Method 1:
The following are in the main directory:
*/gal001  -> this is the CPG folder
*/cpmfetch2  -> this is the cpmfetch folder
*/pics  -> this is the directory where the photos are kept (outside of the CPG) folder

Intallation:
http:/mysite.org/cpmfetch2/install.php

Result:
ERROR: Did not find config file at ../include/config.inc.php
Fatal error: Call to undefined function: getdefaults() in /home/public/public_html/cpmfetch2/cpmfetch_dao.php on line 69

__________
The error was localized here:
__________
   // TODO: Add config file versus dao version check here
   
   // Load config settings
   $this->cfg =
         array_merge(getDefaults(),
         getCpgConfiguration(),
         getUserDefined(),
         getUserOverrides()
         );

__________

Notes:
Correction1&2 applied:
../cpmfetch2/cpmfetch.inc.php
or
../../cpmfetch2/cpmfetch.inc.php
did not rectify the error, nor trigger population of the "cpmfetch_config.php"



Method 2:
The following are in the main directory:
*/gal001  -> this is the CPG folder
*/pics  -> this is the directory where the photos are kept (outside of the CPG) folder

*/gal001/cpmfetch2  -> this is the cpmfetch folder

Result:
Test 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.
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000d_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000a_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_32.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_31.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000d_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000a_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_32.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_31.jpg
%f

%h views    %f1 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-78)

%h views    %f2 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-77)

%h views    %f3 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-76)

%h views        %f4 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-75)

These images were generated by using the following PHP code:

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

For Method 2, while the images did not show up, the links: %f1 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-78) ~ %f2 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-77) ~ %f3 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-76) & %f4 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-75) were clickable and provide the correct images.

Also, the  "cpmfetch_config.php" file was populated with the values relevant to gal001:

// Full URL to your CPG gallerys album directory
//  $cfg['cpg_album_url'] = 'http://mysite.org/gal001/../pics/';

The Method 1 over Method 2 configuration would be preferred.

I think the "override function" would still be needed because of the unique location of the photos.  There are related questions, but I will raise those later.  Thanks.

Cornelio


Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on December 31, 2006, 04:12:00 pm

If you are not putting cpmfetch under your CPG directory, the installation will not work.  But it will then give you a box that you can enter a relative path into.

If you enter:

../gal001/

into that box, the installation should work. 





Hi Vuud,

I do not know what version the others are talking about, I am trying to make the cpmfetch v1.9.5.

Here are what I have tried:

Method 1:
The following are in the main directory:
*/gal001  -> this is the CPG folder
*/cpmfetch2  -> this is the cpmfetch folder
*/pics  -> this is the directory where the photos are kept (outside of the CPG) folder

Intallation:
http:/mysite.org/cpmfetch2/install.php

Result:
ERROR: Did not find config file at ../include/config.inc.php
Fatal error: Call to undefined function: getdefaults() in /home/public/public_html/cpmfetch2/cpmfetch_dao.php on line 69

__________
The error was localized here:


getdefaults comes from the config file the installation generates.  No config file = no workee




Quote

__________
   // TODO: Add config file versus dao version check here
   
   // Load config settings
   $this->cfg =
         array_merge(getDefaults(),
         getCpgConfiguration(),
         getUserDefined(),
         getUserOverrides()
         );

__________

Notes:
Correction1&2 applied:
../cpmfetch2/cpmfetch.inc.php
or
../../cpmfetch2/cpmfetch.inc.php
did not rectify the error, nor trigger population of the "cpmfetch_config.php"



Method 2:
The following are in the main directory:
*/gal001  -> this is the CPG folder
*/pics  -> this is the directory where the photos are kept (outside of the CPG) folder

*/gal001/cpmfetch2  -> this is the cpmfetch folder

Result:
Test 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.
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000d_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000a_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_32.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_31.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000d_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_281162401_1000a_b.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_32.jpg
Error in getImageTouse: Extension (strtolower): .jpg File:/../pics/c/cgc/kew/t_10kkew_31.jpg
%f

%h views    %f1 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-78)

%h views    %f2 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-77)

%h views    %f3 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-76)

%h views        %f4 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-75)

These images were generated by using the following PHP code:

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

For Method 2, while the images did not show up, the links: %f1 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-78) ~ %f2 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-77) ~ %f3 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-76) & %f4 (http://public.treasuresoftheinternet.org/gal001/displayimage.php?pos=-75) were clickable and provide the correct images.

Also, the  "cpmfetch_config.php" file was populated with the values relevant to gal001:

// Full URL to your CPG gallerys album directory
//  $cfg['cpg_album_url'] = 'http://mysite.org/gal001/../pics/';

The Method 1 over Method 2 configuration would be preferred.

I think the "override function" would still be needed because of the unique location of the photos.  There are related questions, but I will raise those later.  Thanks.

Cornelio

I don't know about that... the new way does a lot of things better... including getting the location of the albums and stuff directly from coppermine.


Title: Re: SUPPORT FOR VERSION 1.9.x
Post by: jam1 on January 04, 2007, 08:41:59 pm
Is the cpmfetch.inc.php file there?  It gets generated when you run the install.php program




I did in fact run the install.php program and it is not generating the cpmfetch.inc.php file. I keep getting the same error. On a separate note, once you're in the coppermine gallery viewing pictures how do you return to the website. When I click on the back button, I'm only backing within coppermine.
Title: Re: SUPPORT FOR VERSION 1.9.x
Post by: vuud on January 07, 2007, 07:54:37 am
I did in fact run the install.php program and it is not generating the cpmfetch.inc.php file. I keep getting the same error. On a separate note, once you're in the coppermine gallery viewing pictures how do you return to the website. When I click on the back button, I'm only backing within coppermine.

Mostly cause I am an idiot, and / or stay up to late.

I should generate an cpmfetch_config.php file NOT a cpmfetch.inc.php file.

Sigh.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: Zarzal on January 08, 2007, 12:49:36 am
Little bugs on copperminefetch-1.9.6-dev.zip

I take a closer look on my php error file (php5.2.0) and see while using this version one old problem and one new problem.
The new one: in cfimageget.php there are 2 undefined variables.

I put in line 137 $config_file="";
and in line 231 $filenametoshow="";

to fix this.

The other one. I use this little script to display random pictures:

Code: [Select]
<?php 
require_once "cfimageget.php";
$cpmfetch = new cfimageget();
$cpmfetch->setSourceString("cat=13");
$cpmfetch->getRandom();
?>

In the php errorlog I get the following while using this script:
PHP Notice: Undefined offset: 1 in /var/www/.../gallerie/cpmfetch/cfimageget.php on line 235

this line contains:
Code: [Select]
switch (strtolower(substr($row[1],strrpos($row[1],'.')))) {
I notice this problem in the older v1.6 too.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on January 08, 2007, 01:37:35 am
Little bugs on copperminefetch-1.9.6-dev.zip

I take a closer look on my php error file (php5.2.0) and see while using this version one old problem and one new problem.
The new one: in cfimageget.php there are 2 undefined variables.

I put in line 137 $config_file="";
and in line 231 $filenametoshow="";

to fix this.

The other one. I use this little script to display random pictures:

Code: [Select]
<?php 
require_once "cfimageget.php";
$cpmfetch = new cfimageget();
$cpmfetch->setSourceString("cat=13");
$cpmfetch->getRandom();
?>

In the php errorlog I get the following while using this script:
PHP Notice: Undefined offset: 1 in /var/www/.../gallerie/cpmfetch/cfimageget.php on line 235

this line contains:
Code: [Select]
switch (strtolower(substr($row[1],strrpos($row[1],'.')))) {
I notice this problem in the older v1.6 too.

Okay, I really need to go through the whole cfimageget file...  I did the RSS one for the last dev release, but will overhaul that one for the next dev release.

Thanks for reporting the bugs!  I definately appreciate it.  :D







Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: jerx on January 24, 2007, 05:46:59 pm
I am using 1.9.7 and it works fine. The only problem I have is that cpm_showAlbumsUpdatedOverLastDays($numberOfDays,$options="") has some hard coded language.

I like to adjust the words to the selected/default language of my phpbb forum. If that is not possible, it would be nice to use the cpg language setting. I tried the ladder, but the language definition had not been recognized.

Can you please help me on this?
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on January 24, 2007, 06:08:01 pm
I am using 1.9.7 and it works fine. The only problem I have is that cpm_showAlbumsUpdatedOverLastDays($numberOfDays,$options="") has some hard coded language.

I like to adjust the words to the selected/default language of my phpbb forum. If that is not possible, it would be nice to use the cpg language setting. I tried the ladder, but the language definition had not been recognized.

Can you please help me on this?

I will do what I can..  Can you post it to it's own thread?  Sounds like this is gonna be one to remember :)
Vuud
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: jerx on February 14, 2007, 03:34:05 am
I have a problem with performance. My gallery is pretty big (20,000+ photos). When I use cpmfetch my site loads at least 1 second longer than normal. I use the random album and the latest updated albums functions. All other functions are not needed. Is there anything I can do to decrease page generation time?
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: DZGB on February 15, 2007, 12:32:07 am
Hi... I would need some help, I'm trying to install cpmfetch for 3 days already - and I don't know what is the problem - is it so complicated, am I stupid or it's something weird going on...

I tried many versions, and I couldn't get it right. I'm using wordpress 2.0.2. and currently installing copperminefetch-1.9.8-dev.
With this last one I did everything as I should, I changed attributes to 777, but I can't seem to run install.
When I enter RIGHT url, the browser opens homepage of the site.

If I try entering code to the sidebar

<?php
include "./galerija/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./galerija/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>

I get a message it will be available after installing, and also i used to get this message

Warning: main(./galerija/cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home2/sevenac/public_html/wp-content/themes/seve/sidebar.php on line 66

Warning: main() [function.include]: Failed opening './galerija/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php') in /home2/sevenac/public_html/wp-content/themes/seve/sidebar.php on line 66

Fatal error: Cannot instantiate non-existent class: cpm in /home2/sevenac/public_html/wp-content/themes/seve/sidebar.php on line 67


I really don't know what else to try.. I'm far from being an expert but anyway...
Also the sidebar spreads widely and destroys total layout of the site.
Should I try something or forget about this forever?
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on February 15, 2007, 01:32:39 am
Hi... I would need some help, I'm trying to install cpmfetch for 3 days already - and I don't know what is the problem - is it so complicated, am I stupid or it's something weird going on...

I tried many versions, and I couldn't get it right. I'm using wordpress 2.0.2. and currently installing copperminefetch-1.9.8-dev.
With this last one I did everything as I should, I changed attributes to 777, but I can't seem to run install.
When I enter RIGHT url, the browser opens homepage of the site.

If I try entering code to the sidebar

<?php
include "./galerija/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./galerija/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>

I get a message it will be available after installing, and also i used to get this message

Warning: main(./galerija/cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home2/sevenac/public_html/wp-content/themes/seve/sidebar.php on line 66

Warning: main() [function.include]: Failed opening './galerija/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php') in /home2/sevenac/public_html/wp-content/themes/seve/sidebar.php on line 66

Fatal error: Cannot instantiate non-existent class: cpm in /home2/sevenac/public_html/wp-content/themes/seve/sidebar.php on line 67


I really don't know what else to try.. I'm far from being an expert but anyway...
Also the sidebar spreads widely and destroys total layout of the site.
Should I try something or forget about this forever?


What version exactly of cpmfetch, and did you get the install.php to run?  If the install does not run, then nothing else will work.



Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on February 15, 2007, 01:35:47 am
I have a problem with performance. My gallery is pretty big (20,000+ photos). When I use cpmfetch my site loads at least 1 second longer than normal. I use the random album and the latest updated albums functions. All other functions are not needed. Is there anything I can do to decrease page generation time?

Which functions exactly?  The extra functions if not used will not do anything to help performance by removing (anything noticable anyway)

Can you include your page code here also?  That could help.

Thx


Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: jerx on February 15, 2007, 06:22:36 am
The additional time for cpmfetch is less than I thought. On some page loads it was only 0.7 seconds more, about the same time as my gallery needs to parse. So this might be normal - bigger gallery -> longer page generation time. Anyways ...

I only use these two functions:
$objCpm->cpm_viewRandomMedia(1,2, array('alttag' => '%a, %f')),
$objCpm->cpm_showAlbumsUpdatedOverLastDays(10, array('alttag' => '%a %w', 'subtitle' => '%a, %f', 'imagelink' => 'album')),

I am using phpbb and the code is spread over several files. I have zipped all files and attached the zip to this post. The main file is portal.php. I have also added my modified cpmfetch files. I doubt that these are causing longer page loads, because the original files have the same impact.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on February 15, 2007, 02:04:57 pm
The additional time for cpmfetch is less than I thought. On some page loads it was only 0.7 seconds more, about the same time as my gallery needs to parse. So this might be normal - bigger gallery -> longer page generation time. Anyways ...

I only use these two functions:
$objCpm->cpm_viewRandomMedia(1,2, array('alttag' => '%a, %f')),
$objCpm->cpm_showAlbumsUpdatedOverLastDays(10, array('alttag' => '%a %w', 'subtitle' => '%a, %f', 'imagelink' => 'album')),

I am using phpbb and the code is spread over several files. I have zipped all files and attached the zip to this post. The main file is portal.php. I have also added my modified cpmfetch files. I doubt that these are causing longer page loads, because the original files have the same impact.

I will have a look at your code...  One thing you can do - if you are on the dev versions is to set

$cfg['cfUseExistingDBConnection'] = 'true';

In the configuration file.  The important thing here is that you do NOT use the cpm->close() statement.  Or maybe you can, I forget if the code / php handles that correctly.  Try it with it, if you get lots of errors from PHPBB, then take it out.

This will tell cpmfetch to use an existing database connection, which will help alot if your PHPBB and CPG data are in the same database.

I will get back to you on the code later
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on February 15, 2007, 05:04:30 pm
The additional time for cpmfetch is less than I thought. On some page loads it was only 0.7 seconds more, about the same time as my gallery needs to parse. So this might be normal - bigger gallery -> longer page generation time. Anyways ...

I only use these two functions:
$objCpm->cpm_viewRandomMedia(1,2, array('alttag' => '%a, %f')),
$objCpm->cpm_showAlbumsUpdatedOverLastDays(10, array('alttag' => '%a %w', 'subtitle' => '%a, %f', 'imagelink' => 'album')),

I am using phpbb and the code is spread over several files. I have zipped all files and attached the zip to this post. The main file is portal.php. I have also added my modified cpmfetch files. I doubt that these are causing longer page loads, because the original files have the same impact.

Your code does not look like it can really be optimized anymore.  Sometimes people make multiple connections, but you seem good here.

The biggest speedup would be the aforementioned useexistingconnection change.  That will eliminate a second SQL connection (which is generally the longest part of a SQL transaction for stuff of this magnitude).

Vuud
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run
Post by: jerx on February 15, 2007, 05:08:47 pm
I upgraded to version 1.9.8 (from 1.9.7) and enabled the setting in the config file. My site did not give me any errors, but it did not seem to speed up page generation either. I took out the close statement in my portal file, too, but I could not see any difference.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on February 15, 2007, 05:14:28 pm
I upgraded to version 1.9.8 (from 1.9.7) and enabled the setting in the config file. My site did not give me any errors, but it did not seem to speed up page generation either. I took out the close statement in my portal file, too, but I could not see any difference.

Depending on your particular environment, it can make a big difference.  But if you are on a good host with really good, or local, database servers (like on the same machine), the connection overhead can be really low.

I've seen everything from instantly to 10 seconds plus on some things...

Its' probably the portal overhead that is there...  CpmFetch is really really fast.   To isolate the problem, you can put a test.php page in with that code and see how long it takes to just do that (without all the portal crap).  You could even wrap some timing code around it...  Hey, that would be a neat thing to have in cpmfetch (a timer).

Let me know if you can try that and let me know...

Be neat to also see times for each of the two calls you are doing.  I don't have a database with that many entries, so me testing it would be pointless.

Just know I am willing to help speed up the code if we can find a problem, or way to improve it.

Vuud
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: DZGB on February 15, 2007, 05:14:54 pm

What version exactly of cpmfetch, and did you get the install.php to run?  If the install does not run, then nothing else will work.





Verion "copperminefetch-1.9.8-dev".. No, as I mentioned when I try to run install by entering the url... containing install.php at the end, I get main index site opened... and no install..
What can be wrong? Thank You.
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on February 15, 2007, 05:17:25 pm
Verion "copperminefetch-1.9.8-dev".. No, as I mentioned when I try to run install by entering the url... containing install.php at the end, I get main index site opened... and no install..
What can be wrong? Thank You.

Please PM me the exact URL to:

 1) Your gallery
 2) Your path to the install.php

It's gotta be something silly
Title: Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test
Post by: vuud on March 08, 2007, 02:11:56 am
Please post problems with the development version 1.9.0 in here only.  When a new version is released, this thread will be locked.  When the stable 2.0 comes out - the dev support threads will be deleted.

Thank you for your support

Dev version: 1.9.0 will be available at http://cpmfetch.fistfullofcode.com in the downloads section.

Thanks!

Vuud


Most problems get their own thread, so I am unstickying this topic