Page 10 of 21
Re: [Tool]Dedicated Manager Web site
Posted: 18 Sep 2012, 21:35
by jonthekiller
I have found an error in 1.5.1 to save the guestlist.
DedicatedManager/libraries/DedicatedManager/Controllers/Server.php
You ned to change this in line 776 :
Code: Select all
$this->request->redirectArgList('../guestlis/', 'host', 'port');
by
Code: Select all
$this->request->redirectArgList('../guestlist/', 'host', 'port');
Re: [Tool]Dedicated Manager Web site
Posted: 19 Sep 2012, 13:06
by The_Big_Boo
Fixed for next release, thanks

Re: [Tool]Dedicated Manager Web site
Posted: 21 Sep 2012, 19:04
by jonthekiller
The manager doesn't like url in the name of the server ^^

- manager.JPG (13.94 KiB) Viewed 1942 times
Re: [Tool]Dedicated Manager Web site
Posted: 18 Nov 2012, 00:08
by WydD
Hey everyone,
I everything, I correctly configured the different paths in the app.ini. The server starts ok, but when I click on any button I get a 404 like "The requested URL /mania/index.php/create-server/ was not found on this server."
Is there an apache config to rewrite rules somewhere that I'm not aware of?
Enjoy
Re: [Tool]Dedicated Manager Web site
Posted: 19 Nov 2012, 18:32
by DeeLuuXe
Hey everyone,
I've installed that lovely Manager but I still have after many try a problem... When I get to the website it says me :
"Oops! Something went wrong, please try again later."
and nothing more.
I've done :
- upload DedicatedManager to the ftp
- upload Shootmania dedicated servers in the same directory to the ftp
- upload manialive in the same directory to the ftp
- import manager.sql to my database
- edit config/app.ini :
Code: Select all
;;
;; MANIAPLANET DEDICATED MANAGER CONFIG
;;
; Do NOT edit these 2 lines
application.namespace = DedicatedManager
application.webapp = true
log.prefix = manager
application.URL = http://shootmania.dotpok.com/
application.useRewriteRules = false
application.debug = false
; Database configuration
database.user = kernelproduct
database.password = ********
database.slowQueryLog = true
database.database = kernelproduct
DedicatedManager\Config.dedicatedPath = ../Shootmania/UserData/Config/dedicated_cfg.txt
DedicatedManager\Config.manialivePath = ../ManiaLive/config/condig.ini
DedicatedManager\Config.maniaConnect = Off
; DedicatedManager\Config.admins[] = 'login'
; If maniaConnect is On, you need to create an API username and an application with this username
; webservices.username = 'API username'
; webservices.password = 'API password'
It's a OVH webhosting.
PS: I'm a web developper but I still can't understand everything. I mean why is that "Oops! Something went wrong, please try again later.".
Many Thanks
[EDIT] : Bug seen by using degub options. Thanks to jonthekiller
Re: [Tool]Dedicated Manager Web site
Posted: 19 Nov 2012, 20:32
by The_Big_Boo
Hi
Some values are not well configured: dedicatedPath and manialivePath must be the path to their respective root folder, so without "UserData/Config/dedicated_cfg.txt" and "config/config.ini". Moreover, absolute paths should be prefered, there can be unexpected behaviours with relative paths.
By the way, you should restrict the access to your site, either by using a .htaccess (and .htpassword) or by setting maniaConnect to On (and complete other settings for make it work).
Re: [Tool]Dedicated Manager Web site
Posted: 19 Nov 2012, 20:52
by DeeLuuXe
Thank you i saw it. But by the way my problem was because we can't edit the db host in the app.ini. Can be nice for the next update

Re: [Tool]Dedicated Manager Web site
Posted: 19 Nov 2012, 21:47
by The_Big_Boo
Actually you can but indeed it's not suggested in the config file. Just add a line with like the following to change the host:
Re: [Tool]Dedicated Manager Web site
Posted: 20 Nov 2012, 21:25
by DeeLuuXe
Thanks for it
Also when I edit a setting for my server it says me :
Code: Select all
Fatal error: Uncaught exception 'ErrorException' with message 'stripslashes() expects parameter 1 to be string, array given' in /homez.520/kernelpr/www/shootmania/DedicatedManager/libraries/ManiaLib/Application/Request.php:49 Stack trace: #0 [internal function]: ManiaLib\Application\ErrorHandling::exceptionErrorHandler(2, 'stripslashes() ...', '/homez.520/kern...', 49, Array) #1 [internal function]: stripslashes(Array) #2 /homez.520/kernelpr/www/shootmania/DedicatedManager/libraries/ManiaLib/Application/Request.php(49): array_map('stripslashes', Array) #3 /homez.520/kernelpr/www/shootmania/DedicatedManager/libraries/ManiaLib/Utils/Singleton.php(25): ManiaLib\Application\Request->__construct() #4 /homez.520/kernelpr/www/shootmania/DedicatedManager/libraries/ManiaLib/Application/Dispatcher.php(55): ManiaLib\Utils\Singleton::getInstance() #5 /homez.520/kernelpr/www/shootmania/DedicatedManager/libraries/ManiaLib/Application/Bootstrapper.php(44): ManiaLib\Application\Dispatcher->run() #6 /homez.520/kernelpr/www/shootmania/Dedi in /homez.520/kernelpr/www/shootmania/DedicatedManager/libraries/ManiaLib/Application/Request.php on line 49
Someone know about that ?
Re: [Tool]Dedicated Manager Web site
Posted: 21 Nov 2012, 10:17
by The_Big_Boo
Disable magic quotes in your PHP ini file. ManiaLib still has a few lines of broken code when they're enabled but they will be removed someday. Anyway, magic quotes are deprecated in PHP 5.3 and removed in PHP 5.4