Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

ChronoForms issues with PHP 8.x and WordPress

antsal 28 Oct, 2022
Hello, I'm currently trying to get CF7 to work with PHP 8 or higher and WordPress. Unfortunately when using CF7 with PHP 8.0, 8.1 or 8.2 I get a bunch of errors and warnings from PHP and the form in WordPress looks wrong. This is the error in the wrong looking form:

Fatal error: Uncaught TypeError: vsprintf(): Argument #2 ($values) must be of type array, string given in /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/lang.php:25 Stack trace: #0 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/lang.php(25): vsprintf('Select image of...', '%s') #1 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/gcloader.php(50): G3\L\Lang::_('Select image of...', '%s', false) #2 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/views/field_secicon/field_secicon.php(16): rl3('Select image of...', '%s') #3 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/themes/default/views/connections/draggables2.php(18): require('/home/customer/...') #4 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/view.php(261): include('/home/customer/...') #5 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/view.php(333): G3\L\View->_contents('/home/customer/...', Array) #6 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/themes/default/views/connections/dragndrop_forms.php(68): G3\L\View->view('/home/customer/...') #7 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/view.php(261): include('/home/customer/...') #8 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/view.php(333): G3\L\View->_contents('/home/customer/...', Array) #9 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/themes/default/views/connections/edit.php(115): G3\L\View->view('/home/customer/...') #10 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/view.php(261): include('/home/customer/...') #11 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/view.php(217): G3\L\View->_contents('/home/customer/...') #12 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/app.php(248): G3\L\View->renderView('edit') #13 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/app.php(78): G3\L\App->dispatch(true) #14 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/app_loader.php(61): G3\L\App::call('admin', 'chronoforms', 'connections', 'edit', Array) #15 /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronoforms.php(200): G3\L\AppLoader->__construct(Array) #16 /home/customer/www/conrad.pp-showroom.de/public_html/wp-includes/class-wp-hook.php(307): Chronoforms->cf7_admin('') #17 /home/customer/www/conrad.pp-showroom.de/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #18 /home/customer/www/conrad.pp-showroom.de/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #19 /home/customer/www/conrad.pp-showroom.de/public_html/wp-admin/admin.php(175): do_action('admin_init') #20 /home/customer/www/conrad.pp-showroom.de/public_html/wp-admin/index.php(10): require_once('/home/customer/...') #21 {main} thrown in /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/chronog3/libs/lang.php on line 25


The other errors im getting when submitting the form are:

Warning: Array to string conversion in /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/helpers/parser2.php on line 126

Warning: Undefined variable $mail in /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/functions/php/php_output.php(6) : eval()'d code on line 8

Warning: Array to string conversion in /home/customer/www/conrad.pp-showroom.de/public_html/wp-content/plugins/chronoforms/admin/chronoforms/helpers/parser2.php on line 126

When using PHP 7.4 none of these errors happen and the form looks right. Any help or advice would be much appreciated.
antsal 31 Oct, 2022
Also when trying to create a new Form with PHP 8 in WordPress the form builder looks like a complete mess.
You need to login to be able to post a reply.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com