Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

reCAPTCHA v2 API Settings - Token was not posted.

Asked Modified Viewed 1,676 times
T
tws
T
tws 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Greetings.


Just installed PHPFusion-9.0 on Debian-8.10 i686
Whilst infusing reCAPTCHA v2 I am seeing following messages.

Firstly, on top of the window on broad red strip
"Settings saved successfully", then after split second another
message overlaps the first one:
"Token was not posted
There was an error while processing your request"

Next, at the bottom of the window on black strip:
"WARNING: An error occurred while parsing the page.
Please see PHPFusion's Error Log for more details.L: 4 N: 0"

I do not see anything helpful in apache2 log files.
Exactly the same behaviour I observed on Debian-9.4 amd64.

I will be grateful for any help and/or suggestions.

Best regards - Tom.
2 replies

2 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

101 Guide on Upgrading Old Infusions to New Infusions

PHP Form Script:
This step will make that form generate a hidden token.

Replace:

$form_name = 'myform';
$method = 'post';
$action_url= BASEDIR.'url.php';


<form name='$form_name' method='$method' action='$action_url' >


With:

openform($form_name, $method, $action_url, array('enctype'=>FALSE) );


Set encytpe to TRUE if it needs to process $_FILES upload.

Now to use that CSRF protection, embed this into your $_POST event.

if (\defender::safe()) { // <--- This safeguards your SQL.
dbquery("UPDATE ".....");
dbquery("INSERT" ....");
}
0 replies
T
tws
T
tws 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Greetings chan.

Will put your suggestion into action ASAP.

Best regards.
Tom - SP2L
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
T
T
tws 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet