Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Cpmfetch Error  (Read 7217 times)

0 Members and 1 Guest are viewing this topic.

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Cpmfetch Error
« on: October 17, 2009, 07:36:50 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cpmfetch Error
« Reply #1 on: October 19, 2009, 08:39:18 am »

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

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Cpmfetch Error
« Reply #2 on: October 19, 2009, 04:39:05 pm »

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

what do you mean?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cpmfetch Error
« Reply #3 on: October 19, 2009, 05:56:44 pm »

Are
www.taylorlautnersource.com
and
Gallery Site is www.taylorphotos.org
on the same server and if yes, what's the absolute path of the webroot of the two domains?
Logged

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Cpmfetch Error
« Reply #4 on: October 19, 2009, 06:08:50 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cpmfetch Error
« Reply #5 on: October 19, 2009, 07:36:26 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.
Logged

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Cpmfetch Error
« Reply #6 on: October 19, 2009, 09:45:12 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
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1510
  • aka 'i-imagine'
    • Home Page
Re: Cpmfetch Error
« Reply #7 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)-->

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Cpmfetch Error
« Reply #8 on: October 20, 2009, 01:14:29 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cpmfetch Error
« Reply #9 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.
Logged

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Cpmfetch Error
« Reply #10 on: October 20, 2009, 04:33:41 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.