Title: Random issue with buttons
Last modified: December 2, 2018

---

# Random issue with buttons

 *  [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/)
 * Hi
 * I am having some issues with the buttons working randomly and I am struggling
   to find the issue.
 * I went to the page above and the button was not working. I was troubleshooting
   and added the shortcode to a test page and it worked fine
 * Then I went back to the original page and it now worked. Tried on another laptop,
   on chrome, edge and firefox and it didn’t work. Tried a tablet and it worked.
 * I restarted my machine and it didn’t work again. Cleared website cache, didn’t
   work. Tried the dev page of the same url and it worked. Went to the live url 
   and it worked. restarted laptop and it didn’t work
 * This has been running for some time and been working and no changes on the site,
   new plugins etc. I have the latest version 1.9.13. I tried deactivating all plugins
   and no change. Does it work for you?
 * shortcode:
 * [accept_stripe_payment name=”The Alpine Kitchen Cookbook £35″ price=”38.00″ url
   =”[https://www.thealpinekitchen.com/stripe-checkout-result/](https://www.thealpinekitchen.com/stripe-checkout-result/)
   button_text=”Buy Now £38″ currency=”GBP” shipping_address=”1″]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frandom-issue-with-buttons%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938649)
 * Additional info.
    When I restart the laptop and go to the page, I see in the 
   chrome status bar:
 * Waiting for thealpinekitchen.com then nothing else when it doesn’t work.
 * It isn’t loading the stripe javascript on initial load.
 *  Thread Starter [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938654)
 * When I preview the page in the WP dashboard, I see the stripe calls.
    Refresh
   live page and it also make the stripe calls and it works
 * Hopefully you can see the same!
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938857)
 * Hi. Are you using some kind of a page builder on your site? If yes, try to add
   compat_mode=”1″ option to your button or product shortcodes. E.g.
 * > [asp_product id=”123″ compat_mode=”1″]
 *  Thread Starter [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938866)
 * Hello
    No I am not using a pagebuilder. Tried that, doesn’t fix it. If you go
   to the site does it work?
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938876)
 * Nope.
 * And the reason why it’s not working is because plugin’s javascript library is
   not being loaded on page. In most cases this is caused by page builders and is
   getting dealt with compat_mode=”1″ option.
 * Try disabling your caching\minify\optimization plugins if you use those. If this
   isn’t helping, try to switch your theme to default and then switch off plugins
   one by one. This looks like a conflict and if we can figure out which plugin 
   is causing it, I can try to look for some workarounds.
 *  Thread Starter [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938880)
 * OK thanks I will have a play with those. I did disable all plugins and no change
   but I think my host uses some caching tools so will go look, thanks!
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938881)
 * Thank you.
 * Please let us know what was causing this if you figure it out.
 *  Thread Starter [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938936)
 * Hi
 * I think there is some clash with tablepress.
 * Can you try this please?
 * [https://www.thealpinekitchen.com/test/](https://www.thealpinekitchen.com/test/)
 * –> buttons in table press, don’t work
 * [https://www.thealpinekitchen.com/testing/](https://www.thealpinekitchen.com/testing/)
 * –> button just on the page, works
 * Same for you?
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10939711)
 * Yep.
 * I will try to install Tablepress on my test server and see if I can reproduce
   the issue.
 * Meanwhile, can you try to create a product instead of [accept_stripe_payment]
   shortcode and see if product shortcode is working fine on your setup?
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10939740)
 * I was able to reproduce the issue on my end. And, like I mentioned here [https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938876](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10938876),
   adding compat_mode=”1″ to shortcode helps. Example:
 * [accept_stripe_payment name=”The Alpine Kitchen Cookbook £35″ price=”38.00″ button_text
   =”Buy Now £38″ currency=”GBP” compat_mode=”1″]
 *  Thread Starter [doriefish](https://wordpress.org/support/users/doriefish/)
 * (@doriefish)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10942584)
 * And if you restart your browser or go to another computer does it still work?
   Because it doesn’t for me.
 * I have it on the first button here for example (with compat = 1)
 * [https://www.thealpinekitchen.com/test/](https://www.thealpinekitchen.com/test/)
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10943155)
 * > And if you restart your browser or go to another computer does it still work?
 * Yep, works fine.
 * > I have it on the first button here for example (with compat = 1)
 * Just to make sure, is it compat_mode=”1″ or just compat=”1″? Because first is
   the one that needs to be there.

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

The topic ‘Random issue with buttons’ is closed to new replies.

 * ![](https://ps.w.org/stripe-payments/assets/icon-128x128.png?rev=2705524)
 * [Accept Stripe Payments](https://wordpress.org/plugins/stripe-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-payments/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 12 replies
 * 2 participants
 * Last reply from: [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/random-issue-with-buttons/#post-10943155)
 * Status: not resolved