Skip to Content Skip to Menu

500 error after signup

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
2 years 11 months ago #326998 by mikerotec
500 error after signup was created by mikerotec
https://[redacted]/en/cb-profile/saveregisters gives a 500 error now, after a signup.
The signup actually WORKED ( sent confirmation email).

but how do I fix this?? (just started after latest updates)

Joomla 3.10.3
CB 2.6.4

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

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
2 years 11 months ago #327005 by beat
Replied by beat on topic 500 error after signup
As with any Error 500 or blank screen, please consult our FAQ article to find the corresponding error message that is not displayed:
www.joomlapolis.com/faq/18227-blank-page-issue

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
2 years 11 months ago #327032 by mikerotec
Replied by mikerotec on topic 500 error after signup
error log indicates some kind of guzzle conflict??
Code:
[Wed Nov 10 20:54:31.472312 2021] [php7:error] [pid 5776] [client 206.125.202.234:58067] PHP Fatal error: Cannot redeclare GuzzleHttp\\json_decode() (previously declared in /var/www/html/[redacted]/html/libraries/CBLib/GuzzleHttp/functions.php:299) in /var/www/html/[redacted]/html/libraries/cjlib/vendor/guzzlehttp/guzzle/src/functions.php on line 147, referer: https://[redacted]/en/component/comprofiler/registers

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

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
2 years 11 months ago #327035 by beat
Replied by beat on topic 500 error after signup

mikerotec wrote: error log indicates some kind of guzzle conflict??

Code:
[Wed Nov 10 20:54:31.472312 2021] [php7:error] [pid 5776] [client 206.125.202.234:58067] PHP Fatal error: Cannot redeclare GuzzleHttp\\json_decode() (previously declared in /var/www/html/[redacted]/html/libraries/CBLib/GuzzleHttp/functions.php:299) in /var/www/html/[redacted]/html/libraries/cjlib/vendor/guzzlehttp/guzzle/src/functions.php on line 147, referer: https://[redacted]/en/component/comprofiler/registers


Yes, that is an incompatibility of the third-party library "cjlib", which seems to include (force-load) (instead of auto-load, which would not load it if already defined) their GuzzleHttp. You should imho report that to the author of the "cjlib" library so that they don't include their libraries, but auto-load them, which will not load them if already defined. Now that might most probably help, but I can't exclude issues if the versions differ a lot. On our side, once we release CB 2.7 which increases minimum php version from 5.6 to 7.4, we will be able to upgrade the Guzzle library to very latest one.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: mikerotec

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

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
2 years 11 months ago - 2 years 11 months ago #327077 by mikerotec
Replied by mikerotec on topic 500 error after signup
cjlib developer replied:

Unfortunately, that is the wrong interpretation. CjLib does not force load the library. It uses composer autoloader to autoload the libraries. Whereas CB uses a very old version of Guzzle (v4 I believe) and CjLib uses the latest (version 7 which is also PSR7 compatible). I believe this is the reason for the composer could not detect the already loaded version. If CB can support the latest library, I believe it is the best solution.

=========================

Incidentally, I notice one guzzle is lowercase and the other is camel-case... strange that its not case-sensitive??

Anyway, i'm not sure what to do (if i can roll back to earlier cjlib or not).
Is CB2.7 coming out any time real soon?
Last edit: 2 years 11 months ago by mikerotec.

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
2 years 11 months ago - 2 years 11 months ago #327091 by krileon
Replied by krileon on topic 500 error after signup
Nothing we can do about this right now. The two versions are incompatible. I'm not sure what cjlib is for, but why is it loading during user save? and why does it need Guzzle during user save? CB should only load Guzzle around that time if using reCaptcha captcha in CB AntiSpam, during various CBSubs payment gateway communications, if using link feature in a video or audio field type, if using a Request action in CB Auto Actions, or registering via CB Connect.

Is CB2.7 coming out any time real soon?

We do not have a time frame for when CB 2.7 will be available. Ideally in a few weeks as we want to bump our minimum PHP to 7.4 finally.


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 11 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum