Skip to Content Skip to Menu

[SOLVED] CB Auto action version 9 compared to 8.1

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
2 years 11 months ago - 2 years 11 months ago #327135 by activha
Hello

We tried version 9 yesterday and noticed that our app iOS/android did not receive any longer json info allowing the user to be logged in.

For this purpose we use two auto actions linked to the app which are :

First one :
Code:
type = code user = automatic access = all registered triggers = none url = index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=action&actions=255&Itemid=175 conditions = none action method = PHP global $_CB_database; //$_CB_database->setQuery( "SELECT `title` FROM `#__groupjive_plugin_events` WHERE `id` = " . (int) '[cb_marketevents]' ); //$eventName = $_CB_database->loadResult(); //return array( 'username' => '[username]', 'user_id' => '[user_id]', 'campagne_id' => '[cb_marketevents]', 'campagne_title' => $eventName); $_CB_database->setQuery( "SELECT * FROM `#__groupjive_plugin_events` WHERE `id` = " . (int) '[cb_marketevents]' ); $event = $_CB_database->loadAssoc(); if($event) {$eventname = $event['title'] . ': ' . ( (in_array( 18, \CBLib\Application\Application::User( (int) $event['user_id'] )->getAuthorisedGroups()) && ($event['group'] != 56)) ? (int) CBuser::getUserDataInstance( (int) $event['user_id'] )->get( 'cb_marketing_multiplier' ) . ' €' : '(2 €)' );} else $eventname = \CBLib\Language\CBTxt::T('UE_SET_CAMPAIGN'); return array( 'username' => '[username]', 'user_id' => '[user_id]', 'campagne_id' => '[cb_marketevents]', 'campagne_title' => $eventname); output = JSON Layout = empty

and second one
Code:
type = query user = self access = everybody triggers = none url = index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=action&actions=149&Itemid=175 conditions = none action method = Query SELECT id FROM #__affiliate_tracker_accounts WHERE user_id =[user_id] LIMIT 1 output = return Layout = empty

Reverting back to version 8.1.0+build.2021.09.17.15.43.10.d1f5f09a0 from version 9.0.0+build.2021.11.17.15.44.26.c84219df7 solved our issues, and the iOS app correctly sees a logged in user

So I guess that there are new things interfering with version 9 but looking at the change log I am unable to find what is blocking.

Can you help on this ?

All other packages/builds have been upgrade to today versions (except auto actions then)

Thanks a lot
Last edit: 2 years 11 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 11 months ago #327138 by krileon
Replied by krileon on topic CB Auto action version 9 compared to 8.1
What happens when you directly access your auto action with JSON output? Blank page? Errors? My JSON output test is still working as it was before so I'm guessing there's potentially an error in your code somewhere. Enable debug mode and maximum error reporting in Joomla global configuration next enable debugging under Parameters within your auto action then access it directly and see if any errors output.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
2 years 11 months ago #327139 by activha
Replied by activha on topic CB Auto action version 9 compared to 8.1
I’ll test this evening again with version 9

Until version 8 last week we had absolutely no errors and all works fine. The app receives both the json for user data and the affiliation code from the query.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 11 months ago #327140 by krileon
Replied by krileon on topic CB Auto action version 9 compared to 8.1
I was able to confirm an issue with query actions not returning their values. This is being fixed in a new build release. I'm not seeing any issues with code actions or their JSON output usage though.

Your code auto action has "access = all registered". Without a valid user id that auto action can't be accessed. You said you're using it with an iOS app. Are you sending a user id in &users=USER_ID_HERE within the URL?


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
2 years 11 months ago - 2 years 11 months ago #327141 by activha
Replied by activha on topic CB Auto action version 9 compared to 8.1
Yes the app is sending the user_id
But the failed query is enough to fail the log in on the app so that should be it 😉
Last edit: 2 years 11 months ago by activha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 11 months ago #327143 by krileon
Replied by krileon on topic CB Auto action version 9 compared to 8.1
Ok, that's now fixed in latest build release. :)


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