Comments (23)
Thanks. I will take a look.
from nusoap.
@joshharington Could you please provide more info? Which PHP version at first? :-)
from nusoap.
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.
@joshharington @yashari01 Could you please send a PR?
from nusoap.
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.
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.
Could you guys send a PR to master branch?
from nusoap.
ping @worka @raphaelrosello @joshharington
from nusoap.
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.
Try
{
"require": { "econea/nusoap: ^0.9.6" },
"prefer-stable": true,
"minimum-stability": "dev",
}
from nusoap.
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.
Thanks for testing it. @worka
from nusoap.
{
"require": {
"econea/nusoap": "^0.9.6"
},
"minimum-stability": "dev",
"prefer-stable": true
}
I've fixed it now. Could you test new version?
from nusoap.
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.
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.
https://github.com/econea/nusoap/releases/tag/v0.9.6
from nusoap.
I am getting an error of Array to string conversion in lib/nusoap.php on line 3203
from nusoap.
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.
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.
@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.
Hi @dbebawy. Released.
https://github.com/econea/nusoap/releases/tag/v0.9.7
from nusoap.
from nusoap.
@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)
- UTF-8 encoding. HOT 1
- Charencoding always true
- What is the license actually? HOT 1
- nusoapmime.php missing
- missing `class.wsdlcache.php` used in samples HOT 3
- Migrating from PHP Soap module: Cannot use stdclass as array
- Automatic release sync w/ Sourceforge
- Web Description HTML - "ul" tag doesn't closed
- Expected type 'CurlHandle'. Found 'false' HOT 1
- doc/lit (document/literal) style/use "unable to serialize result"
- Undefined array key "output"
- Undefined variable: tt_ns
- No memory error HOT 1
- Cannot redeclare timestamp_to_iso8601
- remove executable bit on nusoap.php HOT 1
- How to send empty response from nusoap server HOT 1
- PHP 5.6 working perfectly but PHP 8 gets the error HOT 1
- $this->portTypes[$bindingData['portType']][$operation]['output'] is undefined in One-way service
- new release tag and refactoring HOT 1
- Type error in get_class with php 8.* HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nusoap.