Hi,
is anyone else having problems with removing polls from a topic in 1.1.11?
I get this error:
Session verification failed. Please try logging out and back in again, and then try again
Which I did, without success...
As of 1.1.11, there was an additional session check added; your Display.template.php needs updating to include the session variable in the remove-poll link. It's done in the default theme.
Hi, i have the same problem:
Quote
An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.
Please can you tell me what is the part of the code that i have to paste in
Display.template.php of my theme?
Thank you.
Then? How to solve this problem?
Please fix it! It is a bug of SMF v1.1.11!
No, it's a bug in your theme. You might want to ask the theme author about it.
Quote from: Arantor on January 08, 2010, 07:40:39 PM
No, it's a bug in your theme. You might want to ask the theme author about it.
Ok, i will. Thanks.
I posted there and they said that it's not a problem depending by custom theme neither default theme.
(see http://www.tinyportal.net/index.php?topic=12933.160)
Can you help me to try to understand what is the matter?
So does it work on the default theme?
Quote from: Arantor on January 14, 2010, 02:51:51 AM
So does it work on the default theme?
No, i get the same error:
QuoteSession verification failed. Please try logging out and back in again, and then try again
What could be the problem?
I have the same problem and I'm using the default theme, please HELP!!!!!
By the way....I don't think it's a bug in the theme, I've just installed a brand new smf 1.1.11 , I don't use custom theme's (as I said before I'm using the default theme) and I've still got the problem. So it's a bug in SMF 1.1.11
None has the solution to this bug?
i've fixed it!!!
open Themes\default\Display.template.php
find this
'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
replace with
'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
It worked! Thank you very much!
@admins: Please mark this topic as solved!
Tim (http://www.simplemachines.org/community/index.php?action=profile;u=12) - were you able to use this suggestion and solve your issue?
@ mizuno151 : Thank You.... Thank You so much!!!!!!!!!!!!
Be sure and make this change on every theme that you use.
It should be solved with this but it isn't in my case...I tried manualy fixing it, and the diffrence is:
';sesc='...where I have ";sesc='... but if I try to change theme collapses?
You shouldn't have a double quote on that line. Copy about 5 lines before and 5 lines after and post it here.
Here it is from my default theme:
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ";sesc=" . $context['session_id']),
'calendar' => array('test' => 'calendar_post', 'text' => 'calendar37', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
);
if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');
My mod, Fix Session Verification for Polls (http://custom.simplemachines.org/mods/index.php?mod=2403) fixes this issue.
I sometimes get this error when just logging out
Quote from: Labradoodle-360 on February 12, 2010, 11:09:03 AM
My mod, Fix Session Verification for Polls (http://custom.simplemachines.org/mods/index.php?mod=2403) fixes this issue.
Tried, nothing changes either in default theme or others, then mannualy tried and can't move " or everyting collapses...strange and anoying problem.
....just realized where could be a problem...I have additional polls mod installed, could that be a reason?
Yes, I don't think additional polls has been fully updated for 1.1.11.
Quote from: romper on February 12, 2010, 01:46:44 PM
....just realized where could be a problem...I have additional polls mod installed, could that be a reason?
That would probably be the issue. You might check with the mod author to see if there are plans to update it for 1.1.11.
And of course no uninstall option just delete of the mod....so I have to do it mannualy, but pretty confident that was the issue.
Yep, the uninstall option disappears when you upgrade the forum. If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.
Hello there.
The code in the display.template of the theme I'm using is a little difference.
if ($context['can_remove_poll'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] .'" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';
Could you tailor your solution to fit this too please?
Appreciate your help.
@Rehash D Internet - I have done this for you on my mods support topic.
Labradoodle-360
Quote from: mizuno151 on January 22, 2010, 03:52:08 PM
i've fixed it!!!
open Themes\default\Display.template.php
find this
'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
replace with
'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
You are a star! it is people like you who make the difference.
This topic does contain the solution, thus I am marking it solved.
Quote from: JimM on September 25, 2010, 05:09:53 PM
This topic does contain the solution, thus I am marking it solved.
indeed it does, and it is such an easy and fast solution. thank you for that.
mizuno151: Thank you for this fix. Saved me a lot of time