Skip to content

Instantly share code, notes, and snippets.

@jacine
Created April 12, 2016 20:05
Show Gist options
  • Save jacine/c30741f4877821a435a5968221bad1c9 to your computer and use it in GitHub Desktop.
Save jacine/c30741f4877821a435a5968221bad1c9 to your computer and use it in GitHub Desktop.
Twig FAIL

Twig FAIL

Symptoms

  • Nothing in the PHP, Apache or MySQL logs (broken locally - MAMP-PHP7, AND on dev - Pantheon).
  • No errors on screen either (they're configured in php.ini and settings.local.php)

Things I tried

  • Tried multiple cache rebuilds.
  • Tried manually truncating all cache/cachetag tables.
  • Tried core/rebuild.php
  • Tried restarting AMP.
  • Tried updating Drush.
  • Tried hacking index.php

The actual fucking problem

I had renamed a directory (images to img), and forgot to update a template it was referenced from:

{% include '/themes/THEME/image/icons.svg' %}

And apparently Twig has no sort of error handling for this.

:(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment