Title: PHP Fatal Error
Last modified: May 11, 2020

---

# PHP Fatal Error

 *  Resolved [stacyhankinson](https://wordpress.org/support/users/stacyhankinson/)
 * (@stacyhankinson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-207/)
 * Gallery not loading. Text posting in place of gallery: “Failed to write cache
   file “/nas/content/live/pai3449/wp-content/uploads/grid-gallery/cache/twig/ea/
   ea5981d17514d6f5c607f6f9f948423528966634726f2057cab9e1917d64aad4.php”. Have latest
   version of 1.14.7; wordpress 5.4.1 and php 7.3 and beaver builder theme. site
   hosted on WPEngine. I reverted my site several times, but could not find issue.
   Have you seen this error and how to fix?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-207%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-207/#post-12833608)
 * Hello, [@stacyhankinson](https://wordpress.org/support/users/stacyhankinson/)
   
   Thank you for contacting us regarding your question. Most likely the problem 
   is that your site does not have write permission to this folder. For solving 
   issue you can read this arcticle – [https://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/](https://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/)
 * Don’t hesitate to contact me in case of any questions. We are always glad to 
   help you!
 * Best regards,
    Ole
 *  Thread Starter [stacyhankinson](https://wordpress.org/support/users/stacyhankinson/)
 * (@stacyhankinson)
 * [6 years ago](https://wordpress.org/support/topic/php-fatal-error-207/#post-12929342)
 * I’ve worked with my host wpengine for a few hours to fix issue and the permissions.
 * WpEngine doesn’t allow file to write to disk (under Disk Write protection). Here
   is their reference:
    [WP Engine Security Envirno](https://wpengine.com/support/wp-engines-security-environment/)
 * According to WPEngine: your piece of code where their plugin is calling the “
   grid-gallery/cache/twig/ea/” folder and the code line 192-211; specifically line
   203 ‘cache_twig’ => ‘/grid-gallery/cache/twig’,
    is the issue.
 * They even tried setting file permissions for that folder to 777 which would make
   it writeable to anyone and that didn’t fix it.
 * Please advise if there’s a solution,
    Stacy
 *  Thread Starter [stacyhankinson](https://wordpress.org/support/users/stacyhankinson/)
 * (@stacyhankinson)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-207/#post-13378916)
 * Last update plugin worked for a few galleries and then others TWIG errors. Too
   much time to fix so just de-activated plugin and using wp media gallery. Not 
   as pretty but works.
 *  [Support Ole](https://wordpress.org/support/users/trsupsys/)
 * (@trsupsys)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-207/#post-13381972)
 * In the latest Free version of the plugin, the TWIG library has been updated.
   
   Now it works in a completely different way. Whatever the problem arises, update
   the PRO version to the latest. – 2.8.9 Deactivate and remove old Gallery plugins.
   Install the new Free version. Download new PRO version and install it. If your
   license is expired and you cannot update the plugin to the latest version, roll
   back the Free version. Don’t hesitate to contact me in case of any questions.
   We are always glad to help you!

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

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

 * ![](https://ps.w.org/gallery-by-supsystic/assets/icon-256x256.png?rev=1684313)
 * [Photo Gallery - Responsive Image Galleries by Supsystic](https://wordpress.org/plugins/gallery-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-by-supsystic/reviews/)

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [Permission issue](https://wordpress.org/support/topic-tag/permission-issue/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 4 replies
 * 3 participants
 * Last reply from: [Support Ole](https://wordpress.org/support/users/trsupsys/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-207/#post-13381972)
 * Status: resolved