Code Monkey home page Code Monkey logo

Comments (4)

stefan0xC avatar stefan0xC commented on August 16, 2024

Given the error messages in the other thread you probably have overwritten the admin templates. Cf. #4605 (comment)

from vaultwarden.

Opicka879 avatar Opicka879 commented on August 16, 2024

Given the error messages in the other thread you probably have overwritten the admin templates. Cf. #4605 (comment)

I don't think I'm overwriting the template. I only edited some icons and email templates. I am sending the log from the browser console and the way I start the container. Can you advise me what I am doing wrong? On version 1.30.2, sending invitations worked normally, then I don't know, I didn't need it for a long time.

Thank you.

Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
Error with Permissions-Policy header: Unrecognized feature: 'battery'.
Error with Permissions-Policy header: Unrecognized feature: 'document-domain'.
Error with Permissions-Policy header: Unrecognized feature: 'execution-while-not-rendered'.
Error with Permissions-Policy header: Unrecognized feature: 'execution-while-out-of-viewport'.
overview:982 
         
         
        GET https://myvwadress/vw_static/jquery-3.7.0.slim.js net::ERR_ABORTED 400 (Bad Request)
 overview:1 Refused to execute script from 'https://myvwadress/vw_static/jquery-3.7.0.slim.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
 datatables.js:71 Uncaught ReferenceError: jQuery is not defined
     at datatables.js:71:31
     at datatables.js:73:2
 (anonymous) @ datatables.js:71
 (anonymous) @ datatables.js:73
 admin_users.js:162 Uncaught ReferenceError: jQuery is not defined
     at admin_users.js:162:1
 (anonymous) @ admin_users.js:162
 overview:985 
         
         
        GET https://myvwadress/vw_static/jdenticon.js net::ERR_ABORTED 400 (Bad Request)
 overview:1 Refused to execute script from 'https://myvwadress/vw_static/jdenticon.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
 inject-root-bundle.js:1 RSS_Basic_Detect.js: Expected contentType string
 Wt @ inject-root-bundle.js:1
 Promise.then (async)
 zt @ inject-root-bundle.js:1
 (anonymous) @ inject-root-bundle.js:1
 (anonymous) @ inject-root-bundle.js:1
 (anonymous) @ inject-root-bundle.js:1
 Show 5 more frames
 Show less
docker run -d \
--name vaultwarden \
--restart always \
-e EXPERIMENTAL_CLIENT_FEATURE_FLAGS=autofill-v2,autofill-overlay \
-e LOG_FILE=/data/vaultwarden.log \
-e LOG_LEVEL=warn -e EXTENDED_LOGGING=true \
-e TZ=Europe/Prague \
-e PUSH_ENABLED=true \
-e PUSH_RELAY_URI=https://push.bitwarden.eu \
-e PUSH_IDENTITY_URI=https://identity.bitwarden.eu \
-e PUSH_INSTALLATION_ID=myid \
-e PUSH_INSTALLATION_KEY=mykey \
-v /vw-data/:/data/ \
-v /home/opicka/images/fallback-icon.png:/web-vault/images/fallback-icon.png:ro \
-v /home/opicka/images/icon-white.png:/web-vault/images/icon-white.png:ro \
-v /home/opicka/images/[email protected]:/web-vault/images/[email protected]:ro \
-v /home/opicka/images/logo-gray.png:/web-vault/images/logo-gray.png:ro \
-v /home/opicka/images/[email protected]:/web-vault/images/[email protected]:ro \
-v /home/opicka/images/vaultwarden-favicon.png:/web-vault/images/vaultwarden-favicon.png:ro \
-v /home/opicka/images/vaultwarden-icon.png:/web-vault/images/vaultwarden-icon.png:ro \
-v /home/opicka/images/apple-touch-icon.png:/web-vault/images/apple-touch-icon.png:ro \
-v /home/opicka/images/favicon-16x16.png:/web-vault/images/favicon-16x16.png:ro \
-v /home/opicka/images/favicon-32x32.png:/web-vault/images/favicon-32x32.png:ro \
-v /home/opicka/images/safari-pinned-tab.svg:/web-vault/images/safari-pinned-tab.svg:ro \
-p 8081:80 \
vaultwarden/server:testing

from vaultwarden.

stefan0xC avatar stefan0xC commented on August 16, 2024

Like I said you probably are overwriting the admin templates because your admin interface is requesting files that have been renamed by d6b9709 and f05398a. Cf. https://github.com/dani-garcia/vaultwarden/wiki/Translating-the-email-templates

Commit d6b9709 (which is shipped since 1.30.4) updated jquery-3.7.0.slim.js to jquery-3.7.1.slim.js

<script src="{{urlpath}}/vw_static/jquery-3.7.1.slim.js"></script>
<script src="{{urlpath}}/vw_static/jquery-3.7.1.slim.js"></script>

And if you are using the testing image you'll also need to change jdenticon.js to jdenticon-3.3.0.js in those files because of f05398a

<script src="{{urlpath}}/vw_static/jdenticon-3.3.0.js"></script>
<script src="{{urlpath}}/vw_static/jdenticon-3.3.0.js"></script>

So if you have overwritten src/static/templates/admin/users.hbs (by placing a corresponding file in /vw-data/templates/admin/users.hbs) you need to update that file (and also /vw-data/templates/admin/organizations.hbs accordingly).

from vaultwarden.

Opicka879 avatar Opicka879 commented on August 16, 2024

@stefan0xC Thank you for help. I will try to fix it.

from vaultwarden.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.