ExpressionEngine / Emoji-Support

ExpressionEngine Add-on for converting your site's database to use utf8mb4 for emoji support.
Apache License 2.0
3 stars 1 forks source link

config.php with external database running emoji support add-on. #2

Open aasun opened 5 years ago

aasun commented 5 years ago

Description of the problem

EE4 external database connect in the main config.php file per the documentation. Ran the emoji support add-on and it removed my second database config lines from the main config.php file.

How To Reproduce Steps to reproduce the behavior:

  1. have the config.php with the external database configuration settings.
  2. install the emoji support add-on
  3. run the emoji support add-on
  4. the external database configuration settings are removed from the config.php file

Suspect the issue is because the config.php file is updated at the end of the main ExpressionEngine database configuration settings with: 'char_set' => 'utf8mb4', 'dbcollat' => 'utf8mb4_unicode_ci', So the second database config (external database) that follows that is deleted.

Error Messages No error messages until the add-on tries to connect to the external database, then the error is that it can't connect.

Screenshots / Videos / Template Code

Environment Details: EE 4.3.6, PHP 7.2, standard stuff.

Possible Solution

Additional context

derekjones commented 5 years ago

Transferred issue to the Emoji Support repo

kevincupp commented 5 years ago

Thanks, @aasun. Could you show what you mean by having multiple database configs in your config.php? Are you selecting one or the other based on the environment or something?