- Posts: 1
- Thank you received: 0
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)
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.
For now we patched this way and all the issues get solved:
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.
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.
14 years 10 months ago #98004
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: [K1.6.4] Possible bug in poll time to live check code (pollbox.php)
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'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.
14 years 5 months ago #110225
by pequeno74
Replied by pequeno74 on topic Re: [K1.6.4] Possible bug in poll time to live check code (pollbox.php)
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.
I´ll try this fix.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #110239
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: [K1.6.4] Possible bug in poll time to live check code (pollbox.php)
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.
14 years 5 months ago #110242
by pequeno74
Replied by pequeno74 on topic Re: [K1.6.4] Possible bug in poll time to live check code (pollbox.php)
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:
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.
14 years 5 months ago #110244
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: [K1.6.4] Possible bug in poll time to live check code (pollbox.php)
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