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

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

Closed
rbernardes opened this issue Dec 28, 2022 · 2 comments
Closed

Comments

@rbernardes
Copy link

After this issue implementation, i try to clone a new virtual machine, with follow steps:

  • Clone
  • New machine name
  • Full clone

and then

There was an error obtaining the list of registered virtual machines from VirtualBox. Make sure vboxwebsrv is running and that the settings in config.php are correct.

The list of virtual machines will not begin auto-refreshing again until this page is reloaded.

HTTP error: 500 error

On details:

readyState: "4"
responseText: ""
status: "500"
statusText: "error"

Nginx error:

thrown in /var/www/virtualbox/endpoints/lib/vboxServiceWrappers.php on line 1544" while reading response header from upstream, client: xx.xx.xx.xx, server: xx.xx.xx, request: "POST /endpoints/api.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9001", host: xx.xx.xx.xx
2022/12/22 11:27:42 [error] 36129#36129: *8378 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "context" in /var/www/virtualbox/endpoints/lib/language.php on line 77" while reading response header from upstream, client: 172.71.11.133, server:xx.xx.xx.xx, request: "GET /endpoints/language.php?_=1671719262366 HTTP/2.0", upstream: "fastcgi://127.0.0.1:9001", host: "xx.xx.xx.xx"
2022/12/22 11:28:36 [error] 36129#36129: *8373 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function IVirtualBox::createMachine(), 6 passed in /var/www/virtualbox/endpoints/lib/vboxconnector.php on line 3802 and exactly 8 expected in /var/www/virtualbox/endpoints/lib/vboxServiceWrappers.php:1544

Trying with php 7.4/8.0

@BartekSz95
Copy link

Fixed on commit fea1319

Download from my phpVirtualBox repository: https://github.com/BartekSz95/phpvirtualbox/archive/refs/heads/main.zip

@rbernardes
Copy link
Author

Worked!

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