Hi,

I'm trying to set a search block inside the 403 - 404 pages (this pages are renamed as "page-not-found" and "access-denied").

The problem is that:
If I use Context Module (using the URL alias to set a condition) or Context Extra (using Node ID to set condition),
both modules fail when pages URL is a wrong one (case of a 404 page).

Example:

The block is showed for URL like:

/page-not-found (alias of my 404 pages) (Context)

or:

using NID of the same page (Context Extra)

BEWARE: this is the "page" used for error 404 but not the real "404 error page".

The block is NOT showed for URL like:

/sadkjktertkr (or any other absurd wrong URL that are a "real" 404 error!!)

The modules consider it as another page also if the NID is correct; they all seems to consider the URL in the address bar!! :O

The only way to reach this target is using the normal block system, setting the node ID of pages used for 404 and 403 error.

Is there anyway to correct this behaviour ??

Context error module doesn't works too!! :(

Comments

hadsie’s picture

Status: Active » Closed (works as designed)

Feel free to re-open this if I'm wrong, but I don't believe this is related to contexts. I believe that when drupal 5/6 hits a 403 or 404 error not all of the regions are loaded. Not sure if this applies to D7 too.

Check out these for reference:
* http://drupal.org/node/141162
* http://drupal.org/node/129762

There's even a module that seems to try and work around this issue, so perhaps you should give it a shot? http://drupal.org/project/blocks404

Dret’s picture

Status: Closed (works as designed) » Active
Issue tags: +Custom Search Block, +not showed

Strange... the last module you indicated (this: http://drupal.org/project/blocks404) says Drupal avoid to render, in 404 page, any blocks like:

- The "Left" and "Right" regions of your theme.
- The "Primary links" block and any other menu links block.*
- The Primary links and Secondary links of your theme.*

But mine is a Custom Search Block (from Custom Search module)... showed normaly (in a custom region) using default block system but ignored using Context.

I hope this could be useful.

Thanks!
Bye.

Dret’s picture

Issue summary: View changes

Correction of some syntax errors