everything works in preview mode but not in published site

Was facing similar issue. Syncing Sandbox with Live resolved this problem in my case