Hey guys

I get the following error, when I enable the rdf module in the core:

Error messagePDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal7_test2.rdf_mapping' doesn't exist: SELECT mapping AS mapping FROM {rdf_mapping} rdf_mapping WHERE (type = :db_condition_placeholder_0) AND (bundle = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => comment [:db_condition_placeholder_1] => comment_node_wlanap ) in _rdf_mapping_load() (line 197 of /var/www/drupal7/modules/rdf/rdf.module).

I'm using drupal 7.2.
Does anyone have a suggestion to solve this problem?
Regards
Philip

CommentFileSizeAuthor
#3 update.png11.49 KBHigarigh
drupal_error_rdf_enabled.png13.52 KBHigarigh

Comments

Anonymous’s picture

Category: bug » support

It sounds like the rdf_mapping table was deleted manually, so it needs to be created again. Try completely uninstalling the rdf module and then reinstalling it.

Higarigh’s picture

How can I reinstall this module? I mean it's in the core... xD Do you maybe know which update creates this table? I made an upgrade from Drupel 6.14 to 7.2 and in the Database from the 6.14 version there is no table called "rdf_mapping".
Regards
Philip

Higarigh’s picture

StatusFileSize
new11.49 KB

edit: attachment: screen of my /update.php result.

Anonymous’s picture

You can uninstall core modules in the same way you uninstall contrib modules.

I tested this out on my local copy and I would recommend also deleting the rdf module entry from the system table. In system, search for name='rdf' and then delete the row. Then when you enable rdf module, it will create the table.

Higarigh’s picture

Thank you very much! This was the solution xD
Regards
Philip

scor’s picture

@Higarigh can you confirm that you had the contributed rdf module installed in Drupal 6 before upgrading to Drupal 7?

maddentim’s picture

I had the contrib module installed and got this issue. in addition to manually deleting the module from the system table, I also had to manually empty the cache and the cache_bootstrap tables to get past this error...

jgreidy’s picture

I had the rdf module installed in a Drupal 6 site, upgraded the site to Drupal 7, and ran into this problem when I tried to install the schema.org module which requires rdf . I was able to get the site working again by removing the rdf module directory from the Drupal 7 core modules directory, and removing the rdf row from the system table as suggested here. Thanks! After that I got another copy of the rdf module, placed it in the core modules directory, and turned on the rdf module again, and everything is working again. Yes joy.

guypaddock’s picture