- Posts: 5
- Thank you received: 1
Kunena 6.1.3.2 Released
The Kunena team has announce the arrival of Kunena 6.1.3.2 [K 6.1.3] which is now available for download as a native Joomla extension for J! 4.2.x/4.3.x. This version addresses most of the issues that were discovered in K 6.1.0 and issues discovered during the last development stages of K 6.1
Solved User can't post a message - Unsupported operand types: string + string
Our kunena forum has been migrated some weeks ago from Joomla 3 to 4 and we are now using latest version of kunena.
joomla: 4.3.2
kunena: 6.1.1
template/theme with gantry5 / helium
Some user are not able to post replies and they have following error displayed on their side:
"0 Unsupported operand types: string + string"
I'm not able on myside to reproduce the issue.
In webserver logs I can see a 500 response code on POST https://FQDN/
Enabling some debug on joomla I get this stack (I'm obfuscated the IP address)
kunena debug mode is not showing info (I guess this is only available for admin account ?)
Happy to give you more context / info.
Please Log in or Create an account to join the conversation.
I've looked into the code and debug a bit the issue.
The error appears in (), near line 1422, there is a SQL that do:
select MAX(time) from kunena_messages where ip='USER_IP';
where USER_IP is a parameter,
It looks like the result is malformated and is not a date in some cases.
I notice that in the table the ip column can have NULL in some cases.
Also, I was wondering if the following code is supposed to be ok if we don't find the IP, $lastPostTime is NULL in this case ?
Please Log in or Create an account to join the conversation.
Is it a joomla migration 3 => 4 (or following kunena update) that were not OK ?
Should I fix account in the table ?
Please Log in or Create an account to join the conversation.
I haven't looked yet at this issue, if you modify directly in the table the issue could come an another time with others users
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
I can provide you with some data from DB if needed
Please Log in or Create an account to join the conversation.
Has been working fine until Kunena 6.1.1 and then Registered users started reporting issues replying to posts.
Super Users are not affected by this problem.
Submitting a Reply in "Private message" works just fine but not in standard "Message". "Thank you" features and "Polls" work too.
Strangely, if a registered user posts a "Private message" and then edits it to become a standard "Message", the post is saved correctly.
Disabling flood protection in the Kunena config removes the problem as reported by oxygen77 (Thanks for that tip) but setting it to a high value does not resolve the issue
Please Log in or Create an account to join the conversation.
I have just made a fix it, there is it : github.com/Kunena/Kunena-Forum/commit/fa...b19557ebd4c0f0ce0d5a
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
I've manualy patch the code on my side and I think it has solved the issue.
good job again
Please Log in or Create an account to join the conversation.
Thank you for sorting this out so quickly
Please Log in or Create an account to join the conversation.