Photos app - Scrolling does not load photos

Nextcloud version: 21.0.1
Operating system and version: freebsd 13.0-release
Apache or nginx version: nginx - 1.18.0_49
PHP version : 7.4.16

The issue you are facing:
When I go to Photos (app) only the top images are shown, if i scroll down, the page shows a spinning circle and doesn’t load any more images.

(If I use the “Files app” to view photos instead, they all load properly.)

Is this the first time you’ve seen this error?:
Started happen in Nextcloud 21
I was on nextcloud 18.x before and there the photos app worked fine, I even tried a fresh install of Nextcloud, same error there, Photos won’t load if i scroll down.

Steps to replicate it:

  1. Go to photos.
  2. Scroll down.

The output of your Nextcloud log in Admin > Logging:
No errors in the log

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => '',
    1 => '',
    2 => '',
  ),
  'datadirectory' => '/usr/local/www/web-cloud-data',
  'dbtype' => 'mysql',
  'version' => '21.0.1.1',
  'overwrite.cli.url' => '',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'default_phone_region' => 'SE',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    3 => 'OC\\Preview\\HEIC',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\MarkDown',
    8 => 'OC\\Preview\\Movie',
  ),
  'preview_max_x' => '1920',
  'preview_max_y' => '1080',
  'jpeg_quality' => '70',
);

The output of your Apache/nginx/system log in /var/log/____:
No errors.

Hey shelterx - hope you are well and not too much worried :slight_smile:
And yes, welcome to the board

just by chance, i think i’ve got similar issue. In a folder i’ve got about 1000 Photos with about 270 directories. But NC does only show about 30 Directories at the front page (into the Photo App) and i am not able to scroll down. This is strange, because i’m using Nextcloud since a long time and see this behave the first time.

From the Folder perspective, i do see all the directories and photos (when jump in it).

I also did the upgrade from 20.0.6 to 21.0.1 some days ago - but i’m not sure at the moment - if this behave is about the upgrade.

I also did check the apache-/redis-/php-fpm & all the other logs … i cannot see any issues from there.

ok, at least - i think i’ve found the reason why in my case some directories and pics are not shown … all those dirs&files are related to the cookbook app (i love Cloud - especially Nextcloud and the poeple behind), but i do also love cooking.

I saw lot of “.nomedia” files in those directories, where the Photo-Gallery is showing the Pics →

i’m not quite sure, if this context is only true for the CookBook App →

The Nextcloud gallery currently scans recipe images. To avoid that, we can create a .nomedia or .noimage file, so that the gallery app ignores the folder.

So shelterx … have a look to such “.nomedia” … “.noimage” files … maybe there are some.

No such files as .nomedia or .noimage. Doesn’t seem to matter what browser I use either.
Here’s how it looks like_


When it is in that state, I can’t click Your videos either, it won’t load that page without a page reload.

Here’s the dev-console output:

(The iPhone app works tho’, it shows the images.)

I have similar problem. It used to work perfectly until update to 21.

Yeah, it seems to be a known bug.

Yes, see Photos app - Does not load photos when scrolling down · Issue #748 · nextcloud/photos · GitHub