I noticed that after PWA 4.6.4 was installed in my store 1.0.9.3, I started seeing errors in the Order Notification emails:
Email body:
Online Store
MODULE_NOTIFICATIONS_UPDATE_ORDER_SEPARATOR
MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_ORDER_NUMBER
MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_INVOICE_URL
MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_DATE_ORDERED
We would like to ask you to leave a review of the products you have purchased:
Donation
The comments for your order are
MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_STATUS_UPDATE
I checked the admin error_log, and I am seeing:
[15-Sep-2024 20:48:12 America/New_York] PHP Warning: Use of undefined constant MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_INVOICE_URL - assumed 'MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_INVOICE_URL' (this will throw an Error in a future version of PHP) in /home4/birdonaw/public_html/xxxxxx/yyyyyy/includes/hooks/admin/siteWide/swPwa.php on line 46
[15-Sep-2024 20:48:12 America/New_York] PHP Warning: Use of undefined constant MODULE_NOTIFICATIONS_UPDATE_ORDER_SEPARATOR - assumed 'MODULE_NOTIFICATIONS_UPDATE_ORDER_SEPARATOR' (this will throw an Error in a future version of PHP) in /home4/birdonaw/public_html/xxxxxx/yyyyyy/includes/hooks/admin/siteWide/swPwa.php on line 47
[15-Sep-2024 20:48:12 America/New_York] PHP Warning: Use of undefined constant MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_ORDER_NUMBER - assumed 'MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_ORDER_NUMBER' (this will throw an Error in a future version of PHP) in /home4/birdonaw/public_html/xxxxxx/yyyyyy/includes/hooks/admin/siteWide/swPwa.php on line 48
[15-Sep-2024 20:48:12 America/New_York] PHP Warning: Use of undefined constant MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_DATE_ORDERED - assumed 'MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_DATE_ORDERED' (this will throw an Error in a future version of PHP) in /home4/birdonaw/public_html/xxxxxx/yyyyyy/includes/hooks/admin/siteWide/swPwa.php on line 50
[15-Sep-2024 20:48:12 America/New_York] PHP Warning: Use of undefined constant MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_STATUS_UPDATE - assumed 'MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_STATUS_UPDATE' (this will throw an Error in a future version of PHP) in /home4/birdonaw/public_html/xxxxxx/yyyyyy/includes/hooks/admin/siteWide/swPwa.php on line 53
I removed /includes/hooks/admin/siteWide/swPwa.php, and then the Order Notification emails, start working again.
Do you have any suggestion on what I can check next to correct this issue?
Their is no need for an immediate response if you are still on holiday. Please just reply when you have the opportunity and are back at your computer.
Thanks!!
Purchase without Account
Error on Order Notifications emails with PWA installed - Purchase without Account
-
jcarndt
- Member
- Posts: 29
- Joined: Tue Mar 09, 2021 7:12 pm
- Phoenix Version:
- Contact:
Re: Error on Order Notifications emails with PWA installed
These constants are defined in the core language file:
includes\languages\english\modules\notifications\n_update_order.php
Or you are using another language where this language file is missing or you are using another notification module and language file which is not including these language definitions.
To fix it, you could include these definitins in the language file of the module you are using or modify the pwa hook to use the constants and message construction of your notification module:
includes\hooks\admin\siteWide\swPwa.php line 47-53
includes\languages\english\modules\notifications\n_update_order.php
Or you are using another language where this language file is missing or you are using another notification module and language file which is not including these language definitions.
To fix it, you could include these definitins in the language file of the module you are using or modify the pwa hook to use the constants and message construction of your notification module:
includes\hooks\admin\siteWide\swPwa.php line 47-53
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
Re: Error on Order Notifications emails with PWA installed
Thanks your suggestions, they helped me to be able to resolve the issue. Thanks!!raiwa wrote: To fix it, you could include these definitins in the language file of the module you are using or modify the pwa hook to use the constants and message construction of your notification module:
includes\hooks\admin\siteWide\swPwa.php line 47-53
-
jcarndt
- Member
- Posts: 29
- Joined: Tue Mar 09, 2021 7:12 pm
- Phoenix Version:
- Contact: