Why it happens
Pastry needs strong heat from underneath to cook through and crisp. A wet filling soaks into raw pastry before it has a chance to set, so the base steams rather than bakes. Glass and ceramic dishes don't conduct heat as well as metal tins, so bases cook more slowly in them. Skipping blind baking for a wet filling is the most common cause.