NC18 Blank Page

Nextcloud version (eg, 12.0.2): 18.03
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
Nextcloud fails to load anything in browser. Apache error log shows:

[Sun Mar 29 17:42:43.493643 2020] [php7:error] [pid 2570] [client 192.168.42.208:3538] PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /var/www/nextcloud/3rdparty/composer/autoload_static.php on line 446

This instance was freshly installed today. After install I saw on the Admin page a warning that “The PHP memory limit is below the recommended value of 512MB.” Attempted to resolve per this The PHP memory limit is below the recommended value of 512MB which recommends editing /etc/php/7.2/cli/php.ini and /etc/php/7.2/apache2/php.ini to set the memory_limit value to 512MB. After restarting apache I’m just getting a blank page with the noted entry in the apache error log. Setting the values back to defaults does not change behavior. Help!

Can you set youre memory limit to -1

Hi, thanks for the reply. That was the default value for the cli/php.ini, and I have set that back to -1 now, restarted apache via systemctl, and confirmed reloading the page results in the same log entry:

[Mon Mar 30 07:50:06.271255 2020] [php7:error] [pid 6907] [client 192.168.42.208:6807] PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 147456 bytes) in /var/www/nextcloud/3rdparty/composer/autoload_static.php on line 446

Based on what I was reading in the linked thread (and others), it sounds like using a memory_limit value of -1 is generally inadvisable outside of dev & troubleshooting scenarios.

It almost seems like something in this ‘composer/autoload_static.php’ was updated after the initial memory changes, but it’s a rather large file and I’m not sure what I would be looking for.
Perhaps there’s a “safe boot” option for nextcloud that starts the service without loading 3rdparty plugins?