Ugrade to PHP7.4

Nextcloud version : 16.0.5.1
Operating system and version : Ubuntu 18.04 LTS
Apache or nginx version : 2.4.29
PHP version : 7.4.0

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

Steps to replicate it:

The following errors replacing themselves since I’ve upgraded php7.2 to php7.4.
Nextcloud instance is working, but I don’t understand these logs.

The output of your Nextcloud log in Admin > Logging:

[PHP] Error: Function ReflectionType::__toString() is deprecated at /var/www/html/nextcloud/lib/private/AppFramework/Utility/ControllerMethodReflector.php#80

[PHP] Error: Array and string offset access syntax with curly braces is deprecated at /var/www/html/nextcloud/apps/news/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php#162

[PHP] Error: Array and string offset access syntax with curly braces is deprecated at /var/www/html/nextcloud/apps/theming/lib/Util.php#114

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 => 'my.domain',
  ),
  'datadirectory' => 'my datadirectory',
  'dbtype' => 'mysql',
  'version' => '16.0.5.1',
  'overwrite.cli.url' => 'my.domain',
  'htaccess.RewriteBase' => '/',
  'overwriteprotocol' => 'https',
  'dbname' => '***',
  'dbhost' => '***',
  'dbport' => '',
  'dbtableprefix' => '***',
  'dbuser' => '***',
  'dbpassword' => '***',
  'installed' => true,
  'default_language' => 'de',
  'default_local' => 'de_DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '***',
  'mail_domain' => '***',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '***',
  'mail_smtpport' => '***',
  'mail_smtpname' => '***',
  'mail_smtppassword' => '***',
  'mysql.utf8mb4' => true,
  'logtimezone' => 'Europe/Berlin',
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
    1 => 'tasks',
  ),
);

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

[Sat Oct 12 06:25:03.612103 2019] [:notice] [pid 12102:tid 140690619755456] FastCGI: process manager initialized (pid 12102)
[Sat Oct 12 06:25:03.614661 2019] [mpm_event:notice] [pid 27248:tid 140690619755456] AH00489: Apache/2.4.29 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.1.1d configured -- resuming n$
[Sat Oct 12 06:25:03.614684 2019] [core:notice] [pid 27248:tid 140690619755456] AH00094: Command line: '/usr/sbin/apache2'
[Sat Oct 12 09:05:09.375551 2019] [proxy_fcgi:error] [pid 12103:tid 140690084316928] (70007)The timeout specified has expired: [client 91.22.213.15:60025] AH01075: Error dispatching request to : ($
[Sat Oct 12 14:43:18.330351 2019] [mpm_event:notice] [pid 27248:tid 140690619755456] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Oct 12 14:43:18.518842 2019] [:notice] [pid 16871:tid 140690619755456] FastCGI: process manager initialized (pid 16871)
[Sat Oct 12 14:43:18.530246 2019] [mpm_event:notice] [pid 27248:tid 140690619755456] AH00489: Apache/2.4.29 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.1.1d configured -- resuming n$
[Sat Oct 12 14:43:18.530276 2019] [core:notice] [pid 27248:tid 140690619755456] AH00094: Command line: '/usr/sbin/apache2'
[Sat Oct 12 14:43:34.454757 2019] [mpm_event:notice] [pid 27248:tid 140690619755456] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Oct 12 14:43:34.516577 2019] [:notice] [pid 17015:tid 140690619755456] FastCGI: process manager initialized (pid 17015)
[Sat Oct 12 14:43:34.519591 2019] [mpm_event:notice] [pid 27248:tid 140690619755456] AH00489: Apache/2.4.29 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.1.1d configured -- resuming n$
[Sat Oct 12 14:43:34.519615 2019] [core:notice] [pid 27248:tid 140690619755456] AH00094: Command line: '/usr/sbin/apache2'
1 Like

Hi,

I just searched on Github and this issue has indeed be reported and was fixed for NC17.
User report:

Fix for NC17:

Edit: Just updated the issue and asked for a backport :slight_smile:

A fix would come in the next release first. If you don’t want to update to NC17 yet, you could change the files manually. However this has the drawback of integrity check warnings in the admin overview.

Thx for the quick answer

Sure :slight_smile:

If you need help with manually fixing the errors, feel free to post the mentioned lines (in the error messages) of each file and I can show you the necessary changes to these files, if you need assistance.

Nextcloud is working fine so long :slightly_smiling_face:
I’ll just wait since Nextcloud 17 released on stable channel.

1 Like

Thanks :+1: This one is unfixed :bug: