I have migrated from D6 to D8 and used the migrate module to accomplish this.

Everything seemed to be okay until I clicked the "Comment" link in the admin section
(/admin/content/comment)
I get this error
Fatal error: Call to a member function url() on a non-object in /FULL PATH STRING REMOVED/core/modules/rdf/rdf.module on line 238

Here is the function in question
---------------------
/**
* Implements hook_ENTITY_TYPE_storage_load() for comment entities.
*/
function rdf_comment_storage_load($comments) {
foreach ($comments as $comment) {
// Pages with many comments can show poor performance. This information
// isn't needed until rdf_preprocess_comment() is called, but set it here
// to optimize performance for websites that implement an entity cache.
$created_mapping = rdf_get_mapping('comment', $comment->bundle())
->getPreparedFieldMapping('created');
$comment->rdf_data['date'] = rdf_rdfa_attributes($created_mapping, $comment->get('created')->first()->toArray());
$entity = $comment->getCommentedEntity();
$comment->rdf_data['entity_uri'] = $entity->url();
if ($comment->hasParentComment()) {
$comment->rdf_data['pid_uri'] = $comment->getParentComment()->url();
}
}
}

-------------------

Looking at the comment table of the NEW site there are 1239 Comments in the table the same number in the OLD site's table.

I am unfamiliar with this module. Any help would be appreciated.

Thanks for your help.

Comments

GenOneStudios’s picture

I used the Disable Module to temporarily disable the RDF module
(https://www.drupal.org/project/disable_modules)

After disabling the RDF module I get this error I clicked the Comment button in the admin
(/admin/content/comment)

Fatal error: Call to a member function label() on a non-object in /FULL PATH STRING REMOVED/core/modules/comment/src/Form/CommentAdminOverview.php on line 204

BTW I am using Omega theme for Drupal8 and have used its interface to build a simple subtheme for the main site with Seven 8.1.

One other thing - when I first installed the site, I was able to add a test comment to a test article. The comment was correctly shown on the articles page.

Any ideas?!

Soccratis’s picture

The same happen to my site www.Soccratis.com

GenOneStudios’s picture

I deleted the core comment module and reloaded the files.

My thought was perhaps a file was missing or corrupt. I cleared the cache after the files were reloaded and because I am desperate I ran the update.php.

No joy.

(BTW - I am using Filezilla for FTP. So I really would not have expected an issue with the transfer without some sort of error notification.)

GenOneStudios’s picture

After flailing about in the file system, I looked at the tables.

Sure enough, there was a count mismatch between the entities and the node comments.... I missed this the first time. :-|
I emptied all the comments related tables and wallah the admin section loaded.

I'll have to manually repair the mismatched/missing data. I can't tell if the data is corrupted or if some of the data simply did not make it. But that's for later.

Hope this helps someone!

Rewted’s picture

Issue remains in 8.2.7, I've submitted as a bug, though perhaps I made have identified the wrong module as being a cause. https://www.drupal.org/node/2863744