Page 4 of 9
Re: ManiaHost 1.0 beta
Posted: 10 Feb 2012, 15:01
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
Re: ManiaHost 1.0 beta
Posted: 10 Feb 2012, 15:17
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\"
Re: ManiaHost 1.0 beta
Posted: 10 Feb 2012, 16:11
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"
Re: ManiaHost 1.0 beta
Posted: 11 Feb 2012, 19:48
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
Re: ManiaHost 1.0 beta
Posted: 11 Feb 2012, 20:13
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
Re: ManiaHost 1.0 beta
Posted: 12 Feb 2012, 09:25
by farfa
This is the trace log but what was the error message corresponding to that ?
Re: ManiaHost 1.0 beta
Posted: 12 Feb 2012, 10:21
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
Re: ManiaHost 1.0 beta
Posted: 13 Feb 2012, 09:20
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;
}
}
Re: ManiaHost 1.0 beta
Posted: 13 Feb 2012, 16:25
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"
Re: ManiaHost 1.0 beta
Posted: 13 Feb 2012, 16:39
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.