File browser goes back to first image opened after exiting viewer

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): 28.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 12 running in a Proxmox LXC
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.59 (Debian)
PHP version (eg, 7.4): PHP 8.2.18

The issue you are facing:

Every time I view a folder with images. I click on the photo. It loads up the image in the photo viewer. If you close out of the photo viewer then click on a different one it loads fine but then if you exit the file brower jumps back to the very first image you clicked on in the folder. User (tambel) posted a GIF in another thread with this exact issue here.

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

Steps to replicate it:

  1. Browse a folder with images
  2. Click on image where it brings up the photo viewer. Exit out of photo viewer Scoll down and click on another image.
  3. After you exit the picture viewer again the file browser goes to the back to the first image you opened.

The output of your Nextcloud log in Admin > Logging:

There's no errors when this occurs. 

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

<?php
$CONFIG = array (
  'instanceid' => 'REMOVED',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' => 
  array (
    0 => 'REMOVED',
    1 => 'REMOVED',
    2 => 'REMOVED',
    3 => 'REMOVED',
  ),
  'trusted_proxies' => 
  array (
    0 => 'REMOVED',
  ),
  'datadirectory' => '/storage1/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '28.0.4.1',
  'overwrite.cli.url' => 'REMOVED',
  'overwritehost' => 'REMOVED',
  'overwriteprotocol' => 'https',
  'dbname' => 'REMOVED',
  'dbhost' => 'REMOVED:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REMOVED',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'REMOVED',
    'port' => 6379,
  ),
  'enable_previews' => true,
  'preview_max_x' => 1920,
  'preview_max_y' => 1080,
  'preview_max_scale_factor' => 1,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
    11 => 'OC\\Preview\HEIC',
  ),
  'default_phone_region' => 'US',
  'mail_from_address' => 'REMOVED',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'gmail.com',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'REMOVED',
  'mail_smtppassword' => 'REMOVED',
  'maintenance' => false,
  'maintenance_window_start' => 1,
  'theme' => '',
  'loglevel' => 2,
);


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

https://pastebin.com/30SEkN0T