Title: Error using function.php
Last modified: September 6, 2020

---

# Error using function.php

 *  Resolved [DTH Connect](https://wordpress.org/support/users/dthsolutionshb/)
 * (@dthsolutionshb)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error-using-function-php/)
 * Hi,
 * I am getting below error for the first time. Before that the same function was
   running fine. How to fix that issue?
 * <br /><b>Notice</b>: A non well formed numeric value encountered in <b>/home/
   handlanu/public_html/wp-content/uploads/wpallimport/functions.php</b> on line
   <b>20</b><br />934
 * On line 20 we have the following
 * 19 function FruugoEldom10( $price = null, $kr = null , $profitper = null ) {
   
   20 return ( ceil(( $price* $kr )/(0.6853-$profitper/100))); 21 }
 * Kind regards
    Moeen

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error-using-function-php/#post-13384487)
 * Hi [@dthsolutionshb](https://wordpress.org/support/users/dthsolutionshb/),
 * > I am getting below error for the first time. Before that the same function 
   > was running fine. How to fix that issue?
 * You should add some logging in the code to find out what’s in the $price, $kr
   and $profitper variables when it errors. It sounds like one of them has non-numeric
   data.
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error-using-function-php/#post-13435490)
 * [@dthsolutionshb](https://wordpress.org/support/users/dthsolutionshb/),
 * I’m marking this as resolved since we haven’t heard back. You can follow up here
   if you still have questions.
 * Anyone else reading this, please start a new topic.

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

The topic ‘Error using function.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/error-using-function-php/#post-13435490)
 * Status: resolved