- Posts: 13
- Thank you received: 1
Kunena 6.2.5 & module Kunena Latest 6.0.7 released
The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2
Question No Avatar upload in user profile since K 5.1
When a user will change the default profile image (Avatar) to a new image, the user is clicking Edit profile.
Then go to Avatar-image. Then the user will upload a new image with the correct size and file format. The image is shown at the desktop but in the console there is an error message "POST check.mydomain.de/profil/index.php?option=com_kunena .... &task=upload&format=json 404 (Not found)" (Screenshot).
After click at Save. The message that the profile is saved will apear. But when you go back to the profil/avatar page. There is nothing changed (No Upload, No Avatar).
I've testet on Version K 5.0.13 and every thing is working fine. But with backup from K 5.1 until now K 5.5 there is an upload no more possible.
I am using sh404sef and if I disable sh404sef it works! What can I do?
Please Log in or Create an account to join the conversation.
www.kunena.org/forum/k5-1-support-archiv...n%C2%B4t-runs#202771
Please Log in or Create an account to join the conversation.
I've testet with two different Templates and on my Server. I can see this request:
Template purity_III
I am thinking there ist a problem with incorrect URL. Kunena is using a relative URL instead of a relative to site or absolute one .
Please Log in or Create an account to join the conversation.
You're right, but it's not the relative url, it adds a double slash to the path to "media" if you set in Crypsis "Load bootstrap css" and "Load Icomoon icons".I am thinking there ist a problem with incorrect URL. Kunena is using a relative URL instead of a relative to site or absolute one .
Can you please test something? Go to "/components/com_kunena/template/crypsis/template.php" line 87 - 93 and remove the slashes at the beginning before "media". Then empty the cache and test, whether it works.
Please Log in or Create an account to join the conversation.
1. Crypsis "Load bootstrap css" and "Load Icomoon icons".
2. remove the slashes at the beginning before "media".
But it is the same problem. No Avatar ist uploading and "POST /profil/edit/index.php?option=com_kunena&view=user&task=upload&format=json HTTP/1.1" is still logging 404 (Serverlogfile).
What do you think about to "use of RELATIVE URL instead of JRouted URLs, which is not OK"?
Please Log in or Create an account to join the conversation.
I'm not sure, but know, that relative urls within the forum not always correct linking, when the Joomla installation is in a extra folder (not on root).What do you think about to "use of RELATIVE URL instead of JRouted URLs, which is not OK"?
I've noticed on your page, that on the addresses it lacks the word "forum" such as:
webaddress/index
webaddress/recent and so on..
Are this addresses created by sh404sef?
If you open a topic it shows correct webaddress/forum/topicname
If you want upload a avatar the address is correct?
Should be .../forum/profile/edit/xxx-username.html (xxx is user id).
Please Log in or Create an account to join the conversation.
I've send your note about missing word "forum" in URL to sh404SEF. After that I've got this answer:
sh404SEF: None that I can think of.What option can I use to generate URL like webaddress/forum/profile/edit/xxx-username.html (xxx is user id)?
sh404SEF: That's expected as the And when the bug will be fixed in Kunena, they will also upload.If edit that generated URL on sh404SEF with leading word "forum/" avatar is uploading!
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.
The problem is in (for Kunena 5.1.1) /components/com_kunena/template/crypsis/assets/js/upload.avatar.js at line 40.
Incorrect code:
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
Please Log in or Create an account to join the conversation.
- [email protected]
- Offline
- New Member
- Posts: 7
- Thank you received: 0
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.
- [email protected]
- Offline
- New Member
- Posts: 7
- Thank you received: 0
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:As mentioned earlier, this is using directly index.php?option=com_kunena&view=user&task=upload&format=json instead of an absolute URL.Code:$('#fileupload').fileupload({ url: 'index.php?option=com_kunena&view=user&task=upload&format=json',
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.