URGENT: Front-end collection query works on preview but not on live site despite syncing.

The “site content” collection I’m querying from the site code (front-end) of a members-only page can be queried perfectly in the page preview but the same queries fail on the live site. This is despite me syncing the sandbox of the collection to live multiple times.

Note: All pricing plans are free while site is under construction and testing, so please go ahead and test the site. The developer’s console logs all errors.

Thanks a lot for helping!

Site link : psquareinternational.com
I have multiple pages having the same issue: psquareinternational.com /m-1 psquareinternational.com /m-3 are two of them. Others are M-2, M-4, M-5 & M-6.

For example of site code : https://www.wix.com/corvid/forum/community-discussion/front-end-collection-query-works-on-preview-but-not-on-live-site-despite-syncing

Possible issues:

  • The positioning of the query in the code. Although it is only called after page-load.
  • Collection and dataset permissions.
  • Unsuccessful syncing - although my live collection contains the elements whose queries are failing.

Make sure that you have the correct collection permissions .

Hi @tanishqashringarpure ,

Have you Logged In to Live site and Checked.

Permission Type : Members Only ;
So it wont work if you are not logged in .

Hope it helps!

Thanks,
Kottravai