Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup Alert Email Notifications is not displaying normal easy to understand text #14917

Closed
2 tasks done
Toby737 opened this issue Jun 20, 2024 · 11 comments
Closed
2 tasks done

Comments

@Toby737
Copy link

Toby737 commented Jun 20, 2024

Debug mode

Describe the bug

With 7.0.4, the backup notification email content is showing what looks like bits of code instead of normal text, when it was on 6.4.2.

Reproduction steps

  1. Enabled Backup Email Notifications in .env file
  2. Run a manual backup to trigger email notification.

Expected behavior

Previously with 6.4.2, the Backup Email Notification would be...
Hello!
Great news, a new backup of Snipe-IT was successfully created on the disk named backup.
Application name: Snipe-IT
Backup name: backups
Disk: backup
Newest backup size: 15.53 MB
Number of backups: 13
Total storage used: 199.75 MB
Newest backup date: 2024/06/19 00:00:03
Oldest backup date: 2024/06/01 00:00:06

but with 7.0.4, the email appears as...
Hello!
backup::notifications.backup_successful_body
backup::notifications.application_name: Snipe-IT (production)
backup::notifications.backup_name: backups
backup::notifications.disk: backup
backup::notifications.newest_backup_size: 15.52 MB
backup::notifications.number_of_backups: 2
backup::notifications.total_storage_used: 31.05 MB
backup::notifications.newest_backup_date: 2024/06/19 12:22:58
backup::notifications.oldest_backup_date: 2024/06/19 12:22:01

Screenshots

snipeit 7 0 4
snipeit 6 4 2

Snipe-IT Version

v7.0.4 build 14011 (g20d558785)

Operating System

Rocky Linux 9

Web Server

Apache

PHP Version

8.3.8

Operating System

Windows

Browser

Edge

Version

126.0.2592.61

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

Copy link

welcome bot commented Jun 20, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Jun 20, 2024

Huh - most folks don't use that feature, so I guess we didn't catch the change on the underlying package's side. We'll need to investigate this a bit more. Thanks for the heads up!

@Toby737
Copy link
Author

Toby737 commented Jun 20, 2024

No worries.
Yeah, I was just playing around with it and kinda left it set, and noticed the change after the upgrade to 7.0.4.
Awesome work you guys do though with Snipe-IT. It's been fantastic to use so far!

@snipe
Copy link
Owner

snipe commented Jun 20, 2024

I can reproduce this locally, which is, as always, both good and bad. The package definitely changed something, I'm just not sure what yet. We'll have it sorted for you shortly tho

@Toby737
Copy link
Author

Toby737 commented Jun 20, 2024

Cool no dramas. It's not that urgent or critical. :)
Thanks!

@snipe
Copy link
Owner

snipe commented Jun 20, 2024

I think I see what happened. They added localization recently (yay!) but they use the two-letter code for language, which we don't use anymore. :-/ en vs en-US. We had to switch that a few versions back because of the way Symfony handles pluralization, but since there are several "right" ways to do this, I think the two-letter code translations files they provided are not being correctly used.

@snipe
Copy link
Owner

snipe commented Jun 20, 2024

I've opened an issue on laravel-backup's repo to see how to best handle this. For right now, if you change your fallback_locale in app.config to en instead of en-US (which is what we set as the default) that will probably resolve this issue for you, but I'm trying to work with the folks at spatie to see how we should handle this longer term, since we don't have en files anymore, only en-US and en-GB, etc.

@snipe
Copy link
Owner

snipe commented Jun 20, 2024

This should be fixed on master now - let me know if you're still having issues after running upgrade.php

@Toby737
Copy link
Author

Toby737 commented Jun 20, 2024

Awesome! Thanks! Fixed now. 👍
Screenshot 2024-06-20 141532

@edd080
Copy link

edd080 commented Jun 20, 2024

This should be fixed on master now - let me know if you're still having issues after running upgrade.php

Had the same exact issue as OP, can confirm your fix is working fine now. Many thanks for your great support, keep it up 👍

@snipe
Copy link
Owner

snipe commented Jun 20, 2024

Great to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants