Nextcloud version (eg, 20.0.5): 27.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.2 LTS x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 7.4): 8.2
The issue you are facing:
Hello to the Nextcloud community
I currently cannot get image previews going except for HEIC images. HEIC images show previews, but everything else, including all other image types, documents, etcetera do not show any image previews.
I don’t honestly remember if those image previews were working before I enabled HEIC images. I tried disabling HEIC image support by removing the HEIC line from the config.php, but that makes my server crash.
The output of your Nextcloud log in Admin > Logging:
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T14:46:11-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T14:23:58-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T14:17:57-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T14:14:12-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T14:12:20-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T14:11:22-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T14:10:01-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T14:09:14-0400
Error webdav InvalidArgumentException: X-OC-MTime header must be a valid positive integer 2023-06-16T14:00:16-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:57:31-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:57:30-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:57:22-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:57:01-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:56:31-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T13:48:19-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T13:47:09-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T13:45:37-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T13:43:15-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:39:54-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:29:06-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:28:32-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:28:02-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:27:32-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:27:02-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:26:32-0400
Error no app in context Exception: Class "IntlBreakIterator" not found in file '/var/www/nextcloud/lib/private/EmojiHelper.php' line 45 2023-06-16T13:26:02-0400
Error PHP Using ${var} in strings is deprecated, use {$var} instead at /var/www/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php#13409 2023-06-16T13:25:50-0400
Error PHP Allowed memory size of 134217728 bytes exhausted (tried to allocate 263103560 bytes) at /var/www/nextcloud/lib/private/Installer.php#299 2023-06-16T13:25:40-0400
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocdytz39duu6',
'passwordsalt' => 'hidden',
'secret' => 'hiden',
'trusted_domains' =>
array (
0 => 'hidden.domain.com',
),
'datadirectory' => '/10tb/nextcloud/data',
'dbtype' => 'mysql',
'version' => '27.0.0.8',
'overwrite.cli.url' => 'https://mydomain.hidden',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'hidden',
'dbpassword' => 'hidden',
'installed' => true,
'maintenance' => false,
'enable_previews' => true,
'enabledPreviewProviders' => [
'OC\\Preview\\HEIC',
],
);
The output of your Apache/nginx/system log in /var/log/____
:
[Fri Jun 16 17:24:23.469501 2023] [mpm_prefork:notice] [pid 31459] AH00170: caught SIGWINCH, shutting down gracefully
Created directory: /var/lib/snmp/cert_indexes
[Fri Jun 16 17:24:23.573659 2023] [mpm_prefork:notice] [pid 35683] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 17:24:23.573703 2023] [core:notice] [pid 35683] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 17:25:40.990277 2023] [php:error] [pid 35684] [client 73.123.37.53:61925] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 263103560 bytes) in /var/www/nextclo>[Fri Jun 16 17:29:13.376917 2023] [access_compat:error] [pid 35690] [client 73.123.37.53:62192] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Fri Jun 16 17:43:10.400279 2023] [mpm_prefork:notice] [pid 35683] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 17:43:10.544235 2023] [mpm_prefork:notice] [pid 36346] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 17:43:10.544289 2023] [core:notice] [pid 36346] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 17:45:33.547472 2023] [mpm_prefork:notice] [pid 36346] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 17:45:33.676455 2023] [mpm_prefork:notice] [pid 36408] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 17:45:33.676502 2023] [core:notice] [pid 36408] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 17:46:50.505953 2023] [mpm_prefork:notice] [pid 36408] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 17:46:50.642991 2023] [mpm_prefork:notice] [pid 36443] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 17:46:50.643039 2023] [core:notice] [pid 36443] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 17:48:13.970201 2023] [mpm_prefork:notice] [pid 36443] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 17:48:14.109958 2023] [mpm_prefork:notice] [pid 36494] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 17:48:14.110003 2023] [core:notice] [pid 36494] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 18:17:55.931521 2023] [mpm_prefork:notice] [pid 36494] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 18:17:56.048432 2023] [mpm_prefork:notice] [pid 39584] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 18:17:56.048586 2023] [core:notice] [pid 39584] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 18:23:55.385028 2023] [mpm_prefork:notice] [pid 39584] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 18:23:55.532970 2023] [mpm_prefork:notice] [pid 39745] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 18:23:55.533018 2023] [core:notice] [pid 39745] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 18:42:09.095094 2023] [php:error] [pid 53965] [client 51.12.216.100:57571] script '/var/www/nextcloud/xmlrpc.php' not found or unable to stat
[Fri Jun 16 18:45:50.992823 2023] [php:error] [pid 52489] [client 73.123.37.53:50480] PHP Parse error: Unclosed '(' on line 2 does not match ']' in /var/www/nextcloud/config/config.php on line 23
[Fri Jun 16 18:45:54.222975 2023] [mpm_prefork:notice] [pid 39745] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 18:45:54.360739 2023] [mpm_prefork:notice] [pid 54117] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 18:45:54.360884 2023] [core:notice] [pid 54117] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 16 18:45:56.568776 2023] [php:error] [pid 54119] [client 73.123.37.53:50487] PHP Parse error: Unclosed '(' on line 2 does not match ']' in /var/www/nextcloud/config/config.php on line 23
[Fri Jun 16 18:45:57.474431 2023] [php:error] [pid 54120] [client 73.123.37.53:50488] PHP Parse error: Unclosed '(' on line 2 does not match ']' in /var/www/nextcloud/config/config.php on line 23
[Fri Jun 16 18:45:59.050397 2023] [php:error] [pid 54121] [client 73.123.37.53:50490] PHP Parse error: Unclosed '(' on line 2 does not match ']' in /var/www/nextcloud/config/config.php on line 23, referer: h>[Fri Jun 16 18:46:03.280710 2023] [php:error] [pid 54123] [client 73.123.37.53:50492] PHP Parse error: Unclosed '(' on line 2 does not match ']' in /var/www/nextcloud/config/config.php on line 23
[Fri Jun 16 18:46:03.280709 2023] [php:error] [pid 54122] [client 73.123.37.53:50493] PHP Parse error: Unclosed '(' on line 2 does not match ']' in /var/www/nextcloud/config/config.php on line 23
[Fri Jun 16 18:46:09.365755 2023] [mpm_prefork:notice] [pid 54117] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 16 18:46:09.466959 2023] [mpm_prefork:notice] [pid 54142] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Jun 16 18:46:09.467004 2023] [core:notice] [pid 54142] AH00094: Command line: '/usr/sbin/apache2'
I also installed the image preview generator app. I can run it and it completes without errors. Example output:
2023-06-16T19:10:07+00:00 Generating previews for /jakem/files/USB Drive Recovery/week 7 discussion WCC.docx
2023-06-16T19:10:07+00:00 Generating previews for /jakem/files/USB Drive Recovery/week7 paper WWC - opinion.docx
2023-06-16T19:10:07+00:00 Generating previews for /jakem/files/USB Drive Recovery/white collar crime and gender- opinion.docx
2023-06-16T19:10:07+00:00 Generating previews for /jakem/files/USB Drive Recovery/white collar crime week 1.docx
2023-06-16T19:10:07+00:00 Generating previews for /jakem/files/USB Drive Recovery/youth probabtion.docx
2023-06-16T19:10:07+00:00 Generating previews for /jakem/files/USB Drive Recovery/youth probation.docx
srvr01@server:~$
This is a new install, with some files brought over from an owncloud setup (downloaded via owncloud then uploaded via nextcloud, it was not updated or moved over internally)