SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run - Page 2 SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run - Page 2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run

Started by vuud, August 26, 2006, 03:54:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

Quote from: 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???


You never answered my question above about install.php
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

tom_a_sparks


Slideshow Bob

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...

Slideshow Bob

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...

vuud

Quote from: 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...

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...

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

marinelife

I am having the same problem, Install does not show images in dev 1.9.3

Joachim Müller


vuud


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.
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

Iced Coffee

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:
<?php
  
include "./cpmfetch.php";
  
$objCpm = new cpm();
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>


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

When I ran fetch.php it said:
QuoteError: 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.

Iced Coffee

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

vuud


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.


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

everettcomstock

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

vuud

Quote from: 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


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


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

everettcomstock


rx-one

I've a problem ever mentionned with the install of 1.9.4 :

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

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 :

<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 ?

rx-one

solved by modif found here ( year 2004) suppressing file existe (...) in function, in dao.

vuud

Quote from: rx-one on December 15, 2006, 12:09:03 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...

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

jam1

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)


vuud

Quote from: 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)


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.


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



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

jam1

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