I'm experiencing some problems with the redirect action after creating a node. It loads for approx 10 seconds and gives the following error: Error 324 (net :: ERR_EMPTY_RESPONSE): The server has disconnected without sending data.

Though, the node gets created. I've looked on some modules who might interfer with Rules, by disabling some, but nothing changes.

Any ideas? I can provide more info if needed

Comments

mitchell’s picture

Component: Rules Core » Rules Engine
Status: Active » Postponed (maintainer needs more info)

>I've looked on some modules who might interfer with Rules, by disabling some, but nothing changes.
That's good.

> I can provide more info if needed
Please post an export of your rule and the debug log. If those don't show signs of where the problem originates, then your webserver config might be useful.

apoc1’s picture

{ "rules_registratie" : {
    "LABEL" : "Registratie",
    "PLUGIN" : "reaction rule",
    "ACTIVE" : false,
    "REQUIRES" : [ "rules" ],
    "ON" : [ "node_insert", "node_update" ],
    "IF" : [
      { "node_is_of_type" : {
          "node" : [ "node" ],
          "type" : { "value" : { "registratie" : "registratie" } }
        }
      }
    ],
    "DO" : [ { "redirect" : { "url" : "registraties" } } ]
  }
}

I don't have any strange things found in my debug log, but if the webserver could be a problem, it's possible the problem is situated there as I'm on a shared host...

tobiasb’s picture

Title: Error 324 on redirect action » Page redirect action does not work in overlay
Status: Postponed (maintainer needs more info) » Active

Disable Overlay module, and you will see it works then ;-). but this is not the solution, just a workaround for now.

yazzou’s picture

i have disabled ovelay and cleared the cache, still not working for me

MickL’s picture

I have this problem, too.
Works fine without overlay. But when i'm on an overlay(and thats the usual case) it loads for 10-15 sec. and gives me an error message.

I'm using Views to manage a content type. If a node of this type is saved or updated, it should redirect to the view. Here is my rule:

{ "rules_ipad_productpresentation_updated" : {
    "LABEL" : "iPad productpresentation saved or updated",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "rules" ],
    "ON" : [ "node_insert", "node_update" ],
    "IF" : [
      { "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "ipad" : "ipad" } } } },
      }
    ],
    "DO" : [
      { "redirect" : { "url" : "admin\u002Fcommerce\u002Fproducts\u002Fipad-forms" } }
    ]
  }
}

(I'm currently using rules 2.0)

mitchell’s picture

Title: Page redirect action does not work in overlay » Page redirect action should skip overlay paths
Version: 7.x-2.1 » 7.x-2.x-dev

#2: Perhaps this would work --

{ "rules_registratie" : {
    "LABEL" : "Registratie",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "rules" ],
    "ON" : [ "node_insert", "node_update" ],
    "IF" : [
      { "node_is_of_type" : {
          "node" : [ "node" ],
          "type" : { "value" : { "registratie" : "registratie" } }
        }
      },
      { "NOT text_matches" : { "text" : [ "site:current-page:url" ], "match" : "*overlay\/*" } }
    ],
    "DO" : [ { "redirect" : { "url" : "registraties" } } ]
  }
}

#5: I just added, "NOT Text comparison - Parameter: Text: [site:current-page:url], Matching text: *overlay/*".

I don't think that's a good way to solve this (even if it happens to work), because in the same way that system.eval.inc has "// Don't let administrators lock them out from Rules administration pages", it would also make sense to do something similar for overlay compatibility.

@tobiasb: Whoah.. That's some intuition! I hope @apoc1 will confirm this, because there doesn't appear any indication in OP that overlay would be the source of this problem. Based on #5 & #4's initial overlay use, I doubt it's anything else.

#4: Please be more specific, perhaps providing an export.

MickL’s picture

but this would disable the redirect for overlay pages?? so it doesnt solve the problem?

cgdrupalkwk’s picture

Component: Rules Engine » Rules Core

Same problem. Page redirect takes 30-60 seconds when overlay enabled and used.

cirkavisti’s picture

Same problem here!

cgdrupalkwk’s picture

I can't fix this myself but would be happy to sponsor a fix if anyone has a solution.

gwalliman’s picture

Also having the same problem. This problem is causing strange behavior like #1075122: After saving new content + redirect + overlay = loop and web server crashing - not sure if this behavior might help in finding the solution.

fago’s picture

Status: Active » Closed (duplicate)