Warning: Invalid argument supplied for foreach()
-
Pozdrav,
prilikom checkout procesa dobivam upozorenje:
Warning: Invalid argument supplied for foreach() in /public_html/wp/wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php on line 336Ovo je konkretni loop s kojim imam problem iz Plugin File Editora (linija 336 foreach):
foreach ( $account_fields as $field_key => $field ) {
if ( ! empty( $field[‘value’] ) ) {
$account_html .= ” . wp_kses_post( $field[‘label’] ) . ‘: ‘ . wp_kses_post( wptexturize( $field[‘value’] ) ) . ‘‘ . PHP_EOL;
$has_details = true;
}
}Warning se javlja samo kad je HUB3 plugin aktiviran, prilikom kori?tenja Direct banking metode pla?anja. Kad deaktiviram plugin, checkout prolazi bez warninga.
Ina?e sa funkcionalnosti nema problema, plugin i dalje generira slip i barcode kroz checkout i modul se uredno integrira u mail.Da li imate ideju kako izbje?i warning uslijed narud?be? Bojim se da zbunjuje korisnike.
Ne razumijem se ba? u php :see_no_evil:.Unaprijed hvala
- The topic ‘Warning: Invalid argument supplied for foreach()’ is closed to new replies.