Hi,

I'm creating a website for a photographer and need to maximise the SEO as the site is largely image based, hence wanting to understand this module properly...

I'm using D7.20.

When I first installed the module, by ftp, I got the following error *before* activating it. It occurred when I clicked on the "Modules" link in the top menu:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'sites/all/modules/schemaorg/schemaorg.module' for key 'PRIMARY': INSERT INTO {system} (filename, name, type, owner, info) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4), (:db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9), (:db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13, :db_insert_placeholder_14), (:db_insert_placeholder_15, :db_insert_placeholder_16, :db_insert_placeholder_17, :db_insert_placeholder_18, :db_insert_placeholder_19), (:db_insert_placeholder_20, :db_insert_placeholder_21, :db_insert_placeholder_22, :db_insert_placeholder_23, :db_insert_placeholder_24); Array ( [:db_insert_placeholder_0] => sites/all/modules/schemaorg/schemaorg.module [:db_insert_placeholder_1] => schemaorg [:db_insert_placeholder_2] => module [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => a:11:{s:4:"name";s:10:"Schema.org";s:11:"description";s:60:"Allows to annotate content using the schema.org vocabularies";s:7:"package";s:10:"Schema.org";s:12:"dependencies";a:1:{i:0;s:3:"rdf";}s:4:"core";s:3:"7.x";s:5:"files";a:1:{i:0;s:14:"schemaorg.test";}s:7:"version";s:13:"7.x-1.0-beta3";s:7:"project";s:9:"schemaorg";s:9:"datestamp";s:10:"1337625394";s:3:"php";s:5:"5.2.4";s:9:"bootstrap";i:0;} [:db_insert_placeholder_5] => sites/all/modules/schemaorg/example/schemaorg_event/schemaorg_event.module [:db_insert_placeholder_6] => schemaorg_event [:db_insert_placeholder_7] => module [:db_insert_placeholder_8] => [:db_insert_placeholder_9] => a:12:{s:4:"name";s:25:"Schema.org example: Event";s:11:"description";s:65:"Example of an event content type with fields mapped to schema.org";s:4:"core";s:3:"7.x";s:7:"package";s:10:"Schema.org";s:12:"dependencies";a:14:{i:0;s:6:"ctools";i:1;s:4:"date";i:2;s:8:"date_api";i:3;s:10:"date_popup";i:4;s:10:"date_views";i:5;s:8:"features";i:6;s:17:"field_sql_storage";i:7;s:4:"node";i:8;s:3:"rdf";i:9;s:9:"schemaorg";i:10;s:9:"strongarm";i:11;s:4:"text";i:12;s:5:"views";i:13;s:8:"views_ui";}s:8:"features";a:6:{s:6:"ctools";a:2:{i:0;s:21:"strongarm:strongarm:1";i:1;s:23:"views:views_default:3.0";}s:5:"field";a:3:{i:0;s:35:"node-schemaorg_event-field_location";i:1;s:41:"node-schemaorg_event-field_schemaorg_date";i:2;s:48:"node-schemaorg_event-field_schemaorg_description";}s:4:"node";a:1:{i:0;s:15:"schemaorg_event";}s:9:"schemaorg";a:1:{i:0;s:20:"node-schemaorg_event";}s:8:"variable";a:12:{i:0;s:33:"comment_anonymous_schemaorg_event";i:1;s:36:"comment_default_mode_schemaorg_event";i:2;s:40:"comment_default_per_page_schemaorg_event";i:3;s:37:"comment_form_location_schemaorg_event";i:4;s:31:"comment_preview_schemaorg_event";i:5;s:23:"comment_schemaorg_event";i:6;s:37:"comment_subject_field_schemaorg_event";i:7;s:28:"menu_options_schemaorg_event";i:8;s:27:"menu_parent_schemaorg_event";i:9;s:28:"node_options_schemaorg_event";i:10;s:28:"node_preview_schemaorg_event";i:11;s:30:"node_submitted_schemaorg_event";}s:10:"views_view";a:1:{i:0;s:6:"events";}}s:7:"version";s:13:"7.x-1.0-beta3";s:7:"project";s:9:"schemaorg";s:9:"datestamp";s:10:"1337625394";s:3:"php";s:5:"5.2.4";s:5:"files";a:0:{}s:9:"bootstrap";i:0;} [:db_insert_placeholder_10] => sites/all/modules/schemaorg/example/schemaorg_person/schemaorg_person.module [:db_insert_placeholder_11] => schemaorg_person [:db_insert_placeholder_12] => module [:db_insert_placeholder_13] => [:db_insert_placeholder_14] => a:12:{s:4:"name";s:26:"Schema.org example: Person";s:11:"description";s:65:"Example of a person content type with fields mapped to schema.org";s:4:"core";s:3:"7.x";s:7:"package";s:10:"Schema.org";s:3:"php";s:5:"5.2.4";s:12:"dependencies";a:5:{i:0;s:8:"features";i:1;s:5:"image";i:2;s:3:"rdf";i:3;s:9:"schemaorg";i:4;s:9:"strongarm";}s:8:"features";a:5:{s:6:"ctools";a:1:{i:0;s:21:"strongarm:strongarm:1";}s:5:"field";a:4:{i:0;s:49:"node-schemaorg_person-field_schemaorg_affiliation";i:1;s:41:"node-schemaorg_person-field_schemaorg_bio";i:2;s:46:"node-schemaorg_person-field_schemaorg_jobtitle";i:3;s:43:"node-schemaorg_person-field_schemaorg_photo";}s:4:"node";a:1:{i:0;s:16:"schemaorg_person";}s:9:"schemaorg";a:1:{i:0;s:21:"node-schemaorg_person";}s:8:"variable";a:12:{i:0;s:34:"comment_anonymous_schemaorg_person";i:1;s:37:"comment_default_mode_schemaorg_person";i:2;s:41:"comment_default_per_page_schemaorg_person";i:3;s:38:"comment_form_location_schemaorg_person";i:4;s:32:"comment_preview_schemaorg_person";i:5;s:24:"comment_schemaorg_person";i:6;s:38:"comment_subject_field_schemaorg_person";i:7;s:29:"menu_options_schemaorg_person";i:8;s:28:"menu_parent_schemaorg_person";i:9;s:29:"node_options_schemaorg_person";i:10;s:29:"node_preview_schemaorg_person";i:11;s:31:"node_submitted_schemaorg_person";}}s:7:"version";s:13:"7.x-1.0-beta3";s:7:"project";s:9:"schemaorg";s:9:"datestamp";s:10:"1337625394";s:5:"files";a:0:{}s:9:"bootstrap";i:0;} [:db_insert_placeholder_15] => sites/all/modules/schemaorg/example/schemaorg_recipe/schemaorg_recipe.module [:db_insert_placeholder_16] => schemaorg_recipe [:db_insert_placeholder_17] => module [:db_insert_placeholder_18] => [:db_insert_placeholder_19] => a:12:{s:4:"name";s:26:"Schema.org example: Recipe";s:11:"description";s:65:"Example of a recipe content type with fields mapped to schema.org";s:4:"core";s:3:"7.x";s:7:"package";s:10:"Schema.org";s:12:"dependencies";a:5:{i:0;s:8:"features";i:1;s:5:"image";i:2;s:3:"rdf";i:3;s:6:"recipe";i:4;s:9:"schemaorg";}s:8:"features";a:2:{s:5:"field";a:1:{i:0;s:33:"node-recipe-field_schemaorg_image";}s:9:"schemaorg";a:1:{i:0;s:11:"node-recipe";}}s:7:"version";s:13:"7.x-1.0-beta3";s:7:"project";s:9:"schemaorg";s:9:"datestamp";s:10:"1337625394";s:3:"php";s:5:"5.2.4";s:5:"files";a:0:{}s:9:"bootstrap";i:0;} [:db_insert_placeholder_20] => sites/all/modules/schemaorg/schemaorg_ui/schemaorg_ui.module [:db_insert_placeholder_21] => schemaorg_ui [:db_insert_placeholder_22] => module [:db_insert_placeholder_23] => [:db_insert_placeholder_24] => a:11:{s:4:"name";s:13:"Schema.org UI";s:11:"description";s:58:"User interface for setting the schema.org module mappings.";s:7:"package";s:10:"Schema.org";s:12:"dependencies";a:2:{i:0;s:3:"rdf";i:1;s:9:"schemaorg";}s:4:"core";s:3:"7.x";s:5:"files";a:1:{i:0;s:14:"schemaorg.test";}s:7:"version";s:13:"7.x-1.0-beta3";s:7:"project";s:9:"schemaorg";s:9:"datestamp";s:10:"1337625394";s:3:"php";s:5:"5.2.4";s:9:"bootstrap";i:0;} ) in system_update_files_database() (line 2307 of /home/dotcamer/public_html/mysite.me.uk/modules/system/system.module).

When I saw the error I clicked the Back button in my browser, clicked the Modules menu again and was taken to the modules page without the error being seen again.

However...

I'm *not* seeing any reference to "Schema.org" at the bottom of my content types but I'm not clear if I should be or not... Neither do I see any reference to the module on my Configuration page but again, I'm not sure if I should be...

Did my install go wrong somehow?

Hope you can help :-)

S

CommentFileSizeAuthor
#2 modules.jpg70.4 KBSMartin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scor’s picture

I've never seen this error before. are you sure you don't have another copy of the schema.org module on your server somewhere? Is this a brand new site? If so could you try to re-install Drupal? otherwise, have you tried to clear the cache? what other contrib modules do you have installed?

A bit more advanced, but if you don't want or can't reinstall and clearing caches a couple of times doesn't work, try https://drupal.org/project/registry_rebuild (drush script)

SMartin’s picture

FileSize
70.4 KB

scor,

Thanks for the quick response...

I've never seen this error before. are you sure you don't have another copy of the schema.org module on your server somewhere?

There may be another copy on the *server* somewhere but not in my Drupal install. It's a shared server setup on cheap hosting...

Is this a brand new site? If so could you try to re-install Drupal? otherwise, have you tried to clear the cache?

Funnily enough I just this minute upgraded to 7.21. The error only shows the one time in the logs but I still don't see a reference to schema.org in my content types. Should I?

what other contrib modules do you have installed?

See attachment.

A bit more advanced, but if you don't want or can't reinstall and clearing caches a couple of times doesn't work, try https://drupal.org/project/registry_rebuild (drush script)

I have cleared caches... Drush isn't installed on the server.

I think I need to establish if I should automatically be seeing a reference to the module somewhere or if it only appears if I add the relevant fields to my content type.

?

Thanks again

S

scor’s picture

you need to enable the "Schema.org UI" module to see the schema.org settings your content type edit form and in your fields edit forms.

SMartin’s picture

scor,

Ok... so until I add the various fields you refer to in the howto video you linked to, I won't see any mention of the schema.org module anywhere?

S

scor’s picture

if you have enabled the "schema.org UI" module, you should see a "schema.org settings" vertical tab at the bottom of each of your content types at least (for example admin/structure/types/manage/article)

SMartin’s picture

scor,

Ok, so the module hasn't installed properly then as I'm not seeing any reference to it at the end of my content types.

Any suggestions as to what to do? I already re-uploaded the module through ftp...

S

scor’s picture

since you have already cleared the caches, I would try to re-install everything from scratch after making a backup if you have data that you care about it. This way you can re-install the module from scratch. What other contrib modules are you using? maybe a screenshot of your modules page would help. Do you see any error in the error log?