Repeater not displaying data from database - help please

I’m trying to display content from my database in a repeater. I’ve already created a database, it is populated with some test data, added the repeater, connected the repeater to the database field I want to be displayed. However, when testing in preview or published, everything that I’ve connected just shows up blank. For example, if I want to display an image from the database in the repeater, all that displays is the background of where the image should be in both preview and published. I’ve followed all the steps in the following link: https://support.wix.com/en/article/displaying-database-content-in-a-repeater , yet still nothing shows. Database permissions are set to members only and I’m logged into the site.

As an aside, I can get data from the database to display in a gallery in the members area, so I know the database is working and can display data using other methods, but I can’t solve this repeater issue. I’m presuming that this must be something incredibly simple that I’m missing here because I’ve been trying to get this working for hours with no luck. What am I doing wrong?

Hi, have you tried syncing sandbox to live?

On the Wix builder go to “content manager”, then select your dataset.
After you finish adding content to the dataset, click on “Sync Sandbox to Live”.

I hope this solves your problem.

Thank you for trying to help! I just tried this and I am most disappointed to say that it did not work. That was one thing I hadn’t thought to try yet though so I appreciate any other ideas.

Check your dataset settings and make sure that it is set up with the right function of either read or read and write and not write.
https://support.wix.com/en/article/working-with-dataset-modes-and-collection-permissions

Also, please note that the Corvid Forum deals with all code related issues on your site.

For any non code issue etc, then you are better suited going through Wix Support themselves.
https://support.wix.com/en/article/contacting-wix-customer-care-for-support

Thanks for your reply. I checked the dataset settings and they are set to read as I’m just trying to display data from a database search. It seems like everything is set correctly and should be working, but it isn’t, so clearly I am missing something. In the meantime, I have submitted a ticket to Wix for support, but I’ve been so frustrated with what seems like a simple task that I was hoping maybe someone else may have run into this same issue and had a solution. Thanks for giving me something else to double check though, I appreciate it!

With regards to your pic about your custom settings, if the repeater is for showing only, then why do you need the creating and updating sections to be member as well.

For that to happen, you would need to make the dataset read and write and not just read only.

The only one that should be changed from Admin if you are just displaying the images is the read top one.

I have just added a dataset with some tiger pics in and a repeater on a normal page and connected it all up and it works fine for me.

I have not changed the dataset settings itself, that is on Site Content still, you shouldn’t need to change it to custom use if you are only displaying it to members when it is already on a members only page.

Even if I do it as site content still on a Wix Members app page, it still works fine.

I would suggest that you double check your dataset setup for the modes and permissions and make sure it suits your actual needs.

Also make sure that you have synced your dataset from sandbox to live as already mentioned, so that the dataset works on both preview and live versions of your site.

Otherwise, as you have not used any code, it won’t be a Corvid issue for which this forum is to be used for.

Therefore, you need to be sticking with Wix Support to see what they suggest.

@givemeawhisky Once again, thank you for your effort to help. To answer your question of permissions, the database itself is updated using a custom form to collect data from users, therefor it needs to have write permissions by members. The repeater is then used to display search results of information already collected in that same database (needing read permissions). This seems like a reasonable expectation of database functionality, collect data, search data, display results of search.

However, here is the really bizarre thing that I don’t understand. Using a custom form, members can input data, the database populates, and I can display that same data using that database in a gallery, great. Working as expected, no problem. It was when I tried to display that same data using a repeater that I ran into this problem. When I add that existing database to the repeater page and link the fields, nothing shows up as if data doesn’t exist for that field when it clearly does using other methods to display it.

Now, when I added a brand new database and manually populated data into it (which I absolutely do not want to do and makes no sense for my purposes) with the exact same permissions, it works. See the screen shots below.

Just why? The exact same data, the exact same permissions, the only difference at this point is the name of the DB and that I’ve manually entered in the data to the new DB. What gives? This doesn’t make any sense to me and why I’ve been banging my head against the wall for three days and reconsidering whether or not Wix was the right platform for my needs.

Since this new database works with displaying results in the repeater, my next step is to unlink my custom form fields to the old database and link them to this new database. Now, if my form breaks and users can’t submit data, then this defeats the entire purpose of a database for me and I will need to consider using another platform.

Finally, I realize that this is a forum for code issues, but there doesn’t seem to be a forum for community support on the functionality of Wix. Regardless, I do appreciate your help and I hope this information might help someone else who has this problem. I still have my ticket open with Wix and I can’t wait to hear if this is functioning as designed.

@jawrakae Please post the URL of your site. Only authorized Wix personnel can get access to your site in the editor. Please include the name of the page involved.

Chris, reading your last posts I think I know your issue here.

I think that you are trying to connect your users input form and the repeater to the same dataset on your page.

Now yes in theory you are doing that with the form saving the users submission into your database and then the repeater showing the items in that database which you have in your site structure.

However, in practical terms you will need one dataset on your page for the form which would be form submission or write only for example.

Then you would need to add another dataset to your page and connect that to the same database, however this dataset would need to be read only so that it just displays items only.

@yisrael-wix
Please check to see if they are using the same dataset connection on their page.

Yes, that is what I am trying to do, but here is what makes it more confusing. I can display data from the same database using a gallery. Why can I display the same data from the same dataset one way, but not another? I also looked into this article about referencing another database, https://support.wix.com/en/article/adding-a-reference-field-to-a-database-collection , but trying this way, I get nothing but broken reference errors when I know the field names and types are exactly the same. This seems like it should be such a simple task but it has become agonizingly painful to implement.

I was facing the same issue, But I simply took the repeater out from the grid and I worked for me. I don’t know whether its a right way or not, but for time being you can try that.

I had the same problem. It is because most likely your database is set as “private data” therefore is not showing in your live page. You need to change the settings of the page as to “site data”, this will solve your issue.

I’m having a similar problem, but mine displays in the preview but not on a live page after publishing. What gives?

I figured it out with international Trading Commerce’s post. From the site content manager, I selected Edit Settings on my collection. The under “What’s this collection for?” I selected Custom Use. Then I “set custom permissions” as anyone for read and create and admin for changes and delete.

Thank you!