Has anyone had this problem? I just noticed it on one of my installations, and due to the nature of the problem I fear it's too late in the game to retrace my steps and figure out what started causing it.

When going to a page that does not exist, what should come up is a 404 not found page. Right, everyone knows that. What happens on my site, though, is that I get a blank page titled "Primary links" instead of the 404 page. No errors are written to the log when pages that don't exist are requested. The setting for the "default 404 page" in /admin/settings is blank (i.e. the system default).

At various times I did use the search404 and wiki404 modules, both of which worked fine. I had the search404 module installed and enabled when this problem I'm having appeared.

Figuring that "Primary links" are menus, I tried resetting the menus with help from the devel module but that didn't fix the problem.

Does anyone have any ideas how to fix this? Here's a link to a non-existing page at my site:

http://fabracadabra.org/3hu9k4kk

Comments

redvespa’s picture

Under Home » administer >> settings there is error settings.
Mine was blank and I just made a redirect to the front page.

note: When it was blank I didn't see the typical old "404" warning, but a page saying Page not found that is presented with my logo, footer, primary links all there.

What happens if you actually specify a page to redirect to ?

Christefano-oldaccount’s picture

Yep, I have checked that. It doesn't matter what I set it to. The page titled "Primary links" is always what comes up.

There are no errors in the logs (as I said earlier), so it appears that Drupal isn't using that setting. I'm dumbfounded as to what to do about it.

Christefano-oldaccount’s picture

Has anyone had this problem or have ideas of what to do? I really need some help on this one.

redvespa’s picture

You seem to be all on you own with this one.
I'm very new to drupal as well so I'm not much help, But I did have a look (just out of interest) in my data base to see where 404 settings were kept.
In table "variable" there is "site_404" and I have a value of s:0:"";
No idea what that means really, but it may be worth having a look to see what is stored in your database for site_404 in case something jumps out at you

luck

znation’s picture

I've also had this problem. I'm also using the Copyright module, so I guess that's what it is. Does anyone know how to -fix- the copyright module to not do this? I might be able to figure it out, but I don't really have time at the moment.

Christefano-oldaccount’s picture

Previous efforts to update the copyright module seem to have been abandoned. I suggest using the Meta tags module instead. It's also known as the nodewords or node (key)words module. Enable the copyright field in edit forms and you're good to go.

Alternatively, just create a new vocabulary in admin --> categories called "Licenses" and add the licenses you want (like GPL, LGPL, MIT License, etc.) as vocabulary terms. Add this new vocabulary to the content types you want to attach licenses to.

There's a lot you can do on the theme level of your site, as demonstrated by sites like Remix Commons.

znation’s picture

Cool, thanks for the tip. I'm going to give both of those methods a try. I'm already doing pretty heavy custom themeing of node types (through CCK and contemplate), so having the information to do with as I wish is actually a plus. I just didn't really think about using taxonomy for it (despite that I'm using that in other areas on my site).

Christefano-oldaccount’s picture

I've isolated this problem to the copyright module. It's too bad, considering how the copyright module does exactly what I need on my site. I was using the latest version, which right now is v1.13.

Thanks, redvespa. You're the only one who responded and that means a lot.