Title: code/integer errors
Last modified: February 27, 2020

---

# code/integer errors

 *  Resolved [sedlakmatus](https://wordpress.org/support/users/sedlakmatus/)
 * (@sedlakmatus)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/)
 * Hi,
    thanks for effort in making this plugin. Could you please help with an issue?
 * After installing and activating, setting up the cost value for whole shop I’m
   not getting any cost (and profit) calculated. The Cost value in the Profit reports
   is null.
 * On top of that page (Profit reports) i’m getting these errors. Could you advise
   what change to make to that particular file, which is giving following errors?:
 * Warning: array_search() expects parameter 2 to be array, null given in /home/
   customer/www/aromashop.sk/public_html/wp-content/plugins/profit-reports-for-woocommerce/
   admin/partials/wcpr-report.tmpl.php on line 33
 * Warning: A non-numeric value encountered in /home/customer/www/aromashop.sk/public_html/
   wp-content/plugins/profit-reports-for-woocommerce/admin/partials/wcpr-report.
   tmpl.php on line 77
 * Thank you in advance.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [codup](https://wordpress.org/support/users/codup/)
 * (@codup)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/#post-12490989)
 * Hi [@sedlakmatus](https://wordpress.org/support/users/sedlakmatus/) ,
 * Thanks for using our plugin. We are rectifying this issue, I will get back to
   you soon with all the updates.
 * Thank you.
 * Kind Regards,
 * Ahsan Shah
    Business Analyst Codup
 *  [marianssen](https://wordpress.org/support/users/marianssen/)
 * (@marianssen)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/#post-12500721)
 * Same issue here
 *  Plugin Author [codup](https://wordpress.org/support/users/codup/)
 * (@codup)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/#post-12506089)
 * Hi [@marianssen](https://wordpress.org/support/users/marianssen/) ,
 * Thanks for using our plugin. We are rectifying this issue, I will get back to
   you soon with all the updates.
 * Thank you.
 * Kind Regards,
 * Codup
 *  Plugin Author [codup](https://wordpress.org/support/users/codup/)
 * (@codup)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/#post-12516675)
 * Hi [@sedlakmatus](https://wordpress.org/support/users/sedlakmatus/) [@marianssen](https://wordpress.org/support/users/marianssen/),
 * Kindly follow the steps which are mentioned in the description. The order profit
   will only be calculated for completed orders, kindly change your order status
   completed.
 * The warnings are showing due to conflict with other plugins. We have tested and
   didn’t reproduce these warnings, can you send us a reference video so that we
   better understand your issue. If you are comfortable we would like to have your
   WordPress site login credentials so our team can look into it.
 * Thank you.
 * Kind Regards,
 * Codup
 *  [mateusk8](https://wordpress.org/support/users/mateusk8/)
 * (@mateusk8)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/#post-12538249)
 * Hi,
    I have the similar problem.
 * To test, i only installed the wordpress (Version 5.3.2-pt_BR), Woocommerce (Version
   4.0.0) and plugin Codup WooCommerce Profit Reporting, but, the problem remains.
 * Here has a error image: [Error Screen](https://imgur.com/a/angCB8x)
 * Thanks
 *  Plugin Author [codup](https://wordpress.org/support/users/codup/)
 * (@codup)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/code-integer-errors/#post-12540643)
 * Hi [@mateusk8](https://wordpress.org/support/users/mateusk8/) ,
 * Thanks for using our plugin. We are rectifying this issue, I will get back to
   you soon with all the updates.
 * Thank you.
 * Kind Regards,
    Codup
 *  Plugin Author [codup](https://wordpress.org/support/users/codup/)
 * (@codup)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/code-integer-errors/#post-12646639)
 * Hi [@mateusk8](https://wordpress.org/support/users/mateusk8/) [@marianssen](https://wordpress.org/support/users/marianssen/)
   [@sedlakmatus](https://wordpress.org/support/users/sedlakmatus/) ,
 * The issue you’ve reported has been resolved. Kindly check and thanks for using
   our plugin.
 * Thank you.
 * Kind Regards,
    Codup

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘code/integer errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/profit-reports-for-woocommerce_79ae3c.
   svg)
 * [Codup WooCommerce Profit Reporting](https://wordpress.org/plugins/profit-reports-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/profit-reports-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/profit-reports-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/profit-reports-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/profit-reports-for-woocommerce/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [cost](https://wordpress.org/support/topic-tag/cost/)
 * [price](https://wordpress.org/support/topic-tag/price/)

 * 7 replies
 * 4 participants
 * Last reply from: [codup](https://wordpress.org/support/users/codup/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/code-integer-errors/#post-12646639)
 * Status: resolved