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]   Go Down

Author Topic: CPMFetch not working on some pages.  (Read 7158 times)

0 Members and 1 Guest are viewing this topic.

SkinsFan

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
CPMFetch not working on some pages.
« on: September 07, 2009, 09:01:46 pm »

Hi, i am using cpmfetch on my site http://fangs-up.com and as you can see it does work, however on the page http://fangs-up.com/wp/ it comes up with this error:

Code: [Select]
Warning: include_once(gallery/cpmfetch/cpmfetch.php) [function.include-once]: failed to open stream: No such file or directory in /home/fakefan1/public_html/fangs-up.com/wp/wp-content/themes/classic/header.php on line 33

Warning: include_once() [function.include]: Failed opening 'gallery/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fakefan1/public_html/fangs-up.com/wp/wp-content/themes/classic/header.php on line 33

Fatal error: Class 'cpm' not found in /home/fakefan1/public_html/fangs-up.com/wp/wp-content/themes/classic/header.php on line 34

how can i stop this and what is causing it?
Logged

Nibbler

  • Guest
Re: CPMFetch not working on some pages.
« Reply #1 on: September 08, 2009, 11:36:55 pm »

Problem is that you used the wrong path. Solution is to use the correct path.
Logged

SkinsFan

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CPMFetch not working on some pages.
« Reply #2 on: September 12, 2009, 09:13:22 am »

what would the correct path be? would i not have to go down a folder as the gallery folder and the wp folders are in the same level? is this possible?
Logged

poubao

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: la
  • Offline Offline
  • Gender: Male
  • Posts: 277
    • Collections du Laos
Re: CPMFetch not working on some pages.
« Reply #3 on: September 12, 2009, 10:01:19 am »

Try to disable the
Code: [Select]
$objCpm->cpm_close()  like this:   
Code: [Select]
//$objCpm->cpm_close();
Logged
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

SkinsFan

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CPMFetch not working on some pages.
« Reply #4 on: September 12, 2009, 06:20:14 pm »

no, that doesnt work either. it keeps the same error.
Logged

poubao

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: la
  • Offline Offline
  • Gender: Male
  • Posts: 277
    • Collections du Laos
Re: CPMFetch not working on some pages.
« Reply #5 on: September 13, 2009, 09:37:17 am »

May be you make a mistake when you paste your code, try to copy the code you use in http://fangs-up.com/videos.php
Logged
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: CPMFetch not working on some pages.
« Reply #6 on: September 13, 2009, 12:49:41 pm »

Or you could just do as Nibbler suggests ;)

Logged
It is a mistake to think you can solve any major problems just with potatoes.

SkinsFan

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CPMFetch not working on some pages.
« Reply #7 on: September 13, 2009, 07:24:14 pm »

I thought i was using the right path. And its the same code as i use on all pages, its in the sidebar.php, not individually on every page. its alright saying use the right path, but when you dont give the right path or any hints what sort of help is that!?
Logged

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: CPMFetch not working on some pages.
« Reply #8 on: September 15, 2009, 06:15:10 am »

I thought i was using the right path. And its the same code as i use on all pages, its in the sidebar.php, not individually on every page. its alright saying use the right path, but when you dont give the right path or any hints what sort of help is that!?

since the file that is working, the index page, is not in the /wp/ directory, that means that your path has to change in order for the code to work in the /wp/ directory.....some folks assume you should know this, that is why they didn't tell you what to change...

 ;)

try changing the code to:

Code: [Select]
include $_SERVER['DOCUMENT_ROOT'].'/gallery/cpmfetch/cpmfetch.php';
  $objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");

SkinsFan

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CPMFetch not working on some pages.
« Reply #9 on: September 15, 2009, 08:26:36 pm »

thanks! now it works on the files in the wp folder, but not on those not in it :/
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: CPMFetch not working on some pages.
« Reply #10 on: September 15, 2009, 09:15:02 pm »

There is not a lot more we can tell you. There are many resources out there for learning basic skills such as paths. Teaching that is beyond the scope of this board.

Here is a good guide which might make it clearer in your mind.

http://www.webdiner.com/webadv/begin/paths.htm
Logged
It is a mistake to think you can solve any major problems just with potatoes.

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: CPMFetch not working on some pages.
« Reply #11 on: September 16, 2009, 09:05:28 pm »

thanks! now it works on the files in the wp folder, but not on those not in it :/

you need to use a different set of code for the index file...use the one that works in /wp/ for that file...and then change the code so that it works on the index page (the way you had it originally)...

so you will have two cpmfetch codes, one with the path I gave you and one with the original path that you had...
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.