Skip Navigation

[Resolved] PHP Warning

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

Problem:

I get this warning message:

PHP Deprecated: Required parameter $in follows optional parameter $method

Solution:

The warning will not prevent the normal work of Toolset but Toolset is not compatible with PHP version 8 yet.

Our dev guys working around the clock to make it compatible.

This support ticket is created 2 years, 9 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.

This topic contains 4 replies, has 2 voices.

Last updated by jelle-jacobd 2 years, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2301053

Hi,

I found these errors in debug.log for this website. What should I do?

[23-Feb-2022 13:08:49 UTC] PHP Deprecated: Required parameter $in follows optional parameter $method in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks.old/embedded/inc/wpv-query-debug.class.php on line 417
[23-Feb-2022 13:08:49 UTC] PHP Deprecated: Required parameter $meta_type follows optional parameter $view_settings in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks.old/inc/filters/wpv-filter-meta-field.php on line 155
[23-Feb-2022 13:08:49 UTC] PHP Deprecated: Required parameter $meta_type follows optional parameter $view_settings in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks.old/inc/filters/wpv-filter-meta-field.php on line 501
[23-Feb-2022 13:08:49 UTC] PHP Deprecated: Required parameter $wpv_found_items follows optional parameter $context in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks.old/inc/wpv-listing-common.php on line 266
[23-Feb-2022 13:08:49 UTC] PHP Deprecated: Required parameter $meta_type follows optional parameter $view_settings in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks.old/embedded/inc/wpv-summary-embedded.php on line 1772
[23-Feb-2022 13:08:51 UTC] PHP Deprecated: Required parameter $field follows optional parameter $post in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/includes/api.php on line 405
[23-Feb-2022 13:17:01 UTC] PHP Deprecated: Required parameter $item follows optional parameter $type in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.wpcf.roles.php on line 274

Br, Jelle

#2301677

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I checked the notice and it is a deprecation notice from PHP. That does not mean there is an error, but a message that in the future version of PHP things will not work.

But what I see is that the source of the error is coming from a folder in wp-content/plugins/toolset-blocks.old

So it seems that you had an old version of the Toolset Blocks plugin that you renamed somehow and now have another version?

I suggest that you backup your website and access your website with FTP and clean up those folders to make sure you have the correct version of the plugin loaded.

Thank you

#2301707

Hi Christopher,

Thanks, seems like there was indeed an older version installed. Not sure how this has happened. I also noticed with the new version of the plugin the notification remains?

[24-Feb-2022 07:13:56 UTC] PHP Deprecated: Required parameter $in follows optional parameter $method in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks/embedded/inc/wpv-query-debug.class.php on line 417
[24-Feb-2022 07:13:56 UTC] PHP Deprecated: Required parameter $meta_type follows optional parameter $view_settings in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks/inc/filters/wpv-filter-meta-field.php on line 155
[24-Feb-2022 07:13:56 UTC] PHP Deprecated: Required parameter $meta_type follows optional parameter $view_settings in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks/inc/filters/wpv-filter-meta-field.php on line 501
[24-Feb-2022 07:13:56 UTC] PHP Deprecated: Required parameter $wpv_found_items follows optional parameter $context in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks/inc/wpv-listing-common.php on line 266
[24-Feb-2022 07:13:56 UTC] PHP Deprecated: Required parameter $meta_type follows optional parameter $view_settings in /var/www/vhosts/light4u.io/httpdocs/wp-content/plugins/toolset-blocks/embedded/inc/wpv-summary-embedded.php on line 1772

Can I leave this as it is?

Br, Jelle

#2302063

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you. The deprecation warning that you see is due to the fact that Toolset is not yet compatible with PHP 8.X.

That is why it warns that future releases will break.

We are aware of this and our dev team is working hard to make Toolset compatible to PHP version 8.

After that, you will not see the warning.

Thank you.

#2302161

My issue is resolved now. Thank you!