Skip to Content Skip to Menu

After updating to PHP8, Redirect Autoactions no longer working

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
1 year 9 months ago #332076 by boyjahq

Any field can potentially be NULL. NULL means no value was ever stored yet. When dealing with 0 and 1 flags and you want to test against 0 it's always best to use "Not Equal To 1" condition to account for NULL and 0.
 
OK. It is strange that the conditions worked as we had originally configured them with PHP 7.4. Maybe it is change resulting from different rules in PHP 8? Anyway, things are working now as needed and, as always, we very much appreciate your support!
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
1 year 9 months ago #332079 by krileon
It's not strange since some users might have had the field stored already, especially your own account, and made it appear as fully functional. If the field existed at registration at one point then those registered users would never have NULL for example as well.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum