Passer la navigation

[Résolu] Fatal Error when editing view

This support ticket is created Il y a 3 years, 5 months. 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
- 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 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 3 réponses, a 3 voix.

Dernière mise à jour par Luo Yang Il y a 3 years, 5 months.

Assisté par: Luo Yang.

Auteur
Publications
#2525173

I am trying to: Edit view for single CPT

Link to a page where the issue can be seen: lien caché

I expected to see: Edit view

Instead, I got: Fatal error

2023/01/01 07:14:35 [error] 89862#89862: *583504 FastCGI sent in stderr: "PHP message: PHP Warning: Attempt to read property "dynamic_sources_content_processed" on null in /www/dailysosu_813/public/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 62PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property "dynamic_sources_content_processed" on null in /www/dailysosu_813/public/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php:67
Stack trace:
#0 /www/dailysosu_813/public/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(514): Toolset\DynamicSources\Sources\PostContent->get_content('', Array)
#1 /www/dailysosu_813/public/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(786): Toolset\DynamicSources\DynamicSources->get_source_content('', '__current_post', 871, Object(Toolset\DynamicSources\Sources\PostContent), '', Array)
#2 /www/dailysosu_813/public/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/DynamicSources.php(744): Toolset\DynamicSources\DynamicSources->get_shortcode_content(Array)
#3 /www/dailysosu_813/public/wp-includes/shortcodes.php(355): Toolset\DynamicSources\Dynamic" while reading response header from upstream, client: 118.233.153.106, server: dailysosu.com, request: "GET /wp-admin/post.php?post=1260&action=edit HTTP/1.1", upstream: "lien caché:", host: "dailysosu.com:36070", referrer: "lien caché"

#2525615

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There are few related tickets reported and its been obviously resolved when you downgrade the PHP version to PHP 7.x.x.

Can you please check the following related ticket and see if that help you to resolve your issue.
- https://toolset.com/forums/topic/fatal-error-attempt-to-assign-property-dynamic_sources_content_processed/#post-2492675

I would like to know - have you added multiple single field block that displays the post content (post body)?

#2526057

The site is using PHP 8.0.13, I'm not able to downgrade. Is there other solution?

Have you added multiple single field block that displays the post content (post body)? -- I'm unsure the answer to your question, this is the page: lien caché

#2526085

Hello,

I have done below modifications in your website:
Edit the content template:
lien caché

In section "View with", choose a post "芝麻雞肉炊飯", refresh my Chrome browser.

It works fine now, can you check it again?