I'm on a windows machine and installed phpvirtualbox in xampp.
I get the error below after login....i have the virtualbox websrv running in verbose mode so I can see the communication to it.
I assump phpvirtual box is getting back a soap request it doesnt like?
Fatal error: Uncaught ArgumentCountError: Too few arguments to function VBox_Enum::construct(),
0 passed in F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php on line 2522 and exactly 2 expected in F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxServiceWrappers.php:225
Stack trace:
0 F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php(2522): VBox_Enum->construct()
1 F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php(951): vboxconnector->remote_vboxGetEnumerationMap(Array)
2 F:\xampp\htdocs\phpvirtualbox\endpoints\api.php(316): vboxconnector->__call('vboxGetEnumerat...', Array)
3 {main}
thrown in F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxServiceWrappers.php on line 225
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you are probably using php version 7.1 and phpvirtualbox is not compatible with this version by now. Maybe you could try to use a previous version of php in xampp (7.0.15 works well).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm on a windows machine and installed phpvirtualbox in xampp.
I get the error below after login....i have the virtualbox websrv running in verbose mode so I can see the communication to it.
I assump phpvirtual box is getting back a soap request it doesnt like?
Fatal error: Uncaught ArgumentCountError: Too few arguments to function VBox_Enum::construct(),
0 passed in F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php on line 2522 and exactly 2 expected in F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxServiceWrappers.php:225
Stack trace:
0 F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php(2522): VBox_Enum->construct()
1 F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxconnector.php(951): vboxconnector->remote_vboxGetEnumerationMap(Array)
2 F:\xampp\htdocs\phpvirtualbox\endpoints\api.php(316): vboxconnector->__call('vboxGetEnumerat...', Array)
3 {main}
thrown in F:\xampp\htdocs\phpvirtualbox\endpoints\lib\vboxServiceWrappers.php on line 225
Hi,
Your issue is discussed in this topic https://sourceforge.net/p/phpvirtualbox/discussion/general/thread/565b7f31/
you are probably using php version 7.1 and phpvirtualbox is not compatible with this version by now. Maybe you could try to use a previous version of php in xampp (7.0.15 works well).