Gallery not skipping images

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): 21.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.3)
Apache or nginx version (eg, Apache 2.4.25): nginx/1.20.1
PHP version (eg, 7.4): 8.0

The issue you are facing: I have directories with images I do not want to show up in the gallery. These include personal directories but also directories created by NextCloud Cookbook. In my directories, I have .noimage, .noimages, and .nomedia. In the NextCloud Cookbook folders, they just use .nomedia.

I first noticed this on 21.0.3 but I do not know how long this has been occurring. Upgrading to 21.0.4 did not fix. I also apparently had not been running cron jobs for a month. Fixing that problem did not help either. I did rescan the files with occ as well. This did not fix the problem either.

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

Steps to replicate it:

  1. Have directories with images and .nomedia files
  2. Notice that the images still show up in Gallery.

The output of your Nextcloud log in Admin > Logging:

Error: Function libxml_disable_entity_loader() is deprecated at /srv/nextcloud/lib/private/Updater/VersionCheck.php#101
{"reqId":"BbSjIHTbhaiwwHfFy5JA","level":3,"time":"2021-08-22T12:33:27+00:00","remoteAddr":"74.97.53.238","user":"Sam","app":"PHP","method":"GET","url":"/settings/admin/overview","message":{"Exception":"Error","Message":"Function libxml_disable_entity_loader() is deprecated at /srv/nextcloud/lib/private/Updater/VersionCheck.php#101","Code":0,"Trace":
[{"file":"/srv/nextcloud/lib/private/Updater/VersionCheck.php","line":101,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},
{"file":"/srv/nextcloud/apps/updatenotification/lib/UpdateChecker.php","line":53,"function":"check","class":"OC\\Updater\\VersionCheck","type":"->"},
{"file":"/srv/nextcloud/apps/updatenotification/lib/Settings/Admin.php","line":90,"function":"getUpdateState","class":"OCA\\UpdateNotification\\UpdateChecker","type":"->"},
{"file":"/srv/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":138,"function":"getForm","class":"OCA\\UpdateNotification\\Settings\\Admin","type":"->"},
{"file":"/srv/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":83,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},
{"file":"/srv/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},
{"file":"/srv/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},
{"file":"/srv/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},
{"file":"/srv/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/srv/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/srv/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},
{"file":"/srv/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->"},
{"file":"/srv/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/srv/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36","version":"21.0.3.1","id":"61229df59b400"}

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 => '---',
  ),
  'datadirectory' => '---/nextcloud/data',
  'dbtype' => 'mysql',
  'default_phone_region' => 'US',
  'version' => '21.0.4.1',
  'overwrite.cli.url' => '---',
  'dbname' => '---,
  'dbhost' => '---:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '---',
  'dbpassword' => '---',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => '---',
  'mail_smtphost' => '---',
  'mail_smtpport' => '993',
  'app_install_overwrite' => 
  array (
    0 => 'twofactor_rcdevsopenotp',
  ),
  'updater.release.channel' => 'stable',
  'updater.secret' => '---',
);


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

nothing