VibeFix

Guide

Button not working after publish: why it does nothing on the live site

Published by Yosef D., founder of VibeFix

How this guide was made: Written with AI assistance and checked against the sources linked on this page.

Updated

Short answer: a button that works in the preview but does nothing after publish usually hits a script error from a setting missing on the live site, a request blocked by a database rule or sign-in, or an overlay covering it. Open the live page's console, press the button, and fix what the first red error names.

Fixed in your code, then tested live. Get it fixed: a free check first confirms the problem on your live app, usually in 4 to 10 minutes.

Free. No account needed. It usually takes 4 to 10 minutes.

Want it fixed? For Lovable apps or code on GitHub, our AI agent fixes it in your code for $79 and tests your live app again. If we can't complete your re-check, you get your money back.

Why it happens

A button that does nothing is almost always one of four things.

Possible causes

How do I fix a button that does nothing on the live site?

  1. Open the live site in a private window, open the browser console (in Chrome: right-click, Inspect, Console), press the button and read the first red error. An error such as "Cannot read properties of undefined" or "supabaseUrl is required" names the missing value or setting. Add the setting where your builder or host keeps the published app's settings, then publish again.
  2. Open the Network tab, press the button again and look at the request it sends. A 401 or 403 means the visitor is not signed in or a database rule blocks the write; a 404 means the address points at the preview; a failed request with "CORS" in the console means the server does not accept your live domain.
  3. If nothing appears in the console or Network tab, something is covering the button. Right-click the button and choose Inspect: if the highlighted element is a banner, chat widget or empty layer instead of the button, close or move that element, or give the button's area a higher z-index.
  4. On a phone, use the device toolbar in DevTools (Ctrl+Shift+M) and check the button is visible, not under a fixed footer or cookie bar, and at least 24 by 24 pixels.
  5. Re-test signed out, in a private window, on the live address, after every publish.

You can't see it yourself

You're signed in, your customers aren't. You are signed in and on a large screen, with nothing covering the button. Most visitors do not tell you; they just leave.

Related: Customers can't pay on my app: the pay button does nothing, or the order never shows up · Data won't save: "new row violates row-level security policy" · It works in the preview but breaks after I deploy

VibeFix is independent. Lovable, Bolt, Replit, Base44, v0, Supabase, Firebase, Stripe and Vercel are trademarks of their owners.

More guides · Shopify store accessibility · About · Your privacy choices