News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Social Login

Started by Claude, OneAll, February 01, 2013, 03:57:31 PM

Previous topic - Next topic

Deaks

Quote from: pocttopus on May 29, 2020, 05:16:56 PM
Oh... sorry I forgot.

Type of error: Undefined
8: Undefined variable: sc https://renaultclub.mk/index.php?action=admin;area=logs;sa=errorlog;desc=
/home/renaultc/public_html/Sources/Admin.php (Line 180)


Quote from: maximus23 on June 18, 2019, 05:47:41 PM
Hello,

File Sources/Admin.php

Search:
here is the fix:
'custom_url' => $scripturl . '?action=admin;area=oasl;sa=settings;sesc=' . $sc,

and Replace By:

'custom_url' => $scripturl . '?action=admin;area=oasl;sa=settings;sesc=' . $context['session_id'],


:)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

pocttopus

Hello again and sorry for my misunderstanding of opening a new topic in a wrong place.  :-[

I am receving a new error messages even after I made those changes from yesterday. Here are the issues:

Type of error: Undefined
8: Undefined variable: sc
https://renaultclub.mk/index.php?action=admin;area=logs;sa=errorlog;desc=
/home/renaultc/public_html/Sources/Admin.php (Line 180)

166: // Register an error handler.
167: set_error_handler('smf_error_handler');
168:
169: // Start the session. (assuming it hasn't already been.)
170: loadSession();
171:
172: // What function shall we execute? (done like this for memory's sake.)
==>173: call_user_func(smf_main());
174:
175: // Call obExit specially; we're coming from the main area ;).
176: obExit(null, null, true);



Type of error: Undefined
8: Undefined variable: sc
https://renaultclub.mk/index.php?action=admin;area=logs;sa=errorlog;desc=
/home/xxxx/public_html/Sources/Admin.php (Line 180)

71: // OneAll Social Login (https://docs.oneall.com/plugins/)
172: 'oasl' => array(
173: 'title' => $txt['oasl_title'],
174: 'permission' => array('admin_forum'),
175: 'areas' => array(
176: 'oasl' => array(
177: 'label' => $txt['oasl_config'],
178: 'file' => 'Subs-OneallSocialLogin.php',
179: 'function' => 'oneall_social_login_config',
==>180: 'custom_url' => $scripturl . '?action=admin;area=oasl;sa=settings;sesc=' . $context['session_id'],
181: 'icon' => 'server.gif'
182: )
183: )
184: ),
185: 'layout' => array(

Arantor

That's literally impossible for you to get undefined variable $sc when $sc is not present in the line.

Empty your error log and look again.

Deaks

to explain this better the code change I quoted took away the $sc, and replaced it with $context['session_id'], any error with sc in that file is old of the change was not saved.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

pocttopus

I have cleared the error log messages and there are no new from admin.php

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

PLAYBOY

Is there anyway to use this mod without giving your personal information to Facebook and other sites to create and use their API?
Facebook dev page asks for your phone number or your credit card to verify your info before you go into their dev platform. I dont know about the others yet.

I love this mod but I dont think I can use it if I have to deal with Facebooks disrespect to privacy

Deaks

As far as I'm aware not really
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Arantor

No, for the reasons I outlined in your other thread.

PLAYBOY

The worst thing is that right now they stopped individual verification so you either have to be a registered company or just sit down and wait. You can't get a FB App ID live as an individual at the moment at all

pocttopus

Hello,

I am having new issues in sources/admin.php file:

Type of error: Undefined
8: Undefined variable: sc /index.php?action=admin;area=logs;sa=errorlog;desc
/home/XXXX/public_html/Sources/Admin.php (Line 182)


==>182: 'custom_url' => $scripturl . '?action=admin;area=oasl;sa=settings;sesc=' . $sc,

Arantor

Replace $sc with $context['session_id']

pocttopus

Thanks @Arantor, it's clear now.  :)

njtweb

Has anybody gotten FB login to work?

Mick.

Quote from: Deaks on May 29, 2020, 05:19:45 PM
Quote from: pocttopus on May 29, 2020, 05:16:56 PM
Oh... sorry I forgot.

Type of error: Undefined
8: Undefined variable: sc https://renaultclub.mk/index.php?action=admin;area=logs;sa=errorlog;desc=
/home/renaultc/public_html/Sources/Admin.php (Line 180)


Quote from: maximus23 on June 18, 2019, 05:47:41 PM
Hello,

File Sources/Admin.php

Search:
here is the fix:
'custom_url' => $scripturl . '?action=admin;area=oasl;sa=settings;sesc=' . $sc,

and Replace By:

'custom_url' => $scripturl . '?action=admin;area=oasl;sa=settings;sesc=' . $context['session_id'],


:)
Awesome bruh! This fixed my 10k error log lol

Sir Osis of Liver

Getting a lot of these in 2.0.17 -

[16-Feb-2021 15:10:01 America/Phoenix] PHP Fatal error:  Cannot redeclare template_oneall_social_login() (previously declared in /home/playersp/public_html/Sources/Load.php(2339) : eval()'d code:323) in /home/playersp/public_html/Sources/Load.php(2339) : eval()'d code on line 432

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

You have a double install....    it's eval, and the issue is a template definition, so the error is not in Load.php itself...   find out where the template_oneall_social_login is added and remove the duplicated one...   then look for other duplicated code, since the one duplicate probably means that there are others.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Yeah, I found it.  Forum is a mess, had to uninstall/reinstall a lot of mods to get them in new theme, old versions, broken code.  Some of these older forums get pretty ragged over time, it's impressive that SMF keeps working even with a lot of damage.  It's the B-17 of forumware.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

marcosbr

I tested it on two forums with SMF 2.1.2 and I get this error:

You cannot view this attachment.
Nothing in life is absolute. We are always learning... Did you know that?
https://amigosdaeletronica.com.br

Varlov

Quote from: marcosbr on August 30, 2022, 05:09:24 PMI tested it on two forums with SMF 2.1.2 and I get this error:

You cannot view this attachment.

Same issue here! I'm running version 2.1.2 and the forum is fresh with minimal activity and only a couple of reliable mods.

Advertisement: