Title: [Patch] fixed undefined constant CACHE_TRANSIENT
Last modified: August 31, 2016

---

# [Patch] fixed undefined constant CACHE_TRANSIENT

 *  ResolvedPlugin Contributor [aboutnick](https://wordpress.org/support/users/aboutnick/)
 * (@aboutnick)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/patch-fixed-undefined-constant-cache_transient/)
 * Don’t know where to drop the patch instead..
 * `
    --- a/get-tweets-in-php/Netgloo/GetTweetsInPhp.php +++ b/get-tweets-in-php/
   Netgloo/GetTweetsInPhp.php @@ -191,7 +191,7 @@ class GetTweetsInPhp { $twitter_api_exchange
   = new \TwitterAPIExchange($settings);
 *  // Set the cache transient name
    - $transient_name = CACHE_TRANSIENT . '__' .
   $api_opts['screen_name']; + $transient_name = self::CACHE_TRANSIENT . '__' . 
   $api_opts['screen_name'];
 *  // Retrive the $user_timeline
    $user_timeline = null;
 * [https://wordpress.org/plugins/get-tweets-in-php/](https://wordpress.org/plugins/get-tweets-in-php/)

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

 *  Plugin Author [azanelli](https://wordpress.org/support/users/azanelli/)
 * (@azanelli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/patch-fixed-undefined-constant-cache_transient/#post-6990859)
 * Ok, thank you for the fix.
 * I just released version 1.1 with this fix, adding you as contributor if it’s 
   ok for you.
 * I will place the code under GitHub, so contributions will be easier.
 *  Plugin Author [azanelli](https://wordpress.org/support/users/azanelli/)
 * (@azanelli)
 * [10 years ago](https://wordpress.org/support/topic/patch-fixed-undefined-constant-cache_transient/#post-6990896)
 * Now the code is available on GitHub here:
    [https://github.com/netgloo/get-tweets-in-php](https://github.com/netgloo/get-tweets-in-php)
   accepting pull requests or issues reports.

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

The topic ‘[Patch] fixed undefined constant CACHE_TRANSIENT’ is closed to new replies.

 * ![](https://ps.w.org/get-tweets-in-php/assets/icon.svg?rev=1240948)
 * [Get Tweets in PHP](https://wordpress.org/plugins/get-tweets-in-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/get-tweets-in-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/get-tweets-in-php/)
 * [Active Topics](https://wordpress.org/support/plugin/get-tweets-in-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/get-tweets-in-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/get-tweets-in-php/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [azanelli](https://wordpress.org/support/users/azanelli/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/patch-fixed-undefined-constant-cache_transient/#post-6990896)
 * Status: resolved