Home > Flash Platform, Zend_Amf > Zend Amf NetConnection bug resolved w/ Amf3

Zend Amf NetConnection bug resolved w/ Amf3

October 22nd, 2008

If you are testing out Zend Amf and were getting call bad version errors w/ complex amf3 data types check out the latest Zend Framework 1.7 preview release. You really just need to update Zend_Amf_Server in order to get the patch.

Here is the bug tracker if your still having issues.

amf3 typed objects sent to server via NetConnection fail

Flash Platform, Zend_Amf

  1. October 22nd, 2008 at 15:35 | #1

    I think this is what you’re getting at, but just to be crystal clear: to get this patch, you’d have to checkout the latest version of Zend_Amf from standard/trunk in SVN. Great work, Wade!

    ,Wil

  2. Kim
    December 26th, 2008 at 16:02 | #2

    Hi Wade,

    I’m still getting a NetConnection.Call.BadVersion when sending more than one custom class instance using the NetConnection class.
    It seems that the remote method only gets a single argument, as PHP is throwing a warning, saying something like:

    “Missing argument 2 for..”

    Everything works great when using RemoteObject, hitting the exact same method with the exact same parameters..!?

    Cheers and keep up the great work,
    Kim

  3. March 21st, 2009 at 13:02 | #3

    This is still not working for me… I can’t send more than a parameter to a php function. I’ve downloaded the latest version and I still get the same problem.

  4. May 27th, 2009 at 08:43 | #4

    Hi Wade,

    I’m working with the version 1.8 of ZF and when I’m trying to send a request to the server, I get this error in my faultHandler method :

    faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: ‘http://host/php-flex/current/server.php’

    Did you already get this error? If yea, how did you fix it?

    Thank you very much.

  5. Surt
    July 2nd, 2009 at 11:29 | #5

    @Joris
    Same here, when i try to make my amf server from a controller i get this error, i just can make it work with old plain php and includes for the libraries.

  6. July 28th, 2009 at 13:03 | #6

    @Joris ; @Surt

    I am now getting this same error using ZF 1.8 Flash Player / on Flex does anyone know the cause? The endpoint is there??

  7. Whippersnapper
    December 21st, 2009 at 12:35 | #7

    One reason for the NetConnection.Call.BadVersion error is PHP files that are encoded in other than ANSI. For example UTF-8 will NOT work. Propably because Zend_AMF is encoded in ANSI.

    So if you can connect to the gateway file but the response’s content-type isn’t application/x-amf, then check the encoding of your PHP files.

  8. January 5th, 2010 at 10:36 | #8

    Hi ,
    thank you very much

    I wase more then 10 hr to resolve this bug .

    nice post.

  9. bruno
    January 28th, 2010 at 05:31 | #9

    hello,
    same error, how can I fixe ANSI encodage for php return
    thank a lot

  1. No trackbacks yet.