PHP Warnings – Debug.log
-
Hi,
I am getting the below PHP Notice in debug.log
WP: 5.4.2
Woocommerce: 4.2.0
Email Log: 2.3.2[11-Jun-2020 11:32:25 UTC] PHP Notice: Array to string conversion in F:\laragon\www\iGMS\wp-content\plugins\email-log\include\Util\helper.php on line 171
I am also seeing the below warnings:
[11-Jun-2020 11:38:16 UTC] PHP Warning: strpos() expects parameter 1 to be string, array given in F:\laragon\www\iGMS\wp-includes\pluggable.php on line 240 [11-Jun-2020 11:38:16 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in F:\laragon\www\iGMS\wp-includes\pluggable.php on line 248 [11-Jun-2020 11:38:16 UTC] PHP Notice: Undefined offset: 1 in F:\laragon\www\iGMS\wp-includes\pluggable.php on line 248
I am using the below code to change the Reply to address on outgoing emails.
add_filter( 'woocommerce_email_headers', 'add_reply_to_certain_emails', 10, 2 ); function add_reply_to_certain_emails ($headers, $object ) { $add_reply_to = array( 'customer_on_hold_order', 'customer_processing_order', 'customer_completed_order', 'customer_refunded_order', 'customer_invoice', 'customer_note', 'customer_reset_password', 'customer_new_account', ); if ( in_array( $object, $add_reply_to ) ) { $headers = array( $headers, 'Reply-to: Domain.com <[email protected]>' ."\r\n", ); } return $headers;
Please review and guide me on what changes to make. Please let me know in case you require any additional information.
Thanks a lot
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP Warnings – Debug.log’ is closed to new replies.