Skip Navigation

[Resolved] Deprecation Notices with PHP8.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 3 replies, has 2 voices.

Last updated by Minesh 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2516925

I am trying to: Update sites using Toolset plugins to use PHP8.1

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

I expected to see: No deprecation notices

Instead, I got: Deprecation notices

Hello,

As discussed with Dario here - https://toolset.com/2022/12/toolset-1-6-4-compatibility-with-wordpress-6-1-and-bug-fixes/#comment-829521 - just creating this ticket to mention these notices.

I've left this dev site as is for now, so you can see it - hidden link

This site has:
- WordPress 6.1.1
- Types 3.4.17
- WP Views 3.6.5

These are all the latest available at the time of writing. As you can see, the following deprecation notices are presented:

Deprecated: Return type of WPV_Settings::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/wp-views/embedded/inc/wpv-settings.class.php on line 375

Deprecated: Return type of WPV_Settings::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/wp-views/embedded/inc/wpv-settings.class.php on line 386

Deprecated: Return type of WPV_Settings::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/wp-views/embedded/inc/wpv-settings.class.php on line 401

Deprecated: Return type of WPV_Settings::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/wp-views/embedded/inc/wpv-settings.class.php on line 411

Deprecated: Return type of Toolset_Settings::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.settings.class.php on line 231

Deprecated: Return type of Toolset_Settings::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.settings.class.php on line 243

Deprecated: Return type of Toolset_Settings::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.settings.class.php on line 258

Deprecated: Return type of Toolset_Settings::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<my-server-path>/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.settings.class.php on line 268

Hopefully these can all be taken care of!

#2516995

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

This is known to us and I already reported the issue you shared.

All those are deprecated notices that will not cause any issue to run your site. However, as shared, I already reported the issue to concern department and they will take are of it but please note that there is no ETA on it when we release the hotfix version that contain the fix that should resolve this issue.

You are welcome to close the ticket and I'll report back here when the fix is added to our plugins.

#2518589

Hi Minesh,

Thanks, I know that they don't cause issues for the functionality of the site, but if you are doing dev work with WP_DEBUG on then it's not easy to work on the front end with these and wp-admin is unusable.

So, I understand they're not top priority and not expecting an immediate fix, but just wanted to say for the record that they do cause a problem.

Thanks,

#2519189

Minesh
Supporter

Languages: English (English )

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

Thank you for your understanding. We already reported the issue and I'll update you here when official fix will be released for this issue.

you are welcome to close this ticket.