Title: json_encode error
Last modified: August 21, 2016

---

# json_encode error

 *  Resolved [iHanky](https://wordpress.org/support/users/ihanky/)
 * (@ihanky)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/json_encode-error/)
 * Sorry to bother you again but I got a PHP Warning saying that 2 parameters were
   given where 1 was expected (in line 25) in ‘post-process.php’ in the display 
   includes>display>processing-folder
    I cut the line back to: `$json = json_encode(
   array( 'form_id' => $form_id, 'errors' => $errors, 'success' => $success, 'fields'
   => $fields, 'form_settings' => $form_settings, 'extras' => $extras ) );` and 
   it worked. Just wondered if it is the right solution.
 * Tnx Henk
 * (BTW this does not result in my ‘required field’ problem, tried that with the
   original php-file)
 * [http://wordpress.org/extend/plugins/ninja-forms/](http://wordpress.org/extend/plugins/ninja-forms/)

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

 *  Plugin Author [Kevin Stover](https://wordpress.org/support/users/kstover/)
 * (@kstover)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/json_encode-error/#post-3675219)
 * Hey Henk,
 * I have a fix for this that will be released on Monday. It is caused by your version
   of PHP being lower than 5.3.
 *  Thread Starter [iHanky](https://wordpress.org/support/users/ihanky/)
 * (@ihanky)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/json_encode-error/#post-3675223)
 * Ok tnx a lot.

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

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

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [iHanky](https://wordpress.org/support/users/ihanky/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/json_encode-error/#post-3675223)
 * Status: resolved