phoboslab / Impact

HTML5 Game Engine
MIT License
1.99k stars 204 forks source link

Weltmeister Start up #82

Closed smallcpu closed 4 years ago

smallcpu commented 4 years ago

Hello, I am having an issue with the start up of vanilla Weltmeister, it seems the tool is not opening all the way and I have a blank page with no functionality.

image

Here is the error that I am getting image

Hope there is a solution with this!! Thank you

Joncom commented 4 years ago

You need to serve the page from a web server that supports PHP. Or you could serve it from NodeJS with https://github.com/drhayes/impact-dev-server

smallcpu commented 4 years ago

You need to serve the page from a web server that supports PHP. Or you could serve it from NodeJS with https://github.com/drhayes/impact-dev-server

Oh yes the page is running in a web server that supports php.

Joncom commented 4 years ago

Did that fix the issue?

phoboslab commented 4 years ago

It seems the PHP notice about get_magic_quotes_gpc is screwing up the JSON result from the API. I guess this could be safely removed:

https://github.com/phoboslab/Impact/blob/master/lib/weltmeister/api/config.php#L7-L20

It's a relic from when PHP4 was still somewhat in use. Maybe replace with a check that ensures that phpversion() is at least 5 - though that's probably unnecessary. PHP5 was released 16 years ago.

smallcpu commented 4 years ago

It worked! Thank you so much!!