Bug Found – Updating Order Information
-
plugins/wp-paypal/paypal-ipn.php Line 137 to 142 (original)
$updated_post = array( 'ID' => $post_id, 'post_title' => $post_id, 'post_type' => 'wp_paypal_order', 'post_content' => $post_content );
I permanently received the message “FAILURE :Order information could not be updated”
After some checks and debugging I found the reason. The address of the dummy person from the sandbox contained some special chars like “ü, ?, ?,” which we are using here in Germany ?? ??
So I added this here ( esc_textarea( utf8_encode( $post_content ) ) ):
$updated_post = array( 'ID' => $post_id, 'post_title' => $post_id, 'post_type' => 'wp_paypal_order', 'post_content' => esc_textarea( utf8_encode( $post_content ) ) );
Cheers
Edit: I just checked: If you want, you do not need esc_textarea(). It’s enough just tu use utf8_encode()
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug Found – Updating Order Information’ is closed to new replies.