Cpmfetch Error Cpmfetch Error
 

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 Error

Started by georgetamia, October 17, 2009, 07:36:50 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

georgetamia

Whenever I put the
<?php
  include "/home/taylorph/public_html/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/taylorph/public_html/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,3);
  $objCpm->cpm_close();
?>

Code on my site it gives me the error:

Warning: include(/home/taylorph/public_html/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/taylorso/public_html/wordpress/wp-content/themes/dirtybrown/header.php on line 76

Warning: include() [function.include]: Failed opening '/home/taylorph/public_html/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/taylorso/public_html/wordpress/wp-content/themes/dirtybrown/header.php on line 76

Fatal error: Class 'cpm' not found in /home/taylorso/public_html/wordpress/wp-content/themes/dirtybrown/header.php on line 77

My Main site is www.taylorlautnersource.com
Gallery Site is www.taylorphotos.org

How can I fix this?

Joachim Müller

How are your domains related in terms of folder/path structure?

georgetamia

Quote from: Joachim Müller on October 19, 2009, 08:39:18 AM
How are your domains related in terms of folder/path structure?

what do you mean?

Joachim Müller


georgetamia

Quote from: Joachim Müller on October 19, 2009, 05:56:44 PM
Areandon the same server and if yes, what's the absolute path of the webroot of the two domains?

They are not on the same server.

Joachim Müller

Quote from: georgetamia on October 17, 2009, 07:36:50 PM
Warning: include(/home/taylorph/public_html/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/taylorso/public_html/wordpress/wp-content/themes/dirtybrown/header.php on line 76
Well, then I guess that the file that the error message says that it's missing is not there, and yeah: http://taylorlautnersource.com/cpmfetch/cpmfetch.php returns a 404 not found.

georgetamia

Quote from: Joachim Müller on October 19, 2009, 07:36:26 PM
Well, then I guess that the file that the error message says that it's missing is not there, and yeah: http://taylorlautnersource.com/cpmfetch/cpmfetch.php returns a 404 not found.


I'm confused.  The cpmfectch.php file is actually on taylorphotos.org and not taylorlautnersource.com so it's here http://www.taylorphotos.org/cpmfetch/cpmfetch.php

Joe Carver

Please pardon the interruption,

georgetamia - you need to upgrade before doing anything else.

Your version is old and vulnerable. (taylorphotos.org)

<!--Coppermine Photo Gallery 1.4.20 (stable)-->

georgetamia

Quote from: i-imagine on October 19, 2009, 10:01:01 PM
Please pardon the interruption,

georgetamia - you need to upgrade before doing anything else.

Your version is old and vulnerable. (taylorphotos.org)

<!--Coppermine Photo Gallery 1.4.20 (stable)-->


Done.

Joachim Müller

No, not done: now your site is running under cpg1.4.24, although the most recent stable release currently is cpg1.4.25, which leads me to believe that you're using auto-installers. Don't! Using auto-installers like Fantastico sucks and is unsupported. Upgrade as we suggested in the docs. No other upgrade method supported.

georgetamia

Quote from: Joachim Müller on October 20, 2009, 09:05:03 AM
No, not done: now your site is running under cpg1.4.24, although the most recent stable release currently is cpg1.4.25, which leads me to believe that you're using auto-installers. Don't! Using auto-installers like Fantastico sucks and is unsupported. Upgrade as we suggested in the docs. No other upgrade method supported.

I did.  I didn't use Fantastico.  I downloaded 1.425 and uploaded it.