Quote Originally Posted by jeking View Post
Zen Cart 1.5.6a
OPC 2.0.5

When placing an order, I get this error:

[07-Mar-2019 07:41:05 America/Chicago] Request URI: /index.php?main_page=checkout_one, IP address:
#1 require(/home/XXXX/public_html/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php) called at [/home/XXXX/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php:67]
#2 require(/home/XXXX/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php) called at [/home/XXXX/public_html/includes/templates/XXXX/common/tpl_main_page.php:146]
#3 require(/home/XXXX/public_html/includes/templates/XXXX/common/tpl_main_page.php) called at [/home/XXXX/public_html/index.php:97]
--> PHP Warning: Invalid argument supplied for foreach() in /home/XXXX/public_html/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 44.

If it matters....site was upgraded from 1.5.4. OPC was not installed previously. Using a custom template.
See this (https://github.com/lat9/one_page_checkout/issues/165) GitHub issue; let me know if that corrects the issue when a store doesn't have ot_gv enabled.

There was a change made for zc156 such that an empty array (instead of false) is being returned in that case, that's what the change for that issue addresses.