Gift Registry Error

When I tried to add a product to a registry, it said invalid statement in a foreach loop. I tried again and when I add a product from the products popup, it takes me to a fullscreen view of the products which has no references to my site, its just the center content. I cant add anything from there, or even get back to my store. Any thoughts?