I just did a fresh install of Openpublic on my dev server (WAMP installed on Win7 x64). After installing, and seeing that there were several updates available, I used the built-in updater to update the several modules. After the updates were run successfully, I clicked the "run database updates" option. At that point I am presented with a blank, white screen.
If I attempt to go to any other page, I get multiple errors due to the fact that update.php needs to be run.

Thanks,
Russ

Comments

kd8fre’s picture

Status: Active » Closed (fixed)

Issue resolved. Apparently when updating the entity module with the built-in updater, it causes this issue. Deleting the entity module folder and uploading a freshly downloaded one solves this issue.

Russ

rowbotony’s picture

Priority: Major » Normal
Status: Closed (fixed) » Active

I have encountered this issue also while using drush up. This appears to be an issue with the Entity API. I have a fresh install of OpenPublic and the command line drush update crashes with the following output:

---- snipped ----

Backups were saved into the directory                                                 [ok]
/root/drush-backups/d7_openpubilc/20110627041016/modules/recaptcha.
The external command could not be executed due to an application error.               [error]
Drush command terminated abnormally due to an unrecoverable error.                    [error]
Error: Cannot redeclare entity_metadata_wrapper() (previously declared in
/var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity/entity/entity.module:1022) in
/var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity/entity_metadata/entity_metadata.module, line 56

If I then try drush up again I get the following errors:

PHP Fatal error:  Cannot redeclare entity_metadata_wrapper() (previously declared in /var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity/entity/entity.module:1022) in /var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity/entity_metadata/entity_metadata.module on line 56
Drush command terminated abnormally due to an unrecoverable error.                                                                          [error]
Error: Cannot redeclare entity_metadata_wrapper() (previously declared in
/var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity/entity/entity.module:1022) in
/var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity/entity_metadata/entity_metadata.module, line 56

As kd8fre mentioned - if I first delete the directory /var/www/htdocs-openpublic/profiles/openpublic/modules/contrib/entity, then downlaod the latest entity version, all is well with the drush up, all of the other modules update properly.

--Tony

Russell Mann’s picture

Yes, removing entity and redownloading/upping works for me too.

mmcintosh’s picture

I have just run into the same issue on a fresh install on Ubuntu 10.04. I followed the above directions removing the entity module and dowwnloading the newer version 7.x-1.0-beta9. After which I ran a drush up command: (see below) Has anyone else attempted not just updating the modules but core as well ???

Mark

I see that the modules updated correctly but an atttmpt to update core caused error and broke the installation:

Do you really want to continue? (y/n): y
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: require_once(): Failed opening required
'/var/www/openpublic/includes/errors.inc'
(include_path='.:/usr/share/php:/usr/share/pear') in
/data/www/openpublic/includes/bootstrap.inc, line 2094

Update information last refreshed: Tue, 07/05/2011 - 15:36

Update status information on all installed and enabled Drupal projects:
Name Installed Proposed Status
version version
AddThis 7.x-2.1-beta1 7.x-2.1-beta Up to date
1
Drupal 7.0 7.4 SECURITY UPDATE available
core
CAPTCHA 7.x-1.0-alpha 7.x-1.0-alph Update available
2 a3
Colorbo 7.x-1.0-beta2 7.x-1.0-beta Update available
x 4
Comment 7.x-1.0-alpha 7.x-1.0-alph Up to date
Notify 1 a1
Conditi 7.x-2.0 7.x-2.0 Up to date
onal
Stylesh
eets
Context 7.x-3.0-beta1 7.x-3.0-beta Up to date
1
Chaos 7.x-1.0-alpha 7.x-1.0-beta Update available
tool 2 1
suite
Date 7.x-1.0-alpha 7.x-2.0-alph Installed version not supported
2 a3
Default 7.x-1.0-alpha 7.x-1.0-alph Up to date
Content 1 a1
Diff 7.x-2.0-beta2 7.x-2.0-beta Up to date
2
Entity 7.x-1.0-beta9 7.x-1.0-beta Up to date
API 9
Entity 7.x-1.0-beta1 7.x-1.0 Update available
cache
Feature 7.x-1.0-beta1 7.x-1.0-beta Update available
s 3
Field 7.x-1.0-rc1 7.x-1.0 Update available
group

