Title: Undefined variable: fall_cat_id
Last modified: November 24, 2016

---

# Undefined variable: fall_cat_id

 *  Resolved [auludag](https://wordpress.org/support/users/auludag/)
 * (@auludag)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-fall_cat_id/)
 * hello,
 * thanks for plugin. After activating plugin, it gives
 * Undefined variable: fall_cat_id in …./category-featured-images-extended/category-
   featured-images-extended.php on line 831
 * can you check?

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

 *  Plugin Author [CK MacLeod](https://wordpress.org/support/users/ck-macleod/)
 * (@ck-macleod)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-fall_cat_id/#post-8478168)
 * Hi to you, and thanks for your question.
 * To be clear: Are you getting the message as an error warning or notice that doesn’t
   prevent activation or impair plug-in functionality? Is the warning/notice appearing
   on your plugins page, or somewhere else (like in some other debugging tool)? 
   Is it persistent (shows up continuously)?
 * I can put out an update that initializes the variable as empty – which seems 
   like the right thing to do anyway! – but, since the error doesn’t come up on 
   activation or in debuggers for me, it would be helpful for me if you would confirm
   on your end.
 * If you’re comfortable editing your plugins, you could go to Plugins/Editor, select
   Category Featured Images – Extended and, in category-featured-images-extended.
   php go to line 749 – near the beginning of the last major function, `get_image(
   $object_id )`, MAIN FALLBACK FUNCTION – and insert the following line **immediately**
   after `//get fallback category ID`:
 * `$fall_cat_id = '' ;`
 * So, it should look like this, including line 748:
 *     ```
       //get fallback category ID		
       $fall_cat_id = '' ;
   
       if ( get_cat_ID( $fall_cat) ) { 
       ```
   
 * etc.
 * That should be it, and I hope that clears the message! If I don’t hear from you
   first, I’ll push out the update anyway by tomorrow.
 * Thanks!
    -  This reply was modified 9 years, 6 months ago by [CK MacLeod](https://wordpress.org/support/users/ck-macleod/).
    -  This reply was modified 9 years, 6 months ago by [CK MacLeod](https://wordpress.org/support/users/ck-macleod/).
    -  This reply was modified 9 years, 6 months ago by [CK MacLeod](https://wordpress.org/support/users/ck-macleod/).
    -  This reply was modified 9 years, 6 months ago by [CK MacLeod](https://wordpress.org/support/users/ck-macleod/).
 *  Plugin Author [CK MacLeod](https://wordpress.org/support/users/ck-macleod/)
 * (@ck-macleod)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-fall_cat_id/#post-8489945)
 * Since it’s been several days since the first support request, since I haven’t
   received necessary clarification on the reported problem and whether it’s anything
   more than a passing annoyance on peculiar installations, and since I think the
   simple solution described SHOULD solve it, I’m inclined to close this support
   thread and, as I said, push out the micro-update (though four or five days later
   not the day after, after re-checking it and seeing if there are other revisions
   worth making).
 * Any reason not to go ahead, [@auludag](https://wordpress.org/support/users/auludag/)?
 *  Plugin Author [CK MacLeod](https://wordpress.org/support/users/ck-macleod/)
 * (@ck-macleod)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-fall_cat_id/#post-8499533)
 * Don’t know if you’re still out there, [@auludag](https://wordpress.org/support/users/auludag/).
   I’ve updated the plug-in (to version 1.32) incorporating the change (and doing
   a little bit of additional housekeeping). I’m going to mark this topic resolved,
   pending further replies. Please feel free to let me know if the problem is persisting,
   or, alternatively, please confirm that it’s fixed, if you get a chance.
 * Thanks again for bringing this matter to my attention.

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

The topic ‘Undefined variable: fall_cat_id’ is closed to new replies.

 * ![](https://ps.w.org/category-featured-images-extended/assets/icon-256x256.jpg?
   rev=1501367)
 * [Category Featured Images Extended](https://wordpress.org/plugins/category-featured-images-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-featured-images-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-featured-images-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/category-featured-images-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-featured-images-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [CK MacLeod](https://wordpress.org/support/users/ck-macleod/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-fall_cat_id/#post-8499533)
 * Status: resolved