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

Files app not showing files #5142

Closed
leonidasv opened this issue May 27, 2017 · 3 comments
Closed

Files app not showing files #5142

leonidasv opened this issue May 27, 2017 · 3 comments

Comments

@leonidasv
Copy link

leonidasv commented May 27, 2017

Steps to reproduce

I simply don't know. It just happened. Browser console shows relevant data. It appears to be related to mimetypes, but I have already update js and db from occ. Integrity check failed too, but the file is intact.

Server configuration

Operating system: Ubuntu 16.04

Web server: nginx

Database: Mysql

PHP version: 7.0

Nextcloud version: 12

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: source

Signing status:

Signing status
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- INVALID_HASH
		- core/js/mimetypelist.js

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/js/mimetypelist.js] => Array
                        (
                            [expected] => f5f4e514fa14e71a2e15d21a2e88de9945e1bbf041dda59e3574e91a1a1432f66a06b456242a1ea23872220e3a28048bbaaad3b004e205a566350a44d4def450
                            [current] => 8c0c95500d9cce7fbc4dfa5f766bcd8a74719964c8be5e8e93a9313446fdc0a9b811f0c4f471f297624b8e790de060992ae2967a28b3f761619a306c192189b5
                        )

                )

        )

)

Browser log

Browser log ``` Uncaught (in promise) TypeError: Cannot read property 'aliases' of undefined at Object.getIconUrl (merged-template-prepend.js?v=2b3ba31…-0:4460) at FileList._getIconUrl (merged-index.js?v=2b3ba31…-0:5061) at FileList._createRow (merged-index.js?v=2b3ba31…-0:5072) at FileList.fileList._createRow (merged-index.js?v=2b3ba31…-0:7624) at FileList.fileList._createRow (merged.js?v=2b3ba31…-0:964) at FileList.fileList._createRow (additionalScripts.js?v=2b3ba31…-0:44) at FileList._renderRow (merged-index.js?v=2b3ba31…-0:5376) at FileList._nextPage (merged-index.js?v=2b3ba31…-0:4942) at FileList.setFiles (merged-index.js?v=2b3ba31…-0:5013) at FileList.reloadCallback (merged-index.js?v=2b3ba31…-0:5675) ```

Server log

Server log ``` Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/lib/private/Files/Type/Detection.php#104 2017-05-26T22:08:12-0300 Error PHP array_merge(): Argument #1 is not an array at /var/www/nextcloud/lib/private/Files/Type/Detection.php#101 2017-05-26T22:08:10-0300 Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/lib/private/Files/Type/Detection.php#104 2017-05-26T22:08:08-0300 Error PHP array_merge(): Argument #1 is not an array at /var/www/nextcloud/lib/private/Files/Type/Detection.php#101 2017-05-26T22:08:07-0300 Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/lib/private/Files/Type/Detection.php#104 2017-05-26T22:08:06-0300 Error PHP array_merge(): Argument #2 is not an array at /var/www/nextcloud/lib/private/Files/Type/Detection.php#101 2017-05-26T22:08:05-0300 ```
@ColdSphinX
Copy link

ColdSphinX commented May 30, 2017

Can you show me your config/mimetypemapping.json ?
There is probably a missing comma or such.

@ma-karai
Copy link

same issues here, not sure why.

merged-template-prepend.js?v=b299430…-0:4460 Uncaught (in promise) TypeError: Cannot read property 'aliases' of undefined
    at Object.getIconUrl (merged-template-prepend.js?v=b299430…-0:4460)
    at FileList._getIconUrl (merged-index.js?v=b299430…-0:5059)
    at FileList._createRow (merged-index.js?v=b299430…-0:5072)
    at FileList.fileList._createRow (merged-index.js?v=b299430…-0:7624)
    at FileList.fileList._createRow (merged.js?v=b299430…-0:964)
    at FileList.fileList._createRow (additionalScripts.js?v=b299430…-0:44)
    at FileList._renderRow (merged-index.js?v=b299430…-0:5376)
    at FileList._nextPage (merged-index.js?v=b299430…-0:4942)
    at FileList.setFiles (merged-index.js?v=b299430…-0:5013)
    at FileList.reloadCallback (merged-index.js?v=b299430…-0:5675)

@leonidasv
Copy link
Author

Jut gave up and reinstalled, I found out it was a corrupted php file. Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants