serendipity_event_xinha bug ?

Found a bug? Tell us!!
Post Reply
Alex22

serendipity_event_xinha bug ?

Post by Alex22 »

Hi,

i noticed may be a bug in serendipity_event_xinha on line 221

Code: Select all

$IMConfig['images_url'] = $serendipity['serendipityHTTPPath'] . '/uploads/';
doesn't seem to return right serendipity http path to 'insert image' xinha plugin because thumbnails don't appear in image select popup and image path is bad [http://uploads/image.thumbnail.jpg]

if i replace live 221 by :

Code: Select all

$IMConfig['images_url'] = 'http://www.mysite.com/uploads/';
then it works

is it a bug ?

thanks for help

Alex
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_event_xinha bug ?

Post by garvinhicking »

This sounds more like you misconfigure the serendipity paths in your serendipity admin. The "relative path to serendipity" may not ever have a "http://" string in it, and it always need to begin with a "/"!

Please check (or post) your path config, basically you don't need to change that URL setting.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Alex22

Re: serendipity_event_xinha bug ?

Post by Alex22 »

garvinhicking wrote:This sounds more like you misconfigure the serendipity paths in your serendipity admin. The "relative path to serendipity" may not ever have a "http://" string in it, and it always need to begin with a "/"!

Please check (or post) your path config, basically you don't need to change that URL setting.

Regards,
Garvin
Hi
my relative path to serendipity is '/' automatically set when install.

:cry:

Thanks for help

Alex
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_event_xinha bug ?

Post by garvinhicking »

Hhhm...okay, so the images_url key needs to be an absolute URL, not a relative path you're saying? If that is the case, we can patch the plugin to use

$serendipity['baseURL'] instead of $serendipity['serendipityHTTPPath'] and should fix this with that?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Re: serendipity_event_xinha bug ?

Post by Guest »

garvinhicking wrote:Hhhm...okay, so the images_url key needs to be an absolute URL, not a relative path you're saying? If that is the case, we can patch the plugin to use

$serendipity['baseURL'] instead of $serendipity['serendipityHTTPPath'] and should fix this with that?

Regards,
Garvin
Yes!
but right syntax is

Code: Select all

$IMConfig['images_url'] = $serendipity['baseURL'] . 'uploads/'; 
not

Code: Select all

$IMConfig['images_url'] = $serendipity['baseURL'] . '/uploads/'; 
because $serendipity['baseURL'] already end with /


thanks a lot for help Garvin

Alex
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_event_xinha bug ?

Post by garvinhicking »

Thanks a lot, I've just committed this fix! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

btw all images need to be absolute once the post is published.
u cannot have relative urls in it right.
Image
Post Reply