Skip to content

Call to a member function getPathAsString() on boolean #42

@ostrolucky

Description

@ostrolucky

using your example code

$shellObj = \MTS\Factories::getDevices()->getRemoteHost('ip_address')->setConnectionDetail('username', 'password')->getShell();

results in

$ php index.php
PHP Fatal error:  Uncaught Error: Call to a member function getPathAsString() on boolean in /home/g9735/IdeaProjects/mts/MTS/Common/Devices/Actions/Local/Host/Shell.php:67
Stack trace:
#0 /home/g9735/IdeaProjects/mts/MTS/Common/Devices/Actions/Local/Host/Shell.php(16): MTS\Common\Devices\Actions\Local\Host\Shell->execute()
#1 /home/g9735/IdeaProjects/mts/MTS/Common/Devices/Types/Localhost.php(55): MTS\Common\Devices\Actions\Local\Host\Shell->getShell('bash', false, false, 1000, 1000)
#2 /home/g9735/IdeaProjects/mts/MTS/Common/Devices/Types/Remotehost.php(66): MTS\Common\Devices\Types\Localhost->getShell('bash', false)
#3 /home/g9735/IdeaProjects/mts/index.php(5): MTS\Common\Devices\Types\Remotehost->getShell()
#4 {main}
  thrown in /home/g9735/IdeaProjects/mts/MTS/Common/Devices/Actions/Local/Host/Shell.php on line 67

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions