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

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

Open
aasun opened this issue Nov 29, 2018 · 2 comments
Open

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

aasun opened this issue Nov 29, 2018 · 2 comments

Comments

@aasun
Copy link

aasun commented Nov 29, 2018

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 derekjones transferred this issue from ExpressionEngine/ExpressionEngine Nov 29, 2018
@derekjones
Copy link
Contributor

Transferred issue to the Emoji Support repo

@kevincupp
Copy link

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?

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

No branches or pull requests

3 participants