Blank, white page after login

I am testing Sitecake White Label v2.4.9 using MAMP 5.0.1 (340) for Mac. The index page shows up perfectly prior to Sitecake installation. After installation, when I go to admin.php, the page and the login modal shows up as expected. However, when I enter “admin” for the password and hit [enter], the login page loads a blank, white page; literally an HTML doc containing open and close body tags with nothing in the body.

While this did not occur with Sitecake Pro v2.4.7, this also occurred with Sitecake White Label v2.4.8 for the same site files. What do I need to adjust?

Hi,

did you check log file. You should find it within sitecake-temp dir

I have pulled up the log file. Unfortunately, other than understanding that an “empty string supplied as input” would certainly cause an error, I don’t know what to do next.

The log reads as follows:

[2018-06-20 05:12:30] Warning: Warning (2): DOMDocument::loadHTML(): Empty string supplied as input in [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Util/HtmlUtils.php, line 19]
Trace:
#0 Sitecake\Error\ErrorHandler::logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Error/ErrorHandler.php:274]
#1 Sitecake\Error\ErrorHandler::handleError()
#2 DOMDocument->loadHTML() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Util/HtmlUtils.php:19]
#3 Sitecake\Util\HtmlUtils::appendHTML() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/DOM/Element.php:95]
#4 Sitecake\DOM\Element->setInnerHtml() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/SourceFile.php:159]
#5 Sitecake\SourceFile->setContainerContent() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Services/Content/ContentManager.php:85]
#6 Sitecake\Services\Content\ContentManager->setContainerContents() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Services/Content/ContentManager.php:36]
#7 Sitecake\Services\Content\ContentManager->save() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Services/Content/ContentService.php:36]
#8 Sitecake\Services\Content\ContentService->save() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Dispatcher.php:78]
#9 Sitecake\Dispatcher->response() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Dispatcher.php:72]
#10 Sitecake\Dispatcher->execute() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Dispatcher.php:43]
#11 Sitecake\Dispatcher->dispatch() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/app.php:16]
#12 {closure}()
#13 call_user_func_array() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/symfony/http-kernel/HttpKernel.php:153]
#14 Symfony\Component\HttpKernel\HttpKernel->handleRaw() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/symfony/http-kernel/HttpKernel.php:68]
#15 Symfony\Component\HttpKernel\HttpKernel->handle() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/silex/silex/src/Silex/Application.php:496]
#16 Silex\Application->handle() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/silex/silex/src/Silex/Application.php:477]
#17 Silex\Application->run() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/app.php:43]

[2018-06-20 05:12:30] Warning: Warning (2): Invalid argument supplied for foreach() in [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Util/HtmlUtils.php, line 22]
Trace:
#0 Sitecake\Error\ErrorHandler::logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Error/ErrorHandler.php:274]
#1 Sitecake\Error\ErrorHandler::handleError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Util/HtmlUtils.php:22]
#2 Sitecake\Util\HtmlUtils::appendHTML() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/DOM/Element.php:95]
#3 Sitecake\DOM\Element->setInnerHtml() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/SourceFile.php:159]
#4 Sitecake\SourceFile->setContainerContent() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Services/Content/ContentManager.php:85]
#5 Sitecake\Services\Content\ContentManager->setContainerContents() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Services/Content/ContentManager.php:36]
#6 Sitecake\Services\Content\ContentManager->save() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Services/Content/ContentService.php:36]
#7 Sitecake\Services\Content\ContentService->save() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Dispatcher.php:78]
#8 Sitecake\Dispatcher->response() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Dispatcher.php:72]
#9 Sitecake\Dispatcher->execute() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Dispatcher.php:43]
#10 Sitecake\Dispatcher->dispatch() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/app.php:16]
#11 {closure}()
#12 call_user_func_array() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/symfony/http-kernel/HttpKernel.php:153]
#13 Symfony\Component\HttpKernel\HttpKernel->handleRaw() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/symfony/http-kernel/HttpKernel.php:68]
#14 Symfony\Component\HttpKernel\HttpKernel->handle() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/silex/silex/src/Silex/Application.php:496]
#15 Silex\Application->handle() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/silex/silex/src/Silex/Application.php:477]
#16 Silex\Application->run() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/app.php:43]

[2018-12-17 17:29:00] Error: Fatal Error (1): Maximum execution time of 30 seconds exceeded in [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/league/flysystem/src/Adapter/Local.php, line 196]
Trace:
#0 Sitecake\Error\ErrorHandler::logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Error/ErrorHandler.php:83]
#1 Sitecake\Error\ErrorHandler::handleFatalError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Error/ErrorHandler.php:54]
#2 Sitecake\Error\ErrorHandler::Sitecake\Error{closure}()

[2018-12-17 17:29:38] Error: Fatal Error (1): Maximum execution time of 30 seconds exceeded in [/Applications/MAMP/htdocs/sitecake/2.4.7/vendor/league/flysystem/src/Adapter/Local.php, line 118]
Trace:
#0 Sitecake\Error\ErrorHandler::logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Error/ErrorHandler.php:83]
#1 Sitecake\Error\ErrorHandler::handleFatalError() called at [/Applications/MAMP/htdocs/sitecake/2.4.7/src/Sitecake/Error/ErrorHandler.php:54]
#2 Sitecake\Error\ErrorHandler::Sitecake\Error{closure}()

Hi,

I see you are still on version 2.4.7. Can you try to update to latest version? Yesterday 2.4.10 was released. If you still didn’t get email, you should receive it soon. Please try to update and if problem persist, let me know.

