Title: 500 Error when using Ninja Forms
Last modified: October 20, 2023

---

# 500 Error when using Ninja Forms

 *  Resolved [carterlando](https://wordpress.org/support/users/carterlando/)
 * (@carterlando)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/)
 * Hi. I just tried to update your plugin from v1.9 to the latest version but I’m
   having a compatibility issue.
 * I tested this with a fresh WordPress install and I narrowed it down to Ninja 
   Forms. If this plugin is enabled, then saving any Ajaxify Comments options in
   the backend fails with ‘Request failed with status code 500’
   Can you please look
   into this and fix it if possible? Thanks!

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

 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17138838)
 * [@carterlando](https://wordpress.org/support/users/carterlando/),
 * For the 500 error, can you please check your error logs and let me know which
   PHP error you are receiving? I’ve tried the Ninja Forms free version and there
   doesn’t appear to be a conflict.
 *  Thread Starter [carterlando](https://wordpress.org/support/users/carterlando/)
 * (@carterlando)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17138939)
 * Thanks for the quick reply, Ronald.
   I’m on the latest version of WP, PHP 8.2.8This
   is the error:
 *     ```wp-block-code
       [20-Oct-2023 14:38:30 UTC] PHP Fatal error:  Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-content\plugins\ninja-forms\includes\AJAX\Controllers\Submission.php:21
   
       Stack trace:
   
       #0 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-content\plugins\ninja-forms\includes\AJAX\Controllers\Submission.php(21): json_decode(Array, true)
   
       #1 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-content\plugins\ninja-forms\ninja-forms.php(294): NF_AJAX_Controllers_Submission->__construct()
   
       #2 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-content\plugins\ninja-forms\ninja-forms.php(1152): Ninja_Forms::instance()
   
       #3 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-content\plugins\ninja-forms\ninja-forms.php(1155): Ninja_Forms()
   
       #4 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-settings.php(462): include_once('C:\\Users\\Cata\\L...')
   
       #5 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-config.php(110): require_once('C:\\Users\\Cata\\L...')
   
       #6 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-load.php(50): require_once('C:\\Users\\Cata\\L...')
   
       #7 C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-admin\admin-ajax.php(22): require_once('C:\\Users\\Cata\\L...')
   
       #8 {main}
   
         thrown in C:\Users\Cata\Local Sites\wordpress-default\app\public\wp-content\plugins\ninja-forms\includes\AJAX\Controllers\Submission.php on line 21
       ```
   
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17139113)
 * [@carterlando](https://wordpress.org/support/users/carterlando/)
 * I’ve just released 2.0.14, which should resolve the fatal error.
 * This error was caused because Ajaxify and Ninja Forms both used the same `formData`
   post variable. Since Ninja Forms isn’t expecting the form data it receives, it
   errors out.
 * I’ve renamed `formData` to `ajaxifyFormData` in order to prevent further conflicts.
 * If you have a moment, please consider leaving a rating/review.
 * Thanks,
 * Ronald
 *  Thread Starter [carterlando](https://wordpress.org/support/users/carterlando/)
 * (@carterlando)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17144094)
 * Thanks Ronald,
 * That’s impressive response time 🙂 I will check it out and get back to you.
 *  Thread Starter [carterlando](https://wordpress.org/support/users/carterlando/)
 * (@carterlando)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17146122)
 * [@ronalfy](https://wordpress.org/support/users/ronalfy/) I confirm that the above
   issue is fixed.
 * However, I have another one. This was working fine before the update to the v2
   version. It’s about the OnAfterPostComment Callback
 * My input: [https://prnt.sc/82sSMITzJrwD](https://prnt.sc/82sSMITzJrwD)
 * The error: [https://prnt.sc/fz80kEbddx4T](https://prnt.sc/fz80kEbddx4T)
    -  This reply was modified 2 years, 7 months ago by [carterlando](https://wordpress.org/support/users/carterlando/).
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17146991)
 * [@carterlando](https://wordpress.org/support/users/carterlando/),
 * I have fixed this in 2.0.15. I apologize about the error.
 *  Thread Starter [carterlando](https://wordpress.org/support/users/carterlando/)
 * (@carterlando)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17163376)
 * It’s all good now. Fixed and working. Thanks!

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

The topic ‘500 Error when using Ninja Forms’ is closed to new replies.

 * ![](https://ps.w.org/wp-ajaxify-comments/assets/icon-256x256.png?rev=2962290)
 * [Ajaxify Comments - Ajax and Lazy Loading Comments](https://wordpress.org/plugins/wp-ajaxify-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ajaxify-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ajaxify-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ajaxify-comments/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [carterlando](https://wordpress.org/support/users/carterlando/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/500-error-when-using-ninja-forms/#post-17163376)
 * Status: resolved