Page 1 of 2

Xinha and S9y alpha 5 problem

Posted: Sat Sep 17, 2005 5:22 pm
by Frandy
Hi,

i use to edit entries with nice xinha plugin but since i upgrade from s9y alpha4 to s9y 0.9 alpha 5 something incorrect appends with image url on new entries.

example :
i edit a new entry, i insert an image using xinha insert image button. so i can browse an select an image on serveur on blog/uploads.

First
if i right clic on a thumbnail for properties i can see an error in image url :
example :

Code: Select all

http://www.mysite.com/blog//uploads/contacticon.gif
if i insert this image inside my entry, the tag editor display for this image :

Code: Select all

<img src="/blog//uploads/contacticon.gif" />
when i save the entry the url is translated to

Code: Select all

<img src="http://www.mysite.com/uploads/contacticon.gif" />
but shoul be

Code: Select all

<img src="http://www.mysite.com/blog/uploads/contacticon.gif" />
so the image doesn't appears on the blog entry.

have you got an idea ?

Thanks for help
Frandy

Re: Xinha and S9y alpha 5 problem

Posted: Mon Sep 19, 2005 4:02 pm
by garvinhicking
Sadly Browsers do some wicked image link changing when switching from and to HTML mode and injecting foreign HTML.

Nothing obvious in s9y from alpha4 to alpha5 has changed in this behaviour, so it must be something different? Maybe you can try to use the include/functions_images.inc.php and admin_image_selector.php file from the older versions and see if it does something?

Regards,
Garvin

Re: Xinha and S9y alpha 5 problem

Posted: Mon Sep 19, 2005 8:31 pm
by Frandy
garvinhicking wrote:Sadly Browsers do some wicked image link changing when switching from and to HTML mode and injecting foreign HTML.

Nothing obvious in s9y from alpha4 to alpha5 has changed in this behaviour, so it must be something different? Maybe you can try to use the include/functions_images.inc.php and admin_image_selector.php file from the older versions and see if it does something?

Regards,
Garvin
Hi Garvin,

got the same problem using IE6 and Firefox
i tried to replace with older files as specified but not results.

always missing "/blog/" in image url

<img src="http://www.mysite.com/uploads/contacticon.gif" />
instead of
<img src="http://www.mysite.com/blog/uploads/contacticon.gif" />

:?

Re: Xinha and S9y alpha 5 problem

Posted: Mon Sep 19, 2005 9:03 pm
by garvinhicking
What's your setting for the "relative URL upload path" in s9y configuration?

Regards,
Garvin

Re: Xinha and S9y alpha 5 problem

Posted: Mon Sep 19, 2005 10:09 pm
by Frandy
garvinhicking wrote:What's your setting for the "relative URL upload path" in s9y configuration?

Regards,
Garvin
uploads/

if i set to blog/uploads nothing better in xinha

Thanks for help


Frandy

Re: Xinha and S9y alpha 5 problem

Posted: Mon Sep 19, 2005 10:14 pm
by garvinhicking
I think if you reset this option it does not change existing entries and existing images. Try to upload a new image into a new entry?

Regards,
garvin

Re: Xinha and S9y alpha 5 problem

Posted: Mon Sep 19, 2005 10:35 pm
by Frandy
garvinhicking wrote:I think if you reset this option it does not change existing entries and existing images. Try to upload a new image into a new entry?

Regards,
garvin
if i upload in new image in a new entry i can fix the error come from bad relative path

example :
i insert an image, i clic on edit tag button
the code for image is : <img src="/blog//uploads/image.JPG" /> ---> Bad code should be : <img src="uploads/image.JPG" />
i edit the code replace it and works perfectly with
<img src="uploads/image.JPG" />
as used in my old entries....

i saw i have a javascript error when inserting image

Erreur : img.style has no properties
Fichier Source : http://mysite.com/blog/plugins/serendip ... manager.js
Ligne : 198

thanks for help

Posted: Tue Sep 20, 2005 9:06 am
by MySchizoBuddy
try using the "manage image" button to add images
Xinha is experimental and it keep changing just look at its timeline. lot of work is being done on it.

Posted: Tue Sep 20, 2005 12:49 pm
by Frandy
MySchizoBuddy wrote:try using the "manage image" button to add images
Xinha is experimental and it keep changing just look at its timeline. lot of work is being done on it.
Hi,

If i try manage image button, it inserts a link not an image

<a target="_blank" title="image.jpg" href="uploads/carton.jpg">image.jpg</a>

i'm a bit desapointed :cry:

Frandy

Posted: Tue Sep 20, 2005 1:11 pm
by garvinhicking
Which s9y version are you using? Are you using gdlib or imagemagick? If uploaded images get inserted as a link it means their thumbnail could not be created. Can you see the thumbnails in the media manager? can you make a screenshot?

Regards,
Garvin

