Skip Navigation

[Resolved] Issue With Forms Plugin in PHP 8

This thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to use Forms in a PHP 8 site but I see a Fatal Error:

An error of type E_ERROR was caused in line 437 of the file /path/to/site/wp-content/plugins/cred-frontend-editor/application/views/dialogs/shortcodes/cred-relationship-form.phtml. Error message: Uncaught ValueError: Unknown format specifier "S" in /path/to/site/wp-content/plugins/cred-frontend-editor/application/views/dialogs/shortcodes/cred-relationship-form.phtml:437
Stack trace:
#0 /path/to/site/wp-content/plugins/cred-frontend-editor/application/views/dialogs/shortcodes/cred-relationship-form.phtml(437): sprintf()
#1 /path/to/site/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/files.php(99): include('...')
#2 /path/to/site/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/renderer/renderer.php(136): Toolset_Files->get_include_file_output()
#3 /path/to/site/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/renderer/renderer.php(110): Toolset_Renderer->render_phtml_template()
#4 /path/to/site/wp-content/plugins/cred-frontend-editor/application/controllers/shortcode_generator.php(942): Toolset_Renderer->render()
#5 /path/to/site/wp-content/plugins/cred-frontend-editor/application/controllers/shortcode_generator.php(916): CRED_Shortcode_Generator->render_dialog_templates()
#6 /path/to/site/wp-includes/class-wp-hook.php(292): CRED_Shortcode_Generator->render_footer_dialogs()
#7 /path/to/site/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#8 /path/to/site/wp-includes/plugin.php(484): WP_Hook->do_action()
#9 /path/to/site/wp-admin/admin-footer.php(78): do_action()
#10 /path/to/site/wp-admin/post.php(369): require_once('...')
#11 {main}

Solution: Our developers are in the process of adding support for PHP 8. This issue has been reported and we will resolve the problem in upcoming releases of the Toolset suite.

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by jeremyP-3 3 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1987729

I am having some issues with your Forms Add-On... Every time I try to activate this specific plug-in, I get the following fatal WordPress error. I have tried disabling all extra plug-ins, along with switching between multiple themes, with no luck so far.

Error Details
=============
An error of type E_ERROR was caused in line 437 of the file /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/application/views/dialogs/shortcodes/cred-relationship-form.phtml. Error message: Uncaught ValueError: Unknown format specifier "S" in /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/application/views/dialogs/shortcodes/cred-relationship-form.phtml:437
Stack trace:
#0 /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/application/views/dialogs/shortcodes/cred-relationship-form.phtml(437): sprintf()
#1 /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/files.php(99): include('...')
#2 /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/renderer/renderer.php(136): Toolset_Files->get_include_file_output()
#3 /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/renderer/renderer.php(110): Toolset_Renderer->render_phtml_template()
#4 /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/application/controllers/shortcode_generator.php(942): Toolset_Renderer->render()
#5 /var/www/html/casvision.farmchem.com/wp-content/plugins/cred-frontend-editor/application/controllers/shortcode_generator.php(916): CRED_Shortcode_Generator->render_dialog_templates()
#6 /var/www/html/casvision.farmchem.com/wp-includes/class-wp-hook.php(292): CRED_Shortcode_Generator->render_footer_dialogs()
#7 /var/www/html/casvision.farmchem.com/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#8 /var/www/html/casvision.farmchem.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#9 /var/www/html/casvision.farmchem.com/wp-admin/admin-footer.php(78): do_action()
#10 /var/www/html/casvision.farmchem.com/wp-admin/post.php(369): require_once('...')
#11 {main}
thrown

Basic Site Info:
WordPress version 5.7
Current theme: Child Theme (version 1.0.0)
Current plugin: Toolset Forms (version 2.6.6)
PHP version 8.0.2

#1988167

Hi, we have plans to support PHP 8, but that work is currently in progress. This specific Fatal Error in PHP 8 has been reported already. We have an internal ticket in place to address the problem, and I will connect your ticket to that main bug tracker so I can give you updates as work progresses. I'll let you know when I have more information to share about the compatibility problem.

In the meantime, the only known workaround at this point is to downgrade to PHP 7.x while our team works to resolve this problem and others that arose with the latest PHP version.

#1988231

Ah, gotcha. Thanks for the heads up!