Skip to Content Skip to Menu

CB Auto Actions 6.1.1 with CB 2.0.4

  • glenanPL
  • glenanPL
  • OFFLINE
  • Posts: 50
  • Thanks: 2
  • Karma: -1
9 years 10 months ago - 9 years 10 months ago #255390 by glenanPL
CB Auto Actions 6.1.1 with CB 2.0.4 was created by glenanPL
Hello,
With “Auto Action” type “Query”, and trigger “After Frontend Profile Update” on “Triggers”, I have 2 bugs.

Bug 1
With a field type “Check Box (Single)” in the database, there is only 0 OR 1
If I put conditions “equal to” with 1, OR “not equal to” with 0, nothing append
If I put the condition “greater than” 0, 1 OR X, it works but in all the cases!
I try with drop down (single select) with “yes/no” the condition doesn’t work

Bug 2
With action type
UPDATE #__comprofiler SET `cb_myfield` = CONCAT(cb_ myfield, '<br />MAJ') WHERE `user_id`='[user_id]'
That works, but there is 1 error :
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method cbautoactionsClass::escapeSQL() should not be called statically in /libraries/CBLib/CB/Legacy/CBuser.php on line 1006
And 546 errors like
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method cbautoactionsClass::escapeSQL() should not be called statically in /libraries/CBLib/CB/Legacy/CBuser.php on line 616
It was possible to hide the error message with “error reporting” = none !
An idea?
Last edit: 9 years 10 months ago by glenanPL.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago - 9 years 10 months ago #255396 by krileon
Replied by krileon on topic CB Auto Actions 6.1.1 with CB 2.0.4

Bug 1
With a field type “Check Box (Single)” in the database, there is only 0 OR 1
If I put conditions “equal to” with 1, OR “not equal to” with 0, nothing append
If I put the condition “greater than” 0, 1 OR X, it works but in all the cases!
I try with drop down (single select) with “yes/no” the condition doesn’t work

What's your conditional exactly? My guess is you're not actually substituting in the field. Example as follows.

Not Working:
cb_checkbox Equal To 1

Working:
[cb_checkbox] Equal To 1

Enable debug mode under Parameters then enable debug mode and maximum error reporting in Joomla global configuration. CB Auto Actions will then do a var_dump when a condition fails with the values it's trying to compare.

Bug 2
With action type
UPDATE #__comprofiler SET `cb_myfield` = CONCAT(cb_ myfield, '<br />MAJ') WHERE `user_id`='[user_id]'
That works, but there is 1 error :
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method cbautoactionsClass::escapeSQL() should not be called statically in /libraries/CBLib/CB/Legacy/CBuser.php on line 1006
And 546 errors like
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method cbautoactionsClass::escapeSQL() should not be called statically in /libraries/CBLib/CB/Legacy/CBuser.php on line 616
It was possible to hide the error message with “error reporting” = none !
An idea?

Was able to confirm. The current usage is calling the escaping functions statically, but they're not marked static. This is just a standards warning and shouldn't break your queries, but am fixing for a new release today.

forge.joomlapolis.com/issues/4958


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.
Last edit: 9 years 10 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum