• Resolved lejager

    (@lejager)


    Hi there,
    I’m also having trouble with the new version of Zip Recipes taking my site down.

    Error message is below. Thank you kindly for your time,
    Matt

    Uncaught exception ‘RuntimeException’ with message ‘Unable to create the cache directory (/srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes/views/cache/d0).’ in /srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes/vendor/twig/twig/lib/Twig/Cache/Filesystem.php:60 Stack trace: #0 /srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes/vendor/twig/twig/lib/Twig/Environment.php(400): Twig_Cache_Filesystem->write(‘/srv/bindings/7…’, ‘<?php\n\n/* foote…’) #1 /srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes/vendor/twig/twig/lib/Twig/Environment.php(347): Twig_Environment->loadTemplate(‘footer.twig’) #2 /srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes/_inc/class.ziprecipes.util.php(65): Twig_Environment->render(‘footer.twig’, Array) #3 /srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes/_inc/class.zipre

    https://www.ads-software.com/plugins/zip-recipes/

Viewing 15 replies - 1 through 15 (of 27 total)
  • Hi Matt,

    This is most likely an issue with permissions. Ensure the following folder above is writable:

    /srv/bindings/712247f50c5e4458936d43691ef8babd/code/wp-content/plugins/zip-recipes

    Let me know if you need further help.

    Thread Starter lejager

    (@lejager)

    Hi there,
    Thank you for the quick reply. I also ran this by my hosting company (Pantheon), and they do not allow the permissions to be changed. I tried setting up a symlink to a writeable directory (uploads folder), but that didn’t work either.

    I didn’t have this problem with the old version of the plugin. Is there a work around?

    Thanks again for your time,
    Matt

    Thread Starter lejager

    (@lejager)

    HappyGezim,
    Any thoughts before I switch plugins? I can’t wait much longer.

    Thanks for your assistance.
    Matt

    Hi Matt.

    Sorry, didn’t see your reply.

    I can have a look at fixing this issue with a future update. It won’t happen right away, though.

    Can you email me a screenshot of the permissions you see?

    Thread Starter lejager

    (@lejager)

    No problem, thanks for the reply.

    Here’s a description of the issue from Pantheon’s support:

    The issue you are running into actually has to do with write permissions on the platform. We do not allow writing to the code repository on test or live and only allow it in SFTP mode on the dev site. Your plugin is trying to write its own cache files to directories that are not writable.

    I tried setting up a symlink for the /wp-content/plugins/zip-recipes/views/cache folder, so that it would redirect to the uploads directory (which is writeable), but it did not work. Any advice you have would be much appreciated.

    Thanks,
    Matt

    Hi Matt,

    I’ll try and create the cache directories before the installation so nothing needs to be created during it. Will update you.

    Thread Starter lejager

    (@lejager)

    Great, thanks!

    Thread Starter lejager

    (@lejager)

    Hi HappyGezim,
    Just wanted to see if you had an update. I have to get the recipes section of my site back up, and I very much hope to continue using your excellent plugin.

    Thanks for your time,
    Matt

    Hi Matt,

    I’ve looked into this and it’s not as straight-forwards as I’d hoped.

    I’ll keep investigating but don’t guarantee I’ll be able to come up with a fix soon.

    Hi Matt,

    I think I’ve got a solution! I’ll use /tmp/ folder to store those cache files. That should work. I hope to release a fix this week.

    Cheers,
    -Gezim

    Thread Starter lejager

    (@lejager)

    Great to hear!
    Is the tmp folder located in the uploads directory? As I believe that is the only directory that Pantheon gives write permissions.

    Hi Matt,

    Yeah, the /tmp folder should be writable otherwise WordPress itself would have nowhere to download plugins. I believe WordPress already uses /tmp and I should be able to use it as well.

    Was going to release last night but hit a major snag during last minute testing (related to translations not this fix).

    Just a suggestion and a question too. WordPress has a cache directory under wp-content/cache/. Is there a reason you prefer to use tmp instead of the standard cache?

    Hi Matt,

    Thanks for you patience!

    I just released 4.5.2.8. Give it a try!

    Lee, my bad. It doesn’t use /tmp unless it’s that’s set as the wordpress temporary directory. with WP_TEMP_DIR. I use get_temp_dir() to get this directory.

    Thread Starter lejager

    (@lejager)

    Looks like it works! Thank you!!!

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Takes My Site Down’ is closed to new replies.