coppermine-gallery.com/forum

Support => Looking for Freelancers / Paid help => Topic started by: ttanaka on December 18, 2007, 06:20:56 AM

Title: Looking to Hire someone to fix one issue...
Post by: ttanaka on December 18, 2007, 06:20:56 AM
I already have Coppermine 1.4.4 installed and CPMFetch installed and working inside our phpBB2 forum - we have a random thumbnail show up in the left nav of the forum.

Now, I'm looking to put a random image on our index.html.  I was hoping I could simply use the same/similar commands as in our phpBB2 integration but those don't work.  There is something going on w/ the path, or with PHP, or something.

So, I have a get-image.php file (which I will later include in the index.html page).

The code of this file is simply:

<?php
  include "/photos/cpmfetch/cpmfetch.php";
   $objCpm = new cpm("/photos");
   $options = array("subtitle" => "File name : {{pFilename}}", "imagesize" => "int", "imagelink" => "int" );
   $objCpm->cpm_viewLastAddedMedia(1, 4, $options);
   $objCpm->cpm_viewRandomMediaFrom("album=1,3",1, 1, $options);
   $objCpm->cpm_close();
?>

I get this error:

Warning: main(/photos/cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/eproxim/public_html/get-image.php on line 2


I've also tried using a period in front of the path, and that gives me another, different error.

ERROR: Path to Coppermine incorrect. (/home/eproxim/public_html./photos//include/config.inc.php)
Fatal error: Call to a member function on a non-object in /home/eproxim/public_html/photos/cpmfetch/cpmfetch.php on line 532

So, I don't know what's going on, and I don't have time to troubleshoot this.  Please shoot me an email if someone can fix and please provide a quote/estimate, thanks!  ttanaka at gmail dot com.

Regards,

Tyson
Title: Re: Looking to Hire someone to fix one issue...
Post by: Joachim Müller on December 18, 2007, 08:19:57 AM
Quote from: ttanaka on December 18, 2007, 06:20:56 AM
I already have Coppermine 1.4.4 installed
Then I wouldn't worry much about cpmFetch in the first place. Instead, I suggest upgrading asap - your gallery is vulnerable. Most recent stable release currently is cpg1.4.14.

Any particular reason for asking such a trivial question on the paid support section? Why haven't you posted on the free support board?
Title: Re: Looking to Hire someone to fix one issue...
Post by: ttanaka on December 18, 2007, 09:19:09 AM
Yay, got help and got it fixed!  Umm... posted here because was tired of researching and troubleshooting.  Was looking for a quick fix, posting here seemed to work, so thanks!  You can close this issue...