error in cfimageget.php error in cfimageget.php
 

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

Main Menu

error in cfimageget.php

Started by fangweile, August 22, 2007, 10:17:04 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

fangweile

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

QuotefaultCode0faultStringParse 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.
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

vuud

Quote from: fangweile 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

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?


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

thanks a lot vuud for your reply.  :)

QuoteWhat version of cpmfetch?
cpmfetch version 2.0

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

and when I view it from IE it display this
QuoteOnly 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.
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

vuud

Quote from: fangweile on August 23, 2007, 03:11:23 AM
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
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

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

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.

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




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

fangweile

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
Quotecfimageget.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.  ;)
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희