Coder Social home page Coder Social logo

Array To String conversion about nusoap HOT 23 CLOSED

f00b4r avatar f00b4r commented on May 31, 2024 1
Array To String conversion

from nusoap.

Comments (23)

f3l1x avatar f3l1x commented on May 31, 2024

Thanks. I will take a look.

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

@joshharington Could you please provide more info? Which PHP version at first? :-)

from nusoap.

yashari01 avatar yashari01 commented on May 31, 2024

Hello,i'm getting also error of Array to string conversion in lib/nusoap.php but on line 7481
i'm using php 7.1

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

@joshharington @yashari01 Could you please send a PR?

from nusoap.

raphaelrosello avatar raphaelrosello commented on May 31, 2024

I'm also getting the same error on client call passing a multidimensional array. Sample below

$response = $client->call('Logon', [
          'Username' => 'user',
          'Password' => 'password'
    ]);

This is the format of the XML I'm suppose to pass.

<Logon>
	<logonRequest>
		<Username>user</Username>
		<Password>password</Password>
	</logonRequest>
</Logon>

from nusoap.

worka avatar worka commented on May 31, 2024

Hello! Too

Array to string conversion

/vendor/econea/nusoap/src/nusoap.php:7605

var_dump $k & $v

/vendor/econea/nusoap/src/nusoap.php:7603:string 'faultcode' (length=9)
/vendor/econea/nusoap/src/nusoap.php:7604:string 'soapenv:Server' (length=14)
/vendor/econea/nusoap/src/nusoap.php:7603:string 'faultstring' (length=11)
/vendor/econea/nusoap/src/nusoap.php:7604:string 'bla bla bla' (length=81)
/vendor/econea/nusoap/src/nusoap.php:7603:string 'detail' (length=6)
/vendor/econea/nusoap/src/nusoap.php:7604:
array (size=1)
  'Exception' => string '' (length=0)

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

Could you guys send a PR to master branch?

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

ping @worka @raphaelrosello @joshharington

from nusoap.

worka avatar worka commented on May 31, 2024

I can`t install

Could not find a matching version of package ^0.9.6. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

Try

{
	"require": { "econea/nusoap: ^0.9.6" },
	"prefer-stable": true,
	"minimum-stability": "dev",
}

from nusoap.

worka avatar worka commented on May 31, 2024

Still could not switch to "^0.9.6"
Switched to the "dev-master"
Looked at the change. Yes, the reason for the mistake is eliminated. Everything works perfectly.

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

Thanks for testing it. @worka

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024
{
"require": {
    "econea/nusoap": "^0.9.6"
},
"minimum-stability": "dev",
"prefer-stable": true
}

I've fixed it now. Could you test new version?

from nusoap.

worka avatar worka commented on May 31, 2024

I was able to switch now. It works correctly, but how do I get this build now with the composer's "minimum-stability: stable" settings?

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

As soon as I tag it, it will be working. There's a prefer-stable option for that. It prefer tags over dev- builds.

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

https://github.com/econea/nusoap/releases/tag/v0.9.6

from nusoap.

RYRDU avatar RYRDU commented on May 31, 2024

I am getting an error of Array to string conversion in lib/nusoap.php on line 3203

from nusoap.

ezehurt avatar ezehurt commented on May 31, 2024

I am getting an error of Array to string conversion in lib/nusoap.php on line 3203

You need to change
$err .= "$k: $v<br>";
TO

 if (is_array($v)) {
                        $this->debug("$k = " . json_encode($v));
                    } else {
                        $this->debug("$k = $v<br>");
                    }

The same error was solved on #37
10ca8ff#diff-25d902c24283ab8cfbac54dfa101ad31

from nusoap.

SergioWiesner avatar SergioWiesner commented on May 31, 2024

Array to string conversion

i have the same error, and not is fixed.

i want make a pull request with the solution for fixed quickly.

this solution is perfect @ezehurt i like ->
if (is_array($v)) {
$this->debug("$k = " . json_encode($v));
} else {
$this->debug("$k = $v
");
}

from nusoap.

dbebawy avatar dbebawy commented on May 31, 2024

@f3l1x, Can you release a new version 0.9.7 with this fix? The current release 0.9.6 doesn't contain the fix.

from nusoap.

f3l1x avatar f3l1x commented on May 31, 2024

Hi @dbebawy. Released.

https://github.com/econea/nusoap/releases/tag/v0.9.7

from nusoap.

dbebawy avatar dbebawy commented on May 31, 2024

from nusoap.

paulmbaka avatar paulmbaka commented on May 31, 2024

@f3l1x, could please support with [17-Jun-2020 13:49:05 UTC] PHP Notice: Array to string conversion in .......lib\nusoap.php on line 6130

from nusoap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.