Support the ongoing development of Laravel.io →
Views Blade

Hi,

Since moving an existing project from AWS to a new Forge spawned DigitalOcean server, it doesn't that Blade is working correctly. It's worth noting that the same code works perfectly locally, yet I've made an exact copy to the server and it doesn't.

Line 49 of this layout is supposed to simply yield some content: http://laravel.io/bin/92BDz#49

But the result is this: http://www.peckishly.com/login

As you'll see, line 49 of the output code is wrong, leaving ("content") outside of the PHP tags: <?php echo $__env->yieldContent; ?>("content")

It should be: <?php echo $__env->yieldContent("content"); ?>

It's outputting incorrectly, using yieldContent as an attribute rather than a function which clearly completely breaks it.

Another oddity is the homepage itself: http://www.peckishly.com

If you look at the source code or open developer tools, you'll notice that one asset within blade tags is not being processed at all.

<link rel="stylesheet" href="http://peckishly.com/beta/css/animate.css">
<link rel="stylesheet" href="{{ asset('beta/css/entypo.css') }}">
<link rel="stylesheet" href="http://peckishly.com/beta/css/style.css">

Yet the code in the template itself is identical:

<link rel="stylesheet" href="{{ asset('beta/css/animate.css') }}">
<link rel="stylesheet" href="{{ asset('beta/css/entypo.css') }}">
<link rel="stylesheet" href="{{ asset('beta/css/style.css') }}">

I've tried numerous things to fix including wiping the app/storage folder, running composer dump-autoload, php artisan cache:clear, composer update, nothing helps.

Any light anyone can shed on this would be appreciated, thanks.

Last updated 2 years ago.
0

Same here. But same server. Nothing changed in config. Think it appeared yesterday for the first time. Began by not showing {{ Form:: properly. Now alle views are blank. Thought it was a HHVM issue, but switched back to php-fpm and the same bug.

Last updated 2 years ago.
0

For anyone else's reference who might come across this thread, there's a known issue with HHVM and Laravel 4.2. There's already a pull request on Github with a proposed fix although it's currently failing build tests, so if you're running HHVM, hold off upgrading just yet.

To be clear; the issue is with HHVM, not Blade itself.

Relevant links:

Blade not outputting yield() correctly, and missing all blade things: {{ }} #4577:
https://github.com/laravel/framework/issues/4577

4.2 - BladeCompiler fails using HHVM #4519:
https://github.com/laravel/framework/issues/4519

Merge adjacent T_INLINE_HTML tokens in token_get_all #2847:
https://github.com/facebook/hhvm/pull/2847

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.