BartekSz95 / phpvirtualbox

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

Error message if system only have PHP 7 or below? #9

Closed urashimamei closed 8 months ago

urashimamei commented 9 months ago

If the host machine only installed PHP 7 or below, the dialog of error message shows 500 internal error. Is there any chance that it could show a more specific error message like "PHP failed"? Or what files and how to achieve this If I want to do this myself?

Thanks for any advice!!

urashimamei commented 9 months ago

Hi, Is anyone still maintaining this project?

I met another problem that when changing language from File > Preferences > Languages, it only set the browser cookie but does not modifying config.php. I know that Cookies has the priority, but this this wired because it would always the default language (English) when open in a new browser. Any advice or patch for it?

BartekSz95 commented 9 months ago

Hi, Is anyone still maintaining this project?

I met another problem that when changing language from File > Preferences > Languages, it only set the browser cookie but does not modifying config.php. I know that Cookies has the priority, but this this wired because it would always the default language (English) when open in a new browser. Any advice or patch for it?

This script never edit config.php file. You can change line on config file which force to use your language as primary.

This is the line on config.pho, which should interesting you: Screenshot_20231008_131442_GitHub.jpg

PS. There is too many changes in PHP 8 and higher, so I don't want to support every lower version of PHP. With PHP 8 and higher, you need to set type of data for every single classess, this is the biggest changes for newest version of PHP. In PHP7.0 you don't have such things.

urashimamei commented 9 months ago

Thank you for your reply. It's nice to know that this project is still on working:)))

So if I want to perform the feature that change config.php at the same time, I have to add functions at both js and php files, is that right? If so, I will try myself...

BartekSz95 commented 9 months ago

Thank you for your reply. It's nice to know that this project is still on working:)))

So if I want to perform the feature that change config.php at the same time, I have to add functions at both js and php files, is that right? If so, I will try myself...

If you want, you can create installer or something similar and you can put pulk request on this repository, I'm open for new things. I don't have enough time right now to create new stuff in here.