Support » Plugin: oAuth Twitter Feed for Developers » Doesn’t work on pantheon

  • Pantheon doesn’t allow to writing of anything outside of wp-content/uploads in the production environment. Can you point me to where I’d need to make the patch to change the file path of the .tweetcache file?

Viewing 1 replies (of 1 total)
  • I found the same issue and patched it locally. Here’s my diff:

    Index: StormTwitter.class.php
    ===================================================================
    --- StormTwitter.class.php      (revision 1962351)
    +++ StormTwitter.class.php      (working copy)
    @@ -86,7 +86,8 @@
       }
    
       private function getCacheLocation() {
    -    return $this->defaults['directory'].'.tweetcache';
    +    $up = wp_upload_dir();
    +    return $up['basedir'] . '/.tweetcache';
       }
    
       private function getOptionsHash($options) {
    • This reply was modified 1 year, 4 months ago by faerysteel.
Viewing 1 replies (of 1 total)
  • The topic ‘Doesn’t work on pantheon’ is closed to new replies.