Over the past week, we encountered the same issue on two separate projects after deploying to production: Blade templates failed to compile and instead rendered as plain text.
Example output:
@extends('layouts.app')
@section('content')
// etc.
There were no errors in the log files or deployment logs.
Project 1
Long-running project using Sage 10
PHP 8.3
Ubuntu 24.04
Acorn v4.3.1
generoi/sage-woocommerce 1.1.3
Project 2
Newer sage 10 project
PHP 8.3
Ubuntu 24.04
Acorn v5.0.4
In both cases, the only solution was restoring from a backup.
With Project 2, I was able to redeploy successfully after the restore, and the issue did not reoccur. I have not redeployed project 1 yet.
I came across this old post:
describing the same behavior, but it doesn’t include a clear solution.
Has anyone else experienced this, or found a root cause or workaround?
Thanks for the link, i should keep an eye out for laravel if i get similar problems in the future.
After the php update in runcloud, deploying worked as expected again.
Both projects had multiple deployments while php 8.3.20 was active, so it still feels a bit random.