Advanced search  

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

Pages: 1 [2] 3 4   Go Down

Author Topic: SUPPORT FOR VERSION 1.9.x IN HERE ONLY (Really) - this is the 2.0 beta test run  (Read 59274 times)

0 Members and 1 Guest are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

yes it is in the install.php on the dev version
Logged

Slideshow Bob

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20

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

Slideshow Bob

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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

Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

You already have a thread of your own, don't try to hijack this one!
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Still working on it
« Reply #27 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.
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 128

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

Iced Coffee

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 128

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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code


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.


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

Thank you VUUD. This has solved my issue.

E
Logged

rx-one

  • Coppermine newbie
  • Offline Offline
  • Posts: 14

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

rx-one

  • Coppermine newbie
  • Offline Offline
  • Posts: 14

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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

Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY
« Reply #37 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)

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: SUPPORT FOR VERSION 1.9.x IN HERE ONLY
« Reply #38 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();
?>


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: SUPPORT FOR VERSION 1.9.x
« Reply #39 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

Logged
Pages: 1 [2] 3 4   Go Up
 

Page created in 0.031 seconds with 19 queries.