Purchase without Account

PHP Notice: Constant XXXXXXXX already defined - Purchase without Account

PHP Notice: Constant XXXXXXXX already defined

by Omar_one » Thu Sep 29, 2022 6:14 pm

Hello,
I found this error on the error_log file (this error show for both languages -English and Finnish)

Code: Select all

PHP Notice:  Constant HOOK_PWA_TEXT_PRODUCTS already defined in /home/xxxx/public_html/includes/languages/finnish/hooks/shop/siteWide/pwa.php on line 23
PHP Notice:  Constant HOOK_PWA_DOWNLOAD already defined in /home/xxxx/public_html/includes/languages/finnish/hooks/shop/siteWide/pwa.php on line 24
PHP Notice:  Constant HOOK_PWA_EMAIL_WARNING already defined in /home/xxxx/public_html/includes/languages/finnish/hooks/shop/siteWide/pwa.php on line 27
PHP Notice:  Constant HOOK_PWA_EMAIL_DOWNLOAD already defined in /home/xxxx/public_html/includes/languages/finnish/hooks/shop/siteWide/pwa.php on line 28
PHP Notice:  Constant HOOK_PWA_EMAIL_REVIEWS already defined in /home/xxxx/public_html/includes/languages/finnish/hooks/shop/siteWide/pwa.php on line 29
thank you in advance for your help
Omar
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: PHP Notice: Constant XXXXXXXX already defined

by raiwa » Fri Sep 30, 2022 7:42 am

Language is since I think 1.0.8.16 auto included in hooks.
Please remove or comment out line 59 and 139:

Code: Select all

$this->load_lang()
Meanwhile, PWA is flagged for 1.0.8.14, there may appear other issues. I'll update it when I'll find some time.
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
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact: