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
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
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
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.
My issue is resolved now. Thank you!