Title: Header php warning
Last modified: February 16, 2022

---

# Header php warning

 *  Resolved [Shravan](https://wordpress.org/support/users/shravanbhavyata/)
 * (@shravanbhavyata)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-php-warning/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fheader-php-warning%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Shiprocket](https://wordpress.org/support/users/shiprocket/)
 * (@shiprocket)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-php-warning/#post-15379347)
 * [@shravanbhavyata](https://wordpress.org/support/users/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](https://wordpress.org/support/users/shravanbhavyata/)
 * (@shravanbhavyata)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/header-php-warning/#post-15381424)
 * 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 4 years, 3 months ago by [Shravan](https://wordpress.org/support/users/shravanbhavyata/).

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

The topic ‘Header php warning’ is closed to new replies.

 * ![](https://ps.w.org/shiprocket/assets/icon-256x256.png?rev=2086783)
 * [Shiprocket](https://wordpress.org/plugins/shiprocket/)
 * [Support Threads](https://wordpress.org/support/plugin/shiprocket/)
 * [Active Topics](https://wordpress.org/support/plugin/shiprocket/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shiprocket/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shiprocket/reviews/)

## Tags

 * [cart](https://wordpress.org/support/topic-tag/cart/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shravan](https://wordpress.org/support/users/shravanbhavyata/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/header-php-warning/#post-15381424)
 * Status: resolved