Title: Fatal Error WP Engine
Last modified: April 19, 2019

---

# Fatal Error WP Engine

 *  Resolved [rcantwell](https://wordpress.org/support/users/rcantwell/)
 * (@rcantwell)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-wp-engine/)
 * Hi – since i upgrade to 5.0.8 – i’m getting a lot of white screens due to the
   following error ..
 * PHP Fatal error: Uncaught RuntimeException: Failed to write cache file “/nas/
   content/live/linwoods/wp-content/uploads/sites/6/zip-recipes/cache/61/6173092293ea6936ce08e4fd7b1ce1f02b09c1430c4be828a56c59d4da0a7a27.
   php
 * .. on WP Engine.
 * I’ve been onto WPE support and they’re going to look into it but they’ve asked
   me to contact you in the mean time as they reckon there’s something wrong with
   the way you’re writing these .php files to this new cache location (change from
   5.0.6 -> 5.0.7) – would you be able to take a look?
 * In 5.0.6 – the cache was wrote to `/wp-content/plugins/zip-recipes/views/cache/`
   but in 5.0.7 the cache is wrote to `/wp-content/uploads/zip-recipes/cache/` and
   somehow what’s happening is that the .php files that are wrote to this new destination
   have their .php extension stripped off them? Not sure if this is by WPE or is
   it something that’s happening within the plugin as a conditional or something?
 * In the mean time – i’ve downgraded to 5.0.6 (cache writing to `/wp-content/plugins/
   zip-recipes/views/cache/`) and all seems to be working again on WPE – but i’d
   really appreciate it if you could have a quick look into this – just to rule 
   out anything on your end?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-wp-engine/#post-11447025)
 * Hi,
 * I have taken over development of this plugin since a few weeks, and I’ve been
   trying to rectify some things I’m not happy with in the previous version. I guess
   this was an unintended side effect.
 * The intention was to stop writing cache files to a folder within the plugin itself,
   which I don’t really like. The new location is the uploads folder. Possibly in
   your setup it’s not allowed to write php files to the uploads folder.
 * I have decided to drop this caching part of the twig files. Can you try to comment
   out the following line in _inc/class.ziprecipes.util.php, on line 125:
 * `if ($cacheDir) $twig_settings['cache'] = $cacheDir;`
    by adding two slashes 
   in front if it like this? `//if ($cacheDir) $twig_settings['cache'] = $cacheDir;`
 * This will stop the plugin from using the cache folder.
 * I will also update the plugin with this addition by the end of the day.
 * Let me know if this helps!
 *  Plugin Author [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-wp-engine/#post-11447939)
 * Hi [@rcantwell](https://wordpress.org/support/users/rcantwell/),
 * I’ve just released 5.0.9, this should resolve the issue for you. Let me know 
   if you run into any issues!
 * Rogier

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error WP Engine’ is closed to new replies.

 * ![](https://ps.w.org/zip-recipes/assets/icon-128x128.png?rev=2334884)
 * [Recipe Cards For Your Food Blog from Zip Recipes](https://wordpress.org/plugins/zip-recipes/)
 * [Support Threads](https://wordpress.org/support/plugin/zip-recipes/)
 * [Active Topics](https://wordpress.org/support/plugin/zip-recipes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zip-recipes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zip-recipes/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-wp-engine/#post-11447939)
 * Status: resolved