I updated to Sitecake v2.4.10. I also updated (and upgraded) to MAMP Pro v5.0.2. My page loads properly initially. When I attempt to sign in, I do not get the login modal. Only a blank, white page loads when I go to admin.php.

The log file is now as follows :

[2018-12-19 16:04:15] app.INFO: Matched route “{route}”. {“route”:“GET_”,“route_parameters”:{“controller":"[object] (Closure: {})",“route":"GET”},“request_uri”:“http://localhost:8888/admin.php/",“method”:"GET”} []
[2018-12-19 16:04:19] app.INFO: Matched route “{route}”. {“route”:"GET
”,“route_parameters”:{“controller":"[object] (Closure: {})",“route":"GET”},“request_uri”:“http://localhost:8888/admin.php/",“method”:"GET”} []
[2018-12-19 16:04:26] app.ERROR: Fatal Error (1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 46172778 bytes) in [/Applications/MAMP/htdocs/sitecake/2.4.10/vendor/league/flysystem/src/Util/MimeType.php, line 26] Stack Trace: #0 Sitecake\Error\ErrorHandler->logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.10/src/Sitecake/Error/ErrorHandler.php:154] #1 Sitecake\Error\ErrorHandler->handleFatalError() called at [/Applications/MAMP/htdocs/sitecake/2.4.10/src/Sitecake/Error/ErrorHandler.php:82] #2 Sitecake\Error\ErrorHandler::Sitecake\Error{closure}() [] []
[2018-12-20 08:09:35] app.INFO: Matched route “{route}”. {“route”:"GET
”,“route_parameters”:{“controller":"[object] (Closure: {})",“route":"GET”},“request_uri”:“http://localhost:8888/admin.php/",“method”:"GET”} []
[2018-12-20 08:09:36] app.INFO: Matched route “{route}”. {“route”:"GET
”,“route_parameters”:{"_controller":"[object] (Closure: {})",“route":"GET”},“request_uri”:“http://localhost:8888/admin.php/",“method”:"GET”} []
[2018-12-20 08:09:48] app.ERROR: Fatal Error (1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 46172778 bytes) in [/Applications/MAMP/htdocs/sitecake/2.4.10/vendor/league/flysystem/src/Util/MimeType.php, line 26] Stack Trace: #0 Sitecake\Error\ErrorHandler->logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.10/src/Sitecake/Error/ErrorHandler.php:154] #1 Sitecake\Error\ErrorHandler->handleFatalError() called at [/Applications/MAMP/htdocs/sitecake/2.4.10/src/Sitecake/Error/ErrorHandler.php:82] #2 Sitecake\Error\ErrorHandler::Sitecake\Error{closure}() [] []
[2018-12-20 08:09:52] app.ERROR: Fatal Error (1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 46172778 bytes) in [/Applications/MAMP/htdocs/sitecake/2.4.10/vendor/league/flysystem/src/Util/MimeType.php, line 26] Stack Trace: #0 Sitecake\Error\ErrorHandler->logError() called at [/Applications/MAMP/htdocs/sitecake/2.4.10/src/Sitecake/Error/ErrorHandler.php:154] #1 Sitecake\Error\ErrorHandler->handleFatalError() called at [/Applications/MAMP/htdocs/sitecake/2.4.10/src/Sitecake/Error/ErrorHandler.php:82] #2 Sitecake\Error\ErrorHandler::Sitecake\Error{closure}() [] []

Hi,

error above is causing blank page.
Is your site big? If there are files/dirs that shouldn’t be handled by sitecake you can create .scignore file in your site root dir and add those files/dirs each in new line. Eg.

some-dir/
config/
contact/sendmail.php
...

This can also be cause if the page is too big and contains lots of sc-content containers.
In this case you will probably need to increase allowed memory size in your PHP configuration.

me too error 500
all directorys with 777… GD instaled…
xampp php 7

log

[2018-12-23 22:40:46] app.INFO: Matched route “{route}”. {“route”:“GET_”,“route_parameters”:{“controller":"[object] (Closure: {})",“route":"GET”},“request_uri”:“http://localhost/admin.php/",“method”:"GET”} []
[2018-12-23 22:41:15] app.ERROR: Fatal Error (1): Maximum execution time of 30 seconds exceeded in [C:\xampp\htdocs\sitecake\2.4.10\vendor\league\flysystem\src\Adapter\Local.php, line 118] Stack Trace: #0 Sitecake\Error\ErrorHandler->logError() called at [C:\xampp\htdocs\sitecake\2.4.10\src\Sitecake\Error\ErrorHandler.php:154] #1 Sitecake\Error\ErrorHandler->handleFatalError() called at [C:\xampp\htdocs\sitecake\2.4.10\src\Sitecake\Error\ErrorHandler.php:82] #2 Sitecake\Error\ErrorHandler::Sitecake\Error{closure}() [] []
[2018-12-23 22:42:08] app.INFO: Matched route “{route}”. {“route”:"GET
”,“route_parameters”:{"_controller":"[object] (Closure: {})",“route":"GET”},“request_uri”:“http://localhost/admin.php/",“method”:"GET”} []

Hi,

check out this post.

Hello,
No, the site is actually very small; a single page, scrolling site with 4 sc-content boxes, 5 images, and 4 background images, 2 of which are parallax. The memory limit of the server I am using in MAMP is 128MB, which seems adequate. I cannot find any reason for the error.

I decided to upload the site files (as-is) to a folder online on my website. My site files and Sitecake work perfectly online. However, the same site files still do not work in MAMP. This is not necessarily a resolution, but I can work with it.

Thanks for the assist.