Why do I get an error message when I click on the public registration preview?

You must enable public registration:
 
,Event-> Edit Registry-> Public Registry.