After upgrade to 3.4.2+ forwarding after ipn.php call. (paypal)

After upgrade to 3.4.2+ forwarding after ipn.php call. (paypal)

by Leon Schröder -
Number of replies: 3

Hello,

I don't get it. I upgraded my moodle 3.3.4+ to 3.4.2+. Now I get a forwarding to http://host when calling http://host/enrol/paypal/ipn.php. 

With this payments are not going through anymore. Why is this happening and more important, how to I solve this?

I went back to my backup (3.3.4+) and there is no forwarding. Response for receiving payment is normal OK Message. When entering http://host/enrol/paypal/ipn.php directly in browser nothing happens, only blank page as it should. But when donig the same with 3.4.2+ I get directly forwarded to http://host. If locked in http://host/my (dashboard)

I tried to enable debugging but have seen nothing. Direct forwarding. 

Anyone an idea what is happening here?


Average of ratings: -
In reply to Leon Schröder

Re: After upgrade to 3.4.2+ forwarding after ipn.php call. (paypal)

by Leon Schröder -

Sorry, forgot to mention. I have a test server running with same configuration/settings/courses. There update was no issue at all. 

In reply to Leon Schröder

Re: After upgrade to 3.4.2+ forwarding after ipn.php call. (paypal)

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Leon,
did you solve it?
It looks like a different web server configuration since Moodle, when you browse that page directly, will just exit with a proper HTTP Status, in the latest versions,

What is your actual Moodle version?
You can find it in the bottom of the Notifications page (Site Administration > Notifications, /admin/index.php?cache=1) e.g. 3.4.2+ (Build: 20180329).

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: After upgrade to 3.4.2+ forwarding after ipn.php call. (paypal)

by Leon Schröder -

Hi Matteo,

no, I haven't solved it so far. Still trying to figure out why it's happening.

Versions:

Productive System where it's functioning: 3.3.5+ -- simple OK return value, user is enroled 

Productive System where it's not functioning 3.4.2+ -- forwarding message as return value, user is not enroled

On Test Server (same web-hoster)

Moodle 3.4.2+ -- simple OK return value, user is enroled.


And that's what strucks me. Server configurations looks for me similar. On one it's working, on the other not. 

But on the one where 3.4.2+ is not responding as execpted, when returning to 3.3.5+ it's working.