Skip Navigation

[Resolved] Legacy plugin support for PHP 8.1

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by Minesh 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2678708

I am trying to:
Upgrade to 8.1

Link to a page where the issue can be seen:
hidden link

This is a 2018 site that is being updated and is in use. Uses Layouts. I realise that some parts of toolset are not yet fully compatible with PHP 8.1, 8.2. I'm wondering about ongoing support for Layouts and the Toolset Views plugin, which seem to have caused the bulk of these deprecation warnings - I am not sure when these will become errors.

Tested in Troubleshooting mode with theme and all other plugins off, to trace it to the following Toolset components.

Layouts & Toolset Views both return this warning:

Deprecated: Return type of Toolset_Theme_Integration_Settings_Model_Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/xxxxx/test/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/models/toolset-theme-integration-settings-model-collection.php on line 14

Deprecated: Return type of Toolset_Theme_Integration_Settings_Model_Abstract::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/xxxxx/test/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/models/toolset-theme-integration-settings-model-abstract.php on line 95

Layouts also returns this numerous times.

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/xxxxx/test/wp-content/plugins/wp-views/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55

Thank you,
Peter

#2678722

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Just to ensure that those "Deprecated" notices are when only Toolset plugins are installed.

Could you please try to deactivate all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

- Do you see the same deprecated notices while only Toolset plugins installed and activated or few notices are there when other plugin/theme are installed and activated.

Can you please check with first steps what "Deprecated" notices you see when only Toolset plugins active with PHP 8.1.x and 8.2.x as well as what other or addon notices "Deprecated" notices you see with other theme and plugins active.

#2679343

Hi Minesh,

Thanks for your response.

The warnings should be displaying now on the site at the hidden link - all non Toolset plugins off and 2024 default theme activated. I have left it at PHP8.1.

The Theme Integration Settings warning has gone. We were using the Astra theme (parent theme v 4.3.1). The plugin activation issue has also gone.

This warning remains when Layouts is enabled.

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/xxxxx/test/wp-content/plugins/wp-views/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55

I have found some new deprecation warnings.

In Edit Post (Classic or block editor), 14 times per post:
Deprecated: ctype_digit(): Argument of type WP_Post will be interpreted as string in the future in /home/xxxxx/test/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/factory.php on line 134

Also the following warning appears for images placed using layouts, custom-sized to 600px.
Warning: file_put_contents(hidden link): Failed to open stream: HTTP wrapper does not support writeable connections in /home/xxxxx/test/wp-includes/class-wp-image-editor-imagick.php on line 860

With PHP 8.2 (EA) I get the following extra deprecation warnings.

Deprecated: Creation of dynamic property WPToolset_Localization::$textdomain is deprecated in /home/xxxxx/test/wp-content/plugins/toolset-module-manager/common/localization/wpt-localization.php on line 35

Deprecated: Creation of dynamic property WPToolset_Localization::$path is deprecated in /home/xxxxx/test/wp-content/plugins/toolset-module-manager/common/localization/wpt-localization.php on line 36

Deprecated: Creation of dynamic property WPToolset_Localization::$mo_name is deprecated in /home/xxxxx/test/wp-content/plugins/toolset-module-manager/common/localization/wpt-localization.php on line 37

Deprecated: Creation of dynamic property WPToolset_Localization::$mo_processed_name is deprecated in /home/xxxxx/test/wp-content/plugins/toolset-module-manager/common/localization/wpt-localization.php on line 38

Deprecated: Creation of dynamic property OTGS\Toolset\CRED\Controller\ExpirationManager\Post\Action::$manager is deprecated in /home/xxxxx/test/wp-content/plugins/cred-frontend-editor/application/controllers/expiration_manager/post/action.php on line 26

Deprecated: Creation of dynamic property WPDD_json2layout::$layout_factory is deprecated in /home/xxxxx/test/wp-content/plugins/layouts/classes-auto/wpddl.json2layout.class.php on line 69

Deprecated: Creation of dynamic property WPDD_layout_row::$css_id is deprecated in /home/xxxxx/test/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php on line 445

Deprecated: Creation of dynamic property WPDD_layout_row::$tag is deprecated in /home/xxxxx/test/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php on line 449

Deprecated: Creation of dynamic property WPDD_layout_row::$layout_type is deprecated in /home/xxxxx/test/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php on line 619

Deprecated: Creation of dynamic property WPDD_layout_row::$mode is deprecated in /home/xxxxx/test/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php on line 532

Deprecated: Creation of dynamic property WPDD_layout_row::$containerPadding is deprecated in /home/xxxxx/test/wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php on line 533

(these warnings repeat on archive templates)

#2679626

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've shared all those deprecated noticed you shared to our next level support. They will report it in front of our Devs and we will try to fix as soon as we can.

Please note that there is no ETA on when the fix for those deprecated noticed will be added.

#2679726

Thanks Minesh, understood.

#2679783

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You are welcome to close the ticket.

#2683353

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I would like to inform you that the fix for the deprecated notices are released. Please update ALL Toolset plugins to latest official release version.
- https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-update-requires-registration

More info:
- https://toolset.com/2024/02/toolset-1-6-12-improved-levels-of-control-compatibility-and-speed/