×
Kunena 5.1.15 Released (27 Oct 2019)

The Kunena team has announce the arrival of Kunena 5.1.15 [K 5.1.15] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× Topics must relate to a currently supported version of Kunena. If you are unsure what is the current supported version of Kunena, please go to the download page.

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question Attachment not found

More
5 days 9 hours ago #1 by KZQ
Attachment not found was created by KZQ
I'm running the current version of Joomla and Kunena (5.1.15). Recently the site went down when we exceeded the allowed disk space. I'm not sure that's what caused our recent loss of attachments but in any case many, though not all, of the attachments can no longer be found. In their place there is simply a notice that says "Attachment Not Found". I've explored the attachments folders and found that some attachments have the original file names while other file names seem to have been converted into a 32 digit string with no file extension. If I rename the 32 digit string by adding ".jpg" to the end of the string I can open the file.
Is there any way I can determine which file names have been converted into which strings?
Why are some attachments converted while others are stored with their original file names?
Is there any way to reconnect the attachments to the posts they were intended for?
I'll appreciate any help you might offer.
Thanks
Bill

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

More
5 days 6 hours ago #2 by rich
Replied by rich on topic Attachment not found
It seems, you have sometime chosen in the configuration (tab Attachments) "Protect Attachments = Yes". With this option the files will veiled, that's why you've attachments with 32 characters. You can find the original name only in the database table *_kunena_attachments column filename_real
But thats not the problem, Kunena display this files without problems unless it are pdf files. PDFs make still problems if this option is enabled.

Have you used in the Kunena Diagnostic Tool and removed orphaned attachments? This could be the problem too.

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

More
5 days 4 hours ago - 5 days 4 hours ago #3 by KZQ
Replied by KZQ on topic Attachment not found
Hi Rich and thank you for your response.
As I look at the various posts using my Admin permissions to edit/view the posts. I've seen posts with four attachments three of which have the actual file name within the attachment tags and one that has a 32 digit string within the attachment tags. You're correct that I've got the "protect attachments" setting to Yes. But why would only some attachments get converted? All are in the format of: somefilename.jpg.
Still, you're correct, that's not my problem. I've got to figure out why Kunena lost track of the attachment in the first place and somehow reconnect them.
Yes, I've used the diagnostic tool to remove orphaned attachments. Actually, that may be part of the problem. I may have asked Kunena to delete them by asking Kunena to remove them when they were not truly orphaned. Does Kunena really purge them upon removal? Or do they go into some sort of trash bin?
Bill
Last edit: 5 days 4 hours ago by KZQ. Reason: Further understanding.

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

More
4 days 9 hours ago #4 by rich
Replied by rich on topic Attachment not found

As I look at the various posts using my Admin permissions to edit/view the posts. I've seen posts with four attachments three of which have the actual file name within the attachment tags and one that has a 32 digit string within the attachment tags. You're correct that I've got the "protect attachments" setting to Yes. But why would only some attachments get converted? All are in the format of: somefilename.jpg.

When this option is on, all files should be veiled. Maybe the user use older attachments which he has uploaded before this setting? When an user edit an older message and copied the attachment code, he can use the same image in more then one message.
You can check it, if you in his attachment folder the uploads sort by last changes.

rich wrote: Have you used the Kunena Diagnostic Tool and removed orphaned attachments? This could be the problem too.

When I know it, then I could limit the problem. If you did not perform this action, then go to Kunena -> Tools -> Diagnostics and check the number of orphaned attachments and post the tally here. But do not delete the broken items!

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

More
2 days 11 hours ago #5 by KZQ
Replied by KZQ on topic Attachment not found
Thanks Rich,
I've used the diagnostic tool in the past and while I do not know how the attachments became orphaned, I now know not to remove them. I spent a couple of hours last evening re-inserting attachments that Kunena previously lost track of. I had to ask the member to upload several hundred images to a folder on the internet so that I could have access to them.
Is there any way to identify which attachments are orphaned?
Thanks for your help!
Bill

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

More
2 days 7 hours ago #6 by rich
Replied by rich on topic Attachment not found
Orphaned attachments also are displayed in the diagnostic, when users upload attachments sloppy. It means, that the user had uses the browser back button and again the forwards button before save. Kunena register this as abort and enter no message ID for this image in the table row during save. (Blue Eagle templates have nevertheless some of this time displayed the image in messages, so I think, you use Blue Eagle.)

Have you a test page and also a database backup before you've removed the orphaned attachments?
Then import this database backup in your test page and click on the table #_kunena_attachments. Sort this table rows by mesid. The result is probably now such as on the image. You see on top of the rows, that the mesid is 0. Such rows will deleted if you use the option remove orphaned attachments.



You see at the folder number, which user has uploaded this image and on the right side of a row also the real image name.
I don't know your database knowledge, but this rows you must copy back in your live database.
If you are lucky, then the images are displayed again also without mesid. But I still recommend that you enter the mesid, otherwise the problem can occur again.
The mesid you can find in the frontend right at the messages (with click on message number)
Attachments:

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

More
2 days 6 hours ago #7 by KZQ
Replied by KZQ on topic Attachment not found
Thank you Rich,
That's very helpful. I'll work on digesting it. My database knowledge is very limited but I do have support folks I can call on.
Bill

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.091 seconds