Check that this upgrade was run
http://cvs.openacs.org/cvs/openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/Attic/upgrade-5.2.0a1-5.2.0a2.sql?rev=1.1.2.5&only_with_tag=oacs-5-2&view=markup
It replaces the content_type__refresh_view procedure to work with types that incorrectly don't have a type specific table (edit-this-page) or have a duplicate table name (acs_messaging) by using uppercase instead of lowercase table name.