Latest Update – Critical Error

[ad_1]

Please provide more details. What’s the error you are getting exactly? Depending on your host settings you would see it displayed or saved to the PHP error file.

Also please confirm the embedding method that you are using.

I also got a critical error that took out our website. Rolling back fixed it. Here is the error:

Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in wp-includes/shortcodes.php:150 Stack trace: #0  wp-includes/shortcodes.php(150): str_contains() #1 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(424): has_shortcode() #2 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(503): Fresh_Forms_For_Gravity->find_gf_shortcode() #3 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(406): Fresh_Forms_For_Gravity->find_gf_acf_field() #4 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(621): Fresh_Forms_For_Gravity->check_gf() #5 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(643): Fresh_Forms_For_Gravity->exclude_the_post() #6 wp-includes/class-wp-hook.php(324): Fresh_Forms_For_Gravity->fresh_content() #7 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 wp-includes/plugin.php(517): WP_Hook->do_action() #9 wp-includes/template-loader.php(13): do_action() #10 wp-blog-header.php(19): require_once('/home/649545.cl...') #11 index.php(17): require('/home/649545.cl...') #12 {main} thrown in wp-includes/shortcodes.php on line 150

@lamordnt Thanks for the error message, I’m unable to replicate it in my test sites. I have been using the latest version for a few days before the release.

Can you please confirm the following details?
PHP version.
WordPress version.
Embedding method used to embed the form.

We received the standard WP critical error message. I have since removed the plugin from the site until this can be resolved so I do not have the exact error message as Chris was able to provide.

It is 100% an issue related to the plugin update, but it may be some conflict with the update and an existing plugin?

We embed the forms using Elementor. Perhaps there is some conflict with Elementor?

Thank you for your quick response. 🙂

WP 6.4.3
Elementor v3.19.4
Elementor Pro v3.19.3
PHP 8.2

All plugins are updated to the latest version.

@bradyjosephmills Are you adding the form shortcode directly into an Elementor widget or maybe using an ACF field for it? If so, please confirm which ACF field you use.

This is being added into our pages directly through the Elementor toolbar using Essential Addons for Elementor Pro Version 5.8.9

I don’t have access to the pro version of Essential Addons for Elementor, but I tried the Gravity Forms widget provided by the Lite version and there’s no issue.

It sounds to me like some kind of conflict because in the end the problem is that the post content that Fresh Forms is receiving to check if there’s a GF shortcode is an array when it should be a string. I’m unable to replicate this scenario, but in any case I have deployed a new version of Fresh Forms (1.4.16), that should prevent the fatal error in that scenario.

Thanks for your cooperation guys, I really appreciate it.

Thank you for looking into it, Samuel! 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer