By sjames on
my drupal main page is displaying with 'page not found'.
if I add the clean url admin, then I get 'access denied'.
I have no idea why the page can't be found.
I changed no permissions or ownership.
the whole drupal site is down.
any ideas, anyone????
Comments
unclear
Is the whole site down or just the main page? If the whole site, did it go like that after you changed the clean urls?
Was it working properly before?
--
Anton
the whole site is down.
the whole site is down. no pages are accessible.
this is what I see now: http://69.181.87.85
I was creating content in a page.
my last ahref made the site go belly up.
any help appreciated. I've spent a few hours debugging and can't find the problem.
the site was working perfectly before
the site has been up for several months with no problems.
headers already sent
usually is a symptom of blank lines or extra whitespace at the end of PHP files or includes etc. It comes up a lot, a search for 'headers already sent' should help out.
The two files mentioned would be the first place I'd look (bootstrap and session).
--
Anton
Page not found. headers already sent
I checked all the include files and there are no blank spaces. this must be another problem. I increased the display logging.
the page not found is a mystery; why that started happening.
I've spent several hours trying to fix this problem and can't find any clues in drupal forums.
at least I have the banner of the site back!
see http://69.181.87.85/
now if I could get the rest.
any help appreciated.
try deleting the node
Try deleting the node you were editing directly from the database
wellsy
like someone else here said "always use a test site"
permit me to add "backup your database regularly"
orchidsonline.com.au
deleting the node
ok. thanks. http://69.181.87.85
I'm not exactly sure which node it is.
I see a term_node table.
am I deleting the nid?
ACCESS DENIED
I deleted the node which I was creating when the site got blown away.
and, now I get "Undefined index, cannot modify header info.. and ACCESS DENIED.
I'm trying to figure out what in the world happened to my site?
http://69.181.87.85
looks like you worked it out
looks like you worked it out.
wellsy
like someone else here said "always use a test site"
permit me to add "backup your database regularly"
orchidsonline.com.au
rebuilt entire site
I couldn't get my original site back.
I found that the mysql database may have been corrupted for some mysterious reason. the node was there, but no one could see it.
nothilng I did could make the main node come back to life.
so, I rebuilt.
so, I say to anyone...BACKUP your database.
Home "Page not found" cause?
I'm going to follow up since (1) I'm having nearly the same problem and (2) I don't really consider starting the site over from scratch to be a "solution" even if I only have two pages and one image at this point.
I've recently installed 4.7RC3 and have been slowly working on a new theme to mirror my old site http://www.astrofoto.org. While messing with page.tpl.php, I made everything disappear. No problem, revert the change, voile, page reappears. Now click the "Home" link at the top and I get "Page not found." If I put in a node by hand as "http://www.example.com/node/3" it works, even drop the "/3" and I get the correct page. Admin functions seem to work fine. I reverted page.tpl.php all the way back to the original copied from the bluemarine theme. Apart from the CSS description, the logo and the favicon, this is the bluemarine theme, i.e., the PHP code is unchanged at this point.
I've turned on rewrite logging and here's what I've got. From the access log for the hit on the home page:
From the error log:
From the rewrite log:
The error in the error log looks ominous---but it also looks, upon examining the code---to be a red herring; it looks to me like if your base URL is a top-level site, like my test site http://cms.astrofoto.org (without the trailing slash, as documenting in the default settings.php file) that you will always get this error on the home page. Here's the code:
Note that line 148 is the last line in the if clause, and $parts['path'] is guaranteed to be null for my $base_url, hence the error message. But when I look back at my logs, I have those error message from the very beginning after setting up Drupal and long before my "Page not found" error.
So how do I crank up some other form of logging to figure out why I'm getting this "page not found" error?
Home "page not found" origin, cause found!
Here's what I found so far....
I'm simply butchering the code to inject some debugging info....I put a debug_print_backtrace() into drupal_not_found() and discovered the problem is originating in index.php, line 18. That means it's coming from menu_execute_active_handler(). Further tracking indicates that for some reason, the $path ends up as "node " with an extra space at the end. When I put http://cms.astrofoto.org/node, the comes through correctly without the space.
I am completely unclear on how this happened, but in the variable table, site_frontpage is listed as s:5:"node ". I had thought this was the origin, but it appears to be a side-effect since changing the value in the database has absolutely no impact.
I have also tried disabling the cache, and deleting everything from the cache table, all to no effect.
Hmm, okay, you get this post stream-of-conscienceness, or at least stream-of-debugging. Looking at the code in bootstrap.inc, it is clear that if the site_frontpage ends with a slash, the lookup should strip the slash then work. And in fact, this does work.
I don't understand why the first lookup fails when the site_frontpage = 's:5:node' without the slash---but I haven't traced through the full path to this initialization. So....
Any clues on (1) why it needs the slash in the table value and (2) how to prevent this from happening in the future?
good effort so far
I've never struck this problem, but I suggest opening an issue against core with this info. The core devs are unlikely to catch this thread, creating an issue will get it logged and tracked. And hopefully reproduced and fixed.
If this issue already exists and is being worked on, add these details to it. I'm sure your they will be appreciated.
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal
Access denied for all users
i created the drupal site but its allowed me to do nothing at the every task it shows following mesage:
Access denied
You are not authorized to access this page.
Access denied for all users
Your message is a bit terse---what release are you using, how much of the instructions did you follow, your title says "all users" but the message doesn't explain that, e.g., did you try with your first user the drupal admin account?