Hi all,

after upgrading from previous DEV version:

; Information added by drupal.org packaging script on 2012-05-08
version = "7.x-1.0-beta5+3-dev"
core = "7.x"
project = "entityreference"
datestamp = "1336479260"

to last DEV version:

; Information added by drupal.org packaging script on 2012-05-12
version = "7.x-1.0-beta5+7-dev"
core = "7.x"
project = "entityreference"
datestamp = "1336781749"

A blank page of death (error 500) appears for the following paths:

/admin/people/create (for creating users)
/user/6/edit?destination=admin/people (for editing a user)

Returning to the previous version the problem disappear.

Thank you very much for working on this.

Comments

bojanz’s picture

Status: Active » Postponed (maintainer needs more info)

Enable errors and see what the error is. Then report back. "Blank page" doesn't mean anything.

http://drupal.org/node/158043 should help you.

Latest -dev requires Drupal 7.14, so make sure you have it.

MXT’s picture

Status: Postponed (maintainer needs more info) » Active

Drupal version used:
Drupal 7.14

Error reported after enabling error:

Fatal error: Declaration of OgSelectionHandler::getInstance() must be compatible with that of EntityReference_SelectionHandler::getInstance() in /var/www/mysite.it/sites/all/modules/contrib/og/plugins/entityreference/selection/OgSelectionHandler.class.php on line 7

Hope this help

Thank you

bojanz’s picture

Much better, thanks!
Looks like an incompatibility with Og. Amitai should know what is happening.

MXT’s picture

So, do you think I have to move this thread to the OG issue queue?

