Web UI doesn't load files and folders

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): 1.23.3
PHP version (eg, 7.4): 8.1.16

I use the offical Docker container image in my setup. Nginx works as a reverse proxy in front of the Nextcloud container

The issue you are facing:

When open the Web UI and click on files, the list stays empty, there is no file and/or folder.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Open the Web UI
  2. Click on files

The output of your Nextcloud log in Admin > Logging:

Fehler	PHP	Error: getimagesizefromstring(): Error reading from ! at /var/www/html/lib/private/legacy/OC_Image.php#619	
2023-03-07T19:27:29+0100
Information	updater	\OC\Updater::resetLogLevel: Reset log level to Warning(2)	
2023-03-01T11:04:58+0100
Information	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode	
2023-03-01T11:04:58+0100
Information	updater	\OC\Updater::updateEnd: Update successful	
2023-03-01T11:04:58+0100
Information	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check	
2023-03-01T11:04:58+0100
Information	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add possibly missing system config	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clean up abandoned apps	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add token cleanup job	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add background job to set the lookup server share state for users	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair DAV shares	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Queue a one-time job to check for user uploaded certificates	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add job to cleanup the bruteforce entries	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Remove old dashboard app config data	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Check encryption key format	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Keep legacy encryption enabled	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Reset generated avatar flag	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear access cache of projects	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: No need to remove link shares.	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Remove potentially over exposing share links	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add background job to cleanup login flow v2 tokens	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Cleanup invalid photocache files for carddav	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Queue a one-time job to cleanup old backups of the updater	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add preview background cleanup job	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear every generated avatar on major updates	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: JS cache cleared	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Image cache cleared	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear frontend caches	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add log rotate job	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair language codes	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: No mounts updated	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Fix potential broken mount points	
2023-03-01T11:04:54+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Update the oauth2_clients table schema.	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Update the oauth2_access_tokens table schema.	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Migrate oauth2_clients table to nextcloud schema	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add preview cleanup background jobs	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Repair step already executed	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add move avatar background job	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Move .step file of updater to backup location	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair invalid shares	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tags with no entries have been removed.	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tag entries for deleted tags have been removed.	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tags for delete files have been removed.	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tags of deleted users have been removed.	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clean tags and favorites	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair mime types	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: All tables already have the correct collation -> nothing to do	
2023-03-01T11:04:53+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair MySQL collation	
2023-03-01T11:04:53+0100
Information	updater	\OC\Updater::upgradeAppStoreApp: Update app "calendar" from appstore	
2023-03-01T11:04:51+0100
Information	updater	\OC\Updater::appUpgrade: Updated <related_resources> to 1.0.4	
2023-03-01T11:04:51+0100
Information	updater	\OC\Updater::appUpgradeStarted: Updating <related_resources> ...	
2023-03-01T11:04:51+0100
Information	updater	\OC\Updater::dbUpgrade: Updated database	
2023-03-01T11:04:51+0100
Information	updater	\OC\Updater::dbUpgradeBefore: Updating database schema	
2023-03-01T11:04:51+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Drop account terms table when migrating from ownCloud	
2023-03-01T11:04:51+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Copy data from accounts table when migrating from ownCloud	
2023-03-01T11:04:50+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair SQLite autoincrement	
2023-03-01T11:04:50+0100
Information	updater	OC\Repair\Events\RepairInfoEvent: Repair info: All tables already have the correct collation -> nothing to do	
2023-03-01T11:04:50+0100
Information	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair MySQL collation	
2023-03-01T11:04:50+0100
Information	updater	\OC\Updater::maintenanceEnabled: Turned on maintenance mode	
2023-03-01T11:04:50+0100

When I open the developer tools I can see the following entry while opening the Web UI:

jQuery.Deferred exception: Cannot read properties of undefined (reading 'getIconUrl') TypeError: Cannot read properties of undefined (reading 'getIconUrl')
    at FileList._getIconUrl (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:5717:24)
    at FileList._createRow (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:5730:34)
    at fileList._createRow (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:12505:28)
    at e._createRow (https://cloud.XXXX/dist/files_sharing-additionalScripts.js?v=5d588ee0-10:2:703)
    at e._createRow (https://cloud.XXXX/dist/comments-comments.js?v=5d588ee0-10:2:1718)
    at FileList._renderRow (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:6111:18)
    at FileList._nextPage (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:5556:15)
    at FileList.setFiles (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:5664:9)
    at FileList.reloadCallback (https://cloud.XXXX/js/files/merged-index.js?v=5d588ee0-10:6418:9)
    at c (https://cloud.XXXX/dist/core-common.js?v=5d588ee0-10:2:10815074) undefined

The files and folders are there, I can sync them with the desktop client. Only the Web UI won’t show them.

I think the issue is present since the last update to 25.0.4.

I hope somebody can help me.

Thanks!

Best regards
Michael

The problem is fixed.

I ran the occ files:scan-app-data command in my Nextcloud container and reload the Web UI page with CTRL+F5 to do a full re-load and my files and folders are visible again!

Best regards
Michael

2 Likes