While upgrading from 7.x-1.11-beta7 to 7.x-1.11-beta8, drush updatedb gave me the following errors:
PHP Fatal error: Cannot redeclare node_reference_field_schema() (previously declared in /usr/share/OpenChurch7/profiles/openchurch/modules/contrib/references/node_reference/node_reference.module:53) in /usr/share/OpenChurch7/profiles/openchurch/modules/contrib/references/node_reference/node_reference.install on line 29
Fatal error: Cannot redeclare node_reference_field_schema() (previously declared in /usr/share/OpenChurch7/profiles/openchurch/modules/contrib/references/node_reference/node_reference.module:53) in /usr/share/OpenChurch7/profiles/openchurch/modules/contrib/references/node_reference/node_reference.install on line 29
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot redeclare node_reference_field_schema() (previously
declared in
/usr/share/OpenChurch7/profiles/openchurch/modules/contrib/references/node_reference/node_reference.module:53)
in
/usr/share/OpenChurch7/profiles/openchurch/modules/contrib/references/node_reference/node_reference.install,
line 29
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI tried the update via manual copy and run update.php. Got the same thing when trying to run update.php! Luckily, I just replaced the files with my backup files and it is OK.
Fatal error: Cannot redeclare node_reference_field_schema() (previously declared in /profiles/openchurch/modules/contrib/references/node_reference/node_reference.module:53) in /profiles/openchurch/modules/contrib/references/node_reference/node_reference.install on line 29
Comment #2
deantownsley CreditAttribution: deantownsley commentedI just upgraded with no problems. Looking at the with-core tarball (openchurch-7.x-1.11-beta8-core.tar.gz), there is no file
openchurch-7.x-1.11-beta8/profiles/openchurch/modules/contrib/references/node_reference/node_reference.install
there at all. I didn't check the other tarballs, but presumably it is in one of those (?). Sorry I can't help more, but maybe this helps someone else help you.
Comment #3
drupalninja99 CreditAttribution: drupalninja99 commentedWas the references module updated in my last update? I can check the update ticket? Is this issue in the references queue? I could roll back the references update if I need to.
Comment #4
j_ali CreditAttribution: j_ali commentedYes; references went from 2.x-dev in beta7 to 2.0 in beta8. Haven't checked the references queue.
Ali.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedso, I would need to update the references module before applying the OpenChurch update?Submitted this before seeing drupalninja's response.
Thanks!
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commentedI need to test an upgrade again, I might want to rollback the references update or patch it if its messing things up.
Comment #7
drupalninja99 CreditAttribution: drupalninja99 commentedHave you tried clearing caches? It's weird bc I didn't have ANY db updates when I ran drush updatedb.
2 things to try:
1. Disable node_reference temporarily. Run updatedb and re-enable, try to run updatedb again, clear caches a buch
2. Download the old version (2x dev) to sites/all/modules. Run drush updatedb.
Comment #8
drupalninja99 CreditAttribution: drupalninja99 commentedI am doing another module/core update to day. I will retest upgrading from beta7
Comment #9
drupalninja99 CreditAttribution: drupalninja99 commentedWhen beta9 gets packaged try to upgrade to that version.
Comment #10
drupalninja99 CreditAttribution: drupalninja99 commentedComment #11
j_ali CreditAttribution: j_ali commentedSorry for the delay. beta 9 now works on my test server after using registry_rebuild. I can't get it working on my live server since registry_rebuild has stopped working on the live system with beta 9 installed (it works just fine with beta 7, so that's very odd). I'll keep at it.
Comment #12
drupalninja99 CreditAttribution: drupalninja99 commented