(FYI, I'm using very last version 7.x-2.x-dev of OG)

MXT’s picture

Project: Entity reference » Organic groups
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Code » og.module

Updating: only users logged in can navigate some pages in the website, but the website is completely WHITE for anonymous users.

I absolutely have to pay attention to not to logout as administrator, otherwise i cannot definitively manage my site.

The situation is very CRITICAL: try to move this thread to the OG issue queue.

Please help me!

Thank you

MXT’s picture

Updating to last OG DEV doesn't resolve:

; Information added by drupal.org packaging script on 2012-05-17
version = "7.x-2.0-alpha2+72-dev"
core = "7.x"
project = "og"
datestamp = "1337214846"

Triggered error is:

Fatal error: Declaration of OgSelectionHandler::getInstance() must be compatible with that of EntityReference_SelectionHandler::getInstance() in /var/www/mysite.it/sites/all/modules/contrib/og/plugins/entityreference/selection/OgSelectionHandler.class.php on line 224
amitaibu’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

> Fatal error: Declaration of OgSelectionHandler::getInstance() must be compatible with that of

Please update to entity reference -dev version.

Status: Fixed » Closed (fixed)

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

johaziel’s picture

Status: Closed (fixed) » Active

Hi,

Same error with the latest dev version of entityreference

; Information added by drupal.org packaging script on 2012-05-31
version = "7.x-1.0-rc3+0-dev"
core = "7.x"
project = "entityreference"
datestamp = "1338423239"

A way ...

I compared the both declaration of getInstance()
in OgSelectionHandler.class.php

  public static function getInstance($field, $instance) {
    return new OgSelectionHandler($field, $instance);
  }

in EntityReference_SelectionHandler_Generic.class.php

  public static function getInstance($field, $instance = NULL, $entity_type = NULL, $entity = NULL) {
    ...  
 }

So I tried :

  public static function getInstance($field, $instance = NULL,$entity_type = NULL, $entity = NULL) {
    return new OgSelectionHandler($field, $instance);
  }

in OgSelectionHandler.class.php

and it Works !!

Can you test and publish a new release
Thanks
Jo

boby_ui’s picture

I have this problem too, blank screen and can not show error reporting, tried adding : return new OgSelectionHandler($field, $instance); to OgSelectionHandler.class.php but no use :(

AaronBauman’s picture

Status: Active » Fixed

updating to entityreference-7.x-1.0-rc3+2-dev solves this problem.

Sigvard’s picture

Status: Fixed » Active

I also suffer from blank page of death issues when trying to remove the OG directory (current version: 7.x-1.4) or overwrite it to install OG 7.x-2.0-beta1. Reverting the og folder to containing the 7.x-1.4 immediately solves the issue.

The message I get on the first reload after reverting the OG folder is:
Warning: require_once(/var/www/molmeth_tmp/sites/all/modules/og/plugins/relationships/og_group_from_node.inc): failed to open stream: No such file or directory in ctools_plugin_load_includes() (line 482 of /var/www/molmeth_tmp/sites/all/modules/ctools/includes/plugins.inc).
Warning: require_once(/var/www/molmeth_tmp/sites/all/modules/og/plugins/relationships/og_group_from_node.inc): failed to open stream: No such file or directory in ctools_plugin_load_includes() (line 482 of /var/www/molmeth_tmp/sites/all/modules/ctools/includes/plugins.inc).

Sigvard’s picture

I did some further work and tried to update outdate modules (among them the entity reference module) with drush and then install Organic groups 7.2. Sadly I never got far enough to test it as I got a white page of death instead that looks highly related to issues between Organic groups and entity reference.

To get rid of the white screen of death I had to disable Organic groups through Drush. During my update it looks like entity reference went wrong somewhere so I installet the recommended version and then tried to activate organic groups which gave the following message when saving the settings:

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.language' in 'field list': SELECT base.id AS id, base.name AS name, base.description AS description, base.status AS status, base.module AS module, base.language AS language FROM {og_membership_type} base WHERE (base.status IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ; Array ( [:db_condition_placeholder_0] => 3 [:db_condition_placeholder_1] => 2 [:db_condition_placeholder_2] => 6 ) in EntityAPIController->query() (line 152 of /var/www/molmeth_tmp/sites/all/modules/entity/includes/entity.controller.inc).

The Module list does however still show that Organic groups consider entity reference to be active. Views Bulk operations has however gone missing but installing it works fine and allow me to activate the Organic groups UI.

This is however when things get really nasty...

With admin account (ie main admin account) I am able to open any groups created by the admin account but no other group as accessing provides the following error:

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.group_type' in 'field list': SELECT base.id AS id, base.type AS type, base.etid AS etid, base.entity_type AS entity_type, base.gid AS gid, base.group_type AS group_type, base.state AS state, base.created AS created, base.field_name AS field_name, base.language AS language FROM {og_membership} base WHERE (base.id IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 15 ) in EntityAPIController->query() (line 152 of /var/www/molmeth_tmp/sites/all/modules/entity/includes/entity.controller.inc)

Further testing also show that normal users got the same ability (can enter groups created by them but no others).

When activating other sub-modules they all seem to work fine except for the Organic Groups access control which when rebuilding permissions causes the following error message:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /debug/?q=batch&render=overlay&id=53&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.group_type' in 'field list': SELECT base.id AS id, base.type AS type, base.etid AS etid, base.entity_type AS entity_type, base.gid AS gid, base.group_type AS group_type, base.state AS state, base.created AS created, base.field_name AS field_name, base.language AS language FROM {og_membership} base WHERE (base.id IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 2 ) in EntityAPIController->query() (line 152 of /var/www/molmeth_tmp/sites/all/modules/entity/includes/entity.controller.inc).

I am rather clueless on the database side of Drupal but I hope that this might be of some assistance to solve the issue.

Sigvard’s picture

Category: support » bug

When working on the site trying to get Organic groups 7.2 working I got a warning saying that Organic groups required data to be migrated. When activating the migration sub-module I got the following message:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /debug/?q=batch&render=overlay&id=61&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'rid' at row 1: UPDATE {og_users_roles} SET rid=:db_update_placeholder_0, group_type=:db_update_placeholder_1, gid=:db_update_placeholder_2 WHERE (uid = :db_condition_placeholder_0) AND (rid = :db_condition_placeholder_1) AND (gid = :db_condition_placeholder_2) ; Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => node [:db_update_placeholder_2] => 2 [:db_condition_placeholder_0] => 3 [:db_condition_placeholder_1] => 8 [:db_condition_placeholder_2] => 1 ) in og_7200_user_roles() (line 75 of /var/www/molmeth_tmp/sites/all/modules/og/plugins/og_migrate/7200/og_7200_user_roles.inc).

Sigvard’s picture

When working on the site trying to get Organic groups 7.2 working I got a warning saying that Organic groups required data to be migrated. When activating the migration sub-module I got the following message:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /debug/?q=batch&render=overlay&id=61&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'rid' at row 1: UPDATE {og_users_roles} SET rid=:db_update_placeholder_0, group_type=:db_update_placeholder_1, gid=:db_update_placeholder_2 WHERE (uid = :db_condition_placeholder_0) AND (rid = :db_condition_placeholder_1) AND (gid = :db_condition_placeholder_2) ; Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => node [:db_update_placeholder_2] => 2 [:db_condition_placeholder_0] => 3 [:db_condition_placeholder_1] => 8 [:db_condition_placeholder_2] => 1 ) in og_7200_user_roles() (line 75 of /var/www/molmeth_tmp/sites/all/modules/og/plugins/og_migrate/7200/og_7200_user_roles.inc).

When trying the individual migration steps I see that the two following steps fail:

Upgrade user roles - 7.2 Update the group ID in user roles. Executed but failed
Remove global roles - 7.2 Remove the global roles. Not executed

sassafrass’s picture

Subscribing

drvdt’s picture

The same error with og 2.7 and entityreference 1.1
Any idear?
Many thanks