Title: Error while using NexGen Gallery
Last modified: August 21, 2016

---

# Error while using NexGen Gallery

 *  Resolved [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/)
 * NextGen Gallery v2.0.61
    JM Twitter Cards v5.2.2
 * In the Post ATP functionality (Attach-to-post) I get an error:
 * Fatal error: Class ‘JM_TC_Tabs’ not found in /home/davide/apps/velvetnetwork/
   new-version-merge/wp-content/plugins/jm-twitter-cards/jm-twitter-cards.php on
   line 192
 * [https://wordpress.org/plugins/jm-twitter-cards/](https://wordpress.org/plugins/jm-twitter-cards/)

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

 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914459)
 * Thanks a lot,
    Davide
 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914626)
 * Ho can’t reproduce that bug. Can you give more details? I mean where it happens?
   Only on nestgen menu pages?
 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914643)
 * If you go on post screen and press NextGen “Attach To Post” Button, you’ll see
   an overlay for gallery / photo embedding. With JM Twitter Cards active, that 
   screen is replaced by the message:
 * Fatal error: Class ‘JM_TC_Tabs’ not found in /home/davide/apps/velvetnetwork/
   new-version-merge/wp-content/plugins/jm-twitter-cards/jm-twitter-cards.php on
   line 192
 * Other infos?
    Thanks a lot Dave
 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914658)
 * Hi, I’m running the nextgen plugin (latest version] with my plugin and I do not
   get this error.
 * Could you just upgrade nextgen and see if it works? If not try [the current github version of JM Twitter Cards](https://github.com/TweetPressFr/jm-twitter-cards).
 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914699)
 * Nope..
    Even if I update NextGen Gallery to 2.0.65, NextGen Pro to 1.0.17 and
   JM Twitter Cards to latest Master from GitHub, I get the same error “Fatal error:
   Class ‘JM_TC_Tabs’ not found in /home/davide/apps/velvetnetwork/wp-content/plugins/
   jm-twitter-cards/jm-twitter-cards.php on line 194” (line has changed) in the 
   Attach-to-post overlay instead of NextGen options 🙁
 * PS. WordPress is already 3.9.1
 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914718)
 * I debugged a little bit, I try to explain results:
 * In NextGen overlay, is_admin() at row 72 of jm-twitter-cards.php returns false,
   while is_admin() at row 191 (in the `if`, in jm_tc_init() function) returns true,
   so tabs.php has not included while JM_TC_Tabs is loaded,
 * I hope this helps,
    Davide
 * PS. jm-tc version is 5.2.3
 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914725)
 * I’ll look into it for the next version. I’ll fix it on trunk ASAP on github.
 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [12 years ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914726)
 * Hum… I used a conditional tag outside a context which could be the reason for
   this bug.
 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914798)
 * Noouu… Error only moved forward..
 * `Fatal error: Class 'JM_TC_Tabs' not found in wp-content/plugins/jm-twitter-cards/
   jm-twitter-cards.php on line 205`
 * (v. 5.2.7)
 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914800)
 * Hi,
 * The more details you give the faster it will be fixed. Will work on this when
   I got time.
 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914801)
 * I don’t know if it’s the wrong way,
    I tried to encapsulate `//Call modules` 
   section in
 *     ```
       add_action('plugins_loaded', 'jm_tc_init_2');
       function jm_tc_init_2()
       ```
   
 * and it seems to be fixed,
 *  Thread Starter [davide](https://wordpress.org/support/users/davidemetupit/)
 * (@davidemetupit)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914802)
 * You know plugin better than me 🙂
 * Thank you
 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914803)
 * 5.2.8 should fix this issue. I was actually testing admin page instead of post
   edit with the NGG button. No chance to find the bug ^^
 * Should be better now.

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

The topic ‘Error while using NexGen Gallery’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jm-twitter-cards.svg)
 * [JM Twitter Cards](https://wordpress.org/plugins/jm-twitter-cards/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jm-twitter-cards/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jm-twitter-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/jm-twitter-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jm-twitter-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jm-twitter-cards/reviews/)

## Tags

 * [atp](https://wordpress.org/support/topic-tag/atp/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)

 * 13 replies
 * 2 participants
 * Last reply from: Anonymous User 10765487
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/error-while-using-nexgen-gallery/#post-4914803)
 * Status: resolved