How To Upgrade Nextcloud 3rdParty Apps

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 : 18.0.1
Operating system and version: Arch Linux 5.5.6.arch1-1
nginx version: nginx-mainline 1.17.8-1
PHP version: 7.4.3-1

The issue you are facing:

Since updating to Nextcloud 18 and PHP 7.4, the Nextcloud log file fills up with “level: 3” entries caused by a 3rdparty app: /leafo/scssphp.

The version of scssphp that Nextcloud installs is old (and archived at github).

Nextcloud needs to update /leafo/scssphp to /scssphp/scssphp in 3rdparty apps.

Is it possible for me to make this update using scssphp files from github?

If so, how?

If not, when will Nextcloud make the change from /leafo/scssphp to /scssphp/scssphp?

Is this the first time you’ve seen this error? : Yes, it’s only occurred since updating Nextcloud and PHP

Steps to replicate it:

  1. Upgrade to Nextcloud 18
  2. Upgrade to PHP 7.4

The output of your Nextcloud log in Admin > Logging:

These two entries are representative of the hundreds of such entries added to the logfile every day:

{"reqId":"SANITIZED","level":3,"time":"2020-02-26T00:49:44+00:00","remoteAddr":"SANITIZED","user":"--","app":"PHP","method":"GET","url":"/ecp/default.aspx","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5892","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36","version":"18.0.1.3"}
{"reqId":"SANITIZED","level":3,"time":"2020-02-24T16:49:57+00:00","remoteAddr":"SANITIZED","user":"SANITIZED","app":"PHP","method":"GET","url":"/apps/files/","message":"Trying to access array offset on value of type null at /usr/share/webapps/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5892","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0","version":"18.0.1.3"}
{"reqId":"SANITIZED","level":3,"time":"2020-02-28T14:15:07+00:00","remoteAddr":"SANITIZED","user":"SANITIZED","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#5892","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0","version":"18.0.1.3"}

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

php-error.log file is empty

The output of your nginx log in /var/log/nginx:

A couple of unrelated entries pertaining to OCSP timeout and a bot trying to access a resource that doesn't exist on my server.

Anyone?

Is there a guide on updating Nextcloud 3rd Party Apps?

Thanks!

b