News:

Wondering if this will always be free?  See why free is better.

Main Menu

smf 2.1rc2 - undefined error messages

Started by pocttopus, May 30, 2020, 03:14:42 PM

Previous topic - Next topic

pocttopus

Hello,

I am constantly receiving a lot of error messages which are from admin.php file and please can someone help me to solve the issue?

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)



Thanks!

Arantor

So, what lines are those? You've been here long enough to know that we need the error plus your specific instance of code...

If it's the OneAll social login, someone already posted how to fix that for you.

pocttopus

Sorry,

These are the lines for the issue from above:

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);



AND Second, this is again from oneall even after I made the changes but both are in the same file admin.php

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)


171: // 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(



Deaks

please use the code tags when posting code it keeps things nice and is easier to read.

Secondly this error has been posted numerous times in the OneAllSocial support topic, with a afix that has been posted numerous times.  Please look in that thread.

As  you asked YESTERDAY here is the link for you.  I am going to ask a mod to lock this topic.

https://www.simplemachines.org/community/index.php?topic=496394.msg4058076#msg4058076
~~~~
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

Sorry,

I thought it's a different issue because I am receiving again new errors.

Sorry again,
Please feel free to delete the whole topic.

ps-I have also reported the topic by myself to be removed. Thanks!

Aleksi "Lex" Kilpinen

When you know the issue comes from a mod, and can name the mod - you really should post in the mod's own support topic.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: