古腾堡在某些页面上保存时返回错误500

时间:2018-09-12 09:48:07

标签: php wordpress wordpress-gutenberg

我有一个拥有古腾堡的网站,这是其中非常重要的一部分,问题是.. 当我进入页面并尝试保存页面时,出现错误500,在控制台中我在控制台中遇到此错误

POST https://myDomain/wp-json/wp/v2/pages/5950 500 ()
POST https://myDomain/wp-admin/post.php?post=5950&action=edit&classic-editor=1&meta_box=1 500 ()

以及我的错误日志中的此错误

[12-Sep-2018 09:46:18 UTC] PHP Fatal error:  Uncaught Exception: Invalid page template. in /usr/www/users/foodno/v32/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-duplication.class.php:99
Stack trace:
#0 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(4219): WPML_Post_Duplication->make_duplicate(5950, 'he')
#1 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-synchronization.class.php(84): SitePress->make_duplicate(5950, 'he')
#2 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(248): WPML_Post_Synchronization->sync_with_duplicates(5950)
#3 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(113): WPML_Post_Translation->after_save_post('535', Array, 'en', NULL)
#4 /usr/www/users/myDomain/wp-includes/class-wp-hook.php(288): WPML_Admin_Post_Actions->save_post_actions('5950', Objec in /usr/www/users/foodno/v32/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-duplication.class.php on line 99

我也在使用WPML插件,并且在保存时插件卡住了screenshot

加载器在循环中...

事实是,它保存了编辑的内容,但仍然返回错误500,我尝试调试后却一无所获

我当然是在询问之前用Google搜索过的,我发现这些问题是以前发生的已知的古腾堡问题……这些都没有帮助。有人有任何建议或解决方案吗?

https://github.com/WordPress/gutenberg/issues/5675 https://github.com/WordPress/gutenberg/issues/8410

预先感谢

1 个答案:

答案 0 :(得分:0)

我也问了他们的git,我从昵称“ brucepearson”的先生那里得到了答案,WPML显然会在下次更新中解决此问题,这是git q / a的链接

https://github.com/WordPress/gutenberg/issues/9816