So I had “regular” pages displaying collection items, with a repeater and a database, so I decided to set them as dynamic pages, which is normal I suppose.
Only now most of them (4/5) don’t work ! I have a text field on which the user can click to access those pages, only one works ! The rest return an error :
and the console log shows this :
Not Found (404) - The requested resource could not be found
no data matched this query: {"$and":[{"evenement":{"$contains":"GAMING WEEK"}},{"dispo":{"$ne":true}}]}, with the pattern: /gaming-week
Loading the code for the site. To debug this code, open masterPage.js in Developer Tools.
Loading the code for the Deals Soldes (All) page. To debug this code, open bajm4.js in Developer Tools.
DatasetError: Operation (onReady) not allowed on an unconfigured dataset
One of those pages works fine (url = /deals/sales) but the rest won’t.
I tried everything, clearing out the cache, trying with a different browser, trying buttons linked to the ‘deals’ collection… to no avail…
Also, I’m seeing that some of your dynamic pages are not configured to use any field from the data base.
See this one, which is configures correctly to use ‘ID’ and ‘Title’:
So oddly when clicking on the link in the footer (see all 4 ‘événements’) it didn’t react at all, and after adding a link to each entry again, it showed the error message again (you can try now)
I want those pages to display only certain items that are part of a collection, I first set them as static pages which worked fine, but figured it would make more sense and would be better to set them as dynamic pages.
I don’t understand, since my Deals (All) page also has a static URL, what’s the matter with not adding any dynamic field ?
The matter is that this is not a ‘Dynamic page’ if it has a static URL
What you’ve set there, is a Dynamic Page with the prefix of ‘deals/black-friday’. This means that this will be a prefix of any page under that namespace. I would expect than to have pages like:
‘deals/black-friday/tv’, '‘deals/black-friday/ipad’ etc. (according to a database collection).
‘deals/black-friday’ is not a real page, just a prefix.
I think that what you have in mind is making ‘deals/black-friday’ some sort of an index page.
I suggest looking in this example for how to achieve that.
I am having the same issues and have been emailing back and forth with six support for over a week. Please help! All the pages work fine in preview but when I publish I get the 404 does not exist.
If you still encounter problems, please post the editor 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.
I had the same problem earlier. My dynamic page kept getting an error when I tried to go live. I could not link my static page item to a dynamic page. But I fixed it for my site. I synced the sandbox to the live site first. Next, instead of using the ordinary link on my static page item. I connected it to the date like I would on a static page. After 6 hours, I finally fixed my problem.