ManiaHost 1.0 beta

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

User avatar
steppie
Translator
Translator
Posts: 96
Joined: 25 Apr 2011, 21:55
Location: Denmark

Re: ManiaHost 1.0 beta

Post by steppie »

Only maniahost, but I'm not sure I did it right.
In "ManiaLive\libraries\ManiaLivePlugins\" you only have standard plugin
so I copied the moniahost from "ManiaHost\libraries\ManiaLivePlugins\" to manialive folder
Image
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaHost 1.0 beta

Post by farfa »

Try to run ManiaLive without plugins, to see if you still have the bugs.
And the way you setup your plugin seems correct if you just copy the content of "ManiaHost\libraries\ManiaLivePlugins\"
Also known as: satanasdiabolo
User avatar
steppie
Translator
Translator
Posts: 96
Joined: 25 Apr 2011, 21:55
Location: Denmark

Re: ManiaHost 1.0 beta

Post by steppie »

Okay fresh install.

Manialive without plugin: OK
Manialive with maniahost plugin: OK
Manialink have rent button: OK
Rent a server: Error "invalid manialink file"
Image
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaHost 1.0 beta

Post by farfa »

We progress step by step :)
This kind of error append when there is an error in php, you should find a log of the error in the php error log
Also known as: satanasdiabolo
User avatar
steppie
Translator
Translator
Posts: 96
Joined: 25 Apr 2011, 21:55
Location: Denmark

Re: ManiaHost 1.0 beta

Post by steppie »

Indeed we do.

Here is the apache log:

Code: Select all

PHP Stack trace:
PHP   1. {main}() C:\\ManiaHost\\ManiaHost\\www\\index.php:0
PHP   2. ManiaLib\\Application\\Bootstrapper::run() C:\\ManiaHost\\ManiaHost\\www\\index.php:3
PHP   3. ManiaLib\\Application\\Bootstrapper::onDispatch() C:\\ManiaHost\\ManiaHost\\libraries\\ManiaLib\\Application\\Bootstrapper.php:30
PHP   4. ManiaLib\\Application\\Dispatcher->run() C:\\ManiaHost\\ManiaHost\\libraries\\ManiaLib\\Application\\Bootstrapper.php:44
PHP   5. ManiaLib\\Application\\Response->render() C:\\ManiaHost\\ManiaHost\\libraries\\ManiaLib\\Application\\Dispatcher.php:81
PHP   6. call_user_func() C:\\ManiaHost\\ManiaHost\\libraries\\ManiaLib\\Application\\Response.php:210
PHP   7. ManiaLib\\Application\\Rendering\\Manialink->render() C:\\ManiaHost\\ManiaHost\\libraries\\ManiaLib\\Application\\Response.php:0
PHP   8. ManiaHost\\Views\\Rent\\SelectDuration->display() C:\\ManiaHost\\ManiaHost\\libraries\\ManiaLib\\Application\\Rendering\\Manialink.php:31
Image
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaHost 1.0 beta

Post by farfa »

This is the trace log but what was the error message corresponding to that ?
Also known as: satanasdiabolo
User avatar
steppie
Translator
Translator
Posts: 96
Joined: 25 Apr 2011, 21:55
Location: Denmark

Re: ManiaHost 1.0 beta

Post by steppie »

Doh sry!

Code: Select all

PHP Fatal error:  Call to undefined function ManiaHost\\Views\\Rent\\_() in C:\\ManiaHost\\ManiaHost\\libraries\\ManiaHost\\Views\\Rent\\SelectDuration.php on line 32
Image
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaHost 1.0 beta

Post by farfa »

This is a method of gettext for translation.
There is two solution to correct this:
1. You activate gettext for php
2. You declare in the index.php the following method

Code: Select all

if(!function_exists('_'))
{
   function _($string)
   {
      return $string;
   }
}
Also known as: satanasdiabolo
User avatar
steppie
Translator
Translator
Posts: 96
Joined: 25 Apr 2011, 21:55
Location: Denmark

Re: ManiaHost 1.0 beta

Post by steppie »

Okay now the rent button works.

next issue, when you press the launch button.

Code: Select all

PHP Fatal error:  Class 'ManiaHost\\Controllers\\ManiaLib\\Application\\UserException' not found in C:\\ManiaHost\\ManiaHost\\libraries\\ManiaHost\\Controllers\\Rent.php on line 126
BTW: When you select the duration the text says "How many times do you want to rent server"
Shouldn't that be: "How long do you want to rent server"
Image
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaHost 1.0 beta

Post by farfa »

This error comes from a typo error in the code (I've just corrected it).
When you'll update your code, you should get an error message because you have set a number of player bigger than the one in the config file, or your server has no name.
Also known as: satanasdiabolo
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest