The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
I'm stuck!! No Redirect to PayPal Sandbox - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: I'm stuck!! No Redirect to PayPal Sandbox (/showthread.php?tid=1736)



I'm stuck!! No Redirect to PayPal Sandbox - jkuruppu - Nov 2nd, 2011

Hi,
I happened across Form Tools, and it looks great!! I have struggled in the past with PayPal integration, so I thought your donate form looked like the ideal solution (especially as this is for a non-profit organizations donation page!!)

In the process of setting up the form, I got to the bottom of the "Adding the donation form to Form Tools" page of the tutorial, and step 10 says:
Quote:10. Open up the donation form again in your browser (index.php). Put through another submission, this time you should be redirected to PayPal.

but, no PayPal Sandbox page...instead i get this:
Quote:
ERROR

The submission was processed correctly, but you haven't specified a redirect URL for this form! Edit your form in the Form Tools UI and add the redirect URL.

do i need to specify something in redirect?? in Step 5, it specifically says "Leave the Redirect URL field blank"

I have set the option
Quote:// the Form Tools submission mode
$pp["mode"] = "live";

in the includes/library.php

not sure what to do next.

thanks,
janaki


RE: I'm stuck!! No Redirect to PayPal Sandbox - Ben - Nov 3rd, 2011

Hi Janaki,

Welcome to the forums!

Regarding your problem, it actually it looks like you may have some configuration problems. When you see that message it means that the submission was just added to Form Tools. But for PayPal integrations, generally you don't want to do that right away: you want to add the data but not "finalize" it in the database, so that incomplete submissions don't get added.

Are you following this tutorial?
http://docs.formtools.org/tutorials/paypal/

The form you're adding needs to be an API form, not a Direct/POST form. In the Form Tools interface, edit your form and on the Main tab, change it to "External" and API/Code. Then try putting through the submission again.

Good luck! I personally *hate* working with PayPal, so I know what it's like...! Smile

- Ben





RE: I'm stuck!! No Redirect to PayPal Sandbox - jkuruppu - Nov 7th, 2011

(Nov 3rd, 2011, 12:44 PM)Ben Wrote: Are you following this tutorial?
http://docs.formtools.org/tutorials/paypal/

The form you're adding needs to be an API form, not a Direct/POST form. In the Form Tools interface, edit your form and on the Main tab, change it to "External" and API/Code. Then try putting through the submission again.

Good luck! I personally *hate* working with PayPal, so I know what it's like...! Smile

- Ben

yes, i am using the tutorial located at the above url.

i do have the form set to External, and i changed from "Direct" to "Code (API), and resubmitted, but i'm still getting the error:
Quote:ERROR
The submission was processed correctly, but you haven't specified a redirect URL for this form! Edit your form in the Form Tools UI and add the redirect URL.

i feel like i'm missing something incredibly basic - i apologize for my obtuseness, and really appreciate your help!



RE: I'm stuck!! No Redirect to PayPal Sandbox - Ben - Nov 8th, 2011

Hi jkuruppu,

I think it's still the form type that's the problem: or you've set it up to point the form to the process.php script. The reason being, that's the only place that error gets output!

The form should have this as the form tag (or something very like it):

Code:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" onsubmit="return rsv.validate(this, rules)">

That will post the form to itself, which then uses the API to redirect to the next page (paypal_submit.php). So there shouldn't be any links to process.php.

Any help...? Sorry, it's never easy setting these things up (that's why I'm working so frantically on the Form Builder: no more manual creation of forms!)

- Ben


RE: I'm stuck!! No Redirect to PayPal Sandbox - jkuruppu - Nov 8th, 2011

(Nov 8th, 2011, 10:08 AM)Ben Wrote: or you've set it up to point the form to the process.php script. The reason being, that's the only place that error gets output!

The form should have this as the form tag (or something very like it):

Code:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" onsubmit="return rsv.validate(this, rules)">

Hurray!! That was it - somehow, the form action did get set to point to the process.php script. now it's self-referring, and it did send me to the sandbox!! i'm back on my way now (although, for the time-being, i made up a form that submits to paypal that does actually work, but i hate it - you're right PayPal is awful to integrate!!)...

thanks so much!



RE: I'm stuck!! No Redirect to PayPal Sandbox - Ben - Nov 10th, 2011

Ah, wonderful! Smile

Good luck with the rest of it...!

-Ben