White webpage , only Error: Call to undefined function

Hi, I have Nextcloud running on a RPi4 raspian (latest). I did an upgrade 3 weeks ago to Nextcloud and everything was running fine. As I’m installing a new Nextcloud instance on Docker on a separate RPI I just rerouted internet addresses to access the new server for testing. As everything runs smoothly I wanted to go back to my old server to prepare migration. So I changed the routing again and I’m getting a white (blank) webpage now, from outside address and local.
My nextcloud client on MacOS says cannot connect, unknown error.

Is this a PHP problem?

Many thanks for helping.

Nextcloud version (eg, 20.0.5): 20.0.6.1
Operating system and version (eg, Ubuntu 20.04): raspbian latest
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 7.4.16

The issue you are facing:
white (blank) webpage

Is this the first time you’ve seen this error? (Y/N):
yes
Steps to replicate it:

  1. point from outside and local address

The output of your Nextcloud log in Admin > Logging:

"app":"PHP","method":"GET","url":"/nextcloud/status.php","message":"Error: Call to undefined function OC\\App\\simplexml_load_file() at /var/www/html/nextcloud/lib/private/App/InfoParser.php#65"

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

<?php
$CONFIG = array (
  'instanceid' => 'ockxtf0sasc5',
  'passwordsalt' => '/xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'MYDOMAIN',
    1 => '192.168.2.*',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.6.1',
  'overwrite.cli.url' => 'http://192.168.2.20:8090/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost:8090',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'admin',
  'dbpassword' => 'xxx',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'app_install_overwrite' => 
  array (
    0 => 'calendar',
  ),
  'updater.release.channel' => 'stable',
);

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

[Wed Mar 10 00:00:05.177858 2021] [mpm_prefork:notice] [pid 807] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1j configured -- resuming normal operations
[Wed Mar 10 00:00:05.177943 2021] [core:notice] [pid 807] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 10 12:21:27.630272 2021] [php7:error] [pid 30799] [client 192.168.2.18:64524] script '/var/www/html/status.php' not found or unable to stat
[Wed Mar 10 12:21:28.269533 2021] [php7:error] [pid 30799] [client 192.168.2.18:64524] script '/var/www/html/status.php' not found or unable to stat
[Wed Mar 10 12:37:43.310717 2021] [mpm_prefork:notice] [pid 807] AH00169: caught SIGTERM, shutting down
[Wed Mar 10 12:38:12.338104 2021] [mpm_prefork:notice] [pid 798] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1j configured -- resuming normal operations
[Wed Mar 10 12:38:12.338951 2021] [core:notice] [pid 798] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 10 13:27:19.608539 2021] [mpm_prefork:notice] [pid 798] AH00169: caught SIGTERM, shutting down
[Wed Mar 10 13:27:19.862888 2021] [mpm_prefork:notice] [pid 12844] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1j configured -- resuming normal operations
[Wed Mar 10 13:27:19.863073 2021] [core:notice] [pid 12844] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 10 13:30:15.353383 2021] [mpm_prefork:notice] [pid 12844] AH00169: caught SIGTERM, shutting down
[Wed Mar 10 13:30:44.538131 2021] [mpm_prefork:notice] [pid 795] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1j configured -- resuming normal operations
[Wed Mar 10 13:30:44.560098 2021] [core:notice] [pid 795] AH00094: Command line: '/usr/sbin/apache2'

So here are the steps i tried last 24h
roll back to php 7.3 (I get an internal server error) , reinstall SimpleXML, roll back to 7.4. (again white blank webpage)
Error is still the same Call to undefined function…

Please, I need advice and help…

I tried this and got the same error:

root@raspberrypi:/var/www/html/nextcloud# sudo -u www-data php7.4 occ db:convert-filecache-bigint --no-interaction

An unhandled exception has been thrown:
Error: Call to undefined function OC\App\simplexml_load_file() in /var/www/html/nextcloud/lib/private/App/InfoParser.php:65
Stack trace:
#0 /var/www/html/nextcloud/lib/private/App/AppManager.php(511): OC\App\InfoParser->parse()
#1 /var/www/html/nextcloud/lib/private/legacy/OC_App.php(581): OC\App\AppManager->getAppInfo()
#2 /var/www/html/nextcloud/lib/private/AppFramework/App.php(69): OC_App::getAppInfo()
#3 /var/www/html/nextcloud/lib/private/legacy/OC_App.php(264): OC\AppFramework\App::buildAppNamespace()
#4 /var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(100): OC_App::registerAutoloading()
#5 /var/www/html/nextcloud/lib/base.php(644): OC\AppFramework\Bootstrap\Coordinator->runRegistration()
#6 /var/www/html/nextcloud/lib/base.php(1091): OC::init()
#7 /var/www/html/nextcloud/console.php(49): require_once(’/var/www/html/n…’)
#8 /var/www/html/nextcloud/occ(11): require_once(’/var/www/html/n…’)
#9 {main}root@raspberrypi:/var/www/html/nextcloud#

Perhaps that helps…

Try this:

sudo apt-get install --reinstall php7.4-xml

and then it will tell you that php-curl is missing, then you do this:

sudo apt-get install php7.4-curl

Restart apache2 and there you go!

WOW, thanks for help @Feu77 ! It worked!

You saved my day! :heart_eyes:

No problem, you’re welcome!
:smirk: