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: Help - Pass all tests but get blanks (no images)  (Read 9014 times)

0 Members and 1 Guest are viewing this topic.

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Help - Pass all tests but get blanks (no images)
« on: October 31, 2006, 09:29:12 am »

Hi,
I'm trying to set up cpmfetch.
Tried cftest.php - passed all tests but still no images (only the blank boxes).
I'm reading the threads, can't find anything that explains.

pse help. thanks.
« Last Edit: November 03, 2006, 03:18:38 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help - Pass all tests but get blanks (no images)
« Reply #1 on: October 31, 2006, 02:20:55 pm »

You have been told a thousand times what you need to do: post a link to your site and what you actually have done where. Don't expect us to be mind-readers or look up your old postings.
Taking into account your negative karma record I suggest you stop playing lazy and start thinking before posting.
Logged

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Help - Pass all tests but get blanks (no images)
« Reply #2 on: November 01, 2006, 01:13:29 am »

I'm sorry. Here's the link:  http://www.photograffs.com/cpmfetch/cftest.php
Pse excuse me if I irk anybody. I think CPM is a great software (thank you guys for that).
I'd like to reduce my negative karma but the trouble is that I do not know enough of PHP to contribute.
Really appreciate you guys for the great software and all the help offered in the forum pages.  :) 
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help - Pass all tests but get blanks (no images)
« Reply #3 on: November 01, 2006, 02:37:53 am »

I'm sorry. Here's the link:  http://www.photograffs.com/cpmfetch/cftest.php
Pse excuse me if I irk anybody. I think CPM is a great software (thank you guys for that).
I'd like to reduce my negative karma but the trouble is that I do not know enough of PHP to contribute.
Really appreciate you guys for the great software and all the help offered in the forum pages.  :) 

Try one of the newer dev versions... The stable version becomes testy with being in the root sometimes...

Vuud

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Help - Pass all tests but get blanks (no images)
« Reply #4 on: November 01, 2006, 05:23:36 am »

Hi Vuud !
thank you for answering even at this unearthly hour at your end.

I tried your suggestion - loaded the latest dev release.

then tried to see the file t1.php and got this message:
"This file will be populated when you run install.php
Fatal error: Call to undefined function: getdefaults() in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 76"

Then I ran the install.php file and got this on the screen:

"An error has occured in your installation
ERROR: cpmfetch_config.php is not writeable

This means that the installer cannot write to the CpmFetch configuration file. Please be sure you have sufficent rights to write to this location.
 
Test images:
If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here.

This file will be populated when you run install.php
Fatal error: Call to undefined function: getdefaults() in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 76"
 
pse advice - where did I go wrong? what do I need to do to rectify?

thanks.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help - Pass all tests but get blanks (no images)
« Reply #5 on: November 01, 2006, 05:37:52 am »

Hi Vuud !
thank you for answering even at this unearthly hour at your end.

I tried your suggestion - loaded the latest dev release.

then tried to see the file t1.php and got this message:
"This file will be populated when you run install.php
Fatal error: Call to undefined function: getdefaults() in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 76"

Then I ran the install.php file and got this on the screen:

"An error has occured in your installation
ERROR: cpmfetch_config.php is not writeable

This means that the installer cannot write to the CpmFetch configuration file. Please be sure you have sufficent rights to write to this location.
 
Test images:
If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here.

This file will be populated when you run install.php
Fatal error: Call to undefined function: getdefaults() in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 76"
 
pse advice - where did I go wrong? what do I need to do to rectify?

thanks.


You need to make the file cpmfetch_config.php writeable by your web server. 

Long story made short, take your ftp client and right click or whatever on the file and find a change rights or chmod or something and give write access to everyone.  You may be able to get less, but once you run the install successfully, you can take the write access away.

Your on your own figuring that part out... best to check with your ISP or whoever makes your ftp client on how to do that.

Hope that helps

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Help - Pass all tests but get blanks (no images)
« Reply #6 on: November 02, 2006, 01:44:21 am »

Hi Vuud,
I took your suggestion and applied the permissions.
When I ran the install.php, it worked perfectly !
see:  http://www.photograffs.com/cpmfetch/install.php

thank you so much !! I jumped with joy !!

I then created a test page and tried the script:


<?php
  include "./cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Opened the page in browser,  http://www.photograffs.com/test1.php,   and got the msg:

Warning: cpm_dao(/): failed to open stream: Unknown error: 0 in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 64

Fatal error: cpm_dao(): Failed opening required '/' (include_path='.:/usr/local/lib/php') in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 64

I checked thecpmfetch_dao.php line 64.
it's  about this:   require_once($config_file);


I've searched the threads. can't find anybody with the same problem. With my very limited knowledge of php, I can't figure how to handle this problem.

can you help?  thanks.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help - Pass all tests but get blanks (no images)
« Reply #7 on: November 02, 2006, 02:11:01 am »

Hi Vuud,
I took your suggestion and applied the permissions.
When I ran the install.php, it worked perfectly !
see:  http://www.photograffs.com/cpmfetch/install.php

thank you so much !! I jumped with joy !!

I then created a test page and tried the script:


<?php
  include "./cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Opened the page in browser,  http://www.photograffs.com/test1.php,   and got the msg:

Warning: cpm_dao(/): failed to open stream: Unknown error: 0 in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 64

Fatal error: cpm_dao(): Failed opening required '/' (include_path='.:/usr/local/lib/php') in /home/photogr1/public_html/cpmfetch/cpmfetch_dao.php on line 64

I checked thecpmfetch_dao.php line 64.
it's  about this:   require_once($config_file);


I've searched the threads. can't find anybody with the same problem. With my very limited knowledge of php, I can't figure how to handle this problem.

can you help?  thanks.


Remove the / from the   $objCpm = new cpm("/");

Should just be $objCpm = new cpm();

Sorry, the documentation lags behind the dev releases... 


Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Help - Pass all tests but get blanks (no images)
« Reply #8 on: November 02, 2006, 03:14:22 am »

Hi Vuud,
Hate to bother you again.
I did remove the / as you suggested.

Opened page in browser,  http://www.photograffs.com/test1.php,  but I got this msg:

Error: config file not specified and default not found - did you run the install program?


I checked the page, http://www.photograffs.com/cpmfetch/install.php.
It is fine - the pictures appear. No problem.

I'm lost as to what's wrong.  FYi, I uploaded the 1.9.4 dev version.

pse help again !  thank you.  (don't you need to sleep? I'm wondering.  :)

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help - Pass all tests but get blanks (no images)
« Reply #9 on: November 02, 2006, 05:49:42 am »

Hi Vuud,
Hate to bother you again.
I did remove the / as you suggested.

Opened page in browser,  http://www.photograffs.com/test1.php,  but I got this msg:

Error: config file not specified and default not found - did you run the install program?


I checked the page, http://www.photograffs.com/cpmfetch/install.php.
It is fine - the pictures appear. No problem.

I'm lost as to what's wrong.  FYi, I uploaded the 1.9.4 dev version.

pse help again !  thank you.  (don't you need to sleep? I'm wondering.  :)



I actually do need some sleep... I see what is wrong, but for the life of me I thought I was away from this problem...  But it seems like not...  but I want to sleep on it before I shoot myself. ;)

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help - Pass all tests but get blanks (no images)
« Reply #10 on: November 02, 2006, 05:57:33 am »

I actually do need some sleep... I see what is wrong, but for the life of me I thought I was away from this problem...  But it seems like not...  but I want to sleep on it before I shoot myself. ;)



Ah screw it.  In the meantime, use this:

Code: [Select]
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
For some reason I thought I had managed to eliminate all that, but I guess not.

Maybe in the morning it will look clearer


Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Help - Pass all tests but get blanks (no images)
« Reply #11 on: November 03, 2006, 03:40:11 am »

Thank you so much, Vuud.
Use the amended line, it worked !
Logged
Pages: [1]   Go Up
 

Page created in 0.047 seconds with 16 queries.