Fix: No document templates uploaded for list "$Resources:core,MasterPageGallery;" -- none found for list template "100".

Scenario:
In SharePoint 2010, trying to create a Publishing Site with Workflow fails with this message:




The error logged is a bit more descriptive but not really helping:
No document templates uploaded for list "$Resources:core,MasterPageGallery;" -- none found for list template "100".

Fix:
Activate the "SharePoint Server Publishing Infrastructure" feature at the site collection level.
If the feature is active, deactivate it and then activate it again.