PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

URL Redirect problem (v 1.5 paypal add on)

  1. Hello,

    I have a problem with the redirect from Paypal to my site, as the redirect URL get :8000 added to it, that's to say:

    http://mysite.com:8000/etc

    and it doesn't work.

    Anybody know why is this happening please?

    Thank you in advance

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  2. Please post a URL to the page on your site where the form is embedded so we can take a look. Thank you.

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  3. Thank you Chris

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  4. Please see this related topic and let me know if this addresses your situation:

    http://www.gravityhelp.com/forums/topic/paypal-returning-url

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  5. Thank you, it is exactly the same problem. Port :8000 is used by nginx. But the difference is that I cannot turn it off((

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  6. If the server is setting $_SERVER["SERVER_PORT"] to port 8000, Gravity Forms will pick up on that. Unfortunately your site is not running on the same port. If you're not able to change that with your host, I don't know of a way around that in Gravity Forms. You might be able to redirect the traffic in your .htaccess file, or you could modify the Gravity Forms plugin file, which we never recommend, because you would lose those changes when the plugin is updated. You could also use PHP auto_prepend_file to reset the $_SERVER variable on all your PHP files.

    I think the issue is in the host configuration though, since the server is returning that value for that variable, and Gravity Forms obeys that.

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  7. Thank you Chris for all your support,

    Until I find another solution I changed the plugin so if the port is not :80 it is not added to the return url, and now it works.

    Do you know what are the consequences of not adding the port?

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  8. No negative consequences I don't think. That is designed for sites which ARE run on a different port, so the IPN comes back to the correct location. In your case, your port is port 80, so your change should be fine for now. You will lose that change when you update the plugin however.

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  9. Ok thank you Chris for your help and support

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  10. You're welcome.

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink

This topic has been resolved and has been closed to new replies.