Posted: Wed Sep 21, 2005 9:52 am
by Frandy
garvinhicking wrote:Which s9y version are you using? Are you using gdlib or imagemagick? If uploaded images get inserted as a link it means their thumbnail could not be created. Can you see the thumbnails in the media manager? can you make a screenshot?

Regards,
Garvin
Hi Garvin,

I use s9y 0.9 alpha 5 but it had the same problem since i installed s9y for the first time.
i can see the thumbnail il the media manager but looks like not the right source code injected.

i.e <a target="_blank" title="image.jpg" href="uploads/carton.jpg">image.jpg</a>

instead of

<img src="uploads/carton.jpg">

Frandy

Posted: Wed Sep 21, 2005 1:36 pm
by garvinhicking
Frandy, this can happen if the MIME-type of an image is not properly inserted.

Please answer the question about if you're using gdlib or imagemagick.

Please send a dump of the latest new images in your serendipity_images table, I think there the mimetype is not properly inserted.

Regards,
Garvin

Posted: Wed Sep 21, 2005 3:44 pm
by Frandy
garvinhicking wrote:Frandy, this can happen if the MIME-type of an image is not properly inserted.

Please answer the question about if you're using gdlib or imagemagick.

Please send a dump of the latest new images in your serendipity_images table, I think there the mimetype is not properly inserted.

Regards,
Garvin
Should be GD

php server supports imagemagick but i had a problem to specify path for imagemagick in s9y admin for this specific web site in construction...

may be you could help me ?

http://monsite.club.fr/info.php

Code: Select all

INSERT INTO `serendipity_images` VALUES (293, '.panieraffaire', 'jpg', 'image/jpeg', 3150, 96, 60, 1126968022, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (294, '.paniergarni', 'jpg', 'image/jpeg', 2291, 96, 68, 1126968023, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (295, '.produits', 'jpg', 'image/jpeg', 3930, 72, 96, 1126968023, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (296, '.securise', 'jpg', 'image/jpeg', 2850, 96, 64, 1126968027, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (297, '.textimage_18_creruncompte', 'png', 'image/png', 2897, 96, 17, 1126968024, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (298, '.tonne', 'jpg', 'image/jpeg', 3421, 96, 76, 1126968029, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (299, '.viennette', 'jpg', 'image/jpeg', 2599, 96, 72, 1126968030, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (300, '.vignes', 'jpg', 'image/jpeg', 1798, 25, 96, 1126968024, 'serendipityThumb', 0, '.thumbs/', NULL);
INSERT INTO `serendipity_images` VALUES (301, '.win1', 'jpg', 'image/jpeg', 3280, 96, 63, 1126968030, 'serendipityThumb', 0, '.thumbs/', NULL);
Frandy

Posted: Wed Sep 21, 2005 3:57 pm
by garvinhicking
Frandy,

GDLib is okay then, you don't need to resort to imagemagick. The imagemagick path cannot be seen with phpinfo() output, btw, and GD seems to be properly compiled there.

Your DB dump looks suspcious to me. It refers to images like:

Code: Select all

uploads/.thumbs/.panieraffaire.jpg
Do those images really exist? Please tell me:

1. The exact HTTP relative upload path (s9y config, something like "/uploads/")
2. The exact relative directory upload path (s9y config, something like "uploads/")
3. The serendipity base URL you configured (s9y config, something like "http://yourblog/")
4. Where a sample image file is stored in your path structure (something like "/www/vhosts/mydomain/htdocs/uploads/.thumbs/.panieraffaire.jpg")
5. Where a sample file is accessible via HTTP (something like "http://yourblog/uploads/.thumbs/.panieraffaire.jpg").

It seems like serendipity cannot verify that the image it found in serendipity_image is a file that really exists on your server. If it sees a file is not existant, it inserts a <a href> instead of a <img>!

Regards,
garvin

Posted: Wed Sep 21, 2005 4:53 pm
by Frandy
Your DB dump looks suspcious to me. It refers to images like:

Code:

uploads/.thumbs/.panieraffaire.jpg


Do those images really exist?
yes because of xinha, xinha image manager resizing script uses extension specified in config file in
/blog/plugins/serendipity_event_xinha/xinha-nightly/plugins/ImageManager/config.inc.php

but i don't use these thumbnails.

1. The exact HTTP relative upload path (s9y config, something like "/uploads/")

uploads/

2. The exact relative directory upload path (s9y config, something like "uploads/")

uploads/

3. The serendipity base URL you configured (s9y config, something like "http://yourblog/")

http://mypersonnalsite.com/blog/


4. Where a sample image file is stored in your path structure (something like "/www/vhosts/mydomain/htdocs/uploads/.thumbs/.panieraffaire.jpg")

/htdocs/blog/uploads/.thumbs/.panieraffaire.jpg


5. Where a sample file is accessible via HTTP (something like "http://yourblog/uploads/.thumbs/.panieraffaire.jpg").

http://mypersonnalsite.com/blog/uploads ... ffaire.jpg

I use HTTP-Host Autodetection

Hope it'll help you in fixing it


Frandy