|
Ettore Moretti - 2016-02-16 09:16:06
I followed the documentation provided for installation (https://lobby.subinsb.com/docs/quick), but I get this error:
Warning: require_once(<~MY_SERVER_PATH~>\lobby\contents\modules\admin/inc/config.php): failed to open stream: No such file or directory in <~MY_SERVER_PATH~>\lobby\contents\modules\admin\Module.php on line 10
Fatal error: require_once(): Failed opening required '<~MY_SERVER_PATH~>\lobby\contents\modules\admin/inc/config.php' (include_path='.;C:\xampp\php\PEAR') in <~MY_SERVER_PATH~>\lobby\contents\modules\admin\Module.php on line 10
The Module.php file on line 10 try to require
__DIR__ . "/inc/config.php", but this file not exists!
In your documentation (https://lobby.subinsb.com/docs/config): I read that:
"The config.php file is created automatically after installation."
But the error raised unfortunately doesn't allow me to install.
I read that for windows is recommended WampServer instead XAMPP, which is what i'm using. Can I ask why?
Subin Siby - 2016-02-16 13:48:08 - In reply to message 1 from Ettore Moretti
I'm really really sorry...
Thank you very much for reporting the error. It's a huge bug and it's the fault that happened when the Zip file was packaged.
It has been fixed and re-uploaded. Please download again and reinstall : http://lobby.subinsb.com/download
If you find any bugs in the future, please report it.
Again, thank you for reporting the bug.
:-)
Subin Siby - 2016-02-16 13:51:50 - In reply to message 2 from Subin Siby
Hey,
I'm not a Windows user. When I looked for Windows localhost servers, I found WampServer and was happy with how easy it was set up.
Besides, Lobby worked in it. Hence I recommended it. I can't be sure whether it will work in XAMPP. Theoretically it should as it is a PHP program, but you can't prove something works theoretically in computer related stuff. :-)
Ettore Moretti - 2016-02-16 15:53:07 - In reply to message 3 from Subin Siby
Ok, the above problem seems solved.
But I have another bug report:
In step 3 of the installation, after selecting the db type, in the field Database Name say this:
"The name of the database you want to run Lobby in. Lobby will create DB if it doesn't exist."
I did a test without entering the database name, but in this case an error is raised:
[PAGE]
Error
Unable to connect. Make sure that the settings you entered are correct.
[/PAGE]
I modified the file: lobby/admin/install.php as follows:
Line: 41 I changed the option of PDO connection from ERRMODE_EXCEPTION to ERRMODE_WARNING
This is what I see, after reloading the page:
[PAGE]
Warning: PDO::exec(): SQLSTATE[42000]: Syntax error or access violation: 1102 Incorrect database name '' in <~MY_SERVER_PATH~>\lobby\includes\src\Install.php on line 45
Warning: PDO::query(): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in <~MY_SERVER_PATH~>\lobby\includes\src\Install.php on line 46
Warning: PDOStatement::execute(): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in <~MY_SERVER_PATH~>\lobby\includes\src\Install.php on line 53
Warning: PDOStatement::execute(): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in <~MY_SERVER_PATH~>\lobby\includes\src\Install.php on line 53
Warning: PDOStatement::execute(): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in <~MY_SERVER_PATH~>\lobby\includes\src\Install.php on line 138
Warning: PDOStatement::execute(): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in <~MY_SERVER_PATH~>\lobby\includes\src\Install.php on line 175
Warning: file_get_contents(<~MY_SERVER_PATH~>/lobby/includes/lib/lobby/inc/config-sample.php): failed to open stream: No such file or directory in <~MY_SERVER_PATH~>\lobby\includes\src\FileSystem.php on line 39
Failed Creating Config File
Something happened while creating the file. Perhaps it was something that you did ?
Success
Database Tables and config.php file was successfully created.
PROCEED
[/PAGE]
In the line 45 of the file lobby/admin/install.php you try to create a database with a name, that I never passed.
[CODE]
self::$dbh->exec("CREATE DATABASE IF NOT EXISTS `" . self::$database['dbname'] . "`");
[/CODE]
So the solutions are 2 or i'm forced to create a database prior to installation (but not convenient), or you may allow a default db_name in the class, to use
in the case where nothing is not passed.
P.S.
My edit ERRMODE_WARNING, does not block the execution of the script and create the config.php file in the root of the webapp, so before you go any further you need to delete it manually.
P.P.S.
If i pass a db_name existing, the installation been executed successfully!
Ettore
Subin Siby - 2016-02-17 15:40:30 - In reply to message 1 from Ettore Moretti
Thanks for reporting the problem !
I have fixed it by making sure the fields are not left blank : https://github.com/LobbyOS/lobby/commit/7ec61a8692f47b4a3e2e0f6d7b929fe4dd7f39b2
Glad that it worked out for you. :-)
Sorry for late reply as I was busy making a Windows installer for Lobby.
Ettore Moretti - 2016-02-18 00:00:21 - In reply to message 5 from Subin Siby
I can confirm that the problem is solved.
Isn't the most complete outstanding, but is surely a good starting point and i'm sure you will improve and strengthen it.
Congratulations for the good work, keep it up.
Subin Siby - 2016-02-18 05:14:02 - In reply to message 6 from Ettore Moretti
I'm glad that it worked out for you.
I have exams next month, and due to it, i'm not able to develop Lobby as I want to.
Besides, whenever I power on the computer, my mom keep telling me to go study.
When my exams are over, I will get a 1 month vacation and at that time, I'll develop Lobby to make it more perfect.
|