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

Falls back to IP address when switching languages -> should stay the domain #47

Open
jeborsel opened this issue Jul 21, 2019 · 5 comments
Assignees

Comments

@jeborsel
Copy link
Collaborator

No description provided.

@jeborsel
Copy link
Collaborator Author

could you help out @jbelien ?

@jbelien
Copy link
Contributor

jbelien commented Jul 22, 2019

I see that $config['base_url'] = getenv('APP_URL'); in https://github.com/oSoc19/bebudget/blob/master/application/config/config.php

I guess you "forgot" to define APP_URL to http://bebudget.be/ in your environment file (usually .env)

@EmmyBruynseels
Copy link
Collaborator

I have defined the APP_URL to 'http://bebudget.be/ but that doesn't solve the problem

@jbelien
Copy link
Contributor

jbelien commented Jul 22, 2019

I'll have a deeper look tomorrow (if the issue is not fixed meanwhile)!

@jbelien
Copy link
Contributor

jbelien commented Jul 23, 2019

Well, there is definitely an issue with the getenv() function used in the application/config/config.php file!
The $_ENV is not correctly set and so the APP_URL environment variable is not set.

I searched a bit for it and found this example : http://roopampoddar.com/2016/01/26/integrating-phpdotenv-env-files-in-codeigniter-3-0-using-hooks/
It seems that those steps are done ; the "hook" is indeed set up ; but I don't know CodeIgniter enough to find out why getenv() is not "correct" when used in application/config/config.php file.


At the moment, I fixed it by doing:

$config['base_url'] = 'https://bebudget.be/';

Needs to be researched more!

@jeborsel jeborsel removed their assignment Jun 5, 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

3 participants