Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question problem when deleting uploaded files

More
17 years 2 months ago - 17 years 2 months ago #1014 by amelaye13
Hi,
When I try to delete a post containing a picture or a file, I got an error :

unlink(C:DirectoyAnotherdirectorySubdirectory/media/kunena/attachments/legacy/images/mypic.png) etc... No such file or directory etc ...


I think it does not care about the slashes, where can I configure that ?
Last edit: 17 years 2 months ago by amelaye13.

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #1041 by Matias
We'll take a look on it. I hope to get this one fixed for 1.0.8..

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #1044 by amelaye13
I've seen in table attachements, it's the same way, without slashe, so it's writtent like that when I post a new message.

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #1046 by amelaye13
Thank you. I just want to know how to fix it ... what's the file which adds the attachement in the database ? I didn't find it ...

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago - 17 years 2 months ago #1050 by amelaye13
Done !
You must find and replace line
Code:
$database->setQuery("INSERT INTO #__fb_attachments (mesid, filelocation) values ('$pid','$imageLocation')");

by
Code:
$database->setQuery("INSERT INTO #__fb_attachments (mesid, filelocation) values ('$pid','".addslashes($imageLocation)."')");

in file componenets/com_kunena/template/default/post.php

:silly:
Last edit: 17 years 2 months ago by amelaye13.

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #1730 by Matias
I've fixed this in SVN.

addslaches() is a good fix, but I've also changed all backslashes to '/'. It's only a temporally fix, though.. If you move your Joomla installation to any other directory, all attachments will break up.

Fixed also a bug when removing post from an anonymous user.

Please Log in or Create an account to join the conversation.

Time to create page: 0.259 seconds