Console error after login (TypeError: Cannot read properties of undefined (reading '1')) #531
Replies: 10 comments 2 replies
-
We don't have an official docker support. |
Beta Was this translation helpful? Give feedback.
-
Build image with this Dockerfile: https://github.com/prouveyrol/Monarc-Docker/blob/main/Dockerfile. I have replaced the PHP version with 8.0-apache. Execute SQL: https://github.com/monarc-project/MonarcAppFO/blob/master/db-bootstrap/monarc_structure.sql Create docker-compose.yml with:
Run docker container
Login with [email protected] and admin. I have tried other languages ids like 0 and 2 but no success. Thanks. |
Beta Was this translation helpful? Give feedback.
-
The current Monarc composer.lock is built based on Did you also run from |
Beta Was this translation helpful? Give feedback.
-
I have tried the npm ci command but no success to getting it working. I have also tried using php 8.1-apache-buster but a dependency does not support it: |
Beta Was this translation helpful? Give feedback.
-
I have also tried clone the latest release version. No success either:
|
Beta Was this translation helpful? Give feedback.
-
There is no branch |
Beta Was this translation helpful? Give feedback.
-
Hi @ruslanbaidan --branch also works with tags. What I meant was the same bug is in the latest release and not just in 'development' code. Thanks for looking in to this. |
Beta Was this translation helpful? Give feedback.
-
Hi @ruslanbaidan I have not yet found a solution to the problem. My current Dockerfile looks like this:
When the Docker is launched, I am executing the following commands:
|
Beta Was this translation helpful? Give feedback.
-
There are a few things that I noted:
|
Beta Was this translation helpful? Give feedback.
-
My local.php file in /var/lib/monarc/fo/config/autoload has the following config for 'doctrine':
In my docker-compose.yml, I am passing the correct values. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Fresh install for Monarc. I am using Docker & MySQL. I have created and seeded both databases as well as the initial user. When trying to log in, The auth request is accepted but the frontend has a error in the console preventing from site to actually log me in:
TypeError: Cannot read properties of undefined (reading '1')
Have I skipped a step? Thanks.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Redirect to home page after login.
Desktop:
Beta Was this translation helpful? Give feedback.
All reactions