News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[4072]A poll can not be removed.

Started by Bilgehan, December 03, 2009, 04:01:28 PM

Previous topic - Next topic

Bilgehan

Hello ;)

after upgrading from 1.1.10 to 1.1.11.

A poll can not be removed. It then appears the following error:

QuoteAn Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

[SiNaN]

I can confirm this. Looks like a checkSession('get') is added to RemovePoll() function in Poll.php but the button 'url' in Display.template.php lacks session id.
Former SMF Core Developer | My Mods | SimplePortal

NO CARRIER


Dujma

I have this problem too. Is there any fix for this? I'v used search but only this topic appeared.

Norv

Please find in Display.template.php of the default theme, as well as from your theme currently used: (./Themes/default/Display.template.php, ./Themes/your_theme/Display.template.php)
Code (find) Select

'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'] . "),

Code (replace) Select

'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']),
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

NO CARRIER


Dujma


Advertisement: