Skip Navigation

[Resolved] PHP 8.0.5 and Toolset Layout error

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.

This topic contains 2 replies, has 2 voices.

Last updated by raivoK 3 months, 3 weeks ago.

Assigned support staff: Waqar.

Author
Posts
#2067475

Wordpress Versioon 5.7.2
Toolset Layout Versioon 2.6.10
And other toolset plugins latest.

If I trying to edit the page in backend, i got error:

Site frontend working ok.

File /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/lib/adodb-time.inc.php in the row 1048 have error E_ERROR. Errorcode: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/lib/adodb-time.inc.php:1048
Stack trace:
#0 /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/lib/adodb-time.inc.php(1048): abs()
#1 /var/www/domain.com/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields/date.php(320): adodb_date()
#2 /var/www/domain.com/wp-includes/class-wp-hook.php(287): wpcf_fields_date_value_get_filter()
#3 /var/www/domain.com/wp-includes/plugin.php(212): WP_Hook->apply_filters()
#4 /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/toolset-forms/classes/class.field_factory.php(92): apply_filters()
#5 /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/toolset-forms/classes/class.date.php(59): FieldFactory->getValue()
#6 /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/toolset-forms/classes/class.form_factory.php(287): WPToolset_Field_Date->metaform()
#7 /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/toolset-forms/bootstrap.php(66): FormFactory->metaform()
#8 /var/www/domain.com/wp-content/plugins/layouts/vendor/toolset/toolset-common/toolset-forms/api.php(25): WPToolset_Forms_Bootstrap->field()
#9 /var/www/domain.com/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields-post.php(255): wptoolset_form_field()
#10 /var/www/domain.com/wp-content/plugins/types/vendor/toolset/types/embedded/admin.php(106): wpcf_add_meta_boxes()
#11 /var/www/domain.com/wp-includes/class-wp-hook.php(287): wpcf_admin_add_meta_boxes()
#12 /var/www/domain.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#13 /var/www/domain.com/wp-includes/plugin.php(484): WP_Hook->do_action()
#14 /var/www/domain.com/wp-admin/includes/meta-boxes.php(1578): do_action()
#15 /var/www/domain.com/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes()
#16 /var/www/domain.com/wp-admin/post.php(206): require('...')
#17 {main}
  thrown

but not all pages have this error.

If i change PHP back to 7.4 - all working correctly again, no errors.

Thank You!

Edited:
Seems, that it is related to the date field.
All site is imported from drupal and and some pages I haven’t gone through yet ( if i use php 7), date format is not corrected and in the database have wrong date format.
Then gives this error message if i try use php 8.

#2068525

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

Compatibility testing is underway for all Toolset plugins with PHP 8 and for now, we recommend not to use it:
https://toolset.com/toolset-requirements/

Once this is completed, we'll update the server requirements accordingly.

regards,
Waqar

#2068609

Thank you!