Title: BUG ON FINAL MESSAGE
Last modified: February 12, 2018

---

# BUG ON FINAL MESSAGE

 *  Resolved [royrogers](https://wordpress.org/support/users/royrogers/)
 * (@royrogers)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/)
 * Hi there,
 * I found a bug on the email final message (Completed order):
 * `Warning: in_array() expects parameter 2 to be array, null given in /public_html/
   wp-content/plugins/woo-custom-emails-per-product/includes/class-woo-custom-emails-
   output.php on line 78`
 * Thank you!

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/bug-on-final-message/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-on-final-message/page/2/?output_format=md)

 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-9967468)
 * Thanks, royrogers!
 * I’ll look into this immediately.
 *  Thread Starter [royrogers](https://wordpress.org/support/users/royrogers/)
 * (@royrogers)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-9967471)
 * You are welcome! Your plugin is amazing!
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-9968530)
 * Hi royrogers,
 * I’m having trouble replicating the issue. Every time I change an Order from “
   Processing” or “On-Hold” to “Complete” I don’t get any errors and I see the email
   message I’m expecting…
 * Can you please tell me the steps you did to produce this error?
 * Thanks!
 *  Thread Starter [royrogers](https://wordpress.org/support/users/royrogers/)
 * (@royrogers)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-9971633)
 * Hi There,
 * I just found out the issue:
 * If I check the order as completed on the WOOCOMMERCE/ORDERS PAGE ->ACTIONS (Checkbox
   with a mark) the email works without any issues. But if I try to mark the order
   as completed on the WOOCOMMERCE/ EDIT ORDER PAGE (you have to click on the order
   table name to enter edit page) the final completed incoming email message send
   the following warning message:
 * `Warning: in_array() expects parameter 2 to be array, null given in /home/declicin/
   public_html/wp-content/plugins/woo-custom-emails-per-product/includes/class-woo-
   custom-emails-output.php on line 78`
 * Thanks for your patience
 * Roy
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-9991348)
 * Hi Roy,
 * I am still not getting the error you are seeing… please watch this screencast
   of the steps I’m taking to change the Order status:
 * [http://alexmustin.com/upload/WooCustomEmails–emails-sending-no-error.mov](http://alexmustin.com/upload/WooCustomEmails–emails-sending-no-error.mov)
 * I’m confused on the difference between these two items:
 * – WOOCOMMERCE/ORDERS PAGE ->ACTIONS (Checkbox with a mark)
    – WOOCOMMERCE/ EDIT
   ORDER PAGE (you have to click on the order table name to enter edit page)
 * I only see one page for editing Orders, under the WooCommerce menu.
 * Am I missing a step somewhere?
 * Please advise.
 * Thank you!
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-9991490)
 * Hey Roy,
 * I think I know the other page you’re referring to: the “Single Order Edit Page”
   like this:
 * > [View post on imgur.com](https://imgur.com/kQd2QQT)
 * Before, I was doing a “Bulk Edit” on the Orders page.
 * On the Single Order Edit Page, when I change the drop-down box highlighted in
   red and update the Order, I am still not seeing any errors.
 * I wonder if any other plugins are conflicting?
 *  [paulobm](https://wordpress.org/support/users/paulobm/)
 * (@paulobm)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10018141)
 * Hi Alex. Love the idea of the plugin and cant wait to use it!
 * But i get the same message when it sends the final email. I need the Plugin for
   when an order is “Processing” But on my email test it shows up like this:
 * **Warning: in_array() expects parameter 2 to be array, null given in /home/mvfiacom/
   public_html/wp-content/plugins/woo-custom-emails-per-product/includes/class-woo-
   custom-emails-output.php on line 78**
 * Any help would be great.
    Thanks
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10018480)
 * Hi paulobm,
 * Thank you for also using my plugin!
 * If you could help me troubleshoot, I am wondering what kinds of products are 
   in your order? Are they all Simple products, or do you also have Variable products
   there as well?
 * Please advise.
 * Thanks!
 *  [paulinho_rus](https://wordpress.org/support/users/paulinho_rus/)
 * (@paulinho_rus)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10020051)
 * Hi Alex! I have the same error in processing email:
    Warning: in_array() expects
   parameter 2 to be array, null given in /…/wp-content/plugins/woo-custom-emails-
   per-product/includes/class-woo-custom-emails-output.php on line 78
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10020838)
 * Is anyone on this thread able to provide a screen recording of how you get this
   error?
 * I’m not able to reproduce it…
 * Thanks in advance!
 *  [paulinho_rus](https://wordpress.org/support/users/paulinho_rus/)
 * (@paulinho_rus)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10021175)
 * There is my screencast [http://take.ms/cPrHM](http://take.ms/cPrHM)
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10021182)
 * Awesome! Thanks so much paulinho_rus. That definitely helps.
 * I’ll see if I can reproduce this and fix it!
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10022088)
 * I am still unable to reproduce this error, using plugin version 2.1.1.
 * See this screencast:
 * [http://alexmustin.com/upload/WooCustomEmails–changing-order-status.mov](http://alexmustin.com/upload/WooCustomEmails–changing-order-status.mov)
 * What plugins do you have installed?
 *  [paulinho_rus](https://wordpress.org/support/users/paulinho_rus/)
 * (@paulinho_rus)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10023314)
 * I turned off all the plug-ins, but nothing has changed 🙁
 *  [acevka](https://wordpress.org/support/users/acevka/)
 * (@acevka)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/bug-on-final-message/#post-10032780)
 * hello, im having the same problem, im using:
    – woocommerce 3.3.2, – WP 4.9.4,
   PHP 5.6.30, – Easy WP SMTP by wpecommerce – 1.3.5 for mail send. – Woo Custom
   Emails Per Product by Alex Mustin – 2.1.0
 * try editing the status of the order in the main list of orders bulk action, and
   inside the order description. got the same error in both case on the mail content.
 * Warning: in_array() expects parameter 2 to be array, null given in /../wp-content/
   plugins/woo-custom-emails-per-product/includes/class-woo-custom-emails-output.
   php on line 78.
    im using a DIVI theme, btw. Any news about this issue?

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/bug-on-final-message/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-on-final-message/page/2/?output_format=md)

The topic ‘BUG ON FINAL MESSAGE’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-custom-emails-per-product_75b5c3.
   svg)
 * [WC Custom Emails Per Product](https://wordpress.org/plugins/woo-custom-emails-per-product/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-custom-emails-per-product/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-custom-emails-per-product/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-custom-emails-per-product/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-custom-emails-per-product/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-custom-emails-per-product/reviews/)

 * 28 replies
 * 8 participants
 * Last reply from: [royrogers](https://wordpress.org/support/users/royrogers/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/bug-on-final-message/page/2/#post-10179266)
 * Status: resolved