Error message
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal-7.profile_type' doesn't exist: SELECT base.id AS id, base.type AS type, base.label AS label, base.weight AS weight, base.data AS data, base.status AS status, base.module AS module FROM {profile_type} base; Array ( ) in EntityAPIController->query() (line 152 of /Users/joachim/Sites/7-drupal/sites/all/modules/entity/includes/entity.controller.inc).

Comments

joachim’s picture

O_o

Reinstalled D7 and enabled profile2 and it works.

I wonder whether this was caused by enabling profile2 & profile2 pages at once?

jonsecret’s picture

I have too this problem. it's don't show me what is errore just show whit page.

Drupal core is 7.8

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Sry, I cannot reproduce this. I guess this could happen if you install a module providing default profile types but you don't specify the dependency - or use an old drush version that doesn't order the modules correctly?

Anyway, we need to find a way to reproduce it.

bendiy’s picture

Having the same problem.

Upon install, I install both Profile2 and Profile2 Page. The install appeared to have failed in creating any of the profile tables in the database, profile or profile_type. I cannot uninstall the module. Only way to get the white screen to go away is to remove the Profile2 folder. I've even removed Profile2 entries from the system, registry, and registry_file tables, but I cannot get Profile2 to install correctly. Flushing caches and running cron does not help.

I get the below error if I enable error reporting in php.ini and install the module from /admin/modules/list with no admin overlay:

Fatal error: Class name must be a valid object or a string in /includes/common.inc on line 7506 Call Stack: 0.0001 733672 
1. {main}() /index.php:0 0.2625 47877800 
2. menu_execute_active_handler() /index.php:21 0.2671 49229008 
3. call_user_func_array() /includes/menu.inc:503 0.2671 49229496 
4. drupal_get_form() /includes/menu.inc:503 0.2671 49230696 
5. drupal_build_form() /includes/form.inc:189 0.8925 69873424 
6. drupal_process_form() /includes/form.inc:352 1.0619 76422424 
7. form_execute_handlers() /includes/form.inc:832 1.0619 76426856 
8. system_modules_submit() /includes/form.inc:1414 1.0681 76702944 
9. module_enable() /modules/system/system.admin.inc:1180 1.3041 76402192 
10. drupal_get_schema() /includes/module.inc:427 1.3041 76402192 
11. drupal_get_complete_schema() /includes/bootstrap.inc:2727 1.3812 84650456 
12. drupal_alter() /includes/bootstrap.inc:2808 1.3814 84653264 
13. uuid_schema_alter() /includes/module.inc:1004 1.3939 84844800 
14. drupal_alter() /sites/all/modules/contrib/uuid/uuid.install:23 1.3959 84870200 
15. profile2_entity_info_alter() /includes/module.inc:1004 1.3959 84870200 
16. profile2_get_types() /sites/all/modules/contrib/profile2/profile2.module:72 1.3959 84870504 
17. entity_load_multiple_by_name() /sites/all/modules/contrib/profile2/profile2.module:141 1.3959 84870816 
18. entity_load() /entity/entity.module:143 1.3959 84870896 
19. entity_get_controller() /includes/common.inc:7473 
bendiy’s picture

This issue appears to be cause by having UUID installed: http://drupal.org/project/uuid

There is an open issue over there that might fix it:
http://drupal.org/node/1268602

bendiy’s picture

Status: Postponed (maintainer needs more info) » Active

Hopefully that's enough info to make active?

fago’s picture

Priority: Critical » Normal
Status: Active » Postponed

this is an uuid/entity api incompatibility issue, see
http://drupal.org/node/1268602
http://drupal.org/node/1290986

Setting to postponed until these are fixed

adamdicarlo’s picture

I am not using the uuid module and I've run into this issue when enabling Profile2 in an install profile. The current crash while installing in an install profile is different than this, though, so I'm opening a new issue for it.

fago’s picture

Status: Postponed » Active

Could you try whether the patch for profile2 from http://drupal.org/node/1290986#comment-5083708 solves the issue for you please?

fago’s picture

Status: Active » Fixed

ok, I went ahead and committed it. Just test the *next* dev snapshot or the latest Git checkout please.

adamdicarlo’s picture

Status: Fixed » Active

Edit: I was responding to the wrong issue.
I pulled from the 7.x-1.x branch on git just now and still get the crash:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tv411.profile_type' doesn't exist: SELECT p.* FROM {profile_type} p; Array ( ) in profile2_entity_info() (line 46 of /..../modules/contrib/profile2/profile2.module).

adamdicarlo’s picture

Status: Fixed » Active

The crash I'm seeing is in an install profile -- installing profile2 during Drupal installation -- should we make a new issue for that, or is this related?

adamdicarlo’s picture

Status: Active » Fixed

whoops -- sorry for the noise. I was responding to the wrong issue! Resetting status.

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.