Skip Navigation

[Resolved] Error when editing Custom Fields

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 1 reply, has 2 voices.

Last updated by Nigel 5 months, 2 weeks ago.

Author
Posts
#2725122
Screenshot 2024-08-21 120635.png

Hi there,
I constantly got this error when in "Custom Fields" editing dashboard.
===================================
Deprecated: ctype_digit(): Argument of type WP_Post will be interpreted as string in the future in /home/vagrant/www/reeds/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/factory.php on line 134
===================================

I'm running WordPress 6.6.1 and PHP 8.1

Can you please have a look and let me know the fix for this.
Thanks,
Anh

#2725329

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Anh

We already have reports of this and it is fixed in development, so the problem will disappear with the next update of Types. As a deprecation notice it has no effect on the functionality of your site.

In the meantime, the reason you are seeing the message on the field group edit screen is that you have WordPress debug mode turned on, and logging errors to the screen, and you would normally only do this on a development site, not in production.

You will want to edit your wp-config.php file and set WP_DEBUG to false (except when actively debugging something, and even then you probably want to send the errors to a log file rather than display them on the screen).

See https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/ for background.

#2731753

Thanks Nigel for the update!