After updating to the 6.x-2.7 version conditions stop working. I've rolled back to 6.x-2.6 to confirm this being the case and everything stated working again.

Drupal Version: 6.22
Caching: Disabled for testing.

Splash Settings - admin/settings/splash
Display frequency: Always
Conditions: When ANY selected condition is met

Condition: Test PHP code to return TRUE or FALSE results in the user being redirected every time.

Rolling the module back to 6.x-2.6 and testing has users redirected on condition being TRUE and not when condition is FALSE.

I've not tried this version on a bare install, this is on a production site and the update broke some features.

Comments

chales’s picture

Priority: Major » Critical

I've installed a fresh clean copy of Drupal 6.22 and Conditions 6.x-2.5.

Splash settings -
When: Always (when conditions is met)
How: Redirect
What: test-page

Creating a condition that simply returns TRUE or FALSE via PHP splash performs as follows -
Splash 6.x-2.6: on TRUE user is redirected to /test-page, on FALSE user is left on the home page.
Splash 6.x-2.7: on TRUE user is redirected to /test-page, on FALSE user is also redirected to /test-page.

Also setting the Conditions option to "NEVER validate" and "ALWAYS validate" will also redirect the user.

Since there seems to be little code difference between the 2.6 and 2.7 versions so I'll take some time to debug on my own as soon as I can. I am escalating the bug level to critical however since this is a major component of the module.

Toxid’s picture

Did you have any success in finding the problem?

chales’s picture

It's actually on my todo list but I haven't had the free time to dig into it too deep. I'll plan to carve out an hour or so this weekend and make an update to what I find.

chales’s picture

Issue summary: View changes

Added Drupal version and cache setting info.