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: error in cfimageget.php  (Read 7324 times)

0 Members and 1 Guest are viewing this topic.

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
error in cfimageget.php
« on: August 22, 2007, 10:17:04 am »

I try to use cfimageget to html img tag but it doesn't show any image at all.
I already change $ALLOW_DIRECT_ACCESS to "true"
and $urltocpm  to "/gallery/"
but still an error message occur when I try to view the cfimageget.php file

Quote
faultCode0faultStringParse error:syntax error, unexpected $end in /home/xxxxxxxxxxxx/htdocs/gallery/cpmfetch/cfimageget.php on line 498

what is seems the problem?. I really need this cfimageget for my site, I will help me in many ways.

Is there any restriction in web server that affects the functionality of the cfimageget script. ::) ???

My allow_url_fopen is disabled in my web host. ::)

Hope someone could help, thanks in advance.
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: error in cfimageget.php
« Reply #1 on: August 22, 2007, 09:53:18 pm »

I try to use cfimageget to html img tag but it doesn't show any image at all.
I already change $ALLOW_DIRECT_ACCESS to "true"
and $urltocpm  to "/gallery/"
but still an error message occur when I try to view the cfimageget.php file

what is seems the problem?. I really need this cfimageget for my site, I will help me in many ways.

Is there any restriction in web server that affects the functionality of the cfimageget script. ::) ???

My allow_url_fopen is disabled in my web host. ::)

Hope someone could help, thanks in advance.


What version of cpmfetch?  What happens when you call cfimageget directly from your browser?


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

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: error in cfimageget.php
« Reply #2 on: August 23, 2007, 03:11:23 am »

thanks a lot vuud for your reply.  :)

Quote
What version of cpmfetch?
cpmfetch version 2.0

Quote
What happens when you call cfimageget directly from your browser?
when I view it on firefox, it only display the alternative text
Quote
http://www.allkoreans.net/gallery/cpmfetch/cfimageget.php

and when I view it from IE it display this
Quote
Only one top level element is allowed in an XML document. Error processing resource 'http://www.allkoreans.net/gallery/cpmfetch/cfimageget.php'. Line 2, Position 489

<?xml version="1.0"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>0</int></value></member><member><name>faultString</name><value><string>Warning:fopen() [<a href='function.fopen'>function.fopen</a>]: Unable to access albums/userpics/10001/thumb_31goodtaehee5go.jpg in /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/gallery/cpmfetch/cfimageget.php on line 500</string></value></member></struct></value></fault></methodResponse><?xml version="1.0"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>0</int></value></member><member><name>faultString</name><value><string>Warning:fopen(albums/userpics/10001/thumb_31goodtaehee5go.jpg) [<a href='function.fopen'>function.fopen</a

I also try the cpmfetch dev but it doesnt work either.
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: error in cfimageget.php
« Reply #3 on: August 23, 2007, 03:29:48 pm »

thanks a lot vuud for your reply.  :)
cpmfetch version 2.0
when I view it on firefox, it only display the alternative text
and when I view it from IE it display this
I also try the cpmfetch dev but it doesnt work either.


I think the latest dev version fixes this problem. 

What sort of web host are you on?  The errors are in XML, and XML that IE blows up on

Not really relevant to the problem, but curious
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

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: error in cfimageget.php
« Reply #4 on: August 24, 2007, 05:52:04 am »

I found the same problem as mine here http://forum.coppermine-gallery.net/index.php?topic=43917.0
I check their cfimageget.php and found that they are all working fine now.
I have read all the replies on that thread and still can't find any appropriate answer to fix the error.
How did they make it to work  ???  ::) ::) ::)  ??? . I really need cfimageget in my site. It will truly a great help for me.

Anyway
using the stable version 2.0
My display error has changed to

Code: [Select]
faultCode0faultStringWarning:fopen() [function.fopen]: Unable to access albums/userpics/10001/thumb_14.jpg in /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/gallery/cpmfetch/cfimageget.php on line 502faultCode0faultStringWarning:fopen(albums/userpics/10001/thumb_14.jpg) [function.fopen]: failed to open stream: No such file or directory in /home/vol2/4sql.net/sq_697468/allkoreans.net/htdocs/gallery/cpmfetch/cfimageget.php on line 502 same as the error message in the link above.

Quote
What sort of web host are you on?
I am hosting my site at byethost

using cpmfetch version 2.1.1 dev,
the cfimageget.php file only display a blank white page with a
  • red cross. ::)





Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: error in cfimageget.php
« Reply #5 on: August 24, 2007, 08:13:37 am »

After having my trial and error fixing this problem, Finally I made it.  :D
cfimageget.php is totally working fine this time. I am really feel glad that it is working fine now. ;D

All I have to do is to copy the following files in the directory of my coppermine gallery
Quote
cfimageget.php
cpmfetch_config.php
cpmfetch_dao.php

I have tried all the functions

cfimageget.php?album=6&size=int
cfimageget.php?category=3&size=int
cfimageget.php?size=int&cmd=last
cfimageget.php?size=int&album=6
cfimageget.php?size=int

And hopefully works very fine.

I think of it just because when I call the cfimageget.php file, the image filename has been detected correctly but the path is wrong. I decided to move the following files above to see if I will get the same error but it display the right image instead and works like a charm.


cpmFetch is really great, thanks a lot vuud for developing it. Keep it up.  ;)
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.