Skip Navigation

[Waiting for user feedback] PHP Warning: Attempt to read property “ID” on null in Toolset Blocks

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

Last updated by Christopher Amirian 4 days, 10 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2818723

I'm encountering a persistent PHP Warning related to Toolset Blocks that I'm hoping you can help me diagnose. The warning message is:

[02-Aug-2025 16:46:39 UTC] PHP Warning: Attempt to read property "ID" on null in /home/my-account/mysite.com/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset-theme-integration-settings-helper.php on line 426

Site Details (not: all plugins and theme recently updated -- error was happening before the updates):

WordPress Version: 6.8.2

PHP Version: 8.4 (just updated today from 8.0)

Toolset Blocks Version: 1.6.20

Toolset Types Version: 3.6.1

Theme: Kadence Theme 1.2.28

Caching Plugin: LiteSpeed Cache 7.3.0.1

Hosting Environment: My site is on a shared hosting account with NameHero.

Issue Description:

This warning has been consistently appearing in my PHP error logs since at least June 1, 2025, and occurs multiple times a day at various, unscheduled times (e.g., :54, :31, :22, :46 past the hour, etc.). It is not specifically tied to my external system cron job, as the errors occur outside those scheduled times as well.

The warning indicates that the toolset-theme-integration-settings-helper.php file is attempting to read the "ID" property from a variable that is null (empty), rather than a valid object, in line 426. This suggests the code is expecting a WordPress post or object in a context where it's not available.

To help investigate, could you please advise on:

- What specific scenarios or contexts might lead this toolset-theme-settings helper to be invoked with a null object on line 426?

- Are there any known conflicts or common configurations (e.g., specific custom post types, custom fields, Toolset Views/Blocks on particular pages, specific AJAX requests, or interactions with other plugins) that might trigger this in a PHP 8.0 (or 8.4) environment?

Is there a way to disable this specific helper function if it's not critical for my setup?

Thank you for your time and assistance in resolving this.

#2818791

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. I checked and could not find instances that had such a warning.

Just FYI, the warning in PHP will not stop the execution of the code, and it should work.

But to get to the bottom of the issue, I suggest that you do as follows:

- 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 and its add-ons.
- 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.

Thanks.