Title: &#8220;Fatal Error&#8221; when using slide-set shortcode
Last modified: June 5, 2018

---

# “Fatal Error” when using slide-set shortcode

 *  Resolved [leerayna](https://wordpress.org/support/users/leerayna/)
 * (@leerayna)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/)
 * I’m getting this error message on a particular page when plugin is working fine
   elsewhere on my site:
 * Fatal error: Cannot redeclare aFSSc() (previously declared in /home/mcldevme/
   public_html/wp-content/plugins/addfunc-slides/addfunc-slides.php:220) in /home/
   mcldevme/public_html/wp-content/plugins/addfunc-slides/addfunc-slides.php on 
   line 220
 * Any suggestions?
 * Many thanks!
 * L.
    -  This topic was modified 7 years, 10 months ago by [leerayna](https://wordpress.org/support/users/leerayna/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-using-slide-set-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [leerayna](https://wordpress.org/support/users/leerayna/)
 * (@leerayna)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/#post-10364393)
 * Another note: this error only occurs when the page in question is “Published”.
   Everything seems to work fine when page is set to “Draft”.
 *  Plugin Author [Joe Rhoney](https://wordpress.org/support/users/joerhoney/)
 * (@joerhoney)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/#post-10608861)
 * Sorry for the delay. It looks like you’re no longer using any sliders for this
   website.
 * What version of AddFunc Slides were you using?
 *  Plugin Author [Joe Rhoney](https://wordpress.org/support/users/joerhoney/)
 * (@joerhoney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/#post-10736265)
 * I happened to duplicate this error myself and have developed a fix for it, which
   I will be including in the next update release (coming soon).
 *  Plugin Author [Joe Rhoney](https://wordpress.org/support/users/joerhoney/)
 * (@joerhoney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/#post-10736280)
 * In the meantime, you can try avoiding using the shortcode more than once per 
   page.
 * What’s happening (for anyone who cares) is the shortcode function is being declared
   as part of another function, one which scans the post output to see if the shortcode
   is being used at all. If this is run more than once (like on an Archive-type 
   page such as Categories, Tags, Search, etc.), then it will try to declare the
   shortcode function for each instance. PHP doesn’t like that.
 *  Plugin Author [Joe Rhoney](https://wordpress.org/support/users/joerhoney/)
 * (@joerhoney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/#post-10748113)
 * [@leerayna](https://wordpress.org/support/users/leerayna/) I’ve released version
   2.4, which fixes this issue, as well as others. Please update and let me know
   if you still get any error messages with AddFunc Slides. Thanks!

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

The topic ‘“Fatal Error” when using slide-set shortcode’ is closed to new replies.

 * ![](https://ps.w.org/addfunc-slides/assets/icon.svg?rev=1466545)
 * [AddFunc Slides](https://wordpress.org/plugins/addfunc-slides/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addfunc-slides/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addfunc-slides/)
 * [Active Topics](https://wordpress.org/support/plugin/addfunc-slides/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addfunc-slides/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addfunc-slides/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Joe Rhoney](https://wordpress.org/support/users/joerhoney/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-using-slide-set-shortcode/#post-10748113)
 * Status: resolved