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 No Avatar upload in user profile since K 5.1

More
7 years 5 months ago #205047 by uz-online
Thanks for your answer.
I've send your note about missing word "forum" in URL to sh404SEF. After that I've got this answer:

What option can I use to generate URL like webaddress/forum/profile/edit/xxx-username.html (xxx is user id)?

sh404SEF: None that I can think of.

If edit that generated URL on sh404SEF with leading word "forum/" avatar is uploading!

sh404SEF: That's expected as the And when the bug will be fixed in Kunena, they will also upload.

sh404SEF: As long as Kunena will post to URL like /profil/edit/index.php?xxx, this will work on some pages and fail on some other depending on routing options. The only way out is those posting URLs to be fixed.

I am a bit desperate
Best regards

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

More
7 years 5 months ago #205125 by uz-online
I've got some more information about the bug in kunena fileupload since 5.1 from sh404SEF:

The problem is in (for Kunena 5.1.1) /components/com_kunena/template/crypsis/assets/js/upload.avatar.js at line 40.
Incorrect code:
Code:
$('#fileupload').fileupload({ url: 'index.php?option=com_kunena&view=user&task=upload&format=json',
As mentioned earlier, this is using directly index.php?option=com_kunena&view=user&task=upload&format=json instead of an absolute URL.

And after digging further in the code, even when the bug above is fixed, what I found is that Kunena itself is rejecting the request until the "Direct component access" option is set to "Yes" under its configuration.

I've change the Code at line 40 and Avatar uploading is working!
Best regards
The following user(s) said Thank You: cucumiau

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

More
5 years 11 months ago #213029 by [email protected]
Hello,
I have same problem. You change the Code at line 40 and Avatar uploading is working!
Let me know what is right syntax line 40?

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

More
5 years 11 months ago #213037 by [email protected]

uz-online wrote: I've got some more information about the bug in kunena fileupload since 5.1 from sh404SEF:

The problem is in (for Kunena 5.1.1) /components/com_kunena/template/crypsis/assets/js/upload.avatar.js at line 40.
Incorrect code:

Code:
$('#fileupload').fileupload({ url: 'index.php?option=com_kunena&view=user&task=upload&format=json',
As mentioned earlier, this is using directly index.php?option=com_kunena&view=user&task=upload&format=json instead of an absolute URL.

And after digging further in the code, even when the bug above is fixed, what I found is that Kunena itself is rejecting the request until the "Direct component access" option is set to "Yes" under its configuration.

I've change the Code at line 40 and Avatar uploading is working!
Best regards


Hello,
I have same problem. You change the Code at line 40 and Avatar uploading is working!
Let me know what is right syntax line 40?

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

More
5 years 11 months ago #213040 by uz-online
My Change is this:
Code:
url: 'profil/edit/index.php?option=com_kunena&view=user&task=upload&format=json',

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

Time to create page: 0.249 seconds