Quote Originally Posted by mikecnz View Post
ZC v1.5.7d
OPC 2.4.3
Preview Email 1.4

OPC appears to be causing issues with preview e-mail or vice versa, debug is as follows:

[13-Oct-2022 22:45:25 UTC] Request URI: /**admin/index.php?cmd=preview_email, IP address: 103.45.241.65
--> PHP Fatal error: Uncaught Error: Call to undefined function opc_load_legacy_language_definitions() in /home/****/public_html/includes/languages/english/checkout_process_guest.php:12
Stack trace:
#0 /home/***/public_html/includes/modules/require_languages.php(22): require_once()
#1 /home/***/public_html/**admin/includes/functions/extra_functions/preview_email.php(251): require('/home/**...')
#2 /home/***/public_html/**admin/preview_email.php(58): build_checkout_email()
#3 /home/***/public_html/**admin/index.php(11): require('/home/**...')
#4 {main}
thrown in /home/**/public_html/includes/languages/english/checkout_process_guest.php on line 12.

opc_load_legacy_language_definitions() is defined in includes/functions/extra_functions/one_page_checkout_functions.php, so im not sure what is causing the issue.

Thanks
That "Preview Email" plugin is running on the admin and using storefront language definitions, so I'm going to say that the ball's in that plugin's court. That's only going to get more complicated for that plugin when zc158 is released.