Last night my cPanel/Host decided to make some updates above me. Happens.
My .htaccess was editied to include the php version which is forced is 7.3. That's how I noticed the update but since then I have had a non-responsive Flarum.
With help of MrJeeves on Discord, we have covered the following things:
- Updated to 7.4 PHP
- Disabled all non-core plugins (re-enabled now due to no change).
storage has been set to 755.
- Probably what I should have done first, enable PHP debug mode!
So here is the error I'm getting out:
Fatal error: Uncaught UnexpectedValueException: The stream or file "***/public_html/storage/logs/flarum-2021-06-10.log" could not be opened in append mode: failed to open stream: Permission denied in ***/public_html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110
Stack trace: #0 ***/public_html/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(120): Monolog\Handler\StreamHandler->write(Array) #1 ***/public_html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler->write(Array) #2 ***/public_html/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /home/dndw/public_html/vendor/monolog/monolog/src/Monolog/Logger.php(712): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array) #4 /home/dndw/public_html/vendor/flarum/core/src/Foundation/ErrorHandling/LogReporter.php(32): Monolog\Logger->error(Object(UnexpectedValueExceptio in /home/dndw/public_html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 110
I've checked the file
StreamHandler.php and permissions are
644, don't want to go editing without further advice.