Nextcloud version (eg, 12.0.2) : 18.0.0-1
Operating system and version (eg, Ubuntu 17.04) : Arch Linux 5.4.13-arch1-1
Apache or nginx version (eg, Apache 2.4.25) : nginx-mainline 1.17.7-1
PHP version (eg, 7.1) : 7.4.1
All Nextcloud apps are current versions as of today (1/21/20)
The issue you are facing:
After upgrading Nextcloud and PHP, and installing a couple of new Nextcloud apps, I am receiving repeated messages in the log file about “Trying to access array offset on value of type null.”
Nextcloud appears to be working without issue.
PHP is working without issue.
MySQL is working without issue.
Is this the first time you’ve seen this error? (Y/N) : Y
Steps to replicate it:
- Upgrade Nextcloud from 17.x to 18.0
- Upgrade PHP from 7.3 to 7.4.1
- Install/enable Nextcloud “Notes” and “Tasks” apps
- Reboot server
The output of your Nextcloud log in Admin > Logging :
These are just a few of the log entries. There are many like these, but they are all of this same theme.
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
{"reqId":"x","level":3,"time":"2020-01-20T22:29:36+00:00","remoteAddr":"1.1.1.1","user":"me","app":"PHP","method":"GET","url":"/apps/calendar/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
Here’s my config.php file in /path/to/nextcloud
:
<?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'my.domain.com',
),
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'dbindex' => 0,
'password' => 'xxxxxx',
'timeout' => 1.5,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'datadirectory' => '/pathto/data',
'dbtype' => 'mysql',
'version' => '18.0.0.10',
'overwrite.cli.url' => 'https://my.domain.com',
'dbname' => 'xxxxx',
'dbhost' => 'localhost',
'dbport' => '3306',
'dbtableprefix' => 'xxx_',
'mysql.utf8mb4' => true,
'dbuser' => 'me',
'dbpassword' => 'xxxxxxxxxxxxxxxxx',
'installed' => true,
'log_type' => 'file',
'logfile' => '/var/log/nextcloud-error.log',
'loglevel' => 3,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'me',
'mail_domain' => 'domain.com',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.domain.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'me@domain.com',
'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
'maintenance' => false,
'theme' => '',
);
The contents of my /nginx/system log in /var/log/nginx
:
2020/01/20 15:29:38 [error] 1017#1017: *558 FastCGI sent in stderr: "PHP message: PHP Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /usr/share/webapps/nextcloud/3rdparty/sabre/vobject/lib/Recur/RRuleIterator.php on line 357PHP message: PHP Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /usr/share/webapps/nextcloud/3rdparty/sabre/vobject/lib/Recur/RRuleIterator.php on line 423" while reading response header from upstream, client: 1.1.1.1, server: my.server.com, request: "REPORT /remote.php/dav/calendars/me/mine/ HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "my.domain.com"