Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Miscellaneous
FindRetros
Help & Support
Redirect Loop
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JynX" data-source="post: 426974" data-attributes="member: 66193"><p>Your issue is the fact that you're checking if they have voted and redirecting them to the client.</p><p><img src="https://image.prntscr.com/image/kHdyAbpGSeWPC9vC3Jwlnw.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>If they are on the client when this check is ran and they HAVE voted it will just endlessly redirect forever. Chrome stops this by throwing the error that you posted which stops the endless loop. This code is also not good considering they won't be able to access ANY other page than the client after they have voted.</p><p></p><p>Check Josh's vote validator on Github here: <a href="https://github.com/FindRetros/Vote-Validator" target="_blank">https://github.com/FindRetros/Vote-Validator</a></p><p></p><p></p><p>In case you're lazy you can just use the following instead of the code you have..</p><p>[PHP]<?php</p><p></p><p>require_once 'findretros_config.php';</p><p>require_once 'findretros.php';</p><p></p><p>$FindRetros = new FindRetros();</p><p></p><p>if($FindRetros->hasClientVoted()) {</p><p></p><p>}else{</p><p> $FindRetros->redirectClientToVote();</p><p>}[/PHP]</p></blockquote><p></p>
[QUOTE="JynX, post: 426974, member: 66193"] Your issue is the fact that you're checking if they have voted and redirecting them to the client. [IMG]https://image.prntscr.com/image/kHdyAbpGSeWPC9vC3Jwlnw.png[/IMG] If they are on the client when this check is ran and they HAVE voted it will just endlessly redirect forever. Chrome stops this by throwing the error that you posted which stops the endless loop. This code is also not good considering they won't be able to access ANY other page than the client after they have voted. Check Josh's vote validator on Github here: [URL]https://github.com/FindRetros/Vote-Validator[/URL] In case you're lazy you can just use the following instead of the code you have.. [PHP]<?php require_once 'findretros_config.php'; require_once 'findretros.php'; $FindRetros = new FindRetros(); if($FindRetros->hasClientVoted()) { }else{ $FindRetros->redirectClientToVote(); }[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous
FindRetros
Help & Support
Redirect Loop
Top