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

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question [K1.6.4] Possible bug in poll time to live check code (pollbox.php)

More
14 years 10 months ago #97978 by fabibio
Investigating on some broken polls (eg: users unable to vote, etc) we hit a possible bug in pollbox.php.

When a "time to live" is set for the poll, the following conditional statement fails because the database field pollstimetolive (and hence $dataspollresult[0]->polltimetolive) contains a datetime value but the check is made against the current date and time formatted as unix-time.
Code:
} elseif (JFactory::getDate()->toUnix() <= $dataspollresult[0]->polltimetolive || $dataspollresult[0]->polltimetolive == "0000-00-00 00:00:00") {

For now we patched this way and all the issues get solved:
Code:
} elseif (JFactory::getDate()->toUnix() <= strtotime($dataspollresult[0]->polltimetolive)

Kunena 1.6.3 behave the same way.

Some of the dolved issues seemed to be the very same polls issues we read in previous posts in this forum.

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

More
14 years 10 months ago #98004 by xillibit
Hello,

I'am remember that i had fixed a bug like that in svn, but in different way but your fix is good too

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.

More
14 years 5 months ago #110225 by pequeno74
Hello, in K1.7.0 the limit time for poll don´t works, and users can vote after limit time.
I´ll try this fix.

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

More
14 years 5 months ago #110239 by xillibit
I'am not able to reproduce this issue, if the poll time limit has ended i can see only results

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.

More
14 years 5 months ago #110242 by pequeno74
I can vote and this fix don´t solve the problem.

In database, the jos_kunena_polls_users table, in the row "lasttime" have 0000-00-00 00:00:00 in all the votes. :huh:

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

More
14 years 5 months ago #110244 by xillibit
Yes, the field lasttime isn't filled :(, i'am checking that but i still don't understand where your issue come from

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: pequeno74

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

Time to create page: 0.224 seconds