I have installed Cake 1.2 and Drupal 5.1 along with Drake. I have Cake installed in separate locations than the default (http://manual.cakephp.org/chapter/installing - Alternative Installation Options). When I do to mysite.com/drake I see the home page of my cake app but I see the following errors at the page top...
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 206]
function drupal_is_front_page() {
// As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path,
// we can check it against the 'site_frontpage' variable.
return $_GET['q'] == drupal_get_normal_path(variable_get('site_frontpage', 'node'));
}
drupal_is_front_page - ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 206
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 153
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1265]
Context | Code
$text = "Create content"
$path = "node/add"
$attributes = array()
$query = null
$fragment = null
$absolute = false
$html = false
* an HTML string containing a link to the given path.
*/
function l($text, $path, $attributes = array(), $query = NULL, $fragment = NULL, $absolute = FALSE, $html = FALSE) {
if ($path == $_GET['q']) {
if (isset($attributes['class'])) {
l - ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1265
theme_menu_item_link - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 701
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
menu_item_link - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 722
theme_menu_item - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 687
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
menu_tree - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 667
theme_menu_tree - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 648
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
user_block - ROOT/_source/drupal_5-1-0_070504_0938/modules/user/user.module, line 556
module_invoke - ROOT/_source/drupal_5-1-0_070504_0938/includes/module.inc, line 386
block_list - ROOT/_source/drupal_5-1-0_070504_0938/modules/block/block.module, line 689
theme_blocks - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 1013
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 171
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 502]
* Returns the help associated with the active menu item.
*/
function menu_get_active_help() {
$path = $_GET['q'];
$output = '';
menu_get_active_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 502
theme_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 637
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 207
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 151]
Context | Code
$index = 0
$arguments = array(0 => "drake")
$q = "drake"
function arg($index) {
static $arguments, $q;
if (empty($arguments) || $q != $_GET['q']) {
$arguments = explode('/', $_GET['q']);
arg - ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 151
menu_get_active_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 516
theme_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 637
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 207
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 152]
Context | Code
$index = 0
$arguments = array(0 => "drake")
$q = "drake"
static $arguments, $q;
if (empty($arguments) || $q != $_GET['q']) {
$arguments = explode('/', $_GET['q']);
$q = $_GET['q'];
arg - ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 152
menu_get_active_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 516
theme_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 637
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 207
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 153]
Context | Code
$index = 0
$arguments = array(0 => "")
$q = "drake"
if (empty($arguments) || $q != $_GET['q']) {
$arguments = explode('/', $_GET['q']);
$q = $_GET['q'];
}
arg - ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 153
menu_get_active_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 516
theme_help - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 637
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 207
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 974]
Context | Code
$pid = 2
$trails = array()
$menu = array("path index" => array, "items" => array, "callbacks" => array, "visible" => array)
// follow the parents up the chain to build an active trail.
$trails = array();
$menu = menu_get_menu();
$path = $_GET['q'];
$count = 0;
_menu_get_active_trail_in_submenu - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 974
menu_primary_links - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 849
menu_secondary_links - ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 895
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 215
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined variable: no_module_preprocess [ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1488]
Context | Code
$css = array("all" => array)
$output = "
"
$preprocess_css = false
$directory = "img"
$is_writable = true
$types = array("module" => array, "theme" => array)
$media = "all"
$files = array("themes/garland/style.css" => true)
$type = "theme"
$preprocess = true
$file = "themes/garland/style.css"
}
}
return $no_module_preprocess . $output . $no_theme_preprocess;
}
drupal_get_css - ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1488
phptemplate_page - ROOT/_source/drupal_5-1-0_070504_0938/themes/engines/phptemplate/phptemplate.engine, line 221
theme - ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 170
[main] - ROOT/_source/drupal_5-1-0_070504_0938/index.php, line 33
Notice (8): Undefined variable: no_theme_preprocess [ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1488]
Comments
Comment #1
Anonymous (not verified) commentedCrap! I pasted the wrong errors I see at the top of the page...
Notice (8): Undefined property: stdClass::$theme [ROOT/_source/drupal_5-1-0_070504_0938/includes/theme.inc, line 45]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 206]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 151]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 152]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/path.inc, line 153]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/modules/user/user.module, line 477]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1265]
Notice (8): Undefined variable: redirect [ROOT/_source/drupal_5-1-0_070504_0938/includes/form.inc, line 268]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 502]
Notice (8): Undefined index: q [ROOT/_source/drupal_5-1-0_070504_0938/includes/menu.inc, line 974]
Notice (8): Undefined variable: no_module_preprocess [ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1488]
Notice (8): Undefined variable: no_theme_preprocess [ROOT/_source/drupal_5-1-0_070504_0938/includes/common.inc, line 1488]
Comment #2
Anonymous (not verified) commentedThis was fixed by turning debugging off in CakePHP. There is also a place in drake that loses the $_GET['q].