Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: bhayward on July 30, 2024, 03:17:51 AM

Title: Error Log spammed with repeated missing index error
Post by: bhayward on July 30, 2024, 03:17:51 AM
I'm now helping with a site that has been running for quite some time.  It is running 2.0.19 currently, but likely has been upgraded in the past.

There is a consistent error that shows up in the Error Log pretty much any time a page is loaded.

8: Undefined index: notify_announcements

It does not seem to be causing problems with pages loading or anything like that, but it is spamming the logs.  Any suggestions on what I can do to restore the index?

Thanks,
Brian
Title: Re: Error Log spammed with repeated missing index error
Post by: Steve on July 30, 2024, 06:26:11 AM
This may be overkill so I'd wait for one of the coders to respond as they may have a better way ... How to upload a fresh set of files (https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files)
Title: Re: Error Log spammed with repeated missing index error
Post by: Aleksi "Lex" Kilpinen on July 30, 2024, 06:31:47 AM
Well, first thing I'd check is your language files - Are you using other languages than English, and if you are, are all your languages up to date?

2.0.16 added language strings for GDPR related settings, and
$txt['notify_announcements'] = 'Allow the administrators to send me important news by email';
was among them.

You should find this string in your ./Themes/default/languages/index.(language).php files.