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

TypeError: Cannot read properties of undefined (reading 'dark_mode') #518

Closed
robinFdr opened this issue Aug 7, 2024 · 7 comments
Closed

Comments

@robinFdr
Copy link

robinFdr commented Aug 7, 2024

Environment

  • OS: Ubuntu 22.04
  • Browsers tested: Firefox 129.0 (64-Bit) & Chrome Version 127.0.6533.88 (Official Build) (64-bit)
  • (as System Theme I have dark theme selected)

Steps to Reproduce

  • install locally as described in README
    • so I did the following
    git clone https://github.com/JhumanJ/OpnForm.git
    cd OpnForm
    cp .env.docker .env
    cp client/.env.docker client/.env
    docker-compose up -d
  • go to http://localhost
  • login with:

    Email: admin@opnform.com
    Password: password

  • go to your forms
  • create new form > Start from a simple contact form
  • do nothing else (Dark Theme is set to auto)
    grafik
  • click publish
  • open the form url in new tab/browser/same browser
    grafik

Result:

  • blank page, some error is shown very briefly, all I could read was "Whoops"
    grafik
  • browser console displays: TypeError: Cannot read properties of undefined (reading 'dark_mode')

Expected Result

  • See Form to fill

Additional Info

  • changing to explicit theme light or dark, and even changing the theme to notion didn't help, same result
@JhumanJ
Copy link
Owner

JhumanJ commented Aug 8, 2024

Thanks for the report. I managed to reproduce the issue, not sure what's happening here - will look into it!

@JhumanJ
Copy link
Owner

JhumanJ commented Aug 8, 2024

I believe this issue occurs because api calls by Nuxt on the server side are not successfull

@JhumanJ
Copy link
Owner

JhumanJ commented Aug 8, 2024

Should be all good now! Please make sure to start over, pull the latest images and make sure to run the new scrips to generate .env files

@JhumanJ JhumanJ closed this as completed Aug 8, 2024
@robinFdr
Copy link
Author

robinFdr commented Aug 8, 2024

thank you for your quick response, works like a charm now 👍

@JhumanJ
Copy link
Owner

JhumanJ commented Aug 8, 2024

thank you for your quick response, works like a charm now 👍

Good to here, thanks a lot for the detailed issue ✌️

@robinFdr
Copy link
Author

robinFdr commented Aug 8, 2024

quick question, is it possible to have multiple accounts on the self hosted setup?

@JhumanJ
Copy link
Owner

JhumanJ commented Aug 8, 2024

Login is disabled but you can create multiple workspaces and invite more users. Public Registration is not enabled on the self hosted version

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

2 participants