Uutiset:

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

Main Menu
Advertisement:

Errors since upgrading to 2.0.17

Aloittaja anidea, tammikuu 25, 2020, 06:54:05 IP

« edellinen - seuraava »

shawnb61

Thanks for following up!

The Subs-Post errors for codes like 'utf8' and 'server' are known, & are in the Bug Reports board.  We believe these are harmless, just a nuisance:
https://www.simplemachines.org/community/index.php?topic=546745.00

The original errors for 'title' and 'href' when action=search appear to be gone - and that's a good thing.


A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

If you want to stop the errors, just define the indexes (indices?) -

Subs-Post.php



/// Fudge to remove undefined errors from scheduled tasks
if (!isset($context['server']))
$context['server'] = null;

// This line makes all languages *theoretically* work even with the wrong charset ;).
$message = preg_replace('~&#(\d{4,5}|[2-9]\d{2,4}|1[2-9]\d);~', '&#$1;', $message);



/// Fudge to remove undefined errors from scheduled tasks
if (!isset($context['server']))
$context['server'] = null;

// Use sendmail if it's set or if no SMTP server is set.
$use_sendmail = empty($modSettings['mail_type']) || $modSettings['smtp_host'] == '';



/// Fudge to remove undefined errors from scheduled tasks
if (!isset($context['character_set']))
$context['character_set'] = null;

$charset = $custom_charset !== null ? $custom_charset : $context['character_set'];



/// Fix undefined index error
if (!isset ($context['utf8']))
$context['utf8'] = '';

// Convert all special characters to HTML entities...just for Hotmail :-\
if ($hotmail_fix && ($context['utf8'] || function_exists('iconv') || $context['character_set'] === 'ISO-8859-1'))


When in Emor, do as the Snamors.
                              - D. Lister

anidea

Cool.  I'm glad it's mostly solved then.  Thank you for the code!  I'll report back success/failure.

On a side note, I seem to get a whole lot of people having log in problems (forgetting their passwords)...out of proportion to the number of active members on the forum.  I thought that this last update fixed the log in issue?  Could there be another reason why so many people have to enter their passwords multiple times to log in? 

And I got a new error today, but it's only one user generating this error (although 7 times!), and I've never seen it before.  I have everyone set to the default Curve theme, I stopped using themes because of all the weird errors, and I've confirmed that this user is set to default.  So maybe it's just a matter of time before other users start generating errors?

http://www.mysite.com/smf/index.php?action=logout;a0ebafcb2=ea609e0a1505dd5142c82766cbf8c855
8: Undefined index: actual_theme_dir
File: /home/public/smf/Sources/Load.php
Line: 2139

shawnb61

Lainaus käyttäjältä: anidea - maaliskuu 15, 2020, 12:08:33 IP
Could there be another reason why so many people have to enter their passwords multiple times to log in?

There is definitely an issue with folks who have multi-byte characters in their passwords.  Bug reported here:
https://www.simplemachines.org/community/index.php?topic=571384.0

There is a temporary code workaround here:
https://www.simplemachines.org/community/index.php?topic=571082.msg4042818#msg4042818

Fix definitely coming in 2.0.18.  Before applying 2.0.18 you will need to undo the temporary fix.
A question worth asking is born in experience & driven by necessity. - Fripp

Advertisement: