forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: georgetamia on October 17, 2009, 07:36:50 pm

Title: Cpmfetch Error
Post by: georgetamia 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?
Title: Re: Cpmfetch Error
Post by: Joachim Müller on October 19, 2009, 08:39:18 am
How are your domains related in terms of folder/path structure?
Title: Re: Cpmfetch Error
Post by: georgetamia on October 19, 2009, 04:39:05 pm
How are your domains related in terms of folder/path structure?

what do you mean?
Title: Re: Cpmfetch Error
Post by: Joachim Müller 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?
Title: Re: Cpmfetch Error
Post by: georgetamia 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.
Title: Re: Cpmfetch Error
Post by: Joachim Müller 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.
Title: Re: Cpmfetch Error
Post by: georgetamia 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
Title: Re: Cpmfetch Error
Post by: Joe Carver 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)-->
Title: Re: Cpmfetch Error
Post by: georgetamia 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.
Title: Re: Cpmfetch Error
Post by: 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.
Title: Re: Cpmfetch Error
Post by: georgetamia 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.