• Resolved Shravan

    (@shravanbhavyata)


    Hello!!

    I recently added shiprocket to my website as it is live and we need it to calculate the realtime shipping prices.

    And today I published a product on the website with all the dimensions and proper weight of the product.

    So to check out the functionality of the plugin I test runned the product and there was this PHP warning popping up

    Warning: A non-numeric value encountered in /home/customer/www/bilvavan.in/public_html/wp-content/plugins/shiprocket/includes/class-shiprocket-woocommerce-shipping-method.php on line 178
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/bilvavan.in/public_html/wp-content/plugins/shiprocket/includes/class-shiprocket-woocommerce-shipping-method.php:178) in /home/customer/www/bilvavan.in/public_html/wp-includes/pluggable.php on line 1355

    I tried to search out the culprit by scanning out if there was any unnecessary white space or the closing tag of the PHP code is not properly placed but that wasn’t the case at all. I need your help to overcome this problem as when the product is added to the cart this shows up every time and this may leave a very unprofessional mark on our organisation.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shiprocket

    (@shiprocket)

    @shravanbhavyata Please update the code in wp-config.php file.
    define(‘WP_DEBUG’, true);
    change this to
    define(‘WP_DEBUG’, false);
    And this will resolve this issue.

    Thanks and regards,
    Shiprocket support

    Thread Starter Shravan

    (@shravanbhavyata)

    Hello!

    Thanks for your help ??

    I checked up on the wp-config file and the DEBUG mode is already set to false by default. But the problem still exists.

    But I guess this is to hide the php warning from the panel. But what if I want to solve it how’s that possible to do? Can you help me with that too?

    • This reply was modified 3 years, 1 month ago by Shravan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header php warning’ is closed to new replies.