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

Selection fields load forever but doesn't show any content #14980

Closed
2 tasks done
tw-auh opened this issue Jun 27, 2024 · 5 comments
Closed
2 tasks done

Selection fields load forever but doesn't show any content #14980

tw-auh opened this issue Jun 27, 2024 · 5 comments

Comments

@tw-auh
Copy link

tw-auh commented Jun 27, 2024

Debug mode

Describe the bug

I'm not able to assign a User to a Company. There's just a spinning circle that seems to load forever. This also occurs on every other selection like this one, for example when creating an asset it's not possible to choose the manufacturer.
image

Reproduction steps

Try to create anything where you can select other things like company, category, manufacturer... and try to select those through the menu, it will just show the spinning circle and that's it.

Expected behavior

There should be the two mentioned companies in the list, where I can assign the User to one of them.

Screenshots

No response

Snipe-IT Version

v7.0.4 - build 14011 (master)

Operating System

Ubuntu 22.04

Web Server

Apache

PHP Version

8.1.2

Operating System

Windows 11

Browser

Vivaldi, Chrome, Edge

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

Copy link

welcome bot commented Jun 27, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@tw-auh tw-auh changed the title User not assignable to company Selection fields load forever but doesn't show any content Jun 27, 2024
@snipe
Copy link
Owner

snipe commented Jun 27, 2024

Per the issue template, please provide your app logs and the results of your browser console. https://snipe-it.readme.io/docs/getting-help

Snipe-IT Documentation
If you're having trouble setting up Snipe-IT, don't worry!

@tw-auh
Copy link
Author

tw-auh commented Jun 27, 2024

Browser Console:
browserconsole.log

create:1 Mixed Content: The page at 'https://snipeit.my-company.de/accessories/create' was loaded over HTTPS, but requested an insecure element 'http:https://snipeit.my-company.de/uploads/setting-logo-1-0vpUFEdDGj.png'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
create:1015 Mixed Content: The page at 'https://snipeit.my-company.de/accessories/create' was loaded over HTTPS, but requested an insecure element 'http:https://snipeit.my-company.de/uploads/setting-logo-1-0vpUFEdDGj.png'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
create:1 Mixed Content: The page at 'https://snipeit.my-company.de/accessories/create' was loaded over HTTPS, but requested an insecure script 'http:https://snipeit.my-company.de/vendor/livewire/livewire.js?id=90730a3b0e7144480175'. This request has been blocked; the content must be served over HTTPS.
create:1194 Uncaught ReferenceError: Livewire is not defined
    at create:1194:27
all.js?id=99df559d106d7c1da6beff663646d76f:1 jQuery.Deferred exception: Cannot read properties of undefined (reading 'hook') TypeError: Cannot read properties of undefined (reading 'hook')
    at HTMLDocument.<anonymous> (https://snipeit.my-company.de/js/dist/all.js?id=99df559d106d7c1da6beff663646d76f:1:795980)
    at u (https://snipeit.my-company.de/js/dist/all.js?id=99df559d106d7c1da6beff663646d76f:1:29995)
    at c (https://snipeit.my-company.de/js/dist/all.js?id=99df559d106d7c1da6beff663646d76f:1:30297) undefined
x.Deferred.exceptionHook @ all.js?id=99df559d106d7c1da6beff663646d76f:1
all.js?id=99df559d106d7c1da6beff663646d76f:1 Uncaught TypeError: Cannot read properties of undefined (reading 'hook')
    at HTMLDocument.<anonymous> (all.js?id=99df559d106d7c1da6beff663646d76f:1:795980)
    at u (all.js?id=99df559d106d7c1da6beff663646d76f:1:29995)
    at c (all.js?id=99df559d106d7c1da6beff663646d76f:1:30297)
create:1 Mixed Content: The page at 'https://snipeit.my-company.de/accessories/create' was loaded over HTTPS, but requested an insecure favicon 'http:https://snipeit.my-company.de/favicon.ico'. This request has been blocked; the content must be served over HTTPS.
all.js?id=99df559d106d7c1da6beff663646d76f:1 Mixed Content: The page at 'https://snipeit.my-company.de/accessories/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http:https://snipeit.my-company.de/api/v1/manufacturers/selectlist?page=1'. This request has been blocked; the content must be served over HTTPS.
send @ all.js?id=99df559d106d7c1da6beff663646d76f:1
all.js?id=99df559d106d7c1da6beff663646d76f:1 Mixed Content: The page at 'https://snipeit.my-company.de/accessories/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http:https://snipeit.my-company.de/api/v1/categories/accessory/selectlist?page=1'. This request has been blocked; the content must be served over HTTPS.
send @ all.js?id=99df559d106d7c1da6beff663646d76f:1
ajax @ all.js?id=99df559d106d7c1da6beff663646d76f:1
transport @ all.js?id=99df559d106d7c1da6beff663646d76f:1
o @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.n.query @ all.js?id=99df559d106d7c1da6beff663646d76f:1
(anonymous) @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.n.invoke @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.n.trigger @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.r.trigger @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.r.open @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.r.toggleDropdown @ all.js?id=99df559d106d7c1da6beff663646d76f:1
(anonymous) @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.n.invoke @ all.js?id=99df559d106d7c1da6beff663646d76f:1
e.define.n.trigger @ all.js?id=99df559d106d7c1da6beff663646d76f:1
(anonymous) @ all.js?id=99df559d106d7c1da6beff663646d76f:1
dispatch @ all.js?id=99df559d106d7c1da6beff663646d76f:1
m.handle @ all.js?id=99df559d106d7c1da6beff663646d76f:1

The storage/logs directory is empty, just a .gitignore file

@snipe
Copy link
Owner

snipe commented Jun 27, 2024

If you're running this over TLS, make sure your APP_URL is set to use https:// instead of http:https://.

@tw-auh
Copy link
Author

tw-auh commented Jun 27, 2024

Thank you!
Seems I forgot to hit save after editing the URL in the .env-File.

It works now as expected.

@tw-auh tw-auh closed this as completed Jun 27, 2024
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