When I assign a contact form block into a region and specify the block to only appear on a certain node path then instead of loading the page with the node and the contact form in the region, I am redirected to the (baseurl)/contact path. In other words the node where the specified block should appear is inaccessible and I am redirected to the contact page where the block is rendered in the region instead, although that was wasn't specified in the block visibility settings.

The url link points to the correct node. Really strange...hehe

Comments

TomtomVer’s picture

Assigned: TomtomVer » Unassigned

change assignment

ben coleman’s picture

I'm seeing this also upon upgrading from 6.x-1.1 to 6.x-1.2. Pages configured via a contact form block's Page Visibility Settings to have a contact form block shown on them are instead redirected to (baseurl)/contact. In our case, that's just about every page except /admin/*, which practically shuts down our site (except for people wanting to fill out the contact form). For the moment, we've backed off to 6.x-1.1.

grey_’s picture

Priority: Major » Critical

Still no fix for the 6 branch? Breaks my site, marking this as critical.

rcharles’s picture

Similar error where any/all/admin/content links redirect to http://sitename.tld/contact .

Reviewing modules installed I thought possibly a conflict.

  1. Contact Form Blocks 6.x-1.1 Makes your site-wide contact forms available as Drupal Blocks.
  2. Contact Form On Node 6.x-1.3 Add a contact link/form under a node.
  3. Contact Forms 6.x-1.12 Creates individual contact pages from contact form categories.
  4. Form block 6.x-1.0 Enables node creation forms in blocks. This is particularly useful for including forms on panels. Enables presentation of user registration, site wide contact, or node creation forms in blocks. This is particularly useful for including forms on panels and regions.

With two (2) test Contact "categories" set-up for testing I reviewed the MySQL blocks table and it seems "Form block" and "Contact Form Blocks" are overlapping features.

bid module delta theme status weight region custom throttle visibility pages title cache
20 formblock user_register garland 0 6 0 0 0 1
21 formblock contact_site garland 0 -8 right 0 0 0 CONTACTBLOCK TEST 1
29 contact_form_blocks 1 garland 1 -10 left 0 0 0 1
30 contact_form_blocks 2 garland 1 -13 right 0 0 0 1

Solutions:

  1. disable the block/feature of "Form block 6.x-1.0" by editing the MySQL database system table: for (delta column) "contact_site" row change (status column) to 0 and (region column) to empty. The block will still be available so DO NOT enable and maybe label appropriately. Otherwise "Form block" is great for quick node creation.
  2. disable one module or the other, flush cache through /settings/performance then enable again to see if this works. In my case leaving "form block" enabled and toggling the others off resolved the redirects to /contact
  3. try Util module with Module weights to see if that works
  4. try DEVEL and check variables.

Good luck.

ben coleman’s picture

We don't have Form Blocks installed here(nor Contact Form On Node), so at least here the problem isn't a Contact Form Blocks/Form Blocks conflict.

ben coleman’s picture

Status: Active » Fixed

As ancym notes in http://drupal.org/node/1441620#comment-5611140, this is a problem in Contact Forms. There is a patch for it in http://drupal.org/node/233024#comment-5700950. Apply that patch, and this problem goes away. We've been able to upgrade to CFB 6.x-1.2 without problems after applying that patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.