Hi guys,

I've been using Social Log-in (Facebook & Google) on my site for a while, so it is set-up and works fine. But after installing Jomsocial recently, and trying to use social log-in via the Jomsocial pages, it just throws up "undefined error" instead of logging the user in.

I've added my FB and Google integration details in the correct place (JomSocial > Configurations > Integration > Google API Configuration) and even playinig around with, and/or disabling the System - Jomsocial Redirect plugin doesn't seem to help.

I would really appreciate it of someone could help me figure it out please.

Thanks in advace for any reply.

mojobrews
Hi
Can you Re check the Google login configurations i the Google apps it use the correct settings
After login the site redirecting me to this page /sns-home
Did you used sns home for Google settings

5 days later

Hi,
Do you mean Authorised JavaScript origins?
Or Authorised redirect URIs?
Both of those contain the correct URIs.

Sorry. I think I understand what you meant now.
I used sns-home for the JP language URL, and social-home for the EN version. Anyway, they are both using sns-home now.
I still get the Undefined error.
:-(

    mojobrews
    Hi
    Kindly Edit fields in first post and submit the super user login for staff.
    Also add me as admin for your Google application settings with email pankaj@joomlart.com
    So i can able to check your Google app settings.

      6 days later

      mojobrews
      Hi
      For redirection issue apply this :
      Open plugins\system\jomsocialredirect\jomsocialredirect.php
      change line 106 to

      if(strpos($returnUrl, 'ajaxlogin') !== false) {

      save and check.

      The email you sent is using different site not the same domain you are using. Please check again. both site are different.

        Thanks for your help.

        I changed line 106 to this:

         /*if ($returnUrl) {*/
        							if(strpos($returnUrl, 'ajaxlogin') !== false) {
                                   $link = $returnUrl;
                                } else {
                                    if ($this->params->get('redirect_previous') == 1) {
                                        $session = JFactory::getSession();
                                        $link = $session->get('redirect_previous_url', $link);
                                    }
                                }

        But I still get "Undefined error".

        Thanks. I sent a email earlier with correct details.

        PHP and MySQL Configurations meet the minimums. And System too:

        Ninja Also set the System requirement recommended

        Kindly use recommended value as suggestion to use all features, as there is more options and extension load site need more resources. About the login issue for Google let me know once you ready with correct details.

          For quick reference: https://www.beermyfriend.com/phpinfo.php

          I added these lines to my .htaccess file.

          php_value max_execution_time 300
          php_value max_input_time 300
          php_value memory_limit 1024M
          php_value post_max_size 4096M
          php_value upload_max_filesize 4096M

          Ninja About the login issue for Google let me know once you ready with correct details.

          Could you log-in to Google console? I added your email as an editor.

          Nothing I do seems to fix this.

          Hope you can help.

            mojobrews
            Hi
            The details has been shared with dev team member, it will take some time as its in queue for dev team member.

            Write a Reply...
            You need to Login to view replies.