Thue / rfwadmin

A web interface for controlling a MineCraft server, optimized for custom maps
GNU General Public License v3.0
68 stars 16 forks source link

Upload maps error and GUI broken #8

Closed spiffzilla closed 11 years ago

spiffzilla commented 11 years ago

I get the error message "unknown command!" then uploading a zip with a map. Is the maps supposed to live in a special folder structure in the zip?

The GUI seems to be broken for me also, see attacehd image. 2013-03-02 21-44-06

I'm running Ubuntu 12.10, a clean server install with apache and php 5.4.6

Thue commented 11 years ago

Only some formats of the save is accepted of course, but most sane structure should work. I tested (and added support for) a lot of save formats I found on the internet. For the preferred structure, just download a map from the interface (the zip file should contain a single folder with the same name as the zip file minus ".zip", which should then contain the "data" directory etc). But anyway, it would not give you the "unknown command" error if it was just the format being wrong.

It seems to work for me. Did you use the "upload" or "fetch" method?

spiffzilla commented 11 years ago

I found the error

The unknown command was because of a too small amount for the post size variable, post_max_size

After i fixed that i got a second error: Upload failed! upload_max_filesize in php.ini is too small

Thats was because of a too small upload_max_filesize

Sorry about that, should have read the logs in the first place :-)

How about the GUI problems? (See the image ) Shouldn't it be tabs? Tested in chrome and internet explorer, same look. 2013-04-01 12-43-02

Thue commented 11 years ago

If you look at the html source code, it is loading a stylesheet on line 5 ( <link rel="stylesheet" type="text/css" href="rfwadmin_files/main.css" /> ). It seems like that is not being loaded. Could you try to see why that is?

Thue commented 11 years ago

I added some code to detect when post_max_size is too small, and added an error message describing how to fix it.

spiffzilla commented 11 years ago

Thanks for the help. The error was a broken symlink... The link to css was broken but the javascript should have been broken too, maybe they were and i didn't see it :-)

A simple "ln -s ../lib/minecraft/web/visible rfwadmin_files" from the /var/www/ folder fixed it

A simple install script that copies everything, with a couple of chowns and symlinks creations might help your users? It's a great kit youve made.

Thue commented 11 years ago

Yup, I should probably make a simple install script.

Thue commented 11 years ago

There is now a simple (and untested!) install script.

Which has to be run as root - the fun thing to do with untested install scripts!