• Resolved carterlando

    (@carterlando)


    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

    (@ronalfy)

    @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

    (@carterlando)

    Thanks for the quick reply, Ronald.
    I’m on the latest version of WP, PHP 8.2.8
    This is the error:

    [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

    (@ronalfy)

    @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

    (@carterlando)

    Thanks Ronald,

    That’s impressive response time ?? I will check it out and get back to you.

    Thread Starter carterlando

    (@carterlando)

    @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

    The error: https://prnt.sc/fz80kEbddx4T

    • This reply was modified 1 year, 1 month ago by carterlando.
    Plugin Author Ronald Huereca

    (@ronalfy)

    @carterlando,

    I have fixed this in 2.0.15. I apologize about the error.

    Thread Starter carterlando

    (@carterlando)

    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.