[Tool]Dedicated Manager Web site

Moderator: NADEO

User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: [Tool]Dedicated Manager Web site

Post 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');
Image
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: [Tool]Dedicated Manager Web site

Post by The_Big_Boo »

Fixed for next release, thanks :)
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: [Tool]Dedicated Manager Web site

Post by jonthekiller »

The manager doesn't like url in the name of the server ^^
manager.JPG
manager.JPG (13.94 KiB) Viewed 1916 times
Image
WydD
Posts: 1
Joined: 01 Jun 2012, 13:20

Re: [Tool]Dedicated Manager Web site

Post 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
DeeLuuXe
Posts: 6
Joined: 19 Nov 2012, 12:09

Re: [Tool]Dedicated Manager Web site

Post 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
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: [Tool]Dedicated Manager Web site

Post 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).
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
DeeLuuXe
Posts: 6
Joined: 19 Nov 2012, 12:09

Re: [Tool]Dedicated Manager Web site

Post 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 :)
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: [Tool]Dedicated Manager Web site

Post 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:

Code: Select all

database.host = '123.45.67.89'
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
DeeLuuXe
Posts: 6
Joined: 19 Nov 2012, 12:09

Re: [Tool]Dedicated Manager Web site

Post by DeeLuuXe »

Thanks for it :clap:

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 ?
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: [Tool]Dedicated Manager Web site

Post 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
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest