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

[BUG] PHP Errors in zs-client when using key/value output format #74

Closed
maxbeutel opened this issue Oct 2, 2015 · 1 comment
Closed
Assignees

Comments

@maxbeutel
Copy link
Contributor

We noticed that zs-client throws a bunch of errors when using key/value
output format.

Also, the servers section from the output is completely missing and only
contains the string "Array" as sole value.

I included a sample output here:

$ zs-client vhostGetStatus --vhosts=203  --zskey=admin --zsurl=http://<someHost>/ZendServer/ --zssecret=<secret>  --output-format=kv

PHP Notice:  Array to string conversion in
phar:///usr/local/bin/zs-client/module/Client/Module.php on line 11 PHP
Stack trace:
PHP   1. {main}() /usr/local/bin/zs-client:0
PHP   2. require() /usr/local/bin/zs-client:14
PHP   3. Zend\Mvc\Application->run()
phar:///usr/local/bin/zs-client/index.php:2
PHP   4. Zend\EventManager\EventManager->trigger()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-mvc/src/Application.php:2
PHP   5. Zend\EventManager\EventManager->triggerListeners()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2
PHP   6.
call_user_func:{phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2}()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2
PHP   7. Client\Module->preFinish()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2

Notice: Array to string conversion in
phar:///usr/local/bin/zs-client/module/Client/Module.php on line 11

Call Stack:
    0.0001     223280   1. {main}() /usr/local/bin/zs-client:0
    0.0100     931960   2.
require('phar:///usr/local/bin/zs-client/index.php')
/usr/local/bin/zs-client:14
    0.1192    8267968   3. Zend\Mvc\Application->run()
phar:///usr/local/bin/zs-client/index.php:2
    2.1534   10591552   4. Zend\EventManager\EventManager->trigger()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-mvc/src/Application.php:2
    2.1534   10591688   5.
Zend\EventManager\EventManager->triggerListeners()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2
    2.1535   10593448   6.
call_user_func:{phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2}()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2
    2.1535   10593656   7. Client\Module->preFinish()
phar:///usr/local/bin/zs-client/vendor/zendframework/zend-eventmanager/src/EventManager.php:2

0[id]=203
0[name]=<some name>
0[port]=443
0[status]=Ok
0[default]=0
0[zendDefined]=1
0[zendManaged]=1
0[ssl]=1
0[created]=2015-09-04T12:37:57+02:00
0[lastUpdated]=2015-09-04T12:38:23+02:00
0[createdTimestamp]=1441363077
0[lastUpdatedTimestamp]=1441363103
0[servers]=Array

We also tried with the newest version of zs-client from
https://github.com/zend-patterns/ZendServerSDK/commits/master

@maxbeutel maxbeutel changed the title PHP Errors in zs-client when using key/value output format [BUG] PHP Errors in zs-client when using key/value output format Oct 2, 2015
@slaff slaff self-assigned this Oct 2, 2015
@slaff slaff closed this as completed in 85635e6 Oct 2, 2015
@slaff
Copy link
Contributor

slaff commented Oct 2, 2015

@maxbeutel Max, check out the new version and give it a try,

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

No branches or pull requests

2 participants