Drupal 7 does not appear to consider index.php as a valid page, which in a CMS is sort of correct but a lot of people do like visiting index pages directly.
If you visit a Drupal 7 site without specifying a path, the front page defaults to 'node'. That means internally Drupal 7 has used index.php?q=node as the default page.
The problem is that PhpED requires a page before it will debug, but it won't let you specify a query string, so use can index.php but not index.php?q=node
As a workaround, you can modify index.php to read as follows, which will simulate ?q=node being used in a debug environment:
define('DRUPAL_ROOT', getcwd());
if ($_GET['DBGSESSID'] && ! $_GET['q']) {
$_GET['q'] = 'node';
}
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler(); |
The real solution here is that PhpED should allow query strings on the startup page. Maybe it can, and I'm looking in the wrong place