Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade 0.4.4 > 5.0 (master), PHP 7.2, BAIKAL_ADMIN_PASSWORDHASH #749

Closed
olafgleba opened this issue Sep 27, 2018 · 3 comments
Closed

Upgrade 0.4.4 > 5.0 (master), PHP 7.2, BAIKAL_ADMIN_PASSWORDHASH #749

olafgleba opened this issue Sep 27, 2018 · 3 comments

Comments

@olafgleba
Copy link

As i recently got PHP 7.2.10 on my local machine, an upgrade for my current baikal version (0.4.4) requires to install from the master (0.5.x).

I installed the composer dependencies ($ composer install) and enter the admin page, but some Errors prevents the upgrade.

The screen looks like this:

Baïkal upgrade wizard
Upgrading Baïkal from version 0.4.4 to version 0.5.0

Errors
Uncaught exception during upgrade: Exception: Baikal\Model\Config->parseConfig(): constant 'BAIKAL_ADMIN_PASSWORDHASH' has been found multiple times in the config file; stopping execution in /www/baikal/Core/Frameworks/Baikal/Model/Config.php:114 Stack trace: #0 /www/baikal/Core/Frameworks/Baikal/Model/Config.php(40): Baikal\Model\Config->parseConfig('__construct('/www/baikal/Spe...') #2 /www/baikal/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(382): BaikalAdmin\Controller\Install\VersionUpgrade->updateConfiguredVersion('0.5.0') #3 /www/baikal/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(61): BaikalAdmin\Controller\Install\VersionUpgrade->upgrade('0.4.4', '0.5.0') #4 /www/baikal/Core/Frameworks/Flake/Core/Render/Container.php(69): BaikalAdmin\Controller\Install\VersionUpgrade->render() #5 /www/baikal/Core/Frameworks/Flake/Controller/Page.php(85): Flake\Core\Render\Container->renderBlocks() #6 /www/baikal/Core/Frameworks/BaikalAdmin/WWWRoot/install/index.php(83): Flake\Controller\Page->render() #7 {main}
Successful operations
Updated addressbooks table

Error Baïkal has not been upgraded. See the section 'Errors' for details.

Did someone expierenced this error and/or can get me a hint to solve this?

Many thanks in advance!
Olaf

@derStephan
Copy link

constant 'BAIKAL_ADMIN_PASSWORDHASH' has been found multiple times in the config file

Roll back your files and data, check the config and rerun the upgrade.

@olafgleba
Copy link
Author

Done all that. Same error(s). Switched to radicale. Anyway, thx.

@kassle
Copy link

kassle commented Nov 13, 2019

found this error too, it's happen when set the config looks like this:

# Ba..kal Web admin password hash; Set via Ba..kal Web Admin
# define("BAIKAL_ADMIN_PASSWORDHASH", 'xxxxxxxxxxxxxxxxxxxxxxx');
define("BAIKAL_ADMIN_PASSWORDHASH", 'zzzzzzzzzzzzzzzz');

it seem the commented line is not ignored, because when i remove the commented line. it works fine.

# Ba..kal Web admin password hash; Set via Ba..kal Web Admin
define("BAIKAL_ADMIN_PASSWORDHASH", 'zzzzzzzzzzzzzzzz');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants