NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Drupal 7 support


Joined: 12 Aug 2008
Posts: 5
Reply with quote
I've just started using Drupal 7. With previous versions, I set the default file to run in my project properties to index.php; with D7, I get "page not found", but it does end up on my home page, and I'm able to debug ok after that.

Why do I get this warning, and is there a way around it?
View user's profileFind all posts by pglatzSend private message


Joined: 20 Feb 2011
Posts: 1
Reply with quote
Hi pglatz. Have you solved this problem? I also get this warning with Drupal 7. I don't know why this warning pops up. Please post your solution if you have solved this problem. Thanks.
View user's profileFind all posts by Lablab98Send private message


Joined: 12 Aug 2008
Posts: 5
Reply with quote
nothing yet - there must be others who have this problem
View user's profileFind all posts by pglatzSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
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:

Code:
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 Confused
View user's profileFind all posts by plugnplaySend private message
Drupal 7 support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic