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

Before posting new topics in this category K 1.5.x Support: Please read this first.

Question Warning: Invalid argument supplied for foreach() in /home/... /userlist/userlist.php on line 369

More
15 years 4 months ago #74632 by jentekk
Hi,

I'm using Kunena 1.5.13
Joomla 1.5.22


When searching my Userlist for a User I get the following error:


Warning: Invalid argument supplied for foreach() in /home/soldplic/public_html/mysite.com/components/com_kunena/template/default/plugin/userlist/userlist.php on line 369


Has anyone seen this, and is there a fix?

Thanks!

Jen

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

More
15 years 4 months ago #74741 by sozzled
I searched the forum for any previously reported cases of this issue and I could not find any.

A few things to consider: What Kunena template are you using? Does this happen with the default_ex template?

If this is a new installation of K 1.5, have you considered K 1.6 as a possible way to work through this problem? If this is a new installation of K 1.5 have you read Why are people using old versions of Kunena for new installations? We would like to receive feedback from people who are downloading and using K 1.5 when there is a better, more reliable, less error-prone version in K 1.6. Would you have a few moments to spare replying to the topic that I have just mentioned?

This problem (with K 1.5) may not be quickly fixed. I suggest you look at the alternatives that I have suggested in my response.

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

More
15 years 4 months ago #74744 by jentekk
Hi and thanks for your quick reply!

Yes, I am using default_ex template.

I'd originally installed K 1.6, but had to uninstall it and install 1.5 as an extension I am using is not compatible with Moo Tools 1.2.4 - that is my issue. :(

I will respond in the topic as you'd requested.

Thanks,

Jen

Warning: Invalid argument supplied for foreach()...

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

More
15 years 4 months ago - 15 years 4 months ago #74754 by sozzled
Thank you for your reply. As I mentioned previously, I haven't come across this situation before [strike]but it's possible (from what you wrote elsewhere) that another Joomla extension is clobbering Kunena on your website.

What you must do is try to reproduce these conditions on a test site running the J! 1.5.22 and K 1.5.13 and nothing else to see if other extensions are not the cause of this problem. We would greatly appreciate your report if you find that nothing else seems to be a contributing factor. I have tried myself and I cannot reproduce these errors. Sorry.[/strike]

EDIT: further testing ... see later reply
Last edit: 15 years 4 months ago by sozzled.
The following user(s) said Thank You: jentekk

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

More
15 years 4 months ago #74764 by diagusan

jentekk wrote: Hi,

I'm using Kunena 1.5.13
Joomla 1.5.22


When searching my Userlist for a User I get the following error:


Warning: Invalid argument supplied for foreach() in /home/soldplic/public_html/mysite.com/components/com_kunena/template/default/plugin/userlist/userlist.php on line 369


Has anyone seen this, and is there a fix?

Thanks!

Jen

Hi,
try replacing line 81 of userlist.php:
Code:
$query .= " AND (name LIKE '%{$kunena_db->quote($search)}%' OR username LIKE '%{$kunena_db->quote($search)}%') AND u.id NOT IN (62)";
with this:
Code:
$qs = $kunena_db->getEscaped(addslashes($search)); $query .= " AND (name LIKE '%{$qs}%' OR username LIKE '%{$qs}%') AND u.id NOT IN (62)";
I don't known if it's the correct solution, but it works.

Regards.
The following user(s) said Thank You: jentekk

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

More
15 years 4 months ago - 15 years 4 months ago #74909 by jentekk
Hi Diagusan,
Thanks for this snippet of code. It's saved my life for now.
I always hesitate altering component files, and only do so as a last resort. But in this case is it critical, and am using it on two sites.
Thanks again!
Jen
Last edit: 15 years 4 months ago by jentekk.

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

Time to create page: 0.299 seconds