BartekSz95 / phpvirtualbox

A web interface to manage and access Virtualbox machines.
Other
55 stars 15 forks source link

Error clone VM - Too few arguments to function IVirtualBox::createMachine() #4

Closed BartekSz95 closed 1 year ago

BartekSz95 commented 1 year ago

Full description about this issue is on official phpVirtualBox's Issues tab: https://github.com/phpvirtualbox/phpvirtualbox/issues/323

BartekSz95 commented 1 year ago

Correct error log:

Fatal error:  Uncaught ArgumentCountError: Too few arguments to function IVirtualBox::createMachine(), 6 passed in C:\Apache24\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php on line 1362 and exactly 8 expected in C:\Apache24\htdocs\phpvirtualbox\endpoints\lib\vboxServiceWrappers.php:1545
Stack trace:
#0 C:\Apache24\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php(1362): IVirtualBox->createMachine('/home/vbox/Virt...', 'VPS2 Clone', NULL, NULL, NULL, false)
#1 C:\Apache24\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php(952): vboxconnector->remote_machineClone(Array)
#2 C:\Apache24\htdocs\phpvirtualbox\endpoints\api.php(316): vboxconnector->__call('machineClone', Array)
#3 {main}
  thrown in C:\Apache24\htdocs\phpvirtualbox\endpoints\lib\vboxServiceWrappers.php on line 1545
BartekSz95 commented 1 year ago

Fixed on commit fea1319