Polls not working (Form invalid?)

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
PraetorianGuard
Registered User
Posts: 42
Joined: Mon Jan 19, 2009 6:51 am

Polls not working (Form invalid?)

Post by PraetorianGuard » Sat Aug 28, 2010 1:02 pm

Support Request Template
What version of phpBB are you using? phpBB 3.0.7-PL1
What is your board's URL? http://swe.swrw.net/rp_universe/
Who do you host your board with? Knownhost
How did you install your board? I used the download package from phpBB.com
Is your board a fresh install or a conversion? Update from a previous version of phpBB3
Do you have any MODs installed? No
Is registration required to reproduce this issue? Yes
What version of phpBB3 did you update from? phpBB 3.0.7
What styles do you currently have installed? twilightBB, blackbox, subsilver2
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 4
What is your level of experience? Comfortable with PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
When did your problem begin? Im not sure when it started, but we realised 2 days ago when a form was made on our forum and people tried voting.
Please describe your problem. When people try to hit vote on a poll they just get sent to an error page that says:

"
The submitted form was invalid. Try submitting again.

Return to the topic last visited".

And then people just get sent back to the poll again. Anyone who know what might be wrong?

I did however check the present theme we are using which is BlackBox, which says the following on their site:

Style version: 2.4 (subsilver2)
phpBB version: 3.0.7

Not sure if that is relevant or not
Generated by SRT Generator ($Rev: 4351 $)

User avatar
narqelion
I've Been Banned!
Posts: 7235
Joined: Sat Dec 13, 2008 5:00 pm
Contact:

Re: Polls not working (Form invalid?)

Post by narqelion » Sat Aug 28, 2010 2:05 pm

Temporarily switch your style (in UCP) to subsilver and see if you get the same error.

User avatar
t_backoff
Former Team Member
Posts: 6995
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: Polls not working (Form invalid?)

Post by t_backoff » Sat Aug 28, 2010 2:07 pm

I'm unable to reach your site, but this could be an issue with my location. If you switch to prosilver, does the problem still exist?

User avatar
_RocknRoll
Registered User
Posts: 237
Joined: Sat Aug 01, 2009 5:50 am

Re: Polls not working (Form invalid?)

Post by _RocknRoll » Sat Aug 28, 2010 2:17 pm

If Subsilver2 and Prosilver ( the default themes ) are working, they should be if you are using 3.0.7-PL1, then check the following for your other styles...
_RocknRoll wrote: template/viewtopic_body.html for missing " {S_FORM_TOKEN} "

in template/viewtopic_body.html ...
Find:

Code: Select all

         </table>
         	{S_HIDDEN_FIELDS}
Add after:

Code: Select all

		{S_FORM_TOKEN}

PraetorianGuard
Registered User
Posts: 42
Joined: Mon Jan 19, 2009 6:51 am

Re: Polls not working (Form invalid?)

Post by PraetorianGuard » Sat Aug 28, 2010 2:38 pm

Code: Select all

			</table>
			{S_HIDDEN_FIELDS}
			{S_FORM_TOKEN}
			</form>
Is already in the file in question

PraetorianGuard
Registered User
Posts: 42
Joined: Mon Jan 19, 2009 6:51 am

Re: Polls not working (Form invalid?)

Post by PraetorianGuard » Sat Aug 28, 2010 2:41 pm

t_backoff wrote:I'm unable to reach your site, but this could be an issue with my location. If you switch to prosilver, does the problem still exist?
And using prosilver or Subsilver the problem does not persist. Only when using the blackbox theme, which I suspect is based on the older 2.4 Subsilver according to the information posted in the original post.

User avatar
_RocknRoll
Registered User
Posts: 237
Joined: Sat Aug 01, 2009 5:50 am

Re: Polls not working (Form invalid?)

Post by _RocknRoll » Sat Aug 28, 2010 4:36 pm

Have you tried to reinstall the style?
I just downloaded Blackbox from http://www.phpbb3styles.net/db/style/blackbox, installed, and Polls work fine straight out of the box.

PraetorianGuard
Registered User
Posts: 42
Joined: Mon Jan 19, 2009 6:51 am

Re: Polls not working (Form invalid?)

Post by PraetorianGuard » Sat Aug 28, 2010 8:08 pm

Deleted it, reuploaded it, reinstalled it, tested and found that it worked. Edited overall_header.php and it worked still.

So I don't know what was wrong, but it all works again :D

buildmyweb
Registered User
Posts: 3
Joined: Tue Nov 16, 2010 3:58 am
Contact:

Re: Polls not working (Form invalid?)

Post by buildmyweb » Thu Dec 09, 2010 3:56 pm

adding "{S_FORM_TOKEN}" in my instance of blackpearl style fixed the issue for me. thank you.

User avatar
Sorb
Registered User
Posts: 4
Joined: Thu Nov 13, 2008 5:05 pm

Re: Polls not working (Form invalid?)

Post by Sorb » Tue Feb 01, 2011 5:19 pm

Yes!! Adding {S_FORM_TOKEN} fixed the issue for me too, in our version of fisubice2. Thanks!! :D

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: Google [Bot], Yandex [Bot] and 51 guests