Help - Pass all tests but get blanks (no images) Help - Pass all tests but get blanks (no images)
 

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

Help - Pass all tests but get blanks (no images)

Started by wfs, October 31, 2006, 09:29:12 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wfs

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.

Joachim Müller

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.

wfs

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.  :) 

vuud

Quote from: wfs 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.  :) 

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

Vuud

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

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.

vuud

Quote from: wfs 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.


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

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

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.

vuud

Quote from: wfs 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.


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

Should just be $objCpm = new cpm();

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


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

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.  :)


vuud

Quote from: wfs 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.  :)



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. ;)

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

Quote from: vuud on November 02, 2006, 05:49:42 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:

$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


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

Thank you so much, Vuud.
Use the amended line, it worked !