- Posts: 90
- Thank you received: 9
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 PDF handling seems broken in 5.1.5
since I upgraded to 5.1.5 with PHP 7.2 and current Joomla version attached PDFs cannot be opened any more. The URL points to
media/kunena/attachments/<userid>/<real filename> and end up in error 404
In my understanding they should be something like
.../attachment/<attachmentID> as it is also shown on images. Manually using that link works.
Something seems wrong with $attachment->getURL method . It happens in attachment info, attachment button and in embedded link in post text.
Second issue: What is also strange is that Kunena claims that current Firefox with embedded PDF viewer would not support PDFs. I can definitely read PDF on other systems within Firefox. This error is already around for a while. I think it was introduced with 5.1 .
It would be great if you could fix this.
Thanks for your great work!
Best regards, Goldie
Please Log in or Create an account to join the conversation.
I only added:
2) Which browser version do you use, also which os.
Firefox are removing/disabling some features like rss and other stuff of the next version 64
Please Log in or Create an account to join the conversation.
In my understanding they should be something like
.../attachment/<attachmentID> as it is also shown on images. Manually using that link works."
We need to use the real name on embed, because html5 embed needs a file extension, like .pdf to show up. It can't read the protected url. That's why I have added it.
But yes the bottom link should get the protected attachment, looks like it its getting the wrong inline value. I will check the issue
Please Log in or Create an account to join the conversation.
thanks for your quick reply. Yes this PDF is embedded in post.
I use Win 7 with current Firefox 62.0.3 64 Bit. I have just tried IE 11 and the attachment buttons also go to /media/... . But it shows PDF inline and I can read that PDF. On Firefox it does not show inline PDF but it shows
This browser does not support PDFs. Please download the PDF to view it:
followed by the same link that does not work. Now before you ask: Yes Firefox does have a PDF viewer and that works on other websites. I can open complete PDF files there and read them in FF without opening Adobe Reader. But I never have the effect of a builtin PDF viewer in a subwindow as in IE.
So as I again can only follow the link, no chance to open the PDF attachment.
Please Log in or Create an account to join the conversation.
I changed back your mod in libraries/kunena/attachment/attachment.php and yes I can open attachments via buttons below post or via "Download PDF" again.
Now it would be great if you could also give me a solution for viewing embedded PDFs on Firefox.
I also understand your troubles with the link naming. If HTML5 wants a link which ends in .pdf then there is no actual file behind it as all attachments have encoded filenames without a file ending.
Please Log in or Create an account to join the conversation.
Please check the console (f12) and copy here the error message.
Please Log in or Create an account to join the conversation.