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

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
12 years 9 months ago #1 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
12 years 9 months ago #2 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
12 years 4 months ago #3 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
12 years 4 months ago #4 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
12 years 4 months ago #5 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
12 years 4 months ago #6 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.

More
12 years 4 months ago #7 by pequeno74

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

More
12 years 4 months ago #8 by xillibit
Try with this :


File Attachment:

File Name: kunena.pol...1-01.zip
File Size:5 KB

I don't provide support by PM, because this can be useful for someone else.
Attachments:

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

More
12 years 4 months ago #9 by pequeno74
Don´t work
Users can vote and appears 0000-00-00 00:00:00 too.

Sorry!
:unsure:

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

Time to create page: 0.407 seconds