Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php Error Warning #33

Open
jimmyphong opened this issue Jun 7, 2018 · 1 comment
Open

Php Error Warning #33

jimmyphong opened this issue Jun 7, 2018 · 1 comment

Comments

@jimmyphong
Copy link

PHP message: PHP Notice: Array to string conversion in /***/nusoap.php on line 7425" while reading response header from upstream, client: 35.234.102.98, server: ***, request: "GET ** HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "***" 2018/06/07 15:10:47 [error] 21264#21264: *24189 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant SOAP_RPC - assumed 'SOAP_RPC' (this will throw an Error in a future version of PHP) in ***.php on line 159 PHP message: PHP Warning: Use of undefined constant SOAP_ENCODED - assumed 'SOAP_ENCODED' (this will throw an Error in a future version of PHP) in ***.php on line 160 PHP message: PHP Warning: Use of undefined constant SOAP_1_1 - assumed 'SOAP_1_1' (this will throw an Error in a future version of PHP) in ***.php on line 161 PHP message: PHP Warning: Use of undefined constant WSDL_CACHE_NONE - assumed 'WSDL_CACHE_NONE' (this will throw an Error in a future version of PHP) in **.php on line 162

Centos OS 7
Php 7.2
Nginx + Php fpm

`
$default = array(' My option value ');
$params = array_merge($default, $params);

    $client                   = new nusoap_client($this->config->get('SoapUrl'), true);
    $client->soap_defencoding = 'UTF-8';
    $client->decode_utf8      = false;

    $error = $client->getError();
    if ($error) {
        $this->logger->addInfo("Constructor error $error");
    }

    $result = $client->call($function, $params);

    if ($client->fault) {
        $this->logger->addInfo("Fault", (array) $result);
    } elseif ($error = $client->getError()) {
        $this->logger->addInfo("Error $function $error");
    } else {
        return $result;
    }`
@evilangelmd
Copy link

Hello. please provide version of nusoap used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants