CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 12 CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 12
 

News:

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

Main Menu

CpmFetch 1.4 On... Displaying data and images from CPG on your website

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

smoke10010

i tried getting cpm fetch to work with e107 but the images don't display... all the tests pass but the calls don't work.. unfortunately i don't know enough php to modify it enough to work but just a heads up i guess

Joachim Müller

The e107 port goes unsupported, I guess CPMFetch was not designed to work with e107. We (the coppermine dev team) have no idea how e107 works, and I guess it's the same for vuud (please correct me if I'm wrong). The e107 port is just that: an unsupported port, where mods or hacks that have been made for standalone coppermine versions may work, but some certainly won't.

vuud

Quote from: GauGau on August 27, 2005, 03:28:41 PM
The e107 port goes unsupported, I guess CPMFetch was not designed to work with e107. We (the coppermine dev team) have no idea how e107 works, and I guess it's the same for vuud (please correct me if I'm wrong). The e107 port is just that: an unsupported port, where mods or hacks that have been made for standalone coppermine versions may work, but some certainly won't.

Hello all,

Yes, I have no idea how e107 works, but so far we've gotten it working with all CMS's we've tried.  They have all just been a little different.  If you can program e107 to run code in its templates, you can get cpmfetch working.  It mostly comes down to:

1) Setting the right path from where e107 executes to cpmfetch
2) Working out any strange issues with paths

Hopefully later today I will have some time to answer this one and the other question...  I also want to get some more work done on cpmfetch as IRL it's been too busy lately.

So check back later in the other forum (for stuff like this) and maybe I will have an answer

http://forum.coppermine-gallery.net/index.php?topic=19528.0

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

SolidArt

Please HELP!
In test everything seems allright, but

Trying to display some images:

Notice: Undefined variable: SERVER_NAME in /usr/home/shkola/gallery/include/config.inc.php on line 7


In source code there're no images, just <table><tr></tr></table>.

vuud

Quote from: SolidArt on August 27, 2005, 06:46:42 PM
Please HELP!
In test everything seems allright, but

Trying to display some images:

Notice: Undefined variable: SERVER_NAME in /usr/home/shkola/gallery/include/config.inc.php on line 7


In source code there're no images, just <table><tr></tr></table>.

Strange, I don't use SERVER_NAME in any of my code that I know of... can you see whats in your config.inc.php file?  Mind you, if you post it - make sure to XXXXX over your database username and password



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco


Joachim Müller

Quote from: Andreas W. on August 27, 2005, 12:44:32 AM
Hi,
i could need some help.

After uploading all files i tried /cftest.php

Everything seems fine (PASS), except the thumbnail images are not displayed (although the links to the big photos work).

I noticed that the thumbnail links are corrupt:

example: http://albums/userpics/10051/thumb_wels_1.jpg

It should be http://www.mywebsite.com/albums/userpics/10051/thumb_wels_1.jpg

Perhaps it helps that i´m using a subdomain for the gallery like http://gallery.mywebsite.com
but mysqldb is here: http://www.mywebsite.com

Any help appreciated.
thank you
andreas

5 You set your partial URL to / PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = Linux dd5738 2.4.20-4GB-athlon #1 Fri Jan 14 15:04:28 UTC 2005 i686 INFO
40 WebServer = Apache/1.3.27 (Linux/SuSE) mod_fastcgi/2.4.2 FrontPage/4.0.4.3 mod_perl/1.27 PHP/4.3.10 mod_ssl/2.8.12 OpenSSL/0.9.6i INFO
45 PHP Version = 4.3.10 INFO
55 DOCUMENT_ROOT: /www/htdocs/_removed_/ INFO  *edited*
60 C_DOCUMENT_ROOT: Not found INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /www/htdocs/_removed_/cftest.php INFO *edited*
75 DOCUMENT_ROOT is a good match PASS
80 Found CPG config file PASS

Quote from: Andreas W. on August 27, 2005, 10:37:40 PM
Quote from: Andreas W. on August 27, 2005, 12:44:32 AM
i could need some help.

No ideas? =:-/
Don't post a dummy placeholder URL, but actual links - makes trouble-shooting and support much easier.

Joachim

SolidArt

my config.inc.php:

<?php
// Coppermine configuration file
// Silly safe mode
define('SILLY_SAFE_MODE'1);

$_SERVER["SERVER_NAME"] = "shkola.lv";
define("$SERVER_NAME","shkola.lv");
// MySQL configuration
$CONFIG['dbserver'] =                         '****';        // Your database server
$CONFIG['dbuser'] =                         '****';        // Your mysql username
$CONFIG['dbpass'] =                         '*****';                // Your mysql password
$CONFIG['dbname'] =                         '****';        // Your mysql database name

// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>


strange, that he says that $SERVER_NAME is not defined.

I really need your help. I have only two days to correct that problem.

Joachim Müller

ignore the notice, post an actual error message. A link might help as well (as suggested in the cpmFetch docs).

SolidArt

Here is the link:
http://shkola.lv/gallery/fetch/cftest.php

And the config.inc.php above.

My hosting administrator asked me to comment the line
define("$SERVER_NAME","shkola.lv");

i've made this, so the line Notice: Undefined variable: SERVER_NAME in /usr/home/shkola/gallery/include/config.inc.php on line 7 dissappeared, but i can't see the thumbnails.

I didn't change prefix.

SolidArt

OK, guys...
I couldn't wait for so long. Now everything works fine, 'cause I use version 1.4.1 now, but probably there are some bugs in the latest version. You should test it much more, before publishing

vuud

Quote from: SolidArt on August 28, 2005, 04:45:52 PM
OK, guys...
I couldn't wait for so long. Now everything works fine, 'cause I use version 1.4.1 now, but probably there are some bugs in the latest version. You should test it much more, before publishing

Sorry, what am I missing here?  Which version are you having a problem with (as far as CPG goes?)   Are you having problems with CPG 1.4.1 and cpmfetch?

mind you, that the cftest script turns up the error and warning reporting, so if there is a warning from cpg 1.4.1 BETA (yes it is a BETA, which means not perfect, which means it is out so people can test it, which means it is possible there is some problems) it may be uncovered by the cftest script - while not being terribly important.  In this case it threw me off since you did not say you were running the beta.  As for cpmfetch, there have been several postings and release notes saying how to get it running with the beta.

EVERYONE:  PLEASE STATE WHAT VERSION OF CPG YOU ARE RUNNING WHEN YOU POST FOR HELP HERE!!!  I WANT TO HERE ABOUT BUGS WITH EITHER THE BETA OR THE OLD, BUT I NEED TO KNOW WHICH ONE YOU ARE RUNNING.  WHY AM I SHOUTING???  CAUSE THIS IS IMPORTANT DAMNIT :)





Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Quote from: Andreas W. on August 27, 2005, 10:37:40 PM
Quote from: Andreas W. on August 27, 2005, 12:44:32 AM
i could need some help.

No ideas? =:-/

I am still dumbfounded that you actually managed to get www.mysite.com :)

Seriously though, a actual URLs would be helpful.  Crossing subdomains can be tricky.

Vuud

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Quote from: smoke10010 on August 27, 2005, 02:35:06 AM
i tried getting cpm fetch to work with e107 but the images don't display... all the tests pass but the calls don't work.. unfortunately i don't know enough php to modify it enough to work but just a heads up i guess


Smoke18,

I posted to the other thread on this one... I am not sure where you are getting stuck, but it may get you going

http://forum.coppermine-gallery.net/index.php?topic=19528.msg97124#msg97124


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Andreas W.

deleted

mylogon

I have installed and ran cftest and it runs fine.  But placing your simple open code:

?php
        require_once "../cpmfetch/cpmfetch.php";
        $objCpm = new cpmfetch("/gallery");
?>


in the cpmfetch directory with the gallery called gallery (file only has this in it) - all i get is:

Fatal error: Cannot instantiate non-existent class: cpmfetch in /home/real_username_dir/public_html/cpmfetch/index.php on line 3

So what do I have wrong.  Per your instructions, I have the correct path, but ...

Should it be  $objCpm = new cpm("/gallery"); as it is in cftest?


vuud


Your correct. 

Your probably also the first person to read the instructions!

Yes, use cpm instead of cpmfetch

I will fix the doc's today (I found where you found that)

Sorry for this



Quote from: mylogon on August 30, 2005, 11:17:37 AM
I have installed and ran cftest and it runs fine.  But placing your simple open code:

?php
        require_once "../cpmfetch/cpmfetch.php";
        $objCpm = new cpmfetch("/gallery");
?>


in the cpmfetch directory with the gallery called gallery (file only has this in it) - all i get is:

Fatal error: Cannot instantiate non-existent class: cpmfetch in /home/real_username_dir/public_html/cpmfetch/index.php on line 3

So what do I have wrong.  Per your instructions, I have the correct path, but ...

Should it be  $objCpm = new cpm("/gallery"); as it is in cftest?


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

c0n574nz0

I can't download it! why? it seems like i'm not allowed to view attachments...

Joachim Müller


Andreas W.