Error while uploading pictures in a wiki page
- Status
- Closed
- Subject
- Error while uploading pictures in a wiki page
- Version
- 2.x
- Category
- Error
- Feature
- Wiki (page view, edit, history, rename, etc)
WYSIWYG (What You See is What You Get) - Resolution status
- Fixed or Solved
- Submitted by
- yoni
- Volunteered to solve
- nyloth
- Lastmod by
- nyloth
- Rating
- Description
While editing a wiki page i can set and upload an image.
Clicking on the picture image i get to the image properties windows.
In the tab "Image Info" i choose "browse server" and from there shows up the FCKeditor ressources browser.I choose to create a folder, input name and upload picture.
Then the picture is available and i can choose it and validate it back throught the "Image Properties" windows where the image url show:
/tikiwiki10/img/wiki_up/image/test/tv.pngThe picture image is broken
It keeps broken after wiki page saveWhen i reedit the page and open for this picture the "image properties" it shows as image url:
http://mydomain.com/tikiwiki10/img/wiki_up/image/test/tv.pngThe image is not there of course, it have been installed in a folder test 3 step up from the root of my website !
Meaning that path should have been : /var/www/sites/xxx/xxx.com/subdomains/www/html/tikiwiki10/img/wiki_up/test
and the folder test has been in fact created here:
/var/www/sites/xxx/xxx.com/subdoma/tikiwiki10/img/wiki_up/test
And that... is not good at all 😊
But it is not over.
If i upload manualy the picture and edit the wiki page i can add in the "image properties" the direct url to the picture after clicking the ok button it show nice in the preview page.If i save the page the image link is changed for something like:
http://xxx.com/tikiwiki10/show_image.php?id=5And there again... no picture shows on the saved wiki page.
- Solution
Fixed in commit "FIX fckeditor images: fix bug #1099 ('Error while uploading pictures in a wiki page', submitted by Yoni).".
This bug was quite hard to see, because this bug was only visible when the "file gallery" feature was disabled.
On some installations, the "Use cache for external images" admin option has no value in database. tiki-setup.php was configured to disable it by default, but the code that was parsing the wiki page was activating it by default. Thus, even if this option seemed disabled in general admin page, it was trying to move images uploaded in FCKeditor to file galleries.
This explains why without file galleries, your images were not displayed in wiki pages anymore.
The fix force tikiwiki to exclude FCKeditor images from this cache process.
- Importance
- 9 high
- Priority
- 45
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 1099
- Created
- Saturday 26 May, 2007 19:51:12 UTC
by Unknown - LastModif
- Monday 28 May, 2007 19:31:00 UTC