NOTE: A security update for the Drupal core is available.
Drupal core will be updated after all of the non-core modules are updated.

Code updates will be made to the following projects: CAPTCHA [captcha-7.x-1.0-alpha3], Colorbox [colorbox-7.x-1.0-beta4], Chaos tool suite [ctools-7.x-1.0-beta1], Date [date-7.x-2.0-alpha3], Entity cache [entitycache-7.x-1.0], Features [features-7.x-1.0-beta3], Field group [field_group-7.x-1.0]

Note: A backup of your project will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.

Project captcha was updated successfully. Installed version is now 7.x-1.0-alpha3.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/captcha.
Project colorbox was updated successfully. Installed version is now 7.x-1.0-beta4.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/colorbox.
Project ctools was updated successfully. Installed version is now 7.x-1.0-beta1.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/ctools.
Project date was updated successfully. Installed version is now 7.x-2.0-alpha3.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/date.
Project entitycache was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/entitycache.
Project features was updated successfully. Installed version is now 7.x-1.0-beta3.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/features.
Project field_group was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory [ok]
/root/drush-backups/drupal_openpublic/20110705193635/modules/field_group.

Code updates will be made to drupal core.
WARNING: Updating core will discard any modifications made to Drupal core files, most noteworthy among these are .htaccess and robots.txt. If you have made any modifications to these files, please back them up before updating so that you can re-create your modifications in the updated version of the file.
Note: Updating core can potentially break your site. It is NOT recommended to update production sites without prior testing.

Do you really want to continue? (y/n): y
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: require_once(): Failed opening required
'/var/www/openpublic/includes/errors.inc'
(include_path='.:/usr/share/php:/usr/share/pear') in
/data/www/openpublic/includes/bootstrap.inc, line 2094

mmcintosh’s picture

Just an update of this issue. I was able to do the updates via drush to some of the modules yet fron the gui after a cron run and a clear of cache it still showed updates needed. (cron only showed a core update) I ran those updates via the gui which brought all module except for phase2 custom modules up to date. Afterwards I attempted a drush up again to move core from the existing 7.0 version to the present 7.4 version. This failed with the same errror as before. I then did a manual upgrade from 7.0 to 7.4 and that worked with no errors. There is however one thing that left me to wonder if I would have problems later as a diff between old and new showed a Patches.txt file containing:

The following patches have been applied to this project:
- http://drupal.org/files/issues/object_conversion_menu_router_build-97253...

This file was automatically generated by Drush Make (http://drupal.org/project/drush_make).

I have not gone to look up this patch yet to see if I will have to reapply it or not.

Regards

Mark

Anonymous’s picture

Version: » 7.x-1.0-beta2
Status: Active » Postponed (maintainer needs more info)

@mmcintosh, do you have any updates since your last post? Are you still encountering the same issue with beta3?

DSheffler’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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

stewart.adam’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta8
Status: Closed (fixed) » Active

I'm experiencing this error as well. I worked around the entity bootstrap problem by symlinking the entity module folder in sites/all/modules and then removing it after bootstrap finished (and updated the system table with the new module location I'm guessing).

Updating to the latest entity release before updating the other modules did not help, I am experiencing a white screen after performing security updates to a stock install from openpublic.beta1-build200.tar.gz.

stewart.adam’s picture

After performing the updates one by one, it looks like Views 7.x-3.3 is the culprit.

stewart.adam’s picture

Version: 7.x-1.0-beta8 » 7.x-1.0-beta2
Status: Active » Closed (fixed)

I've just realized that I inadvertently downloaded beta1 instead of beta8 from openpublic.org... I saw "Mar 9" on the date and figured it was the most recent without checking the versions list, and I've just noticed that it was Mar. 9, 2011!

Reverting issue status. Sorry for the spam mail! I'm going to go get some sleep now ;)