Empty page after php issue

empty page after php issue

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 (eg, 20.0.5): 28.0.1.1
Operating system and version (eg, Ubuntu 20.04): Debian 12 bookworm
Apache or nginx version (eg, Apache 2.4.25): nginx 1.22.1
PHP version (eg, 7.4): 8.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. update php
  2. remove php8.3 packages
  3. remove some php meta packages

The output of your Nextcloud log in Admin > Logging:

...
{"reqId":"9ssOeFHb1i90XRLgiznL","level":3,"time":"2024-01-16T07:09:44+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"GET","url":"/nextcloud/login>
{"reqId":"YPnsoxezvg7HSd8KXAdD","level":3,"time":"2024-01-16T07:09:45+00:00","remoteAddr":"192.168.41.2","user":"--","app":"index","method":"GET","url":"/nextcloud/log>
{"reqId":"YPnsoxezvg7HSd8KXAdD","level":3,"time":"2024-01-16T07:09:45+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"GET","url":"/nextcloud/login>
{"reqId":"xxrNZjn1Hvua8GbgqGhR","level":3,"time":"2024-01-16T15:15:30+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"PROPFIND","url":"/nextclo>
{"reqId":"xxrNZjn1Hvua8GbgqGhR","level":3,"time":"2024-01-16T15:15:30+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"PROPFIND","url":"/nextcloud/>
{"reqId":"npqJOYRwmYiwn8Zz6K79","level":3,"time":"2024-01-16T15:15:30+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"npqJOYRwmYiwn8Zz6K79","level":3,"time":"2024-01-16T15:15:30+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"4Q6CoMzqW1c1lnVrgbqu","level":3,"time":"2024-01-16T15:15:32+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"4Q6CoMzqW1c1lnVrgbqu","level":3,"time":"2024-01-16T15:15:32+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"E7rbUdVTxK6yaCjyI1P2","level":3,"time":"2024-01-16T15:15:32+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"E7rbUdVTxK6yaCjyI1P2","level":3,"time":"2024-01-16T15:15:32+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"S1BgBuKyKQMqCtYeQfCw","level":3,"time":"2024-01-16T15:15:32+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"S1BgBuKyKQMqCtYeQfCw","level":3,"time":"2024-01-16T15:15:32+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"gJnBhkUpyBZYHPvXtcZo","level":3,"time":"2024-01-16T15:16:15+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"PROPFIND","url":"/nextclo>
{"reqId":"gJnBhkUpyBZYHPvXtcZo","level":3,"time":"2024-01-16T15:16:15+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"PROPFIND","url":"/nextcloud/>
{"reqId":"8TnxMRihyqUjwSJsoWlv","level":3,"time":"2024-01-16T15:16:15+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"8TnxMRihyqUjwSJsoWlv","level":3,"time":"2024-01-16T15:16:15+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"wAjxeUB1CJztztq0C7Nx","level":3,"time":"2024-01-16T15:16:18+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"wAjxeUB1CJztztq0C7Nx","level":3,"time":"2024-01-16T15:16:18+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"JItsOh69JqppSXsktMOm","level":3,"time":"2024-01-16T15:16:18+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"JItsOh69JqppSXsktMOm","level":3,"time":"2024-01-16T15:16:18+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"m9yFzAn1nXxws9yD8rvw","level":3,"time":"2024-01-16T15:16:25+00:00","remoteAddr":"192.168.41.2","user":"--","app":"remote","method":"REPORT","url":"/nextcloud>
{"reqId":"m9yFzAn1nXxws9yD8rvw","level":3,"time":"2024-01-16T15:16:25+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"REPORT","url":"/nextcloud/re>
{"reqId":"e12cJ0pQMbD42XMLBboI","level":3,"time":"2024-01-16T16:54:36+00:00","remoteAddr":"192.168.42.187","user":"--","app":"index","method":"GET","url":"/nextcloud/l>
{"reqId":"e12cJ0pQMbD42XMLBboI","level":3,"time":"2024-01-16T16:54:36+00:00","remoteAddr":"192.168.42.187","user":"--","app":"PHP","method":"GET","url":"/nextcloud/log>
{"reqId":"Unu2pQM4qkoyO8I6QJTR","level":3,"time":"2024-01-16T16:55:24+00:00","remoteAddr":"192.168.42.187","user":"--","app":"index","method":"GET","url":"/nextcloud/">
{"reqId":"Unu2pQM4qkoyO8I6QJTR","level":3,"time":"2024-01-16T16:55:24+00:00","remoteAddr":"192.168.42.187","user":"--","app":"PHP","method":"GET","url":"/nextcloud/",">
(END)

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

<?php
$CONFIG = array (
  'instanceid' => xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'ardbeg',
    1 => 'whiskykult.ddnss.de',
  ),
  'datadirectory' => '/home/nextcloud',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'overwrite.cli.url' => 'http://ardbeg/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'password',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'xxx',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '587',
  'app_install_overwrite' => 
  array (
    0 => 'dicomviewer',
    1 => 'dashboardcharts',
    2 => 'admin_notifications',
    3 => 'breezedark',
    4 => 'richdocumentscode',
    5 => 'apporder',
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'DE',
  'enforce_theme' => 'breezedark',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
);

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

192.168.x.x - - [16/Jan/2024:17:54:36 +0100] "GET /nextcloud/login HTTP/1.1" 500 5 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
192.168.x.x - - [16/Jan/2024:17:54:37 +0100] "GET /favicon.ico HTTP/1.1" 404 118 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
192.168.x.x - - [16/Jan/2024:17:55:24 +0100] "GET /nextcloud/ HTTP/1.1" 500 5 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"

php packages

php-common
php8.2
php8.2-apcu
php8.2-bcmath
php8.2-bz2
php8.2-cli
php8.2-common
php8.2-curl
php8.2-fpm
php8.2-gd
php8.2-gmp
php8.2-igbinary
php8.2-imagick
php8.2-intl
php8.2-mbstring
php8.2-mysql
php8.2-opcache
php8.2-phpdbg
php8.2-readline
php8.2-redis
php8.2-sqlite3
php8.2-zip

Additional Info:
There were some packages upgraded to php8.3. After this the problem started.
I removed this packages and also some meta packages without version (php …)
Now I don’t get error messages, just an empty page. Completely white.

From the looks of it you’re using PHP-FPM and Nginx.

  • Check your Nginx error log
  • Confirm the fpm service is running.

Also since you’re changing PHP versions, you’ll need to port your PHP configuration, etc.

There is nothing in error.log from nginx, what relates to nextcloud.

php8.2-fpm

~# systemctl status php8.2-fpm.service
● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-01-16 17:54:28 CET; 1h 54min ago
       Docs: man:php-fpm8.2(8)
    Process: 550008 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
   Main PID: 549997 (php-fpm8.2)
     Status: "Processes active: 0, idle: 2, Requests: 12, slow: 0, Traffic: 0req/sec"
      Tasks: 3 (limit: 9293)
     Memory: 40.5M
        CPU: 1.655s
     CGroup: /system.slice/php8.2-fpm.service
             ├─549997 "php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)"
             ├─550006 "php-fpm: pool www"
             └─550007 "php-fpm: pool www"

I just used php-updater 7.4 8.2. Nothing changed in behavior.

These log entries are all cut off. Can you post the raw entries?

Oh yes, sorry.

{"reqId":"C5jwve4mGN6FtRRcQqvn","level":3,"time":"2024-01-16T18:52:14+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Error: Call to undefined function simplexml_load_string() at /var/www/html/nextcloud/lib/private/App/InfoParser.php#69","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"28.0.1.1","data":{"app":"PHP"}}
{"reqId":"QSAWAxN2vmirBf8Ntceo","level":3,"time":"2024-01-16T19:03:07+00:00","remoteAddr":"192.168.41.2","user":"--","app":"index","method":"GET","url":"/nextcloud/","message":"Call to undefined function simplexml_load_string()","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"28.0.1.1","exception":{"Exception":"Error","Message":"Call to undefined function simplexml_load_string()","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/App/AppManager.php","line":727,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":72,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":154,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/html/nextcloud/index.php","line":37,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/App/InfoParser.php","Line":69,"message":"Call to undefined function simplexml_load_string()","exception":{},"CustomMessage":"Call to undefined function simplexml_load_string()"}}
{"reqId":"QSAWAxN2vmirBf8Ntceo","level":3,"time":"2024-01-16T19:03:07+00:00","remoteAddr":"192.168.41.2","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Error: Call to undefined function simplexml_load_string() at /var/www/html/nextcloud/lib/private/App/InfoParser.php#69","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"28.0.1.1","data":{"app":"PHP"}}
{"reqId":"9Xgzhxwjkt7rYEeeUnTz","level":3,"time":"2024-01-16T19:11:59+00:00","remoteAddr":"192.168.42.187","user":"--","app":"index","method":"GET","url":"/nextcloud/","message":"Call to undefined function simplexml_load_string()","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"28.0.1.1","exception":{"Exception":"Error","Message":"Call to undefined function simplexml_load_string()","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/App/AppManager.php","line":727,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":72,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":154,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/html/nextcloud/index.php","line":37,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/App/InfoParser.php","Line":69,"message":"Call to undefined function simplexml_load_string()","exception":{},"CustomMessage":"Call to undefined function simplexml_load_string()"}}
{"reqId":"9Xgzhxwjkt7rYEeeUnTz","level":3,"time":"2024-01-16T19:11:59+00:00","remoteAddr":"192.168.42.187","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Error: Call to undefined function simplexml_load_string() at /var/www/html/nextcloud/lib/private/App/InfoParser.php#69","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"28.0.1.1","data":{"app":"PHP"}}

This comes on the command line:

~# sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ files:scan --all
An unhandled exception has been thrown:
Error: Call to undefined function simplexml_load_string() in /var/www/html/nextcloud/lib/private/App/InfoParser.php:69
Stack trace:
#0 /var/www/html/nextcloud/lib/private/App/AppManager.php(727): OC\App\InfoParser->parse()
#1 /var/www/html/nextcloud/lib/private/AppFramework/App.php(72): OC\App\AppManager->getAppInfo()
#2 /var/www/html/nextcloud/lib/private/legacy/OC_App.php(154): OC\AppFramework\App::buildAppNamespace()
#3 /var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(119): OC_App::registerAutoloading()
#4 /var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC\AppFramework\Bootstrap\Coordinator->registerApps()
#5 /var/www/html/nextcloud/lib/base.php(700): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#6 /var/www/html/nextcloud/lib/base.php(1200): OC::init()
#7 /var/www/html/nextcloud/console.php(48): require_once('...')
#8 /var/www/html/nextcloud/occ(11): require_once('...')
#9 {main}

It’s working again.

I just installed php8.2-soap and php8.2-xml. After this my nextcloud instance is working again.

Thank you for all answers.

Schultze

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.