(Each project requires you to login separately)

mediaattach

Ticket #68 (new bug)

Opened 5 months ago

Last modified 4 months ago

Scribite integration problem with having Zikula in a sub directory

Reported by: markus6969 Owned by:
Priority: major Milestone: 1.0 RC2
Component: All general things Version: 1.0
Keywords: Cc:

Description

Hi,

there is a scribite integration problem if you have Zikula
in a subdirectory installed.

Example:
========

Zikula installation folder:
http://www.zikula.domain.com/zk/

MediaAttach? cache folder:
http://www.zikula.domain.com/temp/mediaattach/

Procedure to generate the bug:

1) open xinha editor to make e.g. a new news entry
2) insert a picture with the "insert a MediaAttach? file" button (paper-clip)
3) insert a picture in inline mode
4) now you can see the picture in the scribite window area
5) click on <> to see the html code
6) click again on <> to come back in the WISIWIG mode
7) the picture is not displayed now only the "alternate" text

HTML-Code example after step 4:

<a href="http://www.zikula.domain.com/zk/index.php?module=MediaAttach&amp;func=download&amp;fileid=13&amp;inline=1" title="Myself ;-)">

<img src="http://www.zikula.domain.com/zk/../temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself"></a>

HTML-Code example after step 5:
The switch to HTML view mkes changes to the HTML-Code!

<a href="/zk/index.php?module=MediaAttach&amp;func=download&amp;fileid=13&amp;inline=1" title="Myself ;-)">

<img src="/http://www.zikula.domain.com/zk/../temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself" /></a>

HTML-Code example after step 6:
The HTML-Code is AGAIN changed!

<a href="/zk/index.php?module=MediaAttach&amp;func=download&amp;fileid=13&amp;inline=1" title="Myself ;-)">

<img src="/http://www.zikula.domain.com/http://www.zikula.domain.com/zk/../temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself"></a>

Workarround:
If you change the HTML-code by hand to:

<a href="/zk/index.php?module=MediaAttach&amp;func=download&amp;fileid=13&amp;inline=1" title="MySelf ;-)">

<img src="/temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself" /></a>

it will work!

-> It seems there is a problem with the "/../" folder.

BR,
Markus

Change History

Changed 5 months ago by markus6969

Additional comment:

The HTML-Code change occurs although if you simple insert the image and save the page.
The picture will not be displayed.

BR,
Markus

Changed 4 months ago by Guite

This is a subsequent error caused by #54

Changed 4 months ago by mateo

I confirm this.
The DOCROOT seems to not take in account if Zikula is installed in a subfolder...

Note: See TracTickets for help on using tickets.
 
 
Powered by Trac
Design by Arcsin