• Resolved dthsolutionshb

    (@dthsolutionshb)


    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

    (@wpallimport)

    Hi @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

    (@wpallimport)

    @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.