No thumbnails of XLSX and DOCX files in activity page

Nextcloud version: 28.0.2
Operating system and version: Ubuntu 22.04.3 LTS
Apache or nginx version: 2.4.52
PHP version: v8.1.2-1ubuntu2.14

The issue you are facing:

No thumbnails (icons) displayed for XLSX and DOCX files on Activity page.

Is this the first time you’ve seen this error? N (I have already seen this on nc 27)

Steps to replicate it:

  1. Open NextCloud
  2. Upload new or edit any existing DOCX or XLSX file
  3. Open Activity page

The output of your Nextcloud log in Admin > Logging:

No errors logged for this problem

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

<?php
$CONFIG = array (
  'skeletondirectory' => '',
  'default_phone_region' => 'RU',
  'passwordsalt' => 'salt',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'secret_ip',
    2 => 'secret_dns_name',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '28.0.2.5',
  'overwrite.cli.url' => 'secret',
  'htaccess.RewriteBase' => '/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'user',
  'dbpassword' => 'password',
  'installed' => true,
  'instanceid' => 'secret',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'trashbin_retention_obligation' => 'auto, 30',
  'filelocking.enabled' => 'true',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'secret',
  'mail_domain' => 'secret',
  'mail_smtphost' => 'secret',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'secret@secret.ru',
  'mail_smtppassword' => 'secret',
  'maintenance' => false,
  'maintenance_window_start' => 23,
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => 'secret',
);

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

No errors found in the log about this problem

PASTE HERE


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.

No errors found in the log about this problem

Has this issue of yours been resolved?

No, still the same issue.

1、run “apt install libreoffice libreoffice-l10n-de libreoffice-help-de”
2、apt install ffmpeg imagemagick ghostscript
3、vi config.php
‘preview_libreoffice_path’ => ‘/usr/bin/libreoffice’,
‘enable_previews’ => true,
‘enabledPreviewProviders’ =>
array (
0 => ‘OC\Preview\TXT’,
1 => ‘OC\Preview\MarkDown’,
2 => ‘OC\Preview\OpenDocument’,
3 => ‘OC\Preview\PDF’,
4 => ‘OC\Preview\MSOffice2003’,
5 => ‘OC\Preview\MSOfficeDoc’,
6 => ‘OC\Preview\Image’,
7 => ‘OC\Preview\Photoshop’,
8 => ‘OC\Preview\TIFF’,
9 => ‘OC\Preview\SVG’,
10 => ‘OC\Preview\Font’,
11 => ‘OC\Preview\MP3’,
12 => ‘OC\Preview\Movie’,
13 => ‘OC\Preview\MKV’,
14 => ‘OC\Preview\MP4’,
15 => ‘OC\Preview\AVI’,
),