Cryptic errors in error log

AI-generated summary

The discussion revolves around cryptic errors in the error log of Paul_King’s Discourse forum, https://nzarchitecture.net.nz, which is running on Discourse 3.1.0.beta2. The “errors” are actually deprecation notices and warnings about outdated methods and variable names. According to Canapin, these warnings are not critical and will not affect the site’s functionality. They are likely caused by outdated code in Discourse, themes, or plugins. Canapin advises that keeping the forum up-to-date will eventually resolve these issues.

My error log is being filled up every day with instances of the following warnings

[PrettyText] Deprecation notice: whiteList has been replaced with allowList [deprecated since Discourse 2.6.0.beta.4] [removal in Discourse 2.7.0] [deprecation id: discourse.markdown-it.whitelist]

Deprecation notice: SiteSetting.enable_personal_messages has been deprecated. Please use SiteSetting.personal_message_enabled_groups instead. (removal in Discourse 3.0) At /var/www/discourse/lib/

Deprecation notice: SiteSetting.secure_media has been deprecated. Please use SiteSetting.secure_uploads instead. (removal in Discourse 3.0) At /var/www/discourse/lib/site_setting_extension.rb:199

How do I prevent these errors from recurring?

My forum https://nzarchitecture.net.nz is running under Discourse 3.1.0.beta2

Hi Paul :slight_smile:

These are not errors, but rather warnings. They won’t prevent your site or some feature from working.

They may come from Discourse, theme/components or plugins which have parts of code that don’t use new methods or variable names (but the older ones are still working). Nothing to worry about.

Just remember to keep your forum up-to-date from time to time (these messages will go away at some point in the future when the code is updated) :slight_smile:


edit: it was also a duplicate of Deprecation notices after upgrading to 2.9.0beta10 - #2 by pfaffman