Menu

erreur amfphph

Developers
2010-01-17
2013-01-04
  • fabien stouder

    fabien stouder - 2010-01-17

    i'm under fedora.. and i hace the error following when i want to connect to http:/localhost/amfphp/brpwser.phph

    (mx.rpc::Fault)#0
      errorID = 0
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed"
      faultString = "Send failed"
      message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed'"
      name = "Error"
      rootCause = (Object)#1
        code = "NetConnection.Call.Failed"
        description = "HTTP: Failed"
        details = "http://localhost/html/amfphp/"
        level = "error"

    why?
    thanks for your helping

     
  • ariels

    ariels - 2010-01-18

    Have you tried accessing the gateway with your browser? http:/localhost/amfphp/gateway.php
    Ariel

     
  • Mayur Mohite

    Mayur Mohite - 2010-01-20

    I am facing some problem in amfPHP i already installled amfPHP in my root folder of wampserver on my localhost  when i call url
    http://localhost/amfphp/browser/   -  the error occures

    ** "Error retrieving service info:
    Function eregi_replace() is deprecated
    C:\wamp\www\amfphp\core\shared\util\MethodTable.php on line 505  "**

    how to solve fix this error help me plz

    **Thanks
    Mayur Mohite **

     
  • Mayur Mohite

    Mayur Mohite - 2010-01-20

    my email addres is   mayurshirishmohite@gmail.com

     
  • kg_sb

    kg_sb - 2010-02-07

    Hello - I have the same problem as Message 1 above - gateway.php says all okay but browser access gives the above error. I have replaced my MethodTable.php file with the revision 18 from the link given, but the error remains the same.

    configuration: apache 2.2.14, php 5.3, win xp sp2

    any suggestions?

     
  • ariels

    ariels - 2010-02-08

    Hi,
    have you tried the latest release? 1.9 came out a few days ago.
    bye
    Ariel

     
  • Gauthier Van Vreckem

    I tried the new version, and it's still has issues with php 5.3 when using the strict mode.
    The sample amf code works as do the gateway browser.
    However, anything a bit complex or generating errors will explode the gateway with static call to method not declared static.
    I added the static declaration where appropriate (a lot of changes), but still couldn't get it to work reliably.
    Had to switch to SabreAMF to get my gateway to work. (Win 2008 R2 IIS7.5 php 5.3.1)

     
  • ariels

    ariels - 2010-02-12

    Hi,
    Sorry to hear that. By strict, do you mean something like this?
    error_reporting(E_ALL);
    As I understand PHP doesn't have a strict mode, as you might in Perl.
    Could you post your errors?
    Ariel

     
  • Gauthier Van Vreckem

    yes, I mean E_ALL or E_STRICT
    I do not have access to the server at the moment, but IIRC the first of the errors was in /core/shared/exception/MessageException.php line 39
    $this->level = MessageException::getFriendlyError($code);
    and effectively, line 85 we have function getFriendlyError ($err) {
    instead of (public/private ?) static function getFriendlyError ($err) {
    I corrected several such error and finally did a search on :: to find the Method called statically and added the static declaration where needed. There where a lot of those. Finlay I still hit a snag when the ReflectionClass getMethods() didn't find any methods. But I'm quiet sure I messed up on some static call which I should instead have converted to $this->

     

Log in to post a comment.

MongoDB Logo MongoDB