snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.11k stars 3.18k forks source link

Import page is blank #4973

Closed rodeff closed 5 years ago

rodeff commented 6 years ago

Expected Behavior (or desired behavior if a feature request) When you open the import page should have fields that let you import file.

Actual Behavior Currently */import page is blank. Just background :)

Please confirm you have done the following before posting your bug report:

I have enabled debug mode - no errors displayed. I have read checked the Common Issues page - yes and couldn't fine anything related to this issue.

Provide answers to these questions: •Is this a fresh install or an upgrade? Upgrade and New - I have two instances. •Version of Snipe-IT you're running - v4.1.10 build 3249 (g8d3a214) •Version of PHP you're running - 7.1.9 •Version of MySQL/MariaDB you're running - MariaDB 10.0 •What OS and web server you're running Snipe-IT on - Windows 2016 •What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) - GIT •WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error - No error •What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error - */import •If a stacktrace is provided in the error, include that too. •Any errors that appear in your browser's error console. - n/a •Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. - Yes, but also gives this: DEMO MODE: Some features are disabled for this installation. •Include any additional information you can find in storage/logs and your webserver's logs. •Include what you've done so far in the installation, and if you got any error messages along the way. •Indicate whether or not you've manually edited any data directly in the database - Yes, but long time ago and not modifying the locations.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/54684407-import-page-is-blank?utm_campaign=plugin&utm_content=tracker%2F505106&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F505106&utm_medium=issues&utm_source=github).
snipe commented 6 years ago

Can you provide screenshots? Also please provide a screenshot of your browser’s debug console - and if you could see if this happens in multiple browsers? Was there anything in your storage/logs?

rodeff commented 6 years ago

Hi, Just downloaded Mozilla Firefox, it works well with it, but with IE it doesn't. As IE is the default browser for our company, I can't use Firefox. Storage/logs/laravel.log has nothing related to this.

Here is the browser debug: <!DOCTYPE html>

Import :: OURCOMPANY
rodeff commented 6 years ago

And here is the screenshot:

15179863431298408494727930670896

snipe commented 6 years ago

That’s the source code, not the browser debug console.

rodeff commented 6 years ago

Ahahahahahhha, you are so right. I must have been sleeping and not thinking what I was doing 😀 Here is the log. 1

lea-mink commented 6 years ago

Hello :) I had the same problem.

I found that it is the template tag in the import.blade.php file which generates an error because it is in a tbody tag.

I solve this problem by :

This is my modifications (import.blade.php line 63):

                                      <tbody>
                                        <tr v-for="currentFile in files">
                                            <td>@{{ currentFile.file_path }}</td>
                                            <td>@{{ currentFile.created_at }} </td>
                                            <td>@{{ currentFile.filesize }}</td>
                                            <td>
                                            <button class="btn btn-sm btn-info" @click="toggleEvent(currentFile.id)">Process</button>
                                                <button class="btn btn-sm btn-danger" @click="deleteFile(currentFile)"><i class="fa fa-trash icon-white"></i></button>
                                            </td>
                                            <td>
                                                <import-file
                                                        :key="currentFile.id"
                                                        :file="currentFile"
                                                        :custom-fields="customFields"
                                                        @alert="updateAlert(alert)">
                                                </import-file>
                                            </td>
                                        </tr>
                                    </tbody>

And this is the result on the screen :

ie11

However, when we click on the delete button, there is the error "Object doesn't support property or method 'assign' ". It seems that this method comes from the Ziggy package. I don't know how to solve this problem. Does anyone have an idea ?

snipe commented 6 years ago

@dmeltzer have you had a chance to look at this?

linglongtong commented 6 years ago

I have the same problem.

image

snipe commented 6 years ago

@dmeltzer have you found a solve for this one yet?

snipe commented 6 years ago

@dmeltzer I know you probably haven't had a chance to look at this, but any chance you'll be able to?

HinchK commented 5 years ago

I am seeing this issue on current develop branch, testing IE:

image

HinchK commented 5 years ago

image (IE 11.253....) image

From the console output:

"'currentFile'" is undefined

snipe commented 5 years ago

Possible resource:

https://stackoverflow.com/questions/52564265/in-microsoft-edge-vue-does-a-web-page-error-it-works-well-in-other-browsers-w

snipe commented 5 years ago

This fix is now on develop and will be in the next major release