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

Uncaught exception during upgrade: Exception: Baikal\Model\Config->parseConfig(): constant 'PROJECT_DB_MYSQL_PASSWORD' has been found multiple times in the config file; #884

Closed
5 of 6 tasks
juedan opened this issue Feb 25, 2020 · 3 comments

Comments

@juedan
Copy link

juedan commented Feb 25, 2020

Baikal version: 0.6.1

  • I have searched open and closed issues for duplicates
  • I have installed the release zip, not the source code zip
  • I followed the upgrade instructions: backup of Baikal folder and database
  • I let the Specific folder untouched
  • PHP Version 7.2 and 7.3
  • I have moved the whole, untouched Specific folder to the new installation

Problem:
After calling the admin panel: .../html/admin/ I got the page with "... Upgrading Baïkal from version 0.5.2 to version 0.6.1 ... ". I clicked on start upgrade and the I got the following error message:

Uncaught exception during upgrade: Exception: Baikal\Model\Config->parseConfig():
constant 'PROJECT_DB_MYSQL_PASSWORD' has been found multiple times in the config file;
stopping execution in /home/dankowei/baikal/Core/Frameworks/Baikal/Model/Config.php:114 Stack trace:
#0 /home/dankowei/baikal/Core/Frameworks/Baikal/Model/Config.php(40): Baikal\Model\Config->parseConfig('__construct('/home/dankowei/...')
#2 /home/dankowei/baikal/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(90): BaikalAdmin\Controller\Install\VersionUpgrade->assertConfigWritable()
#3 /home/dankowei/baikal/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(61): BaikalAdmin\Controller\Install\VersionUpgrade->upgrade('0.5.2', '0.6.1')
#4 /home/dankowei/baikal/Core/Frameworks/Flake/Core/Render/Container.php(69): BaikalAdmin\Controller\Install\VersionUpgrade->render()
#5 /home/dankowei/baikal/Core/Frameworks/Flake/Controller/Page.php(85): Flake\Core\Render\Container->renderBlocks()
#6 /home/dankowei/baikal/html/admin/install/index.php(92): Flake\Controller\Page->render()
#7 {main}
I have checked all config.php files but there is only one "PROJECT_DB_MYSQL_PASSWORD" constant. Where should I look for the error?

Many thanks.

PS: Currently I working on a connection for baikal to PostgreSQL

@juedan
Copy link
Author

juedan commented Feb 28, 2020

No ideas what's going on there?

@ByteHamster
Copy link
Member

Make sure that the definition is not added multiple times. Our parser is quite fragile, so it will also detect commented-out duplicates.

@juedan
Copy link
Author

juedan commented Feb 28, 2020

I didn't make any changes on version 0.5.2 und followed the upgrade instructions. Changes were made by the installation process of baikal 0.5.2 itself (login data and such things) and NEVER by me!

@juedan juedan closed this as completed Feb 28, 2020
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

2 participants