moan0s / ILMO

Intelligent Library Management Online - A simple Web-App for the organization of a library, the users, books, opening hours and lendings.
https://www.fs-medtech.de/bib/
GNU General Public License v3.0
1 stars 1 forks source link

White site after installation #71

Closed Sebastian1515 closed 3 years ago

Sebastian1515 commented 3 years ago

There is a white site after the installation. Accesing the main page also redirects to .../install/create_user/ .

Fatal error: Uncaught ArgumentCountError: Too few arguments to function User::construct(), 0 passed in C:\xampp\htdocs\ILMO\install\create_user\index.php on line 23 and exactly 1 expected in C:\xampp\htdocs\ILMO\class\user.php:4 Stack trace: #0 C:\xampp\htdocs\ILMO\install\create_user\index.php(23): User->construct() #1 {main} thrown in C:\xampp\htdocs\ILMO\class\user.php on line 4

Workaround: rename/ delete the folder install

Sebastian1515 commented 3 years ago

Workaround not working without an existing database. Try to fix it: replace $oObject = new User(); with $oLang = new Lang; $oData = new Data($oLang); $oObject = new User($oData);

and replace $oObject ->get_view with $oData->get_view

moan0s commented 3 years ago

Should work, if not reopen