Menu

#3 DB access error during installation when hoam-config.ini is present

1.0
closed
rob
None
2020-04-18
2016-11-23
il--ya
No

When hoam-config.ini file is present, installation fails. If this file is present, then HOAM_DB_PASSWORD constant is defined at some point before installation script starts (in hoam-init.php). When installation script later creates new database user and modifies hoam-config.ini, it tries to load values from updated hoam-config.ini and re-define these constants (which it obviously can't do as they are constants). As a result, installation script tries to use old values from default hoam-config.ini, or stale values left from previous installation attempt, and cannot access database.
I'm not sure how it would be best to fix that. As a workaround I just deleted hoam-config.ini before running the installation script. Probably a better fix would be to define HOAM_DB_NAME, HOAM_DB_USER, HOAM_DB_PASSWORD, HOAM_DB_SERVER and HOAM_DB_PORT as variables, not constants, but that would affect performance, I suppose.

Discussion

  • rob

    rob - 2020-04-18
    • status: open --> closed
    • Milestone: 2.0 --> 1.0
     
  • rob

    rob - 2020-04-18

    This has been resolved in the most recent release.

     

Log in to post a comment.