m/photos/get_image/thumb/947f429d5fe8b8c321e7b962d

STRANGE, THIS URL JUST SHOW A PLAIN TEXT (m/photos/get_image/thumb/947f429d5fe8b8c321e7b962d4d4a48e.jpg)

I really want to know about this issue, i have just install latest dolphin to my server.

i have install it on another server and it was fine.

hem, here is my problem.

1. i have just successfully upload an image to my dolphin , look at my below picture

photoerror1

unfortunately, there is no preview pic there. look at that red arrow.

 

2. then , i want to know the source of that preview text by using my firefox, and the result described on the below pic

photo error 2

based on the source above, it look like that the preview image should be http://smansakra.sch.id/trial/m/photos/get_image/thumb/947f429d5fe8b8c321e7b962d4d4a48e.jpg

 

3. then i open that source image url on my browser to see what's happening, look at the picture below

photo error 3

strange , it just shows plain text

 

4. then i check on my photos modules to make sure that my photos successfully uploaded, look at the picture below

photo error 4

well my pic is successfullly uploaded.

 

CAN SOME EXPERT HERE TELL ME WHAT SHOULD I DO???


 

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 11 Dec 2010

ANY SOLUTIONS?

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 12 Dec 2010
 
=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 12 Dec 2010

I think you should turn off your "cache"

your seeing the "tmp" cached file...

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 12 Dec 2010

cache for what??? html cache, css chache , js cache...

i think it's not that..

this url ( http://smansakra.sch.id/trial/m/photos/get_image/thumb/947f429d5fe8b8c321e7b962d4d4a48e.jpg ) calls hash in the mysql row then return the image id with header like below

header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type:" . $sCntType);
header("Content-Length: " . filesize($sPath));
readfile($sPath);

ON ANOTHER SERVER MY DOLPHIN IS FINE, BUT ON THIS SERVER IT DOESN'T WORK

------------------

but i will try your suggesstion..

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 12 Dec 2010

If you save the image and view it in some editor, the error will be:

<br />
<b>Warning</b>:  readfile() has been disabled for security reasons in <b>/home/XXXX/public_html/trial/modules/boonex/photos/classes/BxPhotosModule.php</b> on line <b>84</b><br />

Rules → http://www.boonex.com/terms
Quote · 13 Dec 2010

if readfile is disabled, so what should i change??

can you suggest me alex?

may be file_get_conttents or the other?

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 13 Dec 2010
PROBLEM SOLVED , i have just change to file_get_contents... thanks for all respond...
=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 13 Dec 2010

I have the same exact problem. I can't tell if it's a security/permissions issue...since I'm unable to open my image file in a text editor (like dreamweaver). 

But I know the file is uploaded cuz I can see it in the modules/photos/data/files/ section, but for some reason the hash either is not mapping out to the correct image. Or there's something preventing it from being shown.

My server setting for allow_url_fopen is set to ON already. Can an expert help out here?

Quote · 12 Jul 2011

The function in question is readfile() which is what is used to get those images.

the allow_url_fopen setting i don't believe has any affect of this function. And allow_url_fopen is an option that only affects URL fopen aware wrappers for functions that are able to be used to access remote file.

In this case it appears that the function readfile() was specifically disabled by the host. This is a hosting issue. Ask the host if the readfile() function has been disabled.

https://www.deanbassett.com
Quote · 12 Jul 2011

The issue does seem to be readfile() as you suggested, but it looks ok on the server side.

 

I created a separate file called test3.php

<?php

$file = "http://www.gmatpill.com/images/gmatpill.jpg";

header('Content-type: image/jpeg');

readfile($file);

?>

This file worked perfectly on the server. However, when I put the same exact code in the actionGetImage() Function of BxPhotosModule.php, then it reverts to the error above where it just displays the name of the URL.

So regardless of what m/photos/get_image/ action I call, even if I specify the above picture, it doesn't load. But separately, if done in a php file with just the 3 lines of code above, then it works perfectly.

There must be something over-riding the readfile() for it to work in outside files but not inside the actionGetImage() function.

Thoughts?

 

Quote · 13 Jul 2011

I have this same issue. Has a solution been found yet?

Quote · 12 Aug 2011

I actually found my solution. I had to clear the files in the  plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache directories then all images loaded fine. I have actually had some issues with contents here a few times. Maybe there should be something added to the admin to make clearing these directories much easier.

Quote · 12 Aug 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.