I am building installation profile where there is dependency on both panelizer and profile2 modules. Got following error:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'slacfeatures.profile_type' doesn't exist: SELECT p.*
FROM {profile_type} p;

Full backtrace is attached. Installation is via "drush si".

In short problem is that panelizer calls entity_get_info() that in its turn calls profile2_entity_info. Profile2 requires to have db table profile_type in place but this call triggered earlier than profile2 deploys its schema.

I had to add condition with db_table_exists in order to avoid this error but I hope there is better solution for this problem.

CommentFileSizeAuthor
backtrace.txt1.24 MBygerasimov

Comments

rlmumford’s picture