/admin.php showing empty page

Hi

Local version runs just fine (PHP 7.1.23) but after transferring sitecake to the live server I get a blank page for admin.php

System is a LEMP stack running Ubuntu 18.04.1, Nginx 1.14.0, PHP 7.2.15. I’ve tried to downgrade to 7.1 but the behavior was just the same. Also tried updating permissions to “sudo chown -R www-data:www-data /var/www/html/” and “sudo chmod -R 0755 /var/www/html/” but no luck.

I’ve emailed support but after I’ve sent them the log below they went silent. Maybe someone else here has an idea what could be wrong?

From /var/www/html/sitecake-temp/r5c785d6bb0e3b/logs (real domain name replaced with example.com)

root@lemp-s-1vcpu-1gb-fra1-01:/var/www/html/sitecake-temp/r5c785d6bb0e3b/logs# cat sitecake.log 
[2019-02-28 22:15:07] app.INFO: Matched route "{route}". {"route":"GET_","route_parameters":{"_controller":"[object] (Closure: {})","_route":"GET_"},"request_uri":"https://example.com/admin.php/","method":"GET"} []
[2019-02-28 22:15:07] app.ERROR: Sitecake\Error\PHP7ErrorException (0): Error (0): Class 'DOMDocument' not found in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] Stack Trace: #0 [internal function]: Sitecake\Error\ErrorHandler->wrapAndHandleException(Object(Error)) #1 {main}   [] []
[2019-02-28 22:15:08] app.INFO: Matched route "{route}". {"route":"GET_","route_parameters":{"_controller":"[object] (Closure: {})","_route":"GET_"},"request_uri":"https://example.com/admin.php/","method":"GET"} []
[2019-02-28 22:15:08] app.ERROR: Sitecake\Error\PHP7ErrorException (0): Error (0): Class 'DOMDocument' not found in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] Stack Trace: #0 [internal function]: Sitecake\Error\ErrorHandler->wrapAndHandleException(Object(Error)) #1 {main}   [] []
[2019-02-28 22:22:27] app.INFO: Matched route "{route}". {"route":"GET_","route_parameters":{"_controller":"[object] (Closure: {})","_route":"GET_"},"request_uri":"https://example.com/admin.php/","method":"GET"} []
[2019-02-28 22:22:27] app.ERROR: Sitecake\Error\PHP7ErrorException (0): Error (0): Class 'DOMDocument' not found in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] Stack Trace: #0 [internal function]: Sitecake\Error\ErrorHandler->wrapAndHandleException(Object(Error)) #1 {main}   [] []
[2019-02-28 22:22:28] app.INFO: Matched route "{route}". {"route":"GET_","route_parameters":{"_controller":"[object] (Closure: {})","_route":"GET_"},"request_uri":"https://example.com/admin.php/","method":"GET"} []
[2019-02-28 22:22:28] app.ERROR: Sitecake\Error\PHP7ErrorException (0): Error (0): Class 'DOMDocument' not found in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] Stack Trace: #0 [internal function]: Sitecake\Error\ErrorHandler->wrapAndHandleException(Object(Error)) #1 {main}   [] []
[2019-02-28 22:26:17] app.INFO: Matched route "{route}". {"route":"GET_","route_parameters":{"_controller":"[object] (Closure: {})","_route":"GET_"},"request_uri":"https://example.com/admin.php/","method":"GET"} []
[2019-02-28 22:26:17] app.ERROR: Sitecake\Error\PHP7ErrorException (0): Error (0): Class 'DOMDocument' not found in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] in [/var/www/html/sitecake/2.4.10/src/Sitecake/Content/Element.php, line 456] Stack Trace: #0 [internal function]: Sitecake\Error\ErrorHandler->wrapAndHandleException(Object(Error)) #1 {main}   [] []

Hi Markus,

sorry for not responding earlier. Like I mentioned while replying to your ticket, I didn’t get message with log. Not sure why.
You don’t have DOM extension installed. It’s usually installed by default so we don’t check for it in requirements script.

Regards

Hi Predrag

Thanks for getting back to me. Installing the DOM extension (sudo apt install php7.2-dom) did the trick. Thanks! Great support!