So here we go
The callvotes:
Code: Select all
<input class="text" type="number" min="0" max="1" step=".1" name="CallVoteRatio" id="CallVoteRatio" value="<?php echo $srvOpt['CallVoteRatio']; ?>" />
I can change the min to -1 yes. It would allow the script also to send values -0.9 till -0.1. Allthough i did not test how the server handels such a value, but i think its better to change to code above in a manner thhe besides the values above only -1 is accepted extra.
Upload maps:
When trying to upload a map to a folder i get
Code: Select all
The file was not uploaded. Upload has been cancelled or a server error occurred. (write error)
Looking into the logs i am provided with the following entrys:
Code: Select all
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'Exception' with message 'GBX map error: Insufficient data for 3 bytes at pos 0x0000' in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php:99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: Stack trace:, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #0 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(149): GBXBaseFetcher->errorOut('Insufficient da...', 2), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres- mod_fcgid: stderr: #1 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(301): GBXBaseFetcher->readData(3), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #2 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(618): GBXBaseFetcher->checkHeader(Array), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #3 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(593): GBXChallMapFetcher->processGBX(), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #4 _serverpath_AdminServ/includes/adminserv.inc.php(2303): GBXChallMapFetcher->processFile('/var/www/vhosts...'), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #5 _serverpath_AdminServ/includes/pages/maps-l in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php on line 99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
Result upload map
The result of trying to upload a map creates the file, but the errror produces a file with 0B.
Because of that the LOCAL pages of
AdminServ produce a 500 server error.
Code: Select all
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'Exception' with message 'GBX map error: Insufficient data for 3 bytes at pos 0x0000' in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php:99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: Stack trace:, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #0 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(149): GBXBaseFetcher->errorOut('Insufficient da...', 2), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #1 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(301): GBXBaseFetcher->readData(3), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #2 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(618): GBXBaseFetcher->checkHeader(Array), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #3 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(593): GBXChallMapFetcher->processGBX(), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #4 _serverpath_AdminServ/includes/adminserv.inc.php(2303): GBXChallMapFetcher->processFile('/var/www/vhosts...'), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #5 _serverpath_AdminServ/includes/pages/maps-l in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php on line 99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
WW