Skip Navigation

[Resolved] Fatal error on editing detail page

This support ticket is created 3 years 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 11 replies, has 2 voices.

Last updated by maartenW-2 3 years ago.

Assisted by: Minesh.

Author
Posts
#2550213

Hello,

I have made a detail page, but when I try to edit it now, WordPress gets an error. The message is below. Could it be that one of the fields it wants to display cannot be found? If so, how can I edit it.

Een fout van het type E_ERROR werd veroorzaakt op regelnummer 67 van het bestand /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php. Foutmelding: Uncaught Error: Attempt to assign property "dynamic_sources_content_processed" on null in /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php:67
Stack trace:
#0 /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(514): Toolset\DynamicSources\Sources\PostContent->get_content()
#1 /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(786): Toolset\DynamicSources\DynamicSources->get_source_content()
#2 /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(744): Toolset\DynamicSources\DynamicSources->get_shortcode_content()
#3 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/shortcodes.php(355): Toolset\DynamicSources\DynamicSources->dynamic_shortcode_render()
#4 [internal function]: do_shortcode_tag()
#5 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/shortcodes.php(227): preg_replace_callback()
#6 /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(920): do_shortcode()
#7 [internal function]: Toolset\DynamicSources\DynamicSources->Toolset\DynamicSources\{closure}()
#8 /var/www/vhosts/amklassiek.nl/httpdocs/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(919): preg_replace_callback()
#9 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/class-wp-hook.php(308): Toolset\DynamicSources\DynamicSources->shortcode_render()
#10 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#11 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1857): apply_filters()
#12 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(568): WP_REST_Posts_Controller->prepare_item_for_response()
#13 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1171): WP_REST_Posts_Controller->get_item()
#14 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request()
#15 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/rest-api.php(535): WP_REST_Server->dispatch()
#16 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/rest-api.php(2884): rest_do_request()
#17 [internal function]: rest_preload_api_request()
#18 /var/www/vhosts/amklassiek.nl/httpdocs/wp-includes/block-editor.php(638): array_reduce()
#19 /var/www/vhosts/amklassiek.nl/httpdocs/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#20 /var/www/vhosts/amklassiek.nl/httpdocs/wp-admin/post.php(187): require('...')
#21 {main}
thrown

#2550799

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please send me debug information that will help to to ensure what plugin version as well as PHP version you are using.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

Here is the related ticket with the same error and I also shared the workaround:
- https://toolset.com/forums/topic/fatal-error-attempt-to-assign-property-dynamic_sources_content_processed/#post-2492675

does that helps?

#2550923

Hello Minesh, the related ticket does not really help.

#2550955

Minesh
Supporter

Languages: English (English )

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

Ok then I will require problem URL where I can see the issue as well as admin access details.

*** 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.

#2551571

Minesh
Supporter

Languages: English (English )

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

Can you please share details on what page/post/content template I can see the issue with?

#2551585

The detail page still works as it should, but when I try to edit it (from the toolset dashboard), the error occurs.

#2551595

Minesh
Supporter

Languages: English (English )

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

But what detail page you created - can you please share link of that page where I can see the issue?

#2551601

hidden link is the detail page edit.

you can see the page used here: hidden link

I hope this is what you mean?

#2551603

Minesh
Supporter

Languages: English (English )

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

Can you please check now. I've fixed the issue.

In postmeta table I've search for the post_id equal to the ID of your content template that is not working (in this case its 376822)
=> hidden link

Then with the search result I get, I delete the row with metakey "tb_preview_post" that contains the ID of the post that is actually deleted.

I can see now the content template is loading in the backend. Can you please confirm it works at your end as well.

#2551651

Yes, I can edit it again. Thank you.

#2551653

Minesh
Supporter

Languages: English (English )

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

Glad to know that solution I shared help you to resolve your issue. You're welcome to mark resolve this ticket.

#2551659

My issue is resolved now. Thank you!