Title: json_encode error
Last modified: September 7, 2017

---

# json_encode error

 *  Resolved [griid](https://wordpress.org/support/users/griid/)
 * (@griid)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/json_encode-error-2/)
 * After latest update of this plugin my website stopped working. To eliminate all
   other possible causes I made fresh WP installation with just CF7 and CF7MSF.
 * When trying to submit step and go to the next one nothing happens and in dev 
   console I can find this:
 * <br />
    <b>Warning</b>: json_encode() expects parameter 2 to be long, string 
   given in <b>/autoinstalator/wordpress3/wp-content/plugins/contact-form-7-multi-
   step-module/contact-form-7-multi-step-module.php</b> on line <b>159</b><br />
   <br /> <b>Warning</b>: Cannot modify header information – headers already sent
   by (output started at /autoinstalator/wordpress3/wp-content/plugins/contact-form-
   7-multi-step-module/contact-form-7-multi-step-module.php:159) in <b>/autoinstalator/
   wordpress3/wp-content/plugins/contact-form-7-multi-step-module/contact-form-7-
   multi-step-module.php</b> on line <b>159</b><br /> <br /> <b>Warning</b>: json_encode()
   expects parameter 2 to be long, string given in <b>/autoinstalator/wordpress3/
   wp-content/plugins/contact-form-7-multi-step-module/contact-form-7-multi-step-
   module.php</b> on line <b>159</b><br /> <br /> <b>Warning</b>: Cannot modify 
   header information – headers already sent by (output started at /autoinstalator/
   wordpress3/wp-content/plugins/contact-form-7-multi-step-module/contact-form-7-
   multi-step-module.php:159) in <b>/autoinstalator/wordpress3/wp-content/plugins/
   contact-form-7-multi-step-module/contact-form-7-multi-step-module.php</b> on 
   line <b>159</b><br /> <br /> <b>Warning</b>: json_encode() expects parameter 
   2 to be long, string given in <b>/autoinstalator/wordpress3/wp-content/plugins/
   contact-form-7-multi-step-module/contact-form-7-multi-step-module.php</b> on 
   line <b>159</b><br /> <br /> <b>Warning</b>: Cannot modify header information–
   headers already sent by (output started at /autoinstalator/wordpress3/wp-content/
   plugins/contact-form-7-multi-step-module/contact-form-7-multi-step-module.php:
   159) in <b>/autoinstalator/wordpress3/wp-content/plugins/contact-form-7-multi-
   step-module/contact-form-7-multi-step-module.php</b> on line <b>159</b><br />
   <br /> <b>Warning</b>: Cannot modify header information – headers already sent
   by (output started at /autoinstalator/wordpress3/wp-content/plugins/contact-form-
   7-multi-step-module/contact-form-7-multi-step-module.php:159) in <b>/autoinstalator/
   wordpress3/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1266</
   b><br /> <br /> <b>Warning</b>: Cannot modify header information – headers already
   sent by (output started at /autoinstalator/wordpress3/wp-content/plugins/contact-
   form-7-multi-step-module/contact-form-7-multi-step-module.php:159) in <b>/autoinstalator/
   wordpress3/wp-includes/rest-api.php</b> on line <b>551</b><br /> <br /> <b>Warning
   </b>: Cannot modify header information – headers already sent by (output started
   at /autoinstalator/wordpress3/wp-content/plugins/contact-form-7-multi-step-module/
   contact-form-7-multi-step-module.php:159) in <b>/autoinstalator/wordpress3/wp-
   includes/rest-api.php</b> on line <b>552</b><br /> <br /> <b>Warning</b>: Cannot
   modify header information – headers already sent by (output started at /autoinstalator/
   wordpress3/wp-content/plugins/contact-form-7-multi-step-module/contact-form-7-
   multi-step-module.php:159) in <b>/autoinstalator/wordpress3/wp-includes/rest-
   api.php</b> on line <b>553</b><br /> <br /> <b>Warning</b>: Cannot modify header
   information – headers already sent by (output started at /autoinstalator/wordpress3/
   wp-content/plugins/contact-form-7-multi-step-module/contact-form-7-multi-step-
   module.php:159) in <b>/autoinstalator/wordpress3/wp-includes/rest-api.php</b>
   on line <b>554</b><br /> {“into”:”#wpcf7-f8-p11-o1″,”status”:”mail_sent”,”message”:”
   Twoja wiadomo\u015b\u0107 zosta\u0142a wys\u0142ana. Dzi\u0119kujemy!”}
 * Any clues what may be the issue and how to fix it?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjson_encode-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [webheadcoder](https://wordpress.org/support/users/webheadllc/)
 * (@webheadllc)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/json_encode-error-2/#post-9477111)
 * This is caused by having an outdated PHP version but i’ve updated the plugin 
   anyway and it should be fixed in version 2.25.
 *  Thread Starter [griid](https://wordpress.org/support/users/griid/)
 * (@griid)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/json_encode-error-2/#post-9477518)
 * Thanks! Changing PHP version in .htaccess did the job.

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

The topic ‘json_encode error’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7-multi-step-module/assets/icon-256x256.png?
   rev=1793363)
 * [Contact Form 7 Multi-Step Forms](https://wordpress.org/plugins/contact-form-7-multi-step-module/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-multi-step-module/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-multi-step-module/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-multi-step-module/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-multi-step-module/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-multi-step-module/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [griid](https://wordpress.org/support/users/griid/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/json_encode-error-2/#post-9477518)
 * Status: resolved