• Resolved websiteguyjh

    (@websiteguyjh)


    Hi Team,

    Just a heads up, there seems to be an incompatibility with this plugin and the latest version of WP Forms (Version 1.9.8.7):

    Fatal error: Uncaught TypeError: WPForms_License::notices(): Argument #1 ($below_h2) must be of type bool, null given, called in /home/xxxx/public_html/wp-content/plugins/disable-admin-notices/includes/classes/class-configurate-notices.php on line 237 and defined in /home/xxxx/public_html/wp-content/plugins/wpforms/pro/includes/admin/class-license.php:586 Stack trace: #0 /home/xxxx/public_html/wp-content/plugins/disable-admin-notices/includes/classes/class-configurate-notices.php(237): WPForms_License->notices(NULL) #1 /home/xxxx/public_html/wp-includes/class-wp-hook.php(341): WDN_ConfigHideNotices->catchNotices(”) #2 /home/xxxx/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(Array, Array) #3 /home/xxxx/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #4 /home/xxxx/public_html/wp-admin/admin-header.php(151): do_action(‘admin_print_scr…’) #5 /home/xxxx/public_html/wp-admin/plugins.php(637): require_once(‘/home/xxx…’) #6 {main} thrown in /home/xxxx/public_html/wp-content/plugins/wpforms/pro/includes/admin/class-license.php on line 586

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Stefan Cotitosu

    (@stefancotitosu)

    Hi @websiteguyjh,

    Thanks for letting us know about this.

    I tried to reproduce the issue using the same WPForms version (1.9.8.7) together with Disable Admin Notices individually on a fresh WordPress installation, but I wasn’t able to trigger the error. Everything loaded normally, and no fatal errors appeared.

    Could you let me know if there are any specific steps that lead to the problem, such as creating a form, dismissing a particular notice, or performing another action? That would help us narrow things down.

    From the error message, it looks like the conflict is related to the WPForms license notice. Just to confirm, does this happen when using WPForms Pro and hiding their license-related admin notice?

    Any extra details you can share will help us investigate further.
    Best regards,

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Hi there Stefan,

    Thanks for the response!

    It happens when we have Disable Admin Notices active, and we then try to update the WP Forms plugin to the latest version: 1.9.8.7.

    If we deactivate Disable Admin Notices and update WP Forms to (1.9.8.7) – the site is fine. If we then reactivate Disable Admin Notices, we get the same critical error.

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Hi Stefan, I see you marked this as resolved. Have you released the fix for this issue?

    Plugin Support Stefan Cotitosu

    (@stefancotitosu)

    Hi @websiteguyjh,

    Thanks for following up.

    I tried to reproduce the issue by following the exact steps you mentioned. I enabled both plugins on a fresh WordPress install, installed WPForms version 1.9.8.7, created a form, and then activated Disable Admin Notices Individually, but I wasn’t able to trigger the fatal error. Everything worked as expected on my end.

    At this point, we don’t have a fix released because we’re unable to reproduce the issue. If you can share any additional details about your setup (PHP version, WordPress version, or any other active plugins, the theme used) or specific actions that consistently trigger the error, I’d be happy to investigate further.

    Best regards,

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Can you please try and upgrade or downgrade the WP Forms version and see if you get the error?

    Plugin Support Stefan Cotitosu

    (@stefancotitosu)

    Hi @websiteguyjh,

    Thank you for the suggestion. I did try that as well. I rolled back both plugins (WPForms and Disable Admin Notices Individually), tested different combinations one by one, waited a few hours between changes, and then updated both plugins again to the latest versions. Unfortunately, I’m still not able to reproduce the fatal error on my end.

    At this point, since I can’t consistently reproduce the issue, there isn’t much that I can do from a support perspective. These types of errors are often influenced by specific environment factors (PHP version, WordPress version, other active plugins, theme, or server configuration).

    If you’re able to share more specific details that trigger the issue, I’ll be happy to take another look. Also, if you have a staging site where the problem is replicated but can’t share details publicly here, feel free to reach out to us via our pre-sales contact form at themeisle.com/contact and mention this forum thread so we have the full context.

    Thanks for your understanding, and I’m happy to help further if new information comes up.

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Thanks, Stefan.

    Here are the details for a test/dummy site we have setup that you can use to troubleshoot:

    https://wpshell.com.au/wp-admin
    username: guest
    password: )v3v*TGzNYe8Aa0p0k$DpaKn

    I’ve deactivated all plugins, except wpforms.

    WordPress version 6.9
    The php version is 8.3.28

    Let me know how you go, mate.

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Sorry Stefan, I think I gave you a bit of a bum steer. We’re using WP Forms Pro version ‘1.9.8.7’. You’ll see this in the staging site I send credentials for.

    Thread Starter websiteguyjh

    (@websiteguyjh)

    The bug is on line 246 of class-configurate-notices.php. The code $args[] = null; needs to be changed to $args[] = false; for PHP 8.3 compatibility. The null value is being passed to WPForms Pro’s notices(bool $below_h2) method via call_user_func_array(), which causes a TypeError in PHP 8.3.

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Hey Stefan, did you get a chance to review this?

    I’ve performed the fix manually on a couple of our sites and works a treat!

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Hey mate, have you released an update for this yet?

    Thread Starter websiteguyjh

    (@websiteguyjh)

    Hi Stefan, can I please get an update? It’s been a week since I last heard from you..

    Plugin Support rodicaelena

    (@rodicaelena)

    Hi,

    We apologize for the delayed answer. I’ve checked the site you’ve provided, activated the  Disable Admin Notices plugin at the same time as the WPForms plugin but wasn’t able to see any Fatal error.

    In any case, if you are still encountering issues, please get in touch with us through our Pre-sales channel here https://themeisle.com/contact/, which doesn’t require you to log in. This way, you’d be able to safely share with us the WPForms plugin so we can test this. Please make sure you mention this ticket here.

    P.S. Please edit your previous ticket, to remove your credentials as this is a public forum. Thank you!

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

You must be logged in to reply to this topic.