News:

Wondering if this will always be free?  See why free is better.

Main Menu

Remove poll

Started by Tim, December 29, 2009, 09:33:22 AM

Previous topic - Next topic

Tim

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...

Arantor

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.
Holder of controversial views, all of which my own.


smartmouse

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.

smartmouse

Then? How to solve this problem?

smartmouse

Please fix it! It is a bug of SMF v1.1.11!

Arantor

No, it's a bug in your theme. You might want to ask the theme author about it.
Holder of controversial views, all of which my own.


smartmouse

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.

smartmouse

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?

Arantor

So does it work on the default theme?
Holder of controversial views, all of which my own.


smartmouse

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

smartmouse

What could be the problem?

Deviliciouz

I have the same problem and I'm using the default theme, please HELP!!!!!

Deviliciouz

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

smartmouse

Quote from: smartmouse on January 08, 2010, 07:34:46 PM
Please fix it! It is a bug of SMF v1.1.11!

Quote from: Arantor on January 08, 2010, 07:40:39 PM
No, it's a bug in your theme.

Someone does not think like us...

smartmouse

None has the solution to this bug?

mizuno151

#15
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']),

smartmouse

It worked! Thank you very much!

@admins: Please mark this topic as solved!

JimM

Tim - were you able to use this suggestion and solve your issue?
Jim "JimM" Moore
Former Support Specialist

Deviliciouz

@ mizuno151 : Thank You.... Thank You so much!!!!!!!!!!!!

JimM

Be sure and make this change on every theme that you use. 
Jim "JimM" Moore
Former Support Specialist

romper

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?

JimM

You shouldn't have a double quote on that line.  Copy about 5 lines before and 5 lines after and post it here.
Jim "JimM" Moore
Former Support Specialist

romper

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();');

Matthew K.


Caesarrrrr

I sometimes get this error when just logging out

romper

Quote from: Labradoodle-360 on February 12, 2010, 11:09:03 AM
My mod, Fix Session Verification for Polls 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?

Arantor

Yes, I don't think additional polls has been fully updated for 1.1.11.
Holder of controversial views, all of which my own.


JimM

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.
Jim "JimM" Moore
Former Support Specialist

romper

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.

JimM

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.
Jim "JimM" Moore
Former Support Specialist

Rehash D Internet

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.

Matthew K.

@Rehash D Internet - I have done this for you on my mods support topic.

Labradoodle-360

Sincere

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.
Do you need a special mod for your smf forums? contact me for a quote.

JimM

This topic does contain the solution, thus I am marking it solved.
Jim "JimM" Moore
Former Support Specialist

Sincere

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.

Do you need a special mod for your smf forums? contact me for a quote.

BigMike

mizuno151: Thank you for this fix. Saved me a lot of time

Advertisement: