Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB connect: cannot log in by Facebook, Google+, Twitter account

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
9 years 3 weeks ago #271540 by haidinh
Hi Nick,

I thank you for your help and noted your reminding.

The hoster raised memory up to 512Mb but it still does not work.

There are here some more clues upon that you can guess what is the cause for my issue:

1. Although, I cannot register with Facebook, Google+ and Twitter, I can link a current account with Facebook, Google+ and Twitter accounts.

2. I reinstall CBconnect and there are another social ID fields created, that means there are 2 facebook account (with database fb_userid and cb_fb_userid), two google+, 2 twitter ... Please see attached screenshot.

So can you guess what is the real reason?

Thank you and reagrds,

Hai
Attachments:

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 3 weeks ago #271554 by nant

haidinh wrote: Hi Nick,

I thank you for your help and noted your reminding.

The hoster raised memory up to 512Mb but it still does not work.

There are here some more clues upon that you can guess what is the cause for my issue:

1. Although, I cannot register with Facebook, Google+ and Twitter, I can link a current account with Facebook, Google+ and Twitter accounts.

2. I reinstall CBconnect and there are another social ID fields created, that means there are 2 facebook account (with database fb_userid and cb_fb_userid), two google+, 2 twitter ... Please see attached screenshot.

So can you guess what is the real reason?

Thank you and reagrds,

Hai


Please turn on Joomla debug to maximum level and test again

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

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
9 years 3 weeks ago #271559 by haidinh
Hi Nick,

I turned on error maximum and when I register now, there is still error about memory below:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 245862401 bytes) in /home/phot.../public_html/libraries/CBLib/Imagine/Gd/Image.php on line 602

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 245862401 bytes) in /home/phot.../public_html/libraries/CBLib/Imagine/Gd/Image.php on line 617

But the hoster said that the memory is raised to highest level of 512Mb, and it is because of the code. And here is the code line in the file.

Line 602: $resource = imagecreatetruecolor($size->getWidth(), $size->getHeight());

Line 617 imagefill($resource, 0, 0, $transparent);

Can you guess the reason?

Thank you and regards,

Hai

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

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
9 years 3 weeks ago #271562 by haidinh
Hi Krileon and Nick,

I found the error. That is the way I configure avatar image size.

For Google+ example, when memory limit is 128Mb. If the avatar size is set 1400 x 1400 then it is OK, but when I set 1500 x 1500 the error will happen. When memory limit increases, this size will be raised too.

The size is different to different social network.

That is the error on my site, I do not know it happen in other sites or not.

Thank you for your support so far.

Hai
The following user(s) said Thank You: beat

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
9 years 3 weeks ago #271579 by beat
Hi haidinh,

Great that you found the issue!

Indeed 1500x1500 is a huge size for web, specially if you use gd as image library, as that uses PHP memory.

Probably having your hoster install imagemagick and its php module for you will drastically reduce your PHP memory usage, as images are handled more efficiently and outside PHP memory in Imagemagick.

Best Regards,

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: nant, krileon, haidinh

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

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
9 years 3 weeks ago #271627 by haidinh
:) Thank you, Beat.

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

Moderators: beatnantkrileon
Powered by Kunena Forum