remote function soap-client-add.php error

Discussion in 'General' started by hopoo, Oct 25, 2010.

  1. hopoo

    hopoo New Member

    Hi all..

    I installed ispconfig 3.0.3 version on Ubuntu 10.10 Server.
    I am having problem in remote function.
    when i execute soap-client-add.php in example directory,
    a data record of a client is inserted with empty value.
    soap-mailuser-add.php is executed well

    This is error.log of apache
    -------------------------------------
    Undefined index: company_name in /usr/local/ispconfig/interface/lib/classes/remoting_lib.inc.php on line 551
    Undefined index: contact_name in /usr/local/ispconfig/interface/lib/classes/remoting_lib.inc.php on line 551
    ....
    -------------------------------------

    Please let me know the problem.

    Thanks.
     
    Last edited: Oct 25, 2010
  2. till

    till Super Moderator

    You are using the wrong php error reporting level. Please change the level in php.ini to:

    error_reporting = E_ALL & ~E_NOTICE

    and restart apache.
     
  3. hopoo

    hopoo New Member

    The above apache log was showed because I had changed the loglevel
    in [system>server config>server tab]

    After I also changed php.ini to error_reporting = E_ALL & ~E_NOTICE
    I have same result that a data record of a client is inserted with empty value..

    I think, is this maybe a bug of new version 3.0.3.?

    Thank Till~~~
     
  4. till

    till Super Moderator

    And you are sure that you have set the variebles company_name and contact_name with valid values in your remoting script?
     
  5. hopoo

    hopoo New Member

    I used ./src/ispconfig3_install/remoting_client/examples/soap-client-add.php.
    I set the variable $username/$password in soap_config.php.

    I changed only two variable (username/password) in soap-client-add.php
    'username' =>'hopoo'
    'password' =>'1234567',
    and I didn't touch any other variable.
     
    Last edited: Oct 25, 2010
  6. hopoo

    hopoo New Member

    Hi~ all~

    I figured out why empty value was inserted in the program
    ./src/ispconfig3_install/remoting_client/examples/soap-client-add.php.

    /usr/local/ispconfig/interface/lib/classes/remoting.inc.php
    line 1931 : $params=array_merge($params,$template);
    modify : if(is_array($template)) $params=array_merge($params,$template);

    because I didn't make any client_template, $template had null value.
     
    Last edited: Oct 26, 2010

Share This Page