Skip Navigation

[Assigned] Creation of dynamic property in WPCF_Relationship_Child_Form

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 1 voice.

Last updated by Levy 2 days, 14 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2820939

I am trying to:
Load an admin page using PHP 8.3

Link to a page where the issue can be seen:
Local dev site

I expected to see:
No deprecation notices.

Instead, I got:

Deprecated: Creation of dynamic property WPCF_Relationship_Child_Form::$pagination_top is deprecated in D:\www\sitename\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php on line 219

Deprecated: Creation of dynamic property WPCF_Relationship_Child_Form::$pagination_bottom is deprecated in D:\www\sitename\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php on line 232

Deprecated: Creation of dynamic property WPCF_Relationship_Child_Form::$child is deprecated in D:\www\sitename\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php on line 166

Deprecated: Creation of dynamic property WPCF_Relationship_Child_Form::$pagination_top is deprecated in D:\www\sitename\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php on line 219

Deprecated: Creation of dynamic property WPCF_Relationship_Child_Form::$pagination_bottom is deprecated in D:\www\sitename\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php on line 232

Deprecated: Creation of dynamic property WPCF_Relationship_Child_Form::$child is deprecated in D:\www\sitename\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php on line 1

#2820993

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support.

The deprecation notices that you mentioned are not breaking the normal execution of the plugin. It is a notice that in future releases of PHP it might not work.

If you wish to avoid showing the,m you can do as follows:

Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

------

Would you please test if the same thing happens on a minimal installation?

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except:
. Toolset plugins.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

One last thing is that you make sure you have the latest version of Toolset plugins:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update Toolset and its addons there.

Thanks.

#2821061

Is there a timeline for when the plugin will stop using deprecated functionality?

These clog our logs and we don't have the luxury of turning off debug display on our local development and staging sites so we're left with no option but to "hack" the plugin which is really not ideal.

#2821115

Christopher Amirian
Supporter

Languages: English (English )

Hi,

This is done on ra eport basis, which is why we asked to check if the same log is happening on minimal installation.

If yes, I'd appreciate it if you could give us the steps when the deprecation message is triggered and we will follow up.

I created a clean installation of WordPress and Toolset:

hidden link

If it is possible to see the deprecation message there that would be great so I can report this to the dev team.

Thanks.

#2821117

If you go to any single post edit page in admin that makes use of the `WPCF_Relationship_Child_Form` class you will see the deprecation.

This would require creating a new post type with a relationship to another post type which is not something I can do on the minimal site.

More simply, you can look at the code in this file and see the use of dynamic class properties:

\wp-content\plugins\types\vendor\toolset\types\embedded\classes\relationship\form-child.php

- $child
- $pagination_top
- $pagination_bottom

Thank you,
TL