Hi,
I’m struggling with dynamic item page to show data present in the bookings app. Although it seems really easy, I always get the same error… Hopefully, you can help me out!
Outcome: when I want to navigate through my services, I always get following error:
Internal server error(500)
The Developer console mentions:
Error Unknown error. Request ID: 1570992588.2272046389705148714. Message: message: 'UNKNOWN: Unknown token slug -> Map($urlized -> List(serviceb)) caused by com.wixpress.common.filter.parser.FilterParserError, with message: Unknown token slug -> Map($urlized -> List(serviceb))', request uri: 'http://api.42.wixprod.net/services-catalog-server/_rpc/ServicesCatalog', request options: '{"method":"POST","body":"{\"jsonrpc\":\"2.0\",\"id\":0,\"method\":\"list\",\"params\":\"<masked>\"}"
Above error is generated when I click “Preview” on my dynamic page in design mode.
To test, I created following scenario:
- Start from a blanco template
- Added Wix Bookings
- Added 2 services (serviceA, serviceB) with some dummy information
- Go to website designer. Added a dynamic item page to the service catalog with following syntax “Bookings/Services/{Slug}/service_page”
- Added 2 fields linked them to the service name and service description
- On the home page, added link that refers to the dynamic page, linked to one of the items.
- Hit “Preview”
The preview opens, but no data is loaded. When I click the left or right arrow on the preview panel, the error occurs.
The same issues keeps occurring. After saving, publishing, waiting, closing browser… .
Published demo site: https://2sammaes.wixsite.com/blanco
Probably doing some rookie stupidity, can someone please point me out what I’m doing wrong…
Thank you!
Hi givemeawhisky,
I’m trying to achieve following tutorial: https://www.wix.com/corvid/example/service-page
The funny part, when I open this template and apply the steps I mentioned above in this template it works. But when I try this in my own blank template it fails.
@2sammaes
That one you link to above.
https://www.wix.com/corvid/example/service-page
It does look very similar to this one as well.
https://support.wix.com/en/article/corvid-tutorial-creating-a-bookings-timetable
Plus, as you say that when you use the template in the Wix Editor it all works, yet when creating the same page on your own website that it doesn’t seem to work.
That indicates to me that you may have just missed something out when you made up your own page on your website.
The code itself you can simply just copy it all and add it to your page on your own website, so there shouldn’t be any issues there.
However, if you have added the elements onto your own page or copied them over from the tutorial itself, then I would make sure that you go back through and make sure that everything is where it should be, everything is connected correctly, any event handlers are added back onto any needed element, any dataset connection is reapplied if needed etc.
Check the properties panel for the elements to see if the tutorial had any event handlers added where you have not added them to your own page, especially on the datasets as one of those needs an onReady event added to it as well.
Make sure that every element id in the code matches the actual element on the page too, a text box on your page can be called #textbox1 , however if it is then called #serviceName in your code it won’t work either, they have to all match.
Finally, make sure that you do have your own items in your own datasets too, otherwise your page won’t be showing anything.
Hi @givemeawhisky ,
Thank you for the effort trying to help! I already tested this before sending this post. But to be 100% sure, I just spent 2 hours testing and following your recommendations.
I created exactly the same situation on my “blank” site as on the example template I found.
Actions I took on the template I found ( https://www.wix.com/corvid/example/service-page )
- Removed all pages, removed all apps in the template, inclusive bookings app
- Added bookings app again, removed all services (somehow the previous services remain and are added again after adding the bookings app again).
- Added 3 dummy services
- Added a dynamic page overview with a repeater, linked to the services collection
- Added a dynamic item page with one text button, linked to the services collection
- The site, pages don’t contain any scripts…
→ Result: working fine on the template.
I did exactly the same on my blank site. I still have the same issue as previously mentioned.
I’m out of ideas…