Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I install the Mongodb block module, after I have had block module deactivated, I get the error message Constant BLOCK_REGION_NONE already defined in require_once()
.
This was also reported here by @langworthy: http://drupal.org/node/1163584#comment-5496150.
We could have different approaches to this, here are three
- Delete the constant defined by block module and define it again in the Mongodb block module
- Delete the constant defined by block module and define our own
- Keep the block module constant and define our own.
I do not like to keep things in the configuration that I do not use, and there could also be other modules that depends on checking BLOCK_REGION_NONE (I do not know if there are any, but anyhow, you could) so my personal vote goes to number one.
Comment | File | Size | Author |
---|---|---|---|
#5 | BLOCK_REGION_NONE_defined-1447806-5.patch | 3.22 KB | MiSc |
#1 | block_region_none_constant-1447806-1.patch | 638 bytes | MiSc |
Comments
Comment #1
MiSc CreditAttribution: MiSc commentedPatch for the above number 1.
Comment #2
MiSc CreditAttribution: MiSc commentedComment #3
MiSc CreditAttribution: MiSc commentedAny opinions on this?
Comment #4
fgmSolution 3 seems the most consistent with Drupal practice in general.
Comment #5
MiSc CreditAttribution: MiSc commentedOk, patch for solution #3.
Comment #7
MiSc CreditAttribution: MiSc commentedCould someone do a review on this? Should be nice to have, so we could get rid of the error message.
Comment #8
MiSc CreditAttribution: MiSc commentedCommitted to latest dev.