Call to a member function getLogger() on null

… in /opt/nextcloud/index.php:61

Hi all, I’m new here.

I’m doing what is I know a somewhat non-standard installation … I don’t like having code writable by the web server, so I’ve got the whole tree owned by nextcloud:nextcloud, and www-data is in the nextcloud group to enable read access. The data directory is writable.

I’ve fumbled around a bit, doing the initial installation with occ, and fixing errors as I see them, and have added ‘config_is_read_only’ => ‘true’ to the config.php, but I’m stuck on this one. It’s the root-level index.php, and I don’t know where \OC::$server gets set - it doesn’t seem to be in that file.

I should also acknowledge I’m not much of a php coder … my experience is in perl.

Any tips most welcome …


Well … after about an hour of sticking in error_log statements, I discovered it was a syntax error in my config.php. I guess I can add that to the list of reasons I don’t like code used as config …


1 Like