Drupal8で記事削除中にエラーが発生

スポンサーリンク

Drupalにて次のエラーが出ました。
出たタイミングは記事の削除の最終確認の所です。
他でも出るかもしれないです。

The website encountered an unexpected error. Please try again later.
Error: Call to a member function toUrl() on null in rdf_comment_storage_load() (line 245 of core/modules/rdf/rdf.module).

解決策をweb検索にて発見しましたので紹介いたします。
私の環境では次の階層にファイルがあるので置き換えてください。
/var/www/drupal/core/modules/rdf/にあるファイル「rdf.module」をviエディタなので修正します。

240目くらいにある
if ($comment->hasParentComment()) {

if ($comment->hasParentComment() && $comment->getParentComment() != null) {
に変更します。
これによりエラーがなおりました。

コメント

タイトルとURLをコピーしました