diff --git a/app/models/admin_dashboard_data.rb b/app/models/admin_dashboard_data.rb index 1c5f190346d..fe058a289e5 100644 --- a/app/models/admin_dashboard_data.rb +++ b/app/models/admin_dashboard_data.rb @@ -30,6 +30,7 @@ class AdminDashboardData twitter_config_check, github_config_check, s3_config_check, + image_magick_check, failing_emails_check, default_logo_check, contact_email_check, @@ -105,6 +106,10 @@ class AdminDashboardData I18n.t('dashboard.s3_config_warning') if SiteSetting.enable_s3_uploads and (SiteSetting.s3_access_key_id.blank? or SiteSetting.s3_secret_access_key.blank? or SiteSetting.s3_upload_bucket.blank?) end + def image_magick_check + I18n.t('dashboard.image_magick_warning') if SiteSetting.create_thumbnails and !system("which -s convert") + end + def failing_emails_check num_failed_jobs = Jobs.num_email_retry_jobs I18n.t('dashboard.failing_emails_warning', num_failed_jobs: num_failed_jobs) if num_failed_jobs > 0 diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index cbee0ce60d9..24a5db56656 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -386,6 +386,7 @@ en: twitter_config_warning: 'The server is configured to allow signup and log in with Twitter (enable_twitter_logins), but the key and secret values are not set. Go to the Site Settings and update the settings. See this guide to learn more.' github_config_warning: 'The server is configured to allow signup and log in with GitHub (enable_github_logins), but the client id and secret values are not set. Go to the Site Settings and update the settings. See this guide to learn more.' s3_config_warning: 'The server is configured to upload files to s3, but at least one the following setting is not set: s3_access_key_id, s3_secret_access_key or s3_upload_bucket. Go to the Site Settings and update the settings. See "How to set up image uploads to S3?" to learn more.' + image_magick_warning: 'The server is configured to create thumbnails of large images, but ImageMagick is not installed. Install ImageMagick using your favorite package manager or go to to download the latest release.' failing_emails_warning: 'There are %{num_failed_jobs} email jobs that failed. Check your config/environments/production.rb file and ensure that the config.action_mailer settings are correct. See the failed jobs in Sidekiq.' default_logo_warning: "You haven't customized the logo images for your site. Update logo_url, logo_small_url, and favicon_url in the Site Settings." contact_email_missing: "You haven't provided a contact email for your site. Please update contact_email in the Site Settings."