-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Unable to create new asset models under local network. #2985
Comments
``#0 [internal function]: Illuminate\Database\Query\Builder->__call('errors', Array) |
Does that stack trace happen every time you try to save? Also please check for browser errors, and make sure the APP_URL in your .env is EXACTLY the same as the url you're accessing the site from. |
I'm not sure about the stack. Should I clear the log, and retry that? However, if I logged under my local IP>>http://192.168.1.17:5443 |
You have to access it via the URL in APP_URL. Browsers prevent loading JS from other domains, which means any JS functions won't work if you use a different domain name. |
Is JS means Java Script? |
No, it won't work. |
I see. |
If it's necessary in the URL. then yes |
by the way, how do I clear out the log ? |
Sorry, I meant asset models. Thanks. |
No bulk delete for asset models |
Hi, folder permissions: I currently have two issues with v3.6.1:
Tried with/without: port number. Log:
Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'note' in 'field list' (SQL: insert into ` |
Did you run |
Yes, I ran all the commands instructed: `php artisan config:clear ` |
Oops, that's actually a bug. Will be fixed in develop shortly. |
Thanks for the prompt responses. Regarding issue #1, Do I need to change the key type after each upgrade? |
Any time you edit a file like that, you'll have to do it every time. It's why we don't recommend editing those files (including changing the cipher type) |
If I don't change the cipher type, then Snipe-IT will not work. |
Can you define 'will not work'? |
It defaults to using an mcrypt cipher. Install mcrypt and the existing cipher should work. But you can't change it from one to the other if you have any encrypted values in the db (encrypted custom fields, LDAP password, etc) |
Well, Snipe-IT page gave me an error when I did the installation and after the upgrade. |
Expected Behavior (or desired behavior if a feature request)
I tried to create a new asset models by the following steps:
Actual Behavior
I tried to create a new asset models by the following steps:
The work around is to create new models under Admin settings.
In addition, after I did the work-around solution, I selected "Ready to Deploy" status, and waiting for the user field to populate, but nothing happened, it just spinning circle next to the R2D status.
It worked if I logged under the URL.
Please confirm you have done the following before posting your bug report:
Please provide answers to these questions before posting your bug report:
Version of Snipe-IT you're running: v3.6.0-g91caba0
php: 5.6.27
mysql: 5.5.53-0+deb8u1
What OS and web server you're running Snipe-IT on: Debian Jessie
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc): manual installation
WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
If a stacktrace is provided in the error, include that too.
Any errors that appear in your browser's error console.
Confirm whether the error is reproduceable on the demo: not occured
Indicate whether or not you've manually edited any data directly in the database: No
The text was updated successfully, but these errors were encountered: