Sunday, March 21, 2010

Fixing NetConnection.Call.BadVersion

After trying out AMFPHP 1.9 (yep, 1.9 -- although it's also called 2.0) that came out stable last 2nd of February 2010, I was almost ready to give up because of the "NetConnection.Call.BadVersion" errors that I'm getting when I try even a simple HelloWorld call. Followed every suggestions found on the Internet but none fixed the problem.

Then I tried checking out the AMFPHP code. I started with gateway.php. On line 106, changing PRODUCTION_SERVER to false fixed the problem.

It turns out that PRODUCTION_SERVER is set to true by default now.


Anonymous said...

THANKS A TON...! That worked!

creek23 said...

No problem. Glad I could help. ;)

Anonymous said...

Worked. Thank you!

creek23 said...

Hmm... 2 Thank You comments in less than a month.

This could also mean two things. Either more people are starting to use AMFPHP, or I'm being flooded with "Thank you" spam. :|

Anonymous said...

I have already set this value to "false" but still I am getting this error. In my case it does not happen every time I try to connect but in a day it happens for 3 to 4 times out of 10 attempts.