I'm using this module to activate a rule that should redirect users to a single page when they create a new content of a given type.
It works perfectly in this test environment:
windows xp + Mysql 5.0.37 + PHP 5.2.1
but when I move the website to the production hosting, with this environment:
Linux (centos) + mysql 4.1.20 + php 4.3.0 (+ module: DATE PHP4 6.x-2.x-dev)
the defined rule doest not work. No error messages or any other sign - just the rule is ignored.
I tried defining other rules: using "user roles" instead of "node content type" as condition; or also, using "execute custom php code" as action (instead or page redirect): nothing. rules are still ignored.
It's a very hard and urgnet problem for me and I will appreciate any help!!!
Really really thanks in advance
FB
Comments
Comment #1
francoud commentedI must correct myself. Using "user roles" as condition, it works. So it must be something about the $node ...
Comment #2
klausiPlease describe your problem in more detail.
Comment #3
klausiAnd yes, Rules should work in general with PHP 4 (but I wouldn't recommend to run anything on PHP 4).
Comment #4
francoud commentedI have no many other details to add.
I've a document type named "adesione", which is a simple CCK document; i want a rule that activates each time somebody creates a new document type; the rule should simpy redirect to another page, after document creation.
Creating the rule is easy. And infact it works perfectly in php5. But when I move the site to a php4, the rule is just ignored. No actions at all.
No error messages.
As a workaround, I replaced the rule with a different one: the redirection rule should activate when an "anonymous" user creates some new conten (no matter what content). This WORKS - and is enough for me.
Comment #5
mitchell commentedPHP 4 is no longer supported in rules.