Recent Topics

1 Sep 21, 2008 06:50    

My b2evolution Version: 2.x

In my blog, images appear as a small empty box.

I have already discovered that the "extra path" style URLs do not work on my server, so I have all the URLs set (so I thought) to use explicit parameters instead. Either I missed a setting buried somewhere, or there is a bug because when the blog tries to access the image via:

http://www.myserver.com/weblog/htsrv/getfile.php/someimage.gif?root=collection_5&path=someimage.gif&size=fit-720x500

...the server cannot find the file.

However, change ".../getfile.php/someimage.gif?root=..." to ".../getfile.php?file=someimage.gif&root=..." and it works like a charm.

All options on the URL tab of the 'Blog Settings' section are already set to use params.

Any ideas on how to fix this so the blog uses the right style URLs? Is there a settings file somewhere that I can configure manually?

2 Sep 21, 2008 10:24

I don't have 2.5 installed yet so I can't test this, crack open /inc/files/model/_file.class.php and meander down to about line 1478 and remove the red bits

// No thumbnail available (at least publicly), we need to go through getfile.php!
$root = $this->_FileRoot->ID;
$url = $htsrv_url.'getfile.php/'
// This is for clean 'save as':
.rawurlencode( $this->_name )
// This is for locating the file:
.'?root='.$root.'&path='.$this->_rdfp_rel_path.'&size='.$size_name;

¥


Form is loading...