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.
Use an module Bad Judgement as dependency - Bad Judgement produce an error.
Which error is produced?
function explorer8_mode_menu() {
$items = array();
$items['admin/settings/explorer8_mode'] = array(
'title' => 'Explorer 8 Mode',
'description' => "Setting the document compatibility mode of the Internet Explorer 8's.",
'page callback' => 'drupal_get_form',
'page arguments' => array('explorer8_mode_settings'),
'access callback' => 'user_access',
'access arguments' => array('administer site configuration'),
'file' => 'explorer8_mode.admin.inc', // <<< This file can not included
);
return $items;
}
The file explorer8_mode.admin.inc can not included and this is the bug.
You can reproduce the error.
As an example. Enable the Explorer 8 Mode module and add the dependency line to the info file.
Comments
Comment #1
JohnAlbinI moved this comment off the project page to here:
So, first let me say that I do not understand the “child pornography” part of the quote. If its a joke, its distasteful.
But I do understand your concern that the project page doesn't adequately explain what this module is for. I've updated the project page to better explain its purpose.
Comment #2
JohnAlbinAs for the error message you are seeing: You didn't include the actual error message, so I can't confirm that what you see is caused by an include file not being included properly.
My best guess is that you added the module dependency when the module was already enabled. Disable it first, then add the dependency to the .info file.
There's absolutely no way the actual bad_judgement module could affect the way your module loads its include files. The actual code is trivial. See http://drupalcode.org/viewvc/drupal/contributions/modules/bad_judgement/...
Comment #3
quiptime CreditAttribution: quiptime commentedIn this context, I do not do jokes.
This is not an joke! This is a real story! Trust me.
My friend has reacted spontaneously to what he has seen at the project page. He has responded to what he saw. I think he has responded to "Who's your daddy?".
And probably the keg is gone over with "Zombie killer".
Sorry, but I think the name "Who's your daddy?" is not good for a module.
I think many SEO oriented people have a problem with "Who's your daddy?" for the first time when they visit the project page.
My own very personal opinion: The project site currently has a bad karma.
Comment #4
JohnAlbinWell, as I said, I've updated the project page to explain what this module is for. Feel free to read it. SEO-oriented people should not use this module; it says so right on the project page now.
The phrase "Who’s your daddy?" has nothing to do with child pornography. See any of the usages mentioned here: http://en.wikipedia.org/wiki/Who's_Your_Daddy%3F
Comment #5
quiptime CreditAttribution: quiptime commentedI know that.
My friend has this thing viewed with a perspective that is not American.
Look at it this way: "Who’s your daddy?" and "Zombie killer" are like two Eyecatcher. Now take a non-American position. I think very few people in Germany (or the non-American world) know the songs and the tv series and so on with "Who’s your daddy?".
But ok, let's end the matter.
I have read the changed project page.
Comment #6
betz CreditAttribution: betz commentedIs this serious?
Comment #7
JohnAlbinI'm just letting it go.