Title: sp_shortcodes_button error
Last modified: May 24, 2020

---

# sp_shortcodes_button error

 *  Resolved [pilam](https://wordpress.org/support/users/pilam/)
 * (@pilam)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/)
 * Hi [@savvasha](https://wordpress.org/support/users/savvasha/),
 * I’m getting the error “Failed to initialize plugin: sp_shortcodes_button” which
   I see has occurred previously: [https://wordpress.org/support/topic/block-editor-issues/](https://wordpress.org/support/topic/block-editor-issues/)
 * It’s a similar situation – the error disappears when using the Classic Editor.
   I’m using two plugins: Popup Maker and Yet Another Stars Rating. The error occurs
   when modifying a popup in Popup Maker, but only since I upgraded YASR to their
   version 2.3.3. It works fine with the previous version of YASR.
 * I was going to post this problem on the YASR site, but as it’s a Sportspress 
   plugin mentioned in the error message and the error has occurred here previously,
   perhaps this is the best place to start?
 * Thanks,
 * Pilam.

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

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12885429)
 * Hi [@pilam](https://wordpress.org/support/users/pilam/) ,
 * I am sorry to hear that… Unfortunately SportsPress is not yet 100% compatible
   with Gutenberg editor.
 * As you said, the error started to appear after upgrading `YASR` plugin. If I 
   was you, I was going to start from there. Open a ticket at YASR site and give
   back some feedback here as soon as you have something new!
 * Thanks,
    Savvas
 *  Thread Starter [pilam](https://wordpress.org/support/users/pilam/)
 * (@pilam)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12891327)
 * Hi [@savvasha](https://wordpress.org/support/users/savvasha/),
 * I’ve done that:
 * [https://wordpress.org/support/topic/2-3-3-upgrade-problem-with-gutenberg/](https://wordpress.org/support/topic/2-3-3-upgrade-problem-with-gutenberg/)
 * and YASR’s author appears to be able to recreate it with YASR disabled, although
   that is the only trigger I’ve discovered so far. However I can confirm what he
   says about the error appearing even when the shortcode is not in the post – the
   same happened to me.
 * Something is trying to initialize the plugin when Gutenberg is enabled, even 
   when it is not in the post.
 * HTH,
 * Pilam.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12899365)
 * Hi [@pilam](https://wordpress.org/support/users/pilam/),
 * Can you give me the exact steps to reproduce the issue? I am starting with a 
   fresh WordPress install. Then install and activate SportsPress. Then what?
 * Thanks,
    Savvas
 *  Thread Starter [pilam](https://wordpress.org/support/users/pilam/)
 * (@pilam)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12923692)
 * Hi [@savvasha](https://wordpress.org/support/users/savvasha/),
 * Sorry for the delay in getting back. I have a lot more plugins I use and I was
   trying to eliminate as much as possible by doing a fresh install myself. That
   didn’t give me any clues but then I noticed that the problem only occured when
   opening an existing popup to modify it. If I added a completely new one it worked
   fine.
 * I then realised that those popups which had the problem all had classic blocks
   in them, i.e. the Classic Block formatting in Gutenberg. Remaking those blocks
   as ordinary Gutenberg paragraphs or similar eliminated the problem completely.(
   Adding a classic block brings it back though!).
 * So I still don’t know what actually caused the problem, but as long as Classic
   Block formats within Gutenberg aren’t used, the error doesn’t appear.
 * Again, sorry it took so long, but this can be closed from my perspective.
 * Thanks,
 * Pilam.
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12924100)
 * Hi Pilam,
 * That’s amazing, thanks for sharing your feedback!
 * And I’m glad it is solved for now. If you need anything else just let us know.
 * Thanks!
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [6 years ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12924333)
 * Hi [@pilam](https://wordpress.org/support/users/pilam/) ,
 * Thanks for the feedback. I hope that everything is working fine with your setup.
 * Thanks,
    Savvas
 *  [liubovwp](https://wordpress.org/support/users/liubovwp/)
 * (@liubovwp)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12944559)
 * Hi! I have the same problem on my site. But there is very simple solution!
    Please,
   update row sportspress/assets/js/admin/editor.js ( 14 )
 *     ```
       var shortcodes = variations.split("|");
       ```
   
 * =>
 *     ```
       var shortcodes = typeof variations!== 'undefined' ? variations.split("|") : [];
       ```
   
 * It will only improve your code, thank you for your plugin!
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12945438)
 * Hi liubovwp!
 * Thanks for your suggestion! Please kindly send it on gitbub, that’s the best 
   place for it to be considered for inclusion.
 * Thanks!
 * Kind Regards,
    -Roch
 *  [liubovwp](https://wordpress.org/support/users/liubovwp/)
 * (@liubovwp)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12952622)
 * Done: Fix Elementor compatibility #385
    Any assistance will be appreciated.
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12955944)
 * That’s amazing, thanks for that 🙂
 *  [liubovwp](https://wordpress.org/support/users/liubovwp/)
 * (@liubovwp)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12956489)
 * 🙂
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12965838)
 * Thanks [@liubovwp](https://wordpress.org/support/users/liubovwp/) for the contribution!!!
   
   As I can see, the patch was already merged to the core code by our developers.
 * Thanks again,
    Savvas

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

The topic ‘sp_shortcodes_button error’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Savvas](https://wordpress.org/support/users/savvasha/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/sp_shortcodes_button-error/#post-12965838)
 * Status: resolved