XMLRPC Issues!

Discussion in 'Troubleshooting' started by simplyr, May 8, 2011.

  1. simplyr

    simplyr Member

    Joined:
    Jul 25, 2010
    Messages:
    75
    Hey,

    I am getting a few errors:

    Both at URL: /client/xmlrpc/index.php

    <b>WARNING:</b> Cannot modify header information - headers already sent by (output started at /client/rconfig.inc.php:401) in line 379 of file /home/caught/public_html/redhostsolutions.info/client/xmlrpc/ixr.inc.php

    <b>WARNING:</b> gethostbyaddr() [<a href='function.gethostbyaddr'>function.gethostbyaddr</a>]: Address is not a valid IPv4 or IPv6 address in line 1617 of file client/plugins/db/mysql/mysql.inc.php

    Any ideas? I am using aMember Remote. Also when some people (very rare) try to login on the remote site they get this:

    Warning: XMLRPC Error - -32700 : parse error. not well formed in /home/caught/public_html/amember_remote/common.inc.php on line 240

    Thanks,
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    check your rconfig.inc.php file and make sure there are no extra spaces/carriage returns at the end.
  3. simplyr

    simplyr Member

    Joined:
    Jul 25, 2010
    Messages:
    75
    Have done, still getting errors.

    I am using this in the config file:

    $_SERVER['REMOTE_ADDR'] = $_SERVER[ 'HTTP_X_FORWARDED_FOR' ];

    As suggested when aMember was logging the server IP for all users.


    Read on this forum (http://www.amember.com/forum/showthread.php?t=12065) that someone else was having this issue, their fix is already what I was given by Alex.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    It seems that HTTP_X_FORWARDED_FOR have incorrect value then.
    Try to print it and check what value it have?
  5. simplyr

    simplyr Member

    Joined:
    Jul 25, 2010
    Messages:
    75
    Print it? Sorry I don't follow.
  6. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    For instance try changing

    $_SERVER['REMOTE_ADDR'] = $_SERVER[ 'HTTP_X_FORWARDED_FOR' ];
    to

    test$= $_SERVER[ 'HTTP_X_FORWARDED_FOR' ];
    echo test$;
    exit;

    and what value is returned?

Share This Page