Skip Navigation

[Resolved] Fatal Error when editing Toolset Conditional Content Templates for WooCommerce

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

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 2 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2351585

Tell us what you are trying to do?
for info: 5 days ago I had a similar issue [https://toolset.com/forums/topic/fatal-error-linked-to-toolset-blocks/]
edit conditional content template for woocommerce single product
Is there any documentation that you are following?
standard
Is there a similar example that we can see?
hidden link
What is the link to your site?
hidden link

Following the message I get
Fatal error: Uncaught Error: Attempt to assign property "dynamic_sources_content_processed" on null
in /html/wordpress/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 59

Pile d’appel :

Toolset\D\S\PostContent::get_content()
wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php:514
Toolset\D\DynamicSources::get_source_content()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/plugin.php:189
apply_filters()
wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Cache.php:92
Toolset\D\Cache::get_data_for_sources()
call_user_func_array()
wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Cache.php:49
Toolset\D\Cache::add_cached_data()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/plugin.php:189
apply_filters()
wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php:967
Toolset\D\DynamicSources::get_dynamic_sources_data()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/plugin.php:189
apply_filters()
wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php:942
Toolset\D\DynamicSources::register_localization_data()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:331
WP_Hook::do_action()
wp-includes/plugin.php:474
do_action()
wp-admin/edit-form-blocks.php:265
require()
wp-admin/post.php:187

Many thanks for help
George

#2351663

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see couple of users reported the same issue before but there is no valid reason or resolution that what is the actual cause of this issue. Following are the previous tickets reported:
- https://toolset.com/forums/topic/uncaught-error-attempt-to-assign-property-dynamic_sources_content_processed/
- https://toolset.com/forums/topic/problem-with-blocks-editor-on-backend/
- https://toolset.com/forums/topic/editor-does-not-load-on-page/

Can you please try to follow the basic debug steps:
*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as with the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any issue when only Toolset and Woo commerce plugin active? If no:

I will require admin access details to check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2352793

For info - I downgraded PHP version right now to php 7.3 as I read in your support forum in a ticket from August 2021:
we recommend PHP versions lower than version 8 when using Toolset for best results.

#2353429

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Do you mean you were using the PHP 8 version? If yes, you should downgrade to PHP 7.x.x and keep it using until we officially publish the PHP 8 compatibility that is schedule to release in couple of weeks from now.