Topic-icon CURLOPT_FOLLOWLOCATION cannot be activated

Active Subscriptions:

None
10 years 4 months ago - 10 years 4 months ago #39600 by Peatsmoke
Hi,

I'm trying to login with Google, but I get this failure:

CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/xxxusernamexxx/domains/xxdomainnamexxx/public_html/libraries/joomla/http/transport/curl.php on line 146


I've asked my hoster to solve this, but because it is a sherd hosting, thats not possible.
Is there any solution like changing the php-code in curl.php to solve the problem?
(I thought about setting value to set curlopt_followlocation to "FALSE")

(I've seen the messages in the other topic about this and hope I don't have to wait for a update).

PHP safe modus is off.

Thanks for helping me.
Last edit: 10 years 4 months ago by Peatsmoke.
The topic has been locked.
Support Specialist
10 years 4 months ago #39605 by alzander
That message is just a warning, and shouldn't cause any actual 'functional' issues. You can disable the display of such messages by changing the "Error Reporting" setting in the Global Configuration to "None". If you'd like to test a small line of code, it should also clear up the problem. In the /components/com_jfbconnect/libraries/provider/google.php file, around line 26, you'll see:
// We want to use cURL, so need to build this all up. This also helps poke into each of the things when debugging
        $empty = new JRegistry();
Add the following line directly below that:
$empty->set('follow_location', false);
I hope that helps, but if not, let me know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 4 months ago - 10 years 4 months ago #39620 by mardel1
Hi Alex,

This solution worked fine for the errors on the site, but now I have to give a username tor register.
Is there any solution for?
When I register with my facebookaccount I get a username and password automatically.

Thanks,
Marco
Last edit: 10 years 4 months ago by mardel1.
The topic has been locked.
Support Specialist
10 years 4 months ago #39624 by alzander
You probably have "Automatic Registration" disabled. If you want to skip the new user registration screen for Facebook and Google, you need to enable that setting.

I hope that helps, but if not, let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 4 months ago - 10 years 4 months ago #39636 by Peatsmoke
Hi Alex,

My settings seems to be OK...

Enable Automatic Registration: Yes
Registration Component: JFB
Automatically Link Users by Email: Yes (didn't make a difference)
Skip Joomla User Activation: Yes (didn't make a difference)
Auto Username Prefix: FirLas
Send New User Email: Yes
Generate Random Password Yes

The issue only shows by using Google. By logging in with FB everything works well. :rolleyes:

I can send you my login by PM if that could help.

Thank you,
Marco (aka Peatsmoke)
Last edit: 10 years 4 months ago by Peatsmoke.
The topic has been locked.
Support Specialist
10 years 4 months ago #39664 by alzander
I just used the Google Login feature on your site, and my account was automatically created, as I'd expect.

I'm not sure why the user account isn't being automatically created for you, but I'd suggest trying to test with other Google accounts to see what happens. The only thing to be aware of is if you have the setting "Automatically Link Users by Email" set to "No", then *if* you try to login with Google that has an email address that already exists in Joomla, you will be brought to a page to Login (with an existing account) or register with a new account. In that case, the email address field will also be blank, since the one JFBConnect wants to import from Google can't be used (it's already registered).

Please let me know how testing with other accounts go. If you still have the same issue, please let me know if the "Password" field shows on the registration page you mentioned and whether it's pre-filled or blank.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 4 months ago #39668 by Peatsmoke
Hi Alex,

The 'problem' I had, also wasn't a problem... :P
So I can start with configure more things and I think "I'll be back" someday.
Thank you for your help and solving my case.

Grtz. Marco
The topic has been locked.
Support Specialist
10 years 4 months ago #39675 by alzander
No problem. If there's anything else we can help with, just let me know!

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck,
Alex
The topic has been locked.