vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   security token was missing (https://vborg.vbsupport.ru/showthread.php?t=302868)

chikuru 10-01-2013 07:21 PM

security token was missing
 
Im getting this message from my custom plugin:

Code:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

I have included these on the plugin codes but im still getting the error.
Code:

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

I also added
Code:

define('CSRF_PROTECTION', true);
Inside my plugin file..

It seems like security token is changing after the Paypal redirects back to my forums..

ozzy47 10-01-2013 08:11 PM

I think the whole code would need to be seen in order to debug it.

chikuru 10-01-2013 08:22 PM

Here is the code of the form..

Code:

                <form action="{vb:raw ptpnt_action}" method="post">
                <vb:if condition="$ptpnt_total_price">
                        <input type="hidden" name="cmd" value="_xclick" />
                        <input type="hidden" name="business" value="{vb:raw ptpnt_ppemail}" />
                        <input type="hidden" name="item_name" value="{vb:rawphrase post_new_thread}" />
                        <input type="hidden" name="item_number" value="{vb:raw ptpnt_item}" />
                        <input type="hidden" name="currency_code" value="{vb:raw foruminfo.ptpnt_currency}" />
                        <input type="hidden" name="amount" value="{vb:raw ptpnt_total_price}" />
                        <input type="hidden" name="no_shipping" value="1" />
                        <input type="hidden" name="shipping" value="0.00" />
                        <input type="hidden" name="return" value="{vb:raw vboptions.bburl}/forumdisplay.php?{vb:raw session.sessionurl}f={vb:raw foruminfo.forumid}" />
                        <input type="hidden" name="cancel_return" value="{vb:raw vboptions.bburl}/forumdisplay.php?f={vb:raw foruminfo.forumid}" />
                        <input type="hidden" name="notify_url" value="{vb:raw vboptions.bburl}/buythread.php?do=paypal" />
                        <input type="hidden" name="custom" value="{vb:raw bbuserinfo.username}" />
                        <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                        <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                        <input type="hidden" name="do" value="process" />
                        <input type="hidden" name="no_note" value="1" />
                        <input type="hidden" name="tax" value="0.00" />
                <vb:else />
                        <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                        <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                        <input type="hidden" name="do" value="process" />
                        <input type="hidden" name="f" value="{vb:raw foruminfo.forumid}" />
                        <input type="hidden" name="do" value="{vb:raw ptpnt_do}" />
                </vb:if>

                <h2 class="blockhead">{vb:rawphrase post_new_thread} - {vb:rawphrase ptpnt_payment_required}</h2>
                        <div class="blockbody formcontrols settings_form_border">       
                                <div style="width:100%">
                                        <div style="float:left;width:50%;"><h3 class="blocksubhead">{vb:rawphrase title}</h3></div>       
                                        <div style="float:left;width:50%;"><h3 class="blocksubhead">{vb:rawphrase ptpnt_description}</h3></div>
                                </div>
                        <div class="section"">
                                <div class="blockrow">       
                                        <div style="float:left;width:50%;">{vb:rawphrase ptpnt_forum_for_thread}</div>       
                                        <div style="float:left;width:50%;"><a href="forumdisplay.php?{vb:raw session.sessionurl}f={vb:raw foruminfo.forumid}">{vb:raw foruminfo.title}</a></div>                               
                                </div>
                                <div class="blockrow">       
                                        <div style="float:left;width:50%;">{vb:rawphrase ptpnt_price_per_thread}</div>       
                                        <div style="float:left;width:50%;">{vb:raw ptpnt_price} {vb:raw foruminfo.ptpnt_currency}</div>                               
                                </div>
                                <div class="blockrow">       
                                        <div style="float:left;width:50%;">{vb:rawphrase ptpnt_maximum_threads_allowed}</div>       
                                        <div style="float:left;width:50%;">{vb:raw foruminfo.ptpnt_threads}</div>                               
                                </div>
                                <vb:if condition="$ptpnt_total_price">
                                <div class="blockrow">       
                                        <div style="float:left;width:50%;">{vb:rawphrase ptpnt_number_of_threads}</div>       
                                        <div style="float:left;width:50%;">{vb:raw ptpnt_num_threads}</div>                               
                                </div>
                                <div class="blockrow">       
                                        <div style="float:left;width:50%;font-weight:bold;">{vb:rawphrase ptpnt_total_price}</div>       
                                        <div style="float:left;width:50%;">{vb:raw ptpnt_total_price} {vb:raw foruminfo.ptpnt_currency}</div>                               
                                </div>                               
                                <vb:else />
                                <div class="blockrow">       
                                        <div style="float:left;width:50%;">{vb:rawphrase ptpnt_enter_number_of_threads_to_purchase}</div>       
                                        <div style="float:left;width:50%;"><input type="text" name="num_threads" value="1" /></div>                               
                                </div>
                                </vb:if>                               
                        </div>
                               
                        </div>
                       
                        <div class="blockfoot actionbuttons settings_form_border">
                                <div class="group">                               
                                <vb:if condition="$ptpnt_total_price">
                                        <input type="submit" class="buybutton" value="{vb:rawphrase ptpnt_purchase}" />
                                <vb:else />
                                        <input type="submit" class="buybutton" value="{vb:rawphrase submit}" tabindex="1" accesskey="r" />
                                </vb:if>
                                </div>
                        </div>       
                </form>



All times are GMT. The time now is 09:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00999 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete