Roots Discourse

Deploying Sage 10 to Digital Ocean

I’m having issues deploying Sage to Digital Ocean’s vanilla Wordpress Droplet.

Locally, my Sage10 site works perfect, but when I deploy it to DO via a deployment service, I get critical errors. I’ve followed this same process to a T with Sage 9 and haven’t had any issues.

I’ve logged into the DO server, cloned the Sage git repo, ran composer install + yarn && yarn build – same result.

Nothing I’ve tried seems to work so I’m curious if I’m missing something critical?

What are the errors? It’s difficult to help you debug without knowing what’s going wrong.

Literally just ‘critical errors’

When I enable wp_debug, I only get a white screen and am not able to log into wp-admin without deleting the offending Sage directory.

Can you ssh into your droplet to look at the logs?

It appears to have been a permissions issue. It didn’t appear that the log file was being created, so I updated the DO permissions based on this post:

The theme worked fine after that.

Here’s the log though, just in case.

[04-Aug-2020 15:23:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Symfony\Component\ErrorHandler\Exception\get_debug_type() in /var/www/html/wp-content/themes/82/vendor/symfony/error-handler/Exception/FlattenException.php:78
Stack trace:
#0 /var/www/html/wp-content/themes/82/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(75): Symfony\Component\ErrorHandler\Exception\FlattenException::createFromThrowable()
#1 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Exceptions/Handler.php(208): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render()
#2 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Exceptions/Handler.php(162): Roots\Acorn\Exceptions\Handler->renderExceptionWithSymfony()
#3 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Bootstrap/HandleExceptions.php(137): Roots\Acorn\Exceptions\Handler->render()
#4 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Bootstrap/HandleExceptions.php(114): Roots\Acorn\Bootstrap\HandleExceptions->rende in /var/www/html/wp-content/themes/82/vendor/symfony/error-handler/Exception/FlattenException.php on line 78
[04-Aug-2020 15:23:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Symfony\Component\ErrorHandler\Exception\get_debug_type() in /var/www/html/wp-content/themes/82/vendor/symfony/error-handler/Exception/FlattenException.php:78
Stack trace:
#0 /var/www/html/wp-content/themes/82/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(75): Symfony\Component\ErrorHandler\Exception\FlattenException::createFromThrowable()
#1 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Exceptions/Handler.php(208): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render()
#2 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Exceptions/Handler.php(162): Roots\Acorn\Exceptions\Handler->renderExceptionWithSymfony()
#3 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Bootstrap/HandleExceptions.php(137): Roots\Acorn\Exceptions\Handler->render()
#4 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Bootstrap/HandleExceptions.php(114): Roots\Acorn\Bootstrap\HandleExceptions->rende in /var/www/html/wp-content/themes/82/vendor/symfony/error-handler/Exception/FlattenException.php on line 78
[04-Aug-2020 15:27:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Monolog\Utils::canonicalizePath() in /var/www/html/wp-content/themes/82/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:50
Stack trace:
#0 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(170): Monolog\Handler\StreamHandler->__construct()
#1 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(122): Illuminate\Log\LogManager->createEmergencyLogger()
#2 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(98): Illuminate\Log\LogManager->get()
#3 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(547): Illuminate\Log\LogManager->driver()
#4 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Exceptions/Handler.php(89): Illuminate\Log\LogManager->error()
#5 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Bootstrap/HandleExceptions.php(106): Roots\Acorn\Exceptions\Handler->report()
#6 [internal function]: Roots\Acorn\Bootstrap\HandleExceptions->handleE in /var/www/html/wp-content/themes/82/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 50
[04-Aug-2020 15:27:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Monolog\Utils::canonicalizePath() in /var/www/html/wp-content/themes/82/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:50
Stack trace:
#0 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(170): Monolog\Handler\StreamHandler->__construct()
#1 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(122): Illuminate\Log\LogManager->createEmergencyLogger()
#2 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(98): Illuminate\Log\LogManager->get()
#3 /var/www/html/wp-content/themes/82/vendor/illuminate/log/LogManager.php(547): Illuminate\Log\LogManager->driver()
#4 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Exceptions/Handler.php(89): Illuminate\Log\LogManager->error()
#5 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Bootstrap/HandleExceptions.php(106): Roots\Acorn\Exceptions\Handler->report()
#6 /var/www/html/wp-content/themes/82/vendor/roots/acorn/src/Acorn/Boot in /var/www/html/wp-content/themes/82/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 50

Hello Craig,
What deployment service are you using to deploy to DO?

Regards,
Jorge

Hey Jorge, I’m using Buddy (http://buddy.works)

Thanks mate. I’ll check it out.

Cheers!

This topic was automatically closed after 42 days. New replies are no longer allowed.