- Issue created by @alexander.nachev
- 🇧🇬Bulgaria alexander.nachev
Reading about other errors in google for "parameter was not converted" I finnaly understood that the wishlist type i am sending with the ajax call is somehow wrong. The widget sends as second parameter "wishlist" and I named the wishlist type "Favourites" so the machine name is different and it seems to be hardcoded in the AJAX widget. Some one with more skill than me can say...
Solution was just to rename my wishlist type to wishlist.
My next problem was to be able to create wishlists as anonymous user. I set the permissions for the anon user and voalia the widget allowed me to create wishlists with the session ID and these wishlists stayed. Really cool.
I was not able to add items to the wishlists I create as anon user and getting 403 ajax error telling me "update own better wishlist permission is required"
And I tried giving the anon user every permission the module has created without making any difference.
Without much thinking I found the better_wishlist_widget.routing.yml file and changed:
_permission: 'update own better wishlist'
to:
_permission: 'access content'hahhah come hackers you are welcome :)
And it works.
Definetly very ugly solution but I will leave it like this untill I learn more on D9 or someone fixes this.