Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Wellwisher on July 09, 2017, 10:33:11 PM

Title: Forum generating over 500k errors...
Post by: Wellwisher on July 09, 2017, 10:33:11 PM
After a recent SMF 2.0.14. Our forum is generating a tone of errors (500k errors?) which I just cleared but more keep generating. As you can imagine it's freaking me out.

Error detail shown on error log:

8: Undefined variable: message
Themes/theme-name/Display.template.php
Line: 213

The code it points to:




<a class="topic-share ts-twitter" href="https://twitter.com/intent/tweet?text=Read: '. urlencode($context['subject']) .'&amp;url=', $scripturl, '?topic=', $context['current_topic'], '.msg' . $message['id'] . '%23msg' . $message['id'] . '" title="Share on Twitter" target="_blank">




Other error was:

Undefined index: online
File: /usr/home/public_html/Themes/default/languages/Mentions.english.php (main sub template - eval?)
Line: xxx

This I managed to solve by disabling template evalution, it was the Mentions mod that was creating the problem.
Title: Re: Forum generating over 500k errors...
Post by: Kindred on July 09, 2017, 11:28:08 PM
Well, the code that you indicate is not part of standard smf... so I would assume some sort of Twitter related mod issue
Title: Re: Forum generating over 500k errors...
Post by: vbgamer45 on July 09, 2017, 11:54:07 PM
Post your display.template.php that would help too.
Title: Re: Forum generating over 500k errors...
Post by: Wellwisher on July 10, 2017, 12:19:57 AM
Quote from: vbgamer45 on July 09, 2017, 11:54:07 PM
Post your display.template.php that would help too.

K attached my display.template.php. I am still getting the errors and they keep building up.
Title: Re: Forum generating over 500k errors...
Post by: vbgamer45 on July 10, 2017, 08:21:17 AM
Try this file
Title: Re: Forum generating over 500k errors...
Post by: Wellwisher on July 10, 2017, 10:45:35 AM
Quote from: vbgamer45 on July 10, 2017, 08:21:17 AM
Try this file

@Vbgamer45 really, thank you mate! I uploaded the display.template.php file that you corrected and now, that's stopped generating any additional errors from that file or line of code. Nice one, much respect tbh. I owe you, thanks for taking the time to have a look through the file.  :)
Now when I check the log section in SMF it keeps saying, "There are currently no error log entries.".

When I first got wind of the problem and saw SMF list half-a-million errors on it, I basically lost my head and freaked out so... feels good to finally sit down and breath again. Cheers Vbgamer45!  ;D
Title: Re: Forum generating over 500k errors...
Post by: vbgamer45 on July 10, 2017, 11:10:57 AM
Glad to help