Skip Navigation

[Resolved] Editing one of m y content templates generates a fatal error

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by nickH-5 1 year, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2433145

I am trying to: edit one of my content templates

I get the following error. There don't appear to be errors on any other template

Warning: Attempt to read property "dynamic_sources_content_processed" on null in /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 62

Fatal error: Uncaught Error: Attempt to assign property "dynamic_sources_content_processed" on null in /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php:67 Stack trace: #0 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(514): Toolset\DynamicSources\Sources\PostContent->get_content(NULL, NULL) #1 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\DynamicSources->get_source_content('', '__current_post', 166899, Object(Toolset\DynamicSources\Sources\PostContent)) #2 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(191): WP_Hook->apply_filters('', Array) #3 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Cache.php(92): apply_filters('toolset/dynamic...', '', '__current_post', '166899', 'post-content') #4 [internal function]: Toolset\DynamicSources\Cache->get_data_for_sources(Array, '__current_post', '166899') #5 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Cache.php(49): call_user_func_array(Array, Array) #6 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\Cache->add_cached_data(Array, '166899') #7 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #8 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(967): apply_filters('toolset/dynamic...', Array, 144) #9 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\DynamicSources->get_dynamic_sources_data(Array) #10 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #11 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(942): apply_filters('toolset/dynamic...', Array) #12 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\DynamicSources->register_localization_data('') #13 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #14 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #15 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-admin/edit-form-blocks.php(270): do_action('enqueue_block_e...') #16 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-admin/post.php(187): require('/homepages/11/d...') #17 {main} thrown in /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 67

#2434071

Hello,

It seems be something broken in that specific content template, please try these:
Create another content template, try to duplicate the same problem in it, and provide detail steps to reproduce the same problem.

If it can not reproduce, then it should be an exception, please remove the problem content template, replace it with the new content template.

#2434629

I have found also a template for a single post type which gives this error:
Warning: Attempt to read property "dynamic_sources_content_processed" on null in /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 62

Fatal error: Uncaught Error: Attempt to assign property "dynamic_sources_content_processed" on null in /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php:67 Stack trace: #0 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(514): Toolset\DynamicSources\Sources\PostContent->get_content(NULL, NULL) #1 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\DynamicSources->get_source_content('', '__current_post', 168957, Object(Toolset\DynamicSources\Sources\PostContent)) #2 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(191): WP_Hook->apply_filters('', Array) #3 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Cache.php(92): apply_filters('toolset/dynamic...', '', '__current_post', '168957', 'post-content') #4 [internal function]: Toolset\DynamicSources\Cache->get_data_for_sources(Array, '__current_post', '168957') #5 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Cache.php(49): call_user_func_array(Array, Array) #6 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\Cache->add_cached_data(Array, '168957') #7 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #8 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(967): apply_filters('toolset/dynamic...', Array, 168680) #9 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\DynamicSources->get_dynamic_sources_data(Array) #10 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #11 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(942): apply_filters('toolset/dynamic...', Array) #12 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(307): Toolset\DynamicSources\DynamicSources->register_localization_data('') #13 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #14 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #15 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-admin/edit-form-blocks.php(270): do_action('enqueue_block_e...') #16 /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-admin/post.php(187): require('/homepages/11/d...') #17 {main} thrown in /homepages/11/d842026020/htdocs/clickandbuilds/Mix926/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 67
There has been a critical error on this website. Please check your site admin email inbox for instructions.

Learn more about troubleshooting WordPress.

#2434771

There might be other compatibility issue in your website, Please try these:
1) deactivate all other plugins, and switch to WordPress default theme 2022, and test again
2) If the problem is fixed, then activate other plugins/theme one by one, try to locate the problem plugin/theme

#2440131

No plugin issued so in the end I did a manual copy and paste from the development site to the live site for the affected templates

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.