Welcome, Guest
  • Author Topic: help with first steps on AMFPHP  (Read 1777 times)

    Anton

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    help with first steps on AMFPHP
    « on: 07/02/03, 19:51 »
    Greetings

    http://www.flash-db.com/Tutorials/hello/flashamfphp.php?page=3

    I have gone through the first steps tutorial on using AMFPHP but after completing the steps I have found that I get the following error msg:

    NetServices warning 3: There is no defaultResponder, but no responder was given in call to makeEcho

    does anyone have any idea what this might be and how I can fix it?

    thanks
    « Last Edit: 07/02/03, 19:51 by Anton »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:help with first steps on AMFPHP
    « Reply #1 on: 07/03/03, 11:41 »
    When you call a function, you pass some responder to the call. If the responder doesn't exists, then you get this error.

    Look in http://www.flash-db.com/Tutorials/hello/flashamfphp.php?page=3 at the code:

    [script]
    //This is the object who handles request

    request = new Object(); //handles result
    request.onResult = function(result){
     show.text = result;
    }

    ......

    service.makeEcho(request, "Hello World!");

    [script]

    When the service makeEcho is called, it pass the request object to handle the response. Since request object was defined and also his onResult, then it shows in the textbox. Check if your request object exists and follow the code as exposed in the tutorial

    Jorge

    Anton

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    Re:help with first steps on AMFPHP
    « Reply #2 on: 07/03/03, 16:08 »
    Thanks Jorge

    I'm not getting the orginal error message now, however in the NetDebugger I am getting the following errror::

    Status (object #2)
    .....code: 8
    .....description: "Undefined variable:  _SESSION"
    .....details: "c:\inetpub\wwwroot\flashservices\util\Authenticate.php"
    .....level: "Notice"
    .....line: 29

    Do you know what this means?

    I'm also still not getting the text to show up

    Thanks for your help - and for writing the tutorial - its very good!

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:help with first steps on AMFPHP
    « Reply #3 on: 07/04/03, 10:33 »
    Error reporting level in PHP gives advices on warning that breaks the amf stram. Look into your php.ini file and change this line:

    error_reporting = E_ALL

    with this

    error_reporting = E_ALL & ~E_NOTICE

    This way warnings don't break your stream

    Jorge