Skip to Content Skip to Menu

cb connect not work and maybe has bug

  • saman2
  • saman2
  • OFFLINE
  • Posts: 405
  • Thanks: 7
  • Karma: -1
2 years 5 months ago #329685 by saman2
hi. i want to use cb connect and i set all setting correctly and when redirect to joomla from google i get this error:
Code:
Undefined class constant 'VERSION'
it seems that problem related to Guzzle.
i use 7.3.0+build.2021.01.19.16.50.49.9504f7b5b

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 5 months ago #329689 by krileon
Replied by krileon on topic cb connect not work and maybe has bug
Your install is out of date. We updated Guzzle in CB to Guzzle 7. You need a new release of CB Connect that's compatible with that change as Guzzle API changed. Your last download of CB Connect was over 2 years ago.


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.

  • saman2
  • saman2
  • OFFLINE
  • Posts: 405
  • Thanks: 7
  • Karma: -1
2 years 5 months ago #329693 by saman2
Replied by saman2 on topic cb connect not work and maybe has bug
i can run that but i have another problem now. i need use socks proxy if you use CURL for send request to google oauth2. please say me which file must be override or modify to add socks proxy to request that send to google to return user information? thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 5 months ago - 2 years 5 months ago #329701 by krileon
Replied by krileon on topic cb connect not work and maybe has bug
You'll need to modify the Guzzle usages in the provider library files for each provider you plan to use. We don't currently have middleware for dealing with globally applying a proxy to every Guzzle request and Guzzle removed default options functionality so we don't have any easy way of doing that beyond modifying each individual request.

You can find the provider library files at the below location.

/components/com_comprofiler/plugin/user/plug_cbconnect/library/Provider

Below is Guzzle documentation for applying a proxy.

docs.guzzlephp.org/en/stable/request-options.html#proxy

Below is a feature ticket where we'll be working on a solution to implement proxy support globally for Guzzle.

forge.joomlapolis.com/issues/8973


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: 2 years 5 months ago by krileon.
The following user(s) said Thank You: saman2

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

  • saman2
  • saman2
  • OFFLINE
  • Posts: 405
  • Thanks: 7
  • Karma: -1
2 years 5 months ago #329706 by saman2
Replied by saman2 on topic cb connect not work and maybe has bug
thank you and i understand you are reply me more than normal user. i have a question please say me correct or not.if i want use google registration user in cb and proxy , i must modify this line in GoogleProvider.php (in the /components/com_comprofiler/plugin/user/plug_cbconnect/library/Provide ):
Code:
try { if ( $type == 'POST' ) { $result = $client->post( $this->urls['base'] . $api, $options ); } else { $result = $client->get( $this->urls['base'] . $api, $options ); }

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 5 months ago #329708 by krileon
Replied by krileon on topic cb connect not work and maybe has bug
You need to modify $options as that's where you'd set proxy options as per Guzzle documentation.


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.
The following user(s) said Thank You: saman2

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

Moderators: beatnantkrileon
Powered by Kunena Forum