Title: bpost&#8217;s shm.js returns json parse error
Last modified: December 29, 2016

---

# bpost’s shm.js returns json parse error

 *  Resolved [succli](https://wordpress.org/support/users/succli/)
 * (@succli)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/bposts-shm-js-returns-json-parse-error/)
 * Hi,
 * I’m using bpost plugin for my sites WooCommerce shop. WordPress and all plugins
   are updated to the new ones.
 * On checkout page I see this error on console:
 *     ```
       Uncaught SyntaxError: Unexpected token u in JSON at position 0
           at JSON.parse (<anonymous>)
           at shm.js?ver=2.2.3:6
       (index):1 Uncaught SyntaxError: Unexpected token r in JSON at position 0
           at JSON.parse (<anonymous>)
           at shm.js?ver=2.2.3:6
       ```
   
 * Url: [http://sweetid.wrc-test.be/](http://sweetid.wrc-test.be/)
    php version:
   7.0.8
 * I thought this console error might be the cause of the problem, but on the other
   test server [http://sweetid.dev.e-vista.hu/](http://sweetid.dev.e-vista.hu/) 
   there’s the same console error, but after I click on submit on checkout the bpost
   popup fades in.
    php version: 5.5.9
 * Can the cause of the problem be based on the php version?

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

 *  Plugin Author [slegrand.antidot](https://wordpress.org/support/users/slegrandantidot/)
 * (@slegrandantidot)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/bposts-shm-js-returns-json-parse-error/#post-8613576)
 * You mean it works fine on both environments, except you face an error in the 
   console ?
    Note that plugin was developed in PHP 5.6, with compatibility guaranteed
   for 5.3 and of course now PHP 7
 *  Plugin Author [slegrand.antidot](https://wordpress.org/support/users/slegrandantidot/)
 * (@slegrandantidot)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/bposts-shm-js-returns-json-parse-error/#post-8747263)
 * Hello, some news ?
 *  Plugin Author [slegrand.antidot](https://wordpress.org/support/users/slegrandantidot/)
 * (@slegrandantidot)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/bposts-shm-js-returns-json-parse-error/#post-9074354)
 * Considering there is no more update for several months, we can assume the issue
   is fixed.

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

The topic ‘bpost’s shm.js returns json parse error’ is closed to new replies.

 * ![](https://ps.w.org/bpost-shipping/assets/icon.svg?rev=1295936)
 * [bpost shipping](https://wordpress.org/plugins/bpost-shipping/)
 * [Support Threads](https://wordpress.org/support/plugin/bpost-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/bpost-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bpost-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bpost-shipping/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [slegrand.antidot](https://wordpress.org/support/users/slegrandantidot/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/bposts-shm-js-returns-json-parse-error/#post-9074354)
 * Status